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

#include <Macho.h>

Inheritance diagram for inet::Macho::_Event1< TOP, R, P1 >:
inet::Macho::IEvent< TOP >

Public Member Functions

 _Event1 (Signature handler, const typename DR< P1 >::T &p1)
 

Protected Member Functions

void dispatch (_StateInstance &instance)
 

Protected Attributes

Signature myHandler
 
DR< P1 >::T myParam1
 

Private Types

typedef R(TOP::* Signature) (P1)
 

Member Typedef Documentation

◆ Signature

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

Constructor & Destructor Documentation

◆ _Event1()

template<class TOP , class R , class P1 >
inet::Macho::_Event1< TOP, R, P1 >::_Event1 ( Signature  handler,
const typename DR< P1 >::T p1 
)
inline
1109  : myHandler(handler)
1110  , myParam1(p1)
1111  {}

Member Function Documentation

◆ dispatch()

template<class TOP , class R , class P1 >
void inet::Macho::_Event1< TOP, R, P1 >::dispatch ( _StateInstance instance)
inlineprotected
1115  {
1116  TOP& behaviour = static_cast<TOP&>(instance.specification());
1117  (behaviour.*myHandler)(myParam1);
1118  }

Member Data Documentation

◆ myHandler

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

◆ myParam1

template<class TOP , class R , class P1 >
DR<P1>::T inet::Macho::_Event1< TOP, R, P1 >::myParam1
protected

The documentation for this class was generated from the following file:
inet::Macho::_Event1::myParam1
DR< P1 >::T myParam1
Definition: Macho.h:1121
inet::Macho::_Event1::myHandler
Signature myHandler
Definition: Macho.h:1120