#include <eventFunctor.h>
Public Member Functions | |
EventHandler (ConsumerT *const object, PtrMember member) | |
Constructor. | |
EventHandler (const EventHandler< ConsumerT, ReturnT, Param1T > &e) | |
Copy Constructor. | |
virtual ReturnT | operator() (Param1T param1) |
Operator called when event is triggered by the simulator core. | |
Friends | |
class | boost::serialization::access |
template<class Archive> | |
void | save_construct_data (Archive &ar, const EventHandler< ConsumerT, ReturnT, Param1T > *t, const unsigned int file_version) |
template<class Archive> | |
void | load_construct_data (Archive &ar, EventHandler< ConsumerT, ReturnT, Param1T > *t, const unsigned int file_version) |
Data Structures | |
struct | member_t |
Creates an event handler which, when triggered, calls a member function of a target Component with the event as argument. I.e.
component->member_function(event);
ConsumerT | Computer type which recieves the event | |
ReturnT | return type of the event | |
Param1T | Parameter which the event handler recieves |
SST::EventHandler< ConsumerT, ReturnT, Param1T >::EventHandler | ( | ConsumerT *const | object, | |
PtrMember | member | |||
) | [inline] |
Constructor.
object | Object (usually a Component) upon which the member function is invoked | |
member | member function to invoke |
virtual ReturnT SST::EventHandler< ConsumerT, ReturnT, Param1T >::operator() | ( | Param1T | param1 | ) | [inline, virtual] |
Operator called when event is triggered by the simulator core.
Calls the Component's member function with the event as argument
Implements SST::EventHandlerBase< ReturnT, Param1T >.