Class zmbt::Environment::InterfaceHandle¶
ClassList > zmbt > Environment > InterfaceHandle
Environment extension handling the interface data.More...
#include <environment_interface_record.hpp>
Inherited by the following classes: zmbt::Environment::TypedInterfaceHandle
Public Functions¶
| Type | Name |
|---|---|
| boost::json::array | CaptureSlice (boost::json::string_view signal_path) const |
| boost::json::array const & | Captures () const |
| void | EnableOutputRecordFor (ChannelKind const kind) |
| Environment & | Env () const Environment of the interface handle. |
| void | Inject (std::shared_ptr< Generator > gen, lang::Expression const & tf, ChannelKind const kind, boost::json::string_view jp="") Set generating function for injection. |
| void | InjectArgs (lang::Expression const & e, boost::json::string_view jp="") Set generating function for injection args. |
| void | InjectReturn (lang::Expression const & e, boost::json::string_view jp="") Set generating function for injection return. |
| InterfaceHandle (Environment const & e, interface_id const & interface, object_id refobj) |
|
| InterfaceHandle (Environment const & e, boost::json::string_view ref) |
|
| InterfaceHandle (interface_id const & interface, object_id refobj) |
|
| InterfaceHandle (interface_id const & interface, nullptr_t) |
|
| InterfaceHandle (boost::json::string_view ref) |
|
| InterfaceHandle (interface_id const & interface, H const & obj) |
|
| InterfaceHandle (InterfaceHandle const &) = default |
|
| InterfaceHandle (InterfaceHandle && o) = default |
|
| void | MaybeThrowException () throw exception if set for current call |
| std::size_t | ObservedCalls () const Number of interface calls. |
| boost::json::array | PrototypeArgs () const |
| boost::json::value | PrototypeReturn () const |
| InterfaceHandle & | RunAsAction () |
| InterfaceHandle & | RunAsTrigger (std::size_t const repeats=1) |
| boost::json::value | YieldInjection (ChannelKind const kind) Yield input generator. |
| boost::json::value | YieldInjectionArgs () Injection at nofcall. |
| boost::json::value | YieldInjectionReturn () |
| interface_id | interface () const |
| boost::json::string const & | key () const |
| InterfaceHandle & | operator= (InterfaceHandle const &) = default |
| InterfaceHandle & | operator= (InterfaceHandle &&) = default |
| object_id | refobj () const |
| ~InterfaceHandle () = default |
Protected Attributes¶
| Type | Name |
|---|---|
| zmbt::Environment | env |
| std::shared_ptr< OutputRecorder > | output_recorder_ |
Detailed Description¶
Template parameters:
Interface
Public Functions Documentation¶
function CaptureSlice¶
boost::json::array zmbt::Environment::InterfaceHandle::CaptureSlice (
boost::json::string_view signal_path
) const
function Captures¶
function EnableOutputRecordFor¶
function Env¶
Environment of the interface handle.
Returns:
function Inject¶
Set generating function for injection.
void zmbt::Environment::InterfaceHandle::Inject (
std::shared_ptr< Generator > gen,
lang::Expression const & tf,
ChannelKind const kind,
boost::json::string_view jp=""
)
Parameters:
einput generatorgroupreturn | args | exceptionjpJSON Pointer
function InjectArgs¶
Set generating function for injection args.
inline void zmbt::Environment::InterfaceHandle::InjectArgs (
lang::Expression const & e,
boost::json::string_view jp=""
)
The intput conditions are evaluated from the corresponding expressions with 0-based call index as an argument.
Parameters:
ejpJSON Pointer
function InjectReturn¶
Set generating function for injection return.
inline void zmbt::Environment::InterfaceHandle::InjectReturn (
lang::Expression const & e,
boost::json::string_view jp=""
)
The intput conditions are evaluated from the corresponding expressions with 0-based call index as an argument.
Parameters:
egenerating funcion expressionjpJSON Pointer
function InterfaceHandle [1/8]¶
zmbt::Environment::InterfaceHandle::InterfaceHandle (
Environment const & e,
interface_id const & interface,
object_id refobj
)
function InterfaceHandle [2/8]¶
zmbt::Environment::InterfaceHandle::InterfaceHandle (
Environment const & e,
boost::json::string_view ref
)
function InterfaceHandle [3/8]¶
zmbt::Environment::InterfaceHandle::InterfaceHandle (
interface_id const & interface,
object_id refobj
)
function InterfaceHandle [4/8]¶
function InterfaceHandle [5/8]¶
function InterfaceHandle [6/8]¶
template<class H, class E>
inline zmbt::Environment::InterfaceHandle::InterfaceHandle (
interface_id const & interface,
H const & obj
)
function InterfaceHandle [7/8]¶
function InterfaceHandle [8/8]¶
function MaybeThrowException¶
throw exception if set for current call
function ObservedCalls¶
Number of interface calls.
function PrototypeArgs¶
function PrototypeReturn¶
function RunAsAction¶
function RunAsTrigger¶
function YieldInjection¶
Yield input generator.
function YieldInjectionArgs¶
Injection at nofcall.
function YieldInjectionReturn¶
function interface¶
function key¶
function operator=¶
InterfaceHandle & zmbt::Environment::InterfaceHandle::operator= (
InterfaceHandle const &
) = default
function operator=¶
function refobj¶
function ~InterfaceHandle¶
Protected Attributes Documentation¶
variable env¶
variable output_recorder_¶
The documentation for this class was generated from the following file zmbt-framework/zmbt-framework/backends/cxx/include/zmbt/model/environment_interface_record.hpp