INET Framework for OMNeT++/OMNEST
inet::Macho Namespace Reference

Classes

class  _AdaptingInitializer
 
class  _DefaultInitializer
 
class  _EmptyBox
 
class  _Event0
 
class  _Event1
 
class  _Event2
 
class  _Event3
 
class  _Event4
 
class  _Event5
 
class  _Event6
 
class  _HistoryInitializer
 
class  _IEventBase
 
class  _Initializer
 
class  _Initializer1
 
class  _Initializer2
 
class  _Initializer3
 
class  _Initializer4
 
class  _Initializer5
 
class  _Initializer6
 
struct  _KeyData
 
class  _MachineBase
 
class  _RootInstance
 
struct  _SameType
 
struct  _SameType< T, T >
 
class  _StateInstance
 
class  _StateSpecification
 
class  _StaticInitializer
 
class  _SubstateInstance
 
class  Alias
 
struct  Anchor
 
struct  DR
 
struct  DR< const R & >
 
struct  DR< R & >
 
class  IEvent
 
class  Machine
 
class  MachoLink
 
class  StateID
 
class  TopBase
 

Typedefs

typedef unsigned int ID
 
typedef void * Key
 
typedef Alias StateAlias
 

Functions

template<class B >
void * _createBox (void *&place)
 
template<class B >
void _deleteBox (void *&box, void *&place)
 
template<>
void * _createBox< _EmptyBox > (void *&place)
 
template<>
void _deleteBox< _EmptyBox > (void *&box, void *&place)
 
template<class P1 , class P2 , class P3 , class P4 , class P5 , class P6 , class R , class TOP >
IEvent< TOP > * Event (R(TOP::*handler)(P1, P2, P3, P4, P5, P6), const typename DR< P1 >::T &p1, const typename DR< P2 >::T &p2, const typename DR< P3 >::T &p3, const typename DR< P4 >::T &p4, const typename DR< P5 >::T &p5, const typename DR< P6 >::T &p6)
 
template<class P1 , class P2 , class P3 , class P4 , class P5 , class R , class TOP >
IEvent< TOP > * Event (R(TOP::*handler)(P1, P2, P3, P4, P5), const typename DR< P1 >::T &p1, const typename DR< P2 >::T &p2, const typename DR< P3 >::T &p3, const typename DR< P4 >::T &p4, const typename DR< P5 >::T &p5)
 
template<class P1 , class P2 , class P3 , class P4 , class R , class TOP >
IEvent< TOP > * Event (R(TOP::*handler)(P1, P2, P3, P4), const typename DR< P1 >::T &p1, const typename DR< P2 >::T &p2, const typename DR< P3 >::T &p3, const typename DR< P4 >::T &p4)
 
template<class P1 , class P2 , class P3 , class R , class TOP >
IEvent< TOP > * Event (R(TOP::*handler)(P1, P2, P3), const typename DR< P1 >::T &p1, const typename DR< P2 >::T &p2, const typename DR< P3 >::T &p3)
 
template<class P1 , class P2 , class R , class TOP >
IEvent< TOP > * Event (R(TOP::*handler)(P1, P2), const typename DR< P1 >::T &p1, const typename DR< P2 >::T &p2)
 
template<class P1 , class R , class TOP >
IEvent< TOP > * Event (R(TOP::*handler)(P1), const typename DR< P1 >::T &p1)
 
template<class R , class TOP >
IEvent< TOP > * Event (R(TOP::*handler)())
 
template<class S >
Alias State ()
 
template<class S , class P1 >
Alias State (const P1 &p1)
 
template<class S , class P1 , class P2 >
Alias State (const P1 &p1, const P2 &p2)
 
template<class S , class P1 , class P2 , class P3 >
Alias State (const P1 &p1, const P2 &p2, const P3 &p3)
 
template<class S , class P1 , class P2 , class P3 , class P4 >
Alias State (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 >
Alias State (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 >
Alias State (const P1 &p1, const P2 &p2, const P3 &p3, const P4 &p4, const P5 &p5, const P6 &p6)
 
template<class S >
Alias StateHistory (const _MachineBase &machine)
 

Typedef Documentation

typedef unsigned int inet::Macho::ID
typedef void* inet::Macho::Key

Function Documentation

template<class B >
void* inet::Macho::_createBox ( void *&  place)
389 {
390  if (!place)
391  place = ::operator new(sizeof(B));
392 
393  new (place)B;
394 
395  void *box = place;
396  place = 0;
397 
398  return box;
399 }
template<>
void * inet::Macho::_createBox< _EmptyBox > ( void *&  place)

Referenced by _deleteBox().

59 {
60  return &_EmptyBox::theEmptyBox;
61 }
template<class B >
void inet::Macho::_deleteBox ( void *&  box,
void *&  place 
)
403 {
404  assert(box);
405  assert(!place);
406 
407  static_cast<B *>(box)->~B();
408  place = box;
409  box = 0;
410 }
template<>
void inet::Macho::_deleteBox< _EmptyBox > ( void *&  box,
void *&  place 
)

Referenced by _deleteBox().

65 {
66 }
template<class P1 , class P2 , class P3 , class P4 , class P5 , class P6 , class R , class TOP >
IEvent<TOP>* inet::Macho::Event ( R(TOP::*)(P1, P2, P3, P4, P5, P6)  handler,
const typename DR< P1 >::T p1,
const typename DR< P2 >::T p2,
const typename DR< P3 >::T p3,
const typename DR< P4 >::T p4,
const typename DR< P5 >::T p5,
const typename DR< P6 >::T p6 
)
inline
1149 {
1150  return new _Event6<TOP, R, P1, P2, P3, P4, P5, P6>(handler, p1, p2, p3, p4, p5, p6);
1151 }
template<class P1 , class P2 , class P3 , class P4 , class P5 , class R , class TOP >
IEvent<TOP>* inet::Macho::Event ( R(TOP::*)(P1, P2, P3, P4, P5)  handler,
const typename DR< P1 >::T p1,
const typename DR< P2 >::T p2,
const typename DR< P3 >::T p3,
const typename DR< P4 >::T p4,
const typename DR< P5 >::T p5 
)
inline
1159 {
1160  return new _Event5<TOP, R, P1, P2, P3, P4, P5>(handler, p1, p2, p3, p4, p5);
1161 }
template<class P1 , class P2 , class P3 , class P4 , class R , class TOP >
IEvent<TOP>* inet::Macho::Event ( R(TOP::*)(P1, P2, P3, P4)  handler,
const typename DR< P1 >::T p1,
const typename DR< P2 >::T p2,
const typename DR< P3 >::T p3,
const typename DR< P4 >::T p4 
)
inline
1168 {
1169  return new _Event4<TOP, R, P1, P2, P3, P4>(handler, p1, p2, p3, p4);
1170 }
template<class P1 , class P2 , class P3 , class R , class TOP >
IEvent<TOP>* inet::Macho::Event ( R(TOP::*)(P1, P2, P3)  handler,
const typename DR< P1 >::T p1,
const typename DR< P2 >::T p2,
const typename DR< P3 >::T p3 
)
inline
1176 {
1177  return new _Event3<TOP, R, P1, P2, P3>(handler, p1, p2, p3);
1178 }
template<class P1 , class P2 , class R , class TOP >
IEvent<TOP>* inet::Macho::Event ( R(TOP::*)(P1, P2)  handler,
const typename DR< P1 >::T p1,
const typename DR< P2 >::T p2 
)
inline
1183 {
1184  return new _Event2<TOP, R, P1, P2>(handler, p1, p2);
1185 }
template<class P1 , class R , class TOP >
IEvent<TOP>* inet::Macho::Event ( R(TOP::*)(P1)  handler,
const typename DR< P1 >::T p1 
)
inline
1190 {
1191  return new _Event1<TOP, R, P1>(handler, p1);
1192 }
template<class R , class TOP >
IEvent<TOP>* inet::Macho::Event ( R(TOP::*)()  handler)
inline
1196 {
1197  return new _Event0<TOP, R>(handler);
1198 }
template<class S >
Alias inet::Macho::State ( )
1714 {
1715  return Alias(S::key());
1716 }
template<class S , class P1 >
Alias inet::Macho::State ( const P1 &  p1)
1720 {
1721  return Alias(S::key(), new _Initializer1<S, P1>(p1));
1722 }
template<class S , class P1 , class P2 >
Alias inet::Macho::State ( const P1 &  p1,
const P2 &  p2 
)
1726 {
1727  return Alias(S::key(), new _Initializer2<S, P1, P2>(p1, p2));
1728 }
template<class S , class P1 , class P2 , class P3 >
Alias inet::Macho::State ( const P1 &  p1,
const P2 &  p2,
const P3 &  p3 
)
1732 {
1733  return Alias(S::key(), new _Initializer3<S, P1, P2, P3>(p1, p2, p3));
1734 }
template<class S , class P1 , class P2 , class P3 , class P4 >
Alias inet::Macho::State ( const P1 &  p1,
const P2 &  p2,
const P3 &  p3,
const P4 &  p4 
)
1738 {
1739  return Alias(S::key(), new _Initializer4<S, P1, P2, P3, P4>(p1, p2, p3, p4));
1740 }
template<class S , class P1 , class P2 , class P3 , class P4 , class P5 >
Alias inet::Macho::State ( const P1 &  p1,
const P2 &  p2,
const P3 &  p3,
const P4 &  p4,
const P5 &  p5 
)
1744 {
1745  return Alias(S::key(), new _Initializer5<S, P1, P2, P3, P4, P5>(p1, p2, p3, p4, p5));
1746 }
template<class S , class P1 , class P2 , class P3 , class P4 , class P5 , class P6 >
Alias inet::Macho::State ( const P1 &  p1,
const P2 &  p2,
const P3 &  p3,
const P4 &  p4,
const P5 &  p5,
const P6 &  p6 
)
1750 {
1751  return Alias(S::key(), new _Initializer6<S, P1, P2, P3, P4, P5, P6>(p1, p2, p3, p4, p5, p6));
1752 }
template<class S >
Alias inet::Macho::StateHistory ( const _MachineBase machine)
1759 {
1760  return Alias(S::key(), new _AdaptingInitializer(machine));
1761 }