SST/macro
Public Member Functions | Static Public Attributes | Protected Member Functions | Private Attributes | List of all members
sstmac::event_handler Class Referenceabstract

The main interface for something that can respond to an event (sst_message). More...

#include <event_handler.h>

Inheritance diagram for sstmac::event_handler:
Inheritance graph
Collaboration diagram for sstmac::event_handler:
Collaboration graph

Public Member Functions

virtual std::string to_string () const =0
 
virtual ~event_handler ()
 
virtual void handle (event *ev)=0
 
event_loc_id event_location () const
 
virtual bool ipc_handler () const
 Whether an event handler is a "fake" handler that represents logical process boundary. More...
 
int thread_id () const
 
virtual void deadlock_check (event *ev)
 
virtual void deadlock_check ()
 

Static Public Attributes

static const int null_lpid = -1
 
static const int null_threadid = -1
 

Protected Member Functions

 event_handler ()
 
void init_loc_id (event_loc_id id)
 
void init_thread_id (int id)
 

Private Attributes

event_loc_id loc_id_
 
int thread_id_
 

Detailed Description

The main interface for something that can respond to an event (sst_message).

Definition at line 24 of file event_handler.h.

Constructor & Destructor Documentation

sstmac::event_handler::event_handler ( )
inlineprotected

Definition at line 50 of file event_handler.h.

References to_string().

Here is the call graph for this function:

virtual sstmac::event_handler::~event_handler ( )
inlinevirtual

Definition at line 57 of file event_handler.h.

References handle().

Here is the call graph for this function:

Member Function Documentation

virtual void sstmac::event_handler::deadlock_check ( event ev)
inlinevirtual
virtual void sstmac::event_handler::deadlock_check ( )
inlinevirtual
event_loc_id sstmac::event_handler::event_location ( ) const
inline
virtual void sstmac::event_handler::handle ( event ev)
pure virtual
void sstmac::event_handler::init_loc_id ( event_loc_id  id)
inlineprotected
void sstmac::event_handler::init_thread_id ( int  id)
inlineprotected

Definition at line 95 of file event_handler.h.

References thread_id_.

Referenced by sstmac::event_subscheduler::set_event_parent().

virtual bool sstmac::event_handler::ipc_handler ( ) const
inlinevirtual

Whether an event handler is a "fake" handler that represents logical process boundary.

Messages scheduled here are sent to another process.

Returns
If this is an IPC stub handler

Definition at line 73 of file event_handler.h.

int sstmac::event_handler::thread_id ( ) const
inline
virtual std::string sstmac::event_handler::to_string ( ) const
pure virtual

Member Data Documentation

event_loc_id sstmac::event_handler::loc_id_
private

Definition at line 101 of file event_handler.h.

Referenced by event_location(), and init_loc_id().

const int sstmac::event_handler::null_lpid = -1
static

Definition at line 27 of file event_handler.h.

const int sstmac::event_handler::null_threadid = -1
static

Definition at line 28 of file event_handler.h.

int sstmac::event_handler::thread_id_
private

Definition at line 102 of file event_handler.h.

Referenced by init_thread_id(), and thread_id().


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