state_machine_cpp
state_machine_cpp::Context Class Reference

#include <context.h>

Public Member Functions

 Context (AbstractAttributeTree *t_underlying_context)
 
unsigned int layer () const
 
const State::Instancestate () const
 
double execution_time_in_seconds () const
 
double remaining_time_in_seconds () const
 
bool has_reached_time_limit () const
 
void set_time_limit_in_seconds (double t_time_limit)
 
template<class T >
T & get (int t_layer=-1)
 
template<class T >
const T & get (int t_layer=-1) const
 
template<class T >
T & get_relative (int t_offset)
 
template<class T >
const T & get_relative (int t_offset) const
 

Static Public Member Functions

template<class ... X, class ... Y>
static merge_t< AttributeTree< X... >, AttributeTree< Y... > > * join (AttributeTree< X... > &&t_x, AttributeTree< Y... > &&t_y)
 
template<class T , class ... X>
static Context create (X... t_args)
 

Detailed Description

Examples
example_ForLoop_main.cpp.

Definition at line 25 of file context.h.

Constructor & Destructor Documentation

◆ Context()

state_machine_cpp::Context::Context ( AbstractAttributeTree t_underlying_context)
inlineexplicit

Definition at line 39 of file context.h.

Member Function Documentation

◆ create()

template<class T , class ... X>
static Context state_machine_cpp::Context::create ( X...  t_args)
inlinestatic

Definition at line 69 of file context.h.

◆ execution_time_in_seconds()

double state_machine_cpp::Context::execution_time_in_seconds ( ) const
inline

Definition at line 43 of file context.h.

◆ get() [1/2]

template<class T >
T& state_machine_cpp::Context::get ( int  t_layer = -1)
inline
Examples
example_ForLoop_main.cpp.

Definition at line 48 of file context.h.

◆ get() [2/2]

template<class T >
const T& state_machine_cpp::Context::get ( int  t_layer = -1) const
inline

Definition at line 54 of file context.h.

◆ get_relative() [1/2]

template<class T >
T& state_machine_cpp::Context::get_relative ( int  t_offset)
inline

Definition at line 66 of file context.h.

◆ get_relative() [2/2]

template<class T >
const T& state_machine_cpp::Context::get_relative ( int  t_offset) const
inline

Definition at line 67 of file context.h.

◆ has_reached_time_limit()

bool state_machine_cpp::Context::has_reached_time_limit ( ) const
inline

Definition at line 45 of file context.h.

◆ join()

template<class ... X, class ... Y>
static merge_t<AttributeTree<X...>, AttributeTree<Y...> >* state_machine_cpp::Context::join ( AttributeTree< X... > &&  t_x,
AttributeTree< Y... > &&  t_y 
)
inlinestatic

Definition at line 59 of file context.h.

◆ layer()

unsigned int state_machine_cpp::Context::layer ( ) const
inline

Definition at line 41 of file context.h.

◆ remaining_time_in_seconds()

double state_machine_cpp::Context::remaining_time_in_seconds ( ) const
inline

Definition at line 44 of file context.h.

◆ set_time_limit_in_seconds()

void state_machine_cpp::Context::set_time_limit_in_seconds ( double  t_time_limit)
inline

Definition at line 46 of file context.h.

◆ state()

const State::Instance& state_machine_cpp::Context::state ( ) const
inline

Definition at line 42 of file context.h.


The documentation for this class was generated from the following file: