SST/macro
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
sstmac::event_loc_id Struct Reference

#include <event_location.h>

Collaboration diagram for sstmac::event_loc_id:
Collaboration graph

Public Member Functions

 event_loc_id ()
 
 event_loc_id (topology_id id)
 
 event_loc_id (endpoint_id id)
 
bool is_node_id () const
 
bool is_switch_id () const
 
node_id convert_to_node_id () const
 
switch_id convert_to_switch_id () const
 
bool is_null () const
 
event_loc_idoperator= (topology_id id)
 
event_loc_idoperator= (endpoint_id id)
 

Public Attributes

int32_t location
 

Static Public Attributes

static event_loc_id null
 
static event_loc_id uninitialized
 

Detailed Description

Definition at line 9 of file event_location.h.

Constructor & Destructor Documentation

sstmac::event_loc_id::event_loc_id ( )
inline

Definition at line 14 of file event_location.h.

sstmac::event_loc_id::event_loc_id ( topology_id  id)
inlineexplicit

Definition at line 18 of file event_location.h.

sstmac::event_loc_id::event_loc_id ( endpoint_id  id)
inlineexplicit

Definition at line 22 of file event_location.h.

Member Function Documentation

node_id sstmac::event_loc_id::convert_to_node_id ( ) const
inline

Definition at line 37 of file event_location.h.

References is_null(), is_switch_id(), and spkt_throw.

Referenced by sstmac::operator<<().

Here is the call graph for this function:

switch_id sstmac::event_loc_id::convert_to_switch_id ( ) const
inline

Definition at line 52 of file event_location.h.

References is_node_id(), is_null(), and spkt_throw.

Referenced by sstmac::operator<<().

Here is the call graph for this function:

bool sstmac::event_loc_id::is_node_id ( ) const
inline

Definition at line 27 of file event_location.h.

Referenced by convert_to_switch_id(), and sstmac::operator<<().

bool sstmac::event_loc_id::is_null ( ) const
inline

Definition at line 67 of file event_location.h.

References location.

Referenced by convert_to_node_id(), and convert_to_switch_id().

bool sstmac::event_loc_id::is_switch_id ( ) const
inline

Definition at line 32 of file event_location.h.

References location.

Referenced by convert_to_node_id().

event_loc_id& sstmac::event_loc_id::operator= ( topology_id  id)
inline

Definition at line 72 of file event_location.h.

event_loc_id& sstmac::event_loc_id::operator= ( endpoint_id  id)
inline

Definition at line 78 of file event_location.h.

Member Data Documentation

int32_t sstmac::event_loc_id::location
event_loc_id sstmac::event_loc_id::null
static
event_loc_id sstmac::event_loc_id::uninitialized
static

Definition at line 12 of file event_location.h.


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