#include <Macho.h>
inet::_MachineBase::_MachineBase |
( |
| ) |
|
|
protected |
inet::_MachineBase::~_MachineBase |
( |
| ) |
|
|
protected |
_IEventBase * myPendingEvent
Definition: Macho.h:1609
_StateInstance ** myInstances
Definition: Macho.h:1612
_Initializer * myPendingInit
Definition: Macho.h:1604
void inet::_MachineBase::allocate |
( |
unsigned int |
count | ) |
|
|
protected |
283 for (
unsigned int i = 0; i <
count; ++i)
int count(const std::vector< T > &v, const T &a)
Definition: stlutils.h:58
friend class _StateInstance
Definition: Macho.h:1594
_StateInstance ** myInstances
Definition: Macho.h:1612
void inet::_MachineBase::clearHistoryDeep |
( |
unsigned int |
count, |
|
|
const _StateInstance & |
instance |
|
) |
| |
|
protected |
Referenced by inet::Macho::MachoLink< C, P >::clearHistoryDeep().
301 for (
unsigned int i = 0; i <
count; ++i) {
303 if (s && s->isChild(instance))
void setHistory(_StateInstance *history) const
Definition: Macho.h:810
int count(const std::vector< T > &v, const T &a)
Definition: stlutils.h:58
friend class _StateInstance
Definition: Macho.h:1594
_StateInstance ** myInstances
Definition: Macho.h:1612
value< double, units::s > s
Definition: Units.h:1049
Alias inet::_MachineBase::currentState |
( |
| ) |
const |
void inet::_MachineBase::free |
( |
unsigned int |
count | ) |
|
|
protected |
290 unsigned int i =
count;
int count(const std::vector< T > &v, const T &a)
Definition: stlutils.h:58
_StateInstance ** myInstances
Definition: Macho.h:1612
Referenced by inet::Macho::_StateSpecification::_getInstance(), inet::Macho::MachoLink< C, P >::_getInstance(), inet::Macho::_AdaptingInitializer::adapt(), inet::Macho::MachoLink< C, P >::clearHistory(), inet::Macho::MachoLink< C, P >::clearHistoryDeep(), inet::Macho::MachoLink< C, P >::history(), and inet::Macho::_StateInstance::init().
_StateInstance ** myInstances
Definition: Macho.h:1612
uint16_t id
Definition: TCP_NSC.cc:85
_StateInstance ** myInstances
Definition: Macho.h:1612
uint16_t id
Definition: TCP_NSC.cc:85
void inet::_MachineBase::rattleOn |
( |
| ) |
|
|
protected |
352 #endif // ifndef NDEBUG 384 assert(
"Init may only transition to proper substates" &&
393 #endif // ifndef NDEBUG void setBox(void *box)
Definition: Macho.h:773
bool isChild(const _StateInstance &instance)
Definition: Macho.h:787
_IEventBase * myPendingEvent
Definition: Macho.h:1609
friend class _StateInstance
Definition: Macho.h:1594
void entry(_StateInstance &previous, bool first=true)
Definition: Macho.cc:139
virtual const char * name()=0
virtual void execute(_StateInstance &instance)=0
void exit(_StateInstance &next)
Definition: Macho.cc:156
void setHistorySuper(_StateInstance &deep)
Definition: Macho.h:732
virtual void dispatch(_StateInstance &)=0
_Initializer * myPendingInit
Definition: Macho.h:1604
_StateInstance * myPendingState
Definition: Macho.h:1603
_StateInstance * myCurrentState
Definition: Macho.h:1600
void * myPendingBox
Definition: Macho.h:1607
#define MACHO_TRC3(STATE, MSG1, MSG2)
Definition: Macho.cc:47
void inet::Macho::_MachineBase::setPendingEvent |
( |
_IEventBase * |
event | ) |
|
|
inlineprotected |
_IEventBase * myPendingEvent
Definition: Macho.h:1609
void rattleOn()
Definition: Macho.cc:339
void setPendingState(_StateInstance &instance, _Initializer *init)
Definition: Macho.h:1516
void inet::_MachineBase::setState |
( |
const Alias & |
state | ) |
|
|
protected |
244 state.setState(*
this);
void rattleOn()
Definition: Macho.cc:339
void inet::_MachineBase::shutdown |
( |
| ) |
|
|
protected |
static _StateInstance & _getInstance(_MachineBase &machine)
Definition: Macho.cc:86
_StateInstance * myPendingState
Definition: Macho.h:1603
_StateInstance * myCurrentState
Definition: Macho.h:1600
void setState(_StateInstance &instance, _Initializer *init)
Definition: Macho.cc:236
#define MACHO_TRC1(MSG)
Definition: Macho.cc:45
255 setState(instance, &_theDefaultInitializer);
static _StateInstance & _getInstance(_MachineBase &machine)
Definition: Macho.cc:86
_StateInstance * myCurrentState
Definition: Macho.h:1600
void setState(_StateInstance &instance, _Initializer *init)
Definition: Macho.cc:236
#define MACHO_TRC1(MSG)
Definition: Macho.cc:45
void inet::_MachineBase::start |
( |
const Alias & |
state | ) |
|
|
protected |
static _StateInstance & _getInstance(_MachineBase &machine)
Definition: Macho.cc:86
_StateInstance * myCurrentState
Definition: Macho.h:1600
void setState(_StateInstance &instance, _Initializer *init)
Definition: Macho.cc:236
#define MACHO_TRC1(MSG)
Definition: Macho.cc:45
friend class ::inet::TestAccess |
|
friend |
template<class C , class P >
void* inet::Macho::_MachineBase::myPendingBox = nullptr |
|
protected |
_IEventBase* inet::Macho::_MachineBase::myPendingEvent = nullptr |
|
protected |
_Initializer* inet::Macho::_MachineBase::myPendingInit = nullptr |
|
protected |
The documentation for this class was generated from the following files: