INET Framework for OMNeT++/OMNEST
inet::Macho::_Event0< TOP, R > Class Template Reference

#include <Macho.h>

Inheritance diagram for inet::Macho::_Event0< TOP, R >:
inet::Macho::IEvent< TOP > inet::Macho::_IEventBase

Public Member Functions

 _Event0 (Signature handler)
 

Protected Member Functions

void dispatch (_StateInstance &instance)
 
- Protected Member Functions inherited from inet::Macho::_IEventBase
virtual ~_IEventBase ()
 

Protected Attributes

Signature myHandler
 

Private Types

typedef R(TOP::* Signature) ()
 

Member Typedef Documentation

template<class TOP , class R >
typedef R(TOP::* inet::Macho::_Event0< TOP, R >::Signature) ()
private

Constructor & Destructor Documentation

template<class TOP , class R >
inet::Macho::_Event0< TOP, R >::_Event0 ( Signature  handler)
inline
1130  : myHandler(handler)
1131  {}
Signature myHandler
Definition: Macho.h:1140

Member Function Documentation

template<class TOP , class R >
void inet::Macho::_Event0< TOP, R >::dispatch ( _StateInstance instance)
inlineprotectedvirtual

Implements inet::Macho::_IEventBase.

1135  {
1136  TOP& behaviour = static_cast<TOP&>(instance.specification());
1137  (behaviour.*myHandler)();
1138  }
Signature myHandler
Definition: Macho.h:1140

Member Data Documentation

template<class TOP , class R >
Signature inet::Macho::_Event0< TOP, R >::myHandler
protected

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