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

#include <Macho.h>

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

Public Member Functions

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

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
 
DR< P4 >::T myParam4
 

Private Types

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

Member Typedef Documentation

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

Constructor & Destructor Documentation

template<class TOP, class R, class P1, class P2, class P3, class P4>
inet::Macho::_Event4< TOP, R, P1, P2, P3, P4 >::_Event4 ( Signature  handler,
const typename DR< P1 >::T p1,
const typename DR< P2 >::T p2,
const typename DR< P3 >::T p3,
const typename DR< P4 >::T p4 
)
inline
1026  : myHandler(handler)
1027  , myParam1(p1)
1028  , myParam2(p2)
1029  , myParam3(p3)
1030  , myParam4(p4)
1031  {}
DR< P3 >::T myParam3
Definition: Macho.h:1043
Signature myHandler
Definition: Macho.h:1040
DR< P1 >::T myParam1
Definition: Macho.h:1041
DR< P4 >::T myParam4
Definition: Macho.h:1044
DR< P2 >::T myParam2
Definition: Macho.h:1042

Member Function Documentation

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

Implements inet::Macho::_IEventBase.

1035  {
1036  TOP& behaviour = static_cast<TOP&>(instance.specification());
1037  (behaviour.*myHandler)(myParam1, myParam2, myParam3, myParam4);
1038  }
DR< P3 >::T myParam3
Definition: Macho.h:1043
Signature myHandler
Definition: Macho.h:1040
DR< P1 >::T myParam1
Definition: Macho.h:1041
DR< P4 >::T myParam4
Definition: Macho.h:1044
DR< P2 >::T myParam2
Definition: Macho.h:1042

Member Data Documentation

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

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