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) |
boost::json::array const & | Captures () |
Environment & | Env () const Environment of the interface handle. |
boost::json::value | GetInjection (boost::json::string_view group, boost::json::string_view jp, int const nofcall) Injection at nofcall. |
boost::json::value | GetInjectionArgs (boost::json::string_view jp, std::size_t const nofcall=0) Injection args subsignal at nofcall. |
boost::json::value | GetInjectionArgs (std::size_t const nofcall=0) Injection args at nofcall. |
boost::json::value | GetInjectionReturn (boost::json::string_view jp, std::size_t const nofcall=0) Injection return signal at nofcall. |
boost::json::value | GetInjectionReturn (std::size_t const nofcall=0) Injection return signal at nofcall. |
void | Inject (Expression const & e, boost::json::string_view op, boost::json::string_view group, boost::json::string_view jp="") Set injection return subsignal at nofcall. |
void | InjectArgs (Expression const & e, SignalOperatorHandler const & op, boost::json::string_view jp="") Set injection args subsignal at nofcall. |
void | InjectArgs (Expression const & e, boost::json::string_view jp="") Set injection args subsignal at nofcall. |
void | InjectReturn (Expression const & e, SignalOperatorHandler const & op, boost::json::string_view jp="") Set injection return subsignal at nofcall. |
void | InjectReturn (Expression const & e, boost::json::string_view jp="") Set injection return subsignal at nofcall. |
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) 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) |
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 |
JsonNode | injects |
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
)
function Captures¶
function Env¶
Environment of the interface handle.
Returns:
function GetInjection¶
Injection at nofcall.
boost::json::value zmbt::Environment::InterfaceHandle::GetInjection (
boost::json::string_view group,
boost::json::string_view jp,
int const nofcall
)
Parameters:
group
return | args | exceptionjp
JSON pointernofcall
number of call
function GetInjectionArgs [1/2]¶
Injection args subsignal at nofcall.
inline boost::json::value zmbt::Environment::InterfaceHandle::GetInjectionArgs (
boost::json::string_view jp,
std::size_t const nofcall=0
)
Parameters:
value
jp
JSON Pointernofcall
function GetInjectionArgs [2/2]¶
Injection args at nofcall.
inline boost::json::value zmbt::Environment::InterfaceHandle::GetInjectionArgs (
std::size_t const nofcall=0
)
Parameters:
value
nofcall
function GetInjectionReturn [1/2]¶
Injection return signal at nofcall.
inline boost::json::value zmbt::Environment::InterfaceHandle::GetInjectionReturn (
boost::json::string_view jp,
std::size_t const nofcall=0
)
Parameters:
jp
JSON Pointernofcall
function GetInjectionReturn [2/2]¶
Injection return signal at nofcall.
inline boost::json::value zmbt::Environment::InterfaceHandle::GetInjectionReturn (
std::size_t const nofcall=0
)
Parameters:
nofcall
function Inject¶
Set injection return subsignal at nofcall.
void zmbt::Environment::InterfaceHandle::Inject (
Expression const & e,
boost::json::string_view op,
boost::json::string_view group,
boost::json::string_view jp=""
)
Parameters:
e
expressionop
operator handler idgroup
return | args | exceptionjp
JSON Pointer
function InjectArgs [1/2]¶
Set injection args subsignal at nofcall.
inline void zmbt::Environment::InterfaceHandle::InjectArgs (
Expression const & e,
SignalOperatorHandler const & op,
boost::json::string_view jp=""
)
Parameters:
e
jp
JSON Pointer
function InjectArgs [2/2]¶
Set injection args subsignal at nofcall.
inline void zmbt::Environment::InterfaceHandle::InjectArgs (
Expression const & e,
boost::json::string_view jp=""
)
Parameters:
e
jp
JSON Pointer
function InjectReturn [1/2]¶
Set injection return subsignal at nofcall.
inline void zmbt::Environment::InterfaceHandle::InjectReturn (
Expression const & e,
SignalOperatorHandler const & op,
boost::json::string_view jp=""
)
Parameters:
e
jp
JSON Pointer
function InjectReturn [2/2]¶
Set injection return subsignal at nofcall.
inline void zmbt::Environment::InterfaceHandle::InjectReturn (
Expression const & e,
boost::json::string_view jp=""
)
Parameters:
e
jp
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.
function PrototypeArgs¶
function PrototypeReturn¶
function RunAsAction¶
function RunAsTrigger¶
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 injects¶
The documentation for this class was generated from the following file zmbt-framework/zmbt-framework/backends/cxx/include/zmbt/model/environment_interface_record.hpp