ClikaRT::runtime::ContainedModel
struct
Header: ClikaRT/runtime/model.h
The runtime drives a Model through these contained entry points. You never build this; Executor::create / Pipeline::create build it from your Model (see detail::contain), wrapping each override in caller-side throw containment so a thrown ClikaRT::Error becomes a failure Result that the engine fails the session with; it never unwinds into the engine. (Same mechanism as http's detail::contain and the RequestCallbacks forwarder: the catch is compiled in your translation unit, only data crosses the boundary.)
Data members
schema
ModelSchema schema
The model's I/O contract (copied out of schema()).
Declared in ClikaRT/runtime/model.h, line 86
phases
std::vector<PhaseSpec> phases
The model's phases, in order.
Declared in ClikaRT/runtime/model.h, line 88
make_state
std::function<Result<ModelState *>(Stream)> make_state
Declared in ClikaRT/runtime/model.h, line 89
Phase_RunOnce
std::function<Result<void>(const PhaseSpec &, PhaseContext &)> Phase_RunOnce
Declared in ClikaRT/runtime/model.h, line 90
Phase_Iterate
std::function<Result<StepBatchOut>(const PhaseSpec &, StepContext &)> Phase_Iterate
Declared in ClikaRT/runtime/model.h, line 91
evict
std::function<void(ModelState &)> evict
Declared in ClikaRT/runtime/model.h, line 92