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 >

Public Member Functions

 _Event0 (Signature handler)
 

Protected Member Functions

void dispatch (_StateInstance &instance)
 

Protected Attributes

Signature myHandler
 

Private Types

typedef R(TOP::* Signature) ()
 

Member Typedef Documentation

◆ Signature

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

Constructor & Destructor Documentation

◆ _Event0()

template<class TOP , class R >
inet::Macho::_Event0< TOP, R >::_Event0 ( Signature  handler)
inline
1132  : myHandler(handler)
1133  {}

Member Function Documentation

◆ dispatch()

template<class TOP , class R >
void inet::Macho::_Event0< TOP, R >::dispatch ( _StateInstance instance)
inlineprotected
1137  {
1138  TOP& behaviour = static_cast<TOP&>(instance.specification());
1139  (behaviour.*myHandler)();
1140  }

Member Data Documentation

◆ myHandler

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

The documentation for this class was generated from the following file:
inet::Macho::_Event0::myHandler
Signature myHandler
Definition: Macho.h:1142