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 > inet::Macho::_IEventBase

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

Signature myHandler
 
DR< P1 >::T myParam1
 

Private Types

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

Member Typedef Documentation

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

Constructor & Destructor Documentation

template<class TOP, class R, class P1>
inet::Macho::_Event1< TOP, R, P1 >::_Event1 ( Signature  handler,
const typename DR< P1 >::T p1 
)
inline
1107  : myHandler(handler)
1108  , myParam1(p1)
1109  {}
Signature myHandler
Definition: Macho.h:1118
DR< P1 >::T myParam1
Definition: Macho.h:1119

Member Function Documentation

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

Implements inet::Macho::_IEventBase.

1113  {
1114  TOP& behaviour = static_cast<TOP&>(instance.specification());
1115  (behaviour.*myHandler)(myParam1);
1116  }
Signature myHandler
Definition: Macho.h:1118
DR< P1 >::T myParam1
Definition: Macho.h:1119

Member Data Documentation

template<class TOP, class R, class P1>
Signature inet::Macho::_Event1< TOP, R, P1 >::myHandler
protected
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: