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, int start=0, int stop=-1, int const step=1) const |
boost::json::array const & | Captures () const |
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 |
|
boost::json::array | ObservedArgs (int const nofcall=-1) Input arguments observed at nofcall. |
std::size_t | ObservedCalls () const Number of interface calls. |
boost::json::value | ObservedReturn (int const nofcall=-1) const Observed return value at nofcall. |
boost::json::value const & | PrototypeArgs () const |
boost::json::value const & | PrototypeReturn () const |
InterfaceHandle & | RunAsAction () |
InterfaceHandle & | RunAsTrigger (std::size_t const nofcall=0) |
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 |
---|---|
JsonNode | captures |
zmbt::Environment | env |
Detailed Description¶
Template parameters:
Interface
Public Functions Documentation¶
function CaptureSlice¶
boost::json::array zmbt::Environment::InterfaceHandle::CaptureSlice (
boost::json::string_view signal_path,
int start=0,
int stop=-1,
int const step=1
) const
function Captures¶
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:
e
input generatorgroup
return | args | exceptionjp
JSON 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:
e
jp
JSON 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:
e
generating funcion expressionjp
JSON 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 ObservedArgs¶
Input arguments observed at nofcall.
function ObservedCalls¶
Number of interface calls.
function ObservedReturn¶
Observed return value at nofcall.
boost::json::value zmbt::Environment::InterfaceHandle::ObservedReturn (
int const nofcall=-1
) const
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 captures¶
variable env¶
The documentation for this class was generated from the following file zmbt-framework/zmbt-framework/backends/cxx/include/zmbt/model/environment_interface_record.hpp