INET Framework for OMNeT++/OMNEST
inet::Macho::_StateSpecification Class Reference

#include <Macho.h>

Inheritance diagram for inet::Macho::_StateSpecification:
inet::Macho::TopBase< T >

Public Member Functions

virtual ~_StateSpecification ()
 

Static Public Member Functions

static bool isChild (Key key)
 

Protected Member Functions

 _StateSpecification (_StateInstance &instance)
 
template<class S >
void setState ()
 
template<class S , class P1 >
void setState (const P1 &p1)
 
template<class S , class P1 , class P2 >
void setState (const P1 &p1, const P2 &p2)
 
template<class S , class P1 , class P2 , class P3 >
void setState (const P1 &p1, const P2 &p2, const P3 &p3)
 
template<class S , class P1 , class P2 , class P3 , class P4 >
void setState (const P1 &p1, const P2 &p2, const P3 &p3, const P4 &p4)
 
template<class S , class P1 , class P2 , class P3 , class P4 , class P5 >
void setState (const P1 &p1, const P2 &p2, const P3 &p3, const P4 &p4, const P5 &p5)
 
template<class S , class P1 , class P2 , class P3 , class P4 , class P5 , class P6 >
void setState (const P1 &p1, const P2 &p2, const P3 &p3, const P4 &p4, const P5 &p5, const P6 &p6)
 
template<class S >
void setStateHistory ()
 
void setState (const class Alias &state)
 
template<class S >
void setStateBox (typename S::Box *box=0)
 
template<class S >
void setStateDirect (typename S::Box *box=0)
 
virtual void _restore (_StateInstance &current)
 
void setState (_StateInstance &current)
 
virtual void _shutdown ()
 
virtual void _setHistorySuper (_StateInstance &self, _StateInstance &deep)
 

Private Member Functions

virtual void exit ()
 
virtual void entry ()
 
virtual void init ()
 
virtual void _deleteBox (_StateInstance &instance)
 
virtual void _saveHistory (_StateInstance &self, _StateInstance &shallow, _StateInstance &deep)
 

Static Private Member Functions

static _StateInstance_getInstance (_MachineBase &machine)
 

Private Attributes

_StateInstance_myStateInstance
 

Friends

template<class T >
class TopBase
 
template<class C , class P >
class MachoLink
 
class _StateInstance
 
class _RootInstance
 
class _MachineBase
 

Constructor & Destructor Documentation

virtual inet::Macho::_StateSpecification::~_StateSpecification ( )
inlinevirtual
460 {}
inet::Macho::_StateSpecification::_StateSpecification ( _StateInstance instance)
inlineprotected
469  : _myStateInstance(instance)
470  {}
_StateInstance & _myStateInstance
Definition: Macho.h:572

Member Function Documentation

virtual void inet::Macho::_StateSpecification::_deleteBox ( _StateInstance instance)
inlineprivatevirtual

Referenced by inet::Macho::_StateInstance::exit().

566 {}
_StateInstance & inet::_StateSpecification::_getInstance ( _MachineBase machine)
staticprivate

Referenced by inet::Macho::_MachineBase::shutdown(), and inet::Macho::_MachineBase::start().

87 {
88  // Look first in machine for existing StateInstance.
89  _StateInstance *& instance = machine.getInstance(0);
90  if (!instance)
91  instance = new _RootInstance(machine, nullptr);
92 
93  return *instance;
94 }
friend class _StateInstance
Definition: Macho.h:558
friend class _RootInstance
Definition: Macho.h:559
void inet::_StateSpecification::_restore ( _StateInstance current)
protectedvirtual
102 {
104 }
_StateInstance & _myStateInstance
Definition: Macho.h:572
_StateInstance * myCurrentState
Definition: Macho.h:1600
_MachineBase & machine()
Definition: Macho.h:804
virtual void inet::Macho::_StateSpecification::_saveHistory ( _StateInstance self,
_StateInstance shallow,
_StateInstance deep 
)
inlineprivatevirtual
569 {}
virtual void inet::Macho::_StateSpecification::_setHistorySuper ( _StateInstance self,
_StateInstance deep 
)
inlineprotectedvirtual
531 {}
void inet::_StateSpecification::_shutdown ( )
protectedvirtual
97 {
99 }
_StateInstance & _myStateInstance
Definition: Macho.h:572
_MachineBase & machine()
Definition: Macho.h:804
void shutdown()
Definition: Macho.cc:268
virtual void inet::Macho::_StateSpecification::entry ( )
inlineprivatevirtual

Referenced by inet::Macho::_StateInstance::entry().

538 {}
virtual void inet::Macho::_StateSpecification::exit ( )
inlineprivatevirtual

Referenced by inet::Macho::_StateInstance::exit().

535 {}
virtual void inet::Macho::_StateSpecification::init ( )
inlineprivatevirtual

Referenced by inet::Macho::_StateInstance::init().

545 {}
static bool inet::Macho::_StateSpecification::isChild ( Key  key)
inlinestatic
463  {
464  return false;
465  }
template<class S >
void inet::Macho::_StateSpecification::setState ( )
inlineprotected

Referenced by _restore().

1961 {
1963  _StateInstance& instance = S::_getInstance(m);
1964  m.setPendingState(instance, &_theDefaultInitializer);
1965 }
friend class _StateInstance
Definition: Macho.h:558
friend class _MachineBase
Definition: Macho.h:561
_StateInstance & _myStateInstance
Definition: Macho.h:572
_MachineBase & machine()
Definition: Macho.h:804
value< double, units::m > m
Definition: Units.h:1047
template<class S , class P1 >
void inet::Macho::_StateSpecification::setState ( const P1 &  p1)
inlineprotected
1969 {
1971  _StateInstance& instance = S::_getInstance(m);
1972  m.setPendingState(instance, new _Initializer1<S, P1>(p1));
1973 }
friend class _StateInstance
Definition: Macho.h:558
friend class _MachineBase
Definition: Macho.h:561
_StateInstance & _myStateInstance
Definition: Macho.h:572
_MachineBase & machine()
Definition: Macho.h:804
value< double, units::m > m
Definition: Units.h:1047
template<class S , class P1 , class P2 >
void inet::Macho::_StateSpecification::setState ( const P1 &  p1,
const P2 &  p2 
)
inlineprotected
1977 {
1979  _StateInstance& instance = S::_getInstance(m);
1980  m.setPendingState(instance, new _Initializer2<S, P1, P2>(p1, p2));
1981 }
friend class _StateInstance
Definition: Macho.h:558
friend class _MachineBase
Definition: Macho.h:561
_StateInstance & _myStateInstance
Definition: Macho.h:572
_MachineBase & machine()
Definition: Macho.h:804
value< double, units::m > m
Definition: Units.h:1047
template<class S , class P1 , class P2 , class P3 >
void inet::Macho::_StateSpecification::setState ( const P1 &  p1,
const P2 &  p2,
const P3 &  p3 
)
inlineprotected
1985 {
1987  _StateInstance& instance = S::_getInstance(m);
1988  m.setPendingState(instance, new _Initializer3<S, P1, P2, P3>(p1, p2, p3));
1989 }
friend class _StateInstance
Definition: Macho.h:558
friend class _MachineBase
Definition: Macho.h:561
_StateInstance & _myStateInstance
Definition: Macho.h:572
_MachineBase & machine()
Definition: Macho.h:804
value< double, units::m > m
Definition: Units.h:1047
template<class S , class P1 , class P2 , class P3 , class P4 >
void inet::Macho::_StateSpecification::setState ( const P1 &  p1,
const P2 &  p2,
const P3 &  p3,
const P4 &  p4 
)
inlineprotected
1993 {
1995  _StateInstance& instance = S::_getInstance(m);
1996  m.setPendingState(instance, new _Initializer4<S, P1, P2, P3, P4>(p1, p2, p3, p4));
1997 }
friend class _StateInstance
Definition: Macho.h:558
friend class _MachineBase
Definition: Macho.h:561
_StateInstance & _myStateInstance
Definition: Macho.h:572
_MachineBase & machine()
Definition: Macho.h:804
value< double, units::m > m
Definition: Units.h:1047
template<class S , class P1 , class P2 , class P3 , class P4 , class P5 >
void inet::Macho::_StateSpecification::setState ( const P1 &  p1,
const P2 &  p2,
const P3 &  p3,
const P4 &  p4,
const P5 &  p5 
)
inlineprotected
2001 {
2003  _StateInstance& instance = S::_getInstance(m);
2004  m.setPendingState(instance, new _Initializer5<S, P1, P2, P3, P4, P5>(p1, p2, p3, p4, p5));
2005 }
friend class _StateInstance
Definition: Macho.h:558
friend class _MachineBase
Definition: Macho.h:561
_StateInstance & _myStateInstance
Definition: Macho.h:572
_MachineBase & machine()
Definition: Macho.h:804
value< double, units::m > m
Definition: Units.h:1047
template<class S , class P1 , class P2 , class P3 , class P4 , class P5 , class P6 >
void inet::Macho::_StateSpecification::setState ( const P1 &  p1,
const P2 &  p2,
const P3 &  p3,
const P4 &  p4,
const P5 &  p5,
const P6 &  p6 
)
inlineprotected
2009 {
2011  _StateInstance& instance = S::_getInstance(m);
2012  m.setPendingState(instance, new _Initializer6<S, P1, P2, P3, P4, P5, P6>(p1, p2, p3, p4, p5, p6));
2013 }
friend class _StateInstance
Definition: Macho.h:558
friend class _MachineBase
Definition: Macho.h:561
_StateInstance & _myStateInstance
Definition: Macho.h:572
_MachineBase & machine()
Definition: Macho.h:804
value< double, units::m > m
Definition: Units.h:1047
void inet::Macho::_StateSpecification::setState ( const class Alias state)
protected
void inet::Macho::_StateSpecification::setState ( _StateInstance current)
protected
template<class S >
void inet::Macho::_StateSpecification::setStateBox ( typename S::Box *  box = 0)
inlineprotected
2027 {
2029  _StateInstance& instance = S::_getInstance(m);
2030  m.myPendingBox = box;
2031  m.setPendingState(instance, &_theHistoryInitializer);
2032 }
friend class _StateInstance
Definition: Macho.h:558
friend class _MachineBase
Definition: Macho.h:561
_StateInstance & _myStateInstance
Definition: Macho.h:572
_MachineBase & machine()
Definition: Macho.h:804
value< double, units::m > m
Definition: Units.h:1047
template<class S >
void inet::Macho::_StateSpecification::setStateDirect ( typename S::Box *  box = 0)
inlineprotected
2037 {
2039  _StateInstance& instance = S::_getInstance(m);
2040  m.myPendingBox = box;
2041  m.setPendingState(instance, &_theDefaultInitializer);
2042 }
friend class _StateInstance
Definition: Macho.h:558
friend class _MachineBase
Definition: Macho.h:561
_StateInstance & _myStateInstance
Definition: Macho.h:572
_MachineBase & machine()
Definition: Macho.h:804
value< double, units::m > m
Definition: Units.h:1047
template<class S >
void inet::Macho::_StateSpecification::setStateHistory ( )
inlineprotected
2018 {
2020  _StateInstance& instance = S::_getInstance(m);
2021  m.setPendingState(instance, &_theHistoryInitializer);
2022 }
friend class _StateInstance
Definition: Macho.h:558
friend class _MachineBase
Definition: Macho.h:561
_StateInstance & _myStateInstance
Definition: Macho.h:572
_MachineBase & machine()
Definition: Macho.h:804
value< double, units::m > m
Definition: Units.h:1047

Friends And Related Function Documentation

friend class _MachineBase
friend
friend class _RootInstance
friend
friend class _StateInstance
friend
template<class C , class P >
friend class MachoLink
friend
template<class T >
friend class TopBase
friend

Member Data Documentation

_StateInstance& inet::Macho::_StateSpecification::_myStateInstance
private

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