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

#include <Macho.h>

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

Public Member Functions

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

Protected Member Functions

void dispatch (_StateInstance &instance)
 

Protected Attributes

Signature myHandler
 
DR< P1 >::T myParam1
 
DR< P2 >::T myParam2
 

Private Types

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

Member Typedef Documentation

◆ Signature

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

Constructor & Destructor Documentation

◆ _Event2()

template<class TOP , class R , class P1 , class P2 >
inet::Macho::_Event2< TOP, R, P1, P2 >::_Event2 ( Signature  handler,
const typename DR< P1 >::T p1,
const typename DR< P2 >::T p2 
)
inline
1084  : myHandler(handler)
1085  , myParam1(p1)
1086  , myParam2(p2)
1087  {}

Member Function Documentation

◆ dispatch()

template<class TOP , class R , class P1 , class P2 >
void inet::Macho::_Event2< TOP, R, P1, P2 >::dispatch ( _StateInstance instance)
inlineprotected
1091  {
1092  TOP& behaviour = static_cast<TOP&>(instance.specification());
1093  (behaviour.*myHandler)(myParam1, myParam2);
1094  }

Member Data Documentation

◆ myHandler

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

◆ myParam1

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

◆ myParam2

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

The documentation for this class was generated from the following file:
inet::Macho::_Event2::myParam2
DR< P2 >::T myParam2
Definition: Macho.h:1098
inet::Macho::_Event2::myHandler
Signature myHandler
Definition: Macho.h:1096
inet::Macho::_Event2::myParam1
DR< P1 >::T myParam1
Definition: Macho.h:1097