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

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 Member Functions inherited from inet::Macho::_IEventBase
virtual ~_IEventBase ()
 

Protected Attributes

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

Private Types

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

Member Typedef Documentation

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

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
1082  : myHandler(handler)
1083  , myParam1(p1)
1084  , myParam2(p2)
1085  {}
DR< P2 >::T myParam2
Definition: Macho.h:1096
DR< P1 >::T myParam1
Definition: Macho.h:1095
Signature myHandler
Definition: Macho.h:1094

Member Function Documentation

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

Implements inet::Macho::_IEventBase.

1089  {
1090  TOP& behaviour = static_cast<TOP&>(instance.specification());
1091  (behaviour.*myHandler)(myParam1, myParam2);
1092  }
DR< P2 >::T myParam2
Definition: Macho.h:1096
DR< P1 >::T myParam1
Definition: Macho.h:1095
Signature myHandler
Definition: Macho.h:1094

Member Data Documentation

template<class TOP, class R, class P1, class P2>
Signature inet::Macho::_Event2< TOP, R, P1, P2 >::myHandler
protected
template<class TOP, class R, class P1, class P2>
DR<P1>::T inet::Macho::_Event2< TOP, R, P1, P2 >::myParam1
protected
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: