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

#include <Macho.h>

Inheritance diagram for inet::Macho::_Event3< TOP, R, P1, P2, P3 >:
inet::Macho::IEvent< TOP > inet::Macho::_IEventBase

Public Member Functions

 _Event3 (Signature handler, const typename DR< P1 >::T &p1, const typename DR< P2 >::T &p2, const typename DR< P3 >::T &p3)
 

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
 
DR< P2 >::T myParam2
 
DR< P3 >::T myParam3
 

Private Types

typedef R(TOP::* Signature) (P1, P2, P3)
 

Member Typedef Documentation

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

Constructor & Destructor Documentation

template<class TOP, class R, class P1, class P2, class P3>
inet::Macho::_Event3< TOP, R, P1, P2, P3 >::_Event3 ( Signature  handler,
const typename DR< P1 >::T p1,
const typename DR< P2 >::T p2,
const typename DR< P3 >::T p3 
)
inline
1055  : myHandler(handler)
1056  , myParam1(p1)
1057  , myParam2(p2)
1058  , myParam3(p3)
1059  {}
DR< P1 >::T myParam1
Definition: Macho.h:1069
Signature myHandler
Definition: Macho.h:1068
DR< P2 >::T myParam2
Definition: Macho.h:1070
DR< P3 >::T myParam3
Definition: Macho.h:1071

Member Function Documentation

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

Implements inet::Macho::_IEventBase.

1063  {
1064  TOP& behaviour = static_cast<TOP&>(instance.specification());
1065  (behaviour.*myHandler)(myParam1, myParam2, myParam3);
1066  }
DR< P1 >::T myParam1
Definition: Macho.h:1069
Signature myHandler
Definition: Macho.h:1068
DR< P2 >::T myParam2
Definition: Macho.h:1070
DR< P3 >::T myParam3
Definition: Macho.h:1071

Member Data Documentation

template<class TOP, class R, class P1, class P2, class P3>
Signature inet::Macho::_Event3< TOP, R, P1, P2, P3 >::myHandler
protected
template<class TOP, class R, class P1, class P2, class P3>
DR<P1>::T inet::Macho::_Event3< TOP, R, P1, P2, P3 >::myParam1
protected
template<class TOP, class R, class P1, class P2, class P3>
DR<P2>::T inet::Macho::_Event3< TOP, R, P1, P2, P3 >::myParam2
protected
template<class TOP, class R, class P1, class P2, class P3>
DR<P3>::T inet::Macho::_Event3< TOP, R, P1, P2, P3 >::myParam3
protected

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