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 >

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 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

◆ Signature

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

◆ _Event3()

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
1057  : myHandler(handler)
1058  , myParam1(p1)
1059  , myParam2(p2)
1060  , myParam3(p3)
1061  {}

Member Function Documentation

◆ dispatch()

template<class TOP , class R , class P1 , class P2 , class P3 >
void inet::Macho::_Event3< TOP, R, P1, P2, P3 >::dispatch ( _StateInstance instance)
inlineprotected
1065  {
1066  TOP& behaviour = static_cast<TOP&>(instance.specification());
1067  (behaviour.*myHandler)(myParam1, myParam2, myParam3);
1068  }

Member Data Documentation

◆ myHandler

template<class TOP , class R , class P1 , class P2 , class P3 >
Signature inet::Macho::_Event3< TOP, R, P1, P2, P3 >::myHandler
protected

◆ myParam1

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

◆ myParam2

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

◆ myParam3

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:
inet::Macho::_Event3::myParam1
DR< P1 >::T myParam1
Definition: Macho.h:1071
inet::Macho::_Event3::myHandler
Signature myHandler
Definition: Macho.h:1070
inet::Macho::_Event3::myParam3
DR< P3 >::T myParam3
Definition: Macho.h:1073
inet::Macho::_Event3::myParam2
DR< P2 >::T myParam2
Definition: Macho.h:1072