1 #ifndef EVENT_LOCATION_H 2 #define EVENT_LOCATION_H 15 location(uninitialized.location) {
19 location(uint32_t(id)) {
23 location(-(uint32_t(id)+1)) {
33 return location >= 0 && location != null.
location;
38 #if SSTMAC_SANITY_CHECK 41 "event_location::convert_to_node_id: not a node id");
45 "event_location::convert_node_id: null id");
53 #if SSTMAC_SANITY_CHECK 56 "event_location::convert_switch_id: null id");
60 "event_location::convert_to_switch_id: not a switch id");
73 location = uint32_t(
id);
79 location = -uint32_t(
id);
113 #endif // EVENT_LOCATION_H
static event_loc_id uninitialized
bool operator!=(const event_loc_id &a, const event_loc_id &b)
node_id convert_to_node_id() const
bool is_switch_id() const
event_loc_id & operator=(topology_id id)
std::ostream & operator<<(std::ostream &os, const event_loc_id &loc)
bool operator<(const event_loc_id &a, const event_loc_id &b)
event_loc_id(endpoint_id id)
bool operator==(const event_loc_id &a, const event_loc_id &b)
event_loc_id & operator=(endpoint_id id)
SUMI = Simulator unified messagine interface It is also the name for a solid ink in Japanese - i...
event_loc_id(topology_id id)
#define spkt_throw(exc,...)
switch_id convert_to_switch_id() const
Error indicating some internal value was unexpected.