SST/macro
|
#include <network_message.h>
Public Member Functions | |
network_message (sw::app_id aid, node_id toaddr, node_id fromaddr, sw::task_id src, sw::task_id dst, long payload_bytes) | |
network_message (sw::app_id aid, long payload_bytes) | |
network_message () | |
virtual std::string | to_string () const |
virtual | ~network_message () |
bool | is_metadata () const |
virtual network_message * | clone_injection_ack () const |
virtual void | nic_reverse (type_t newtype) |
bool | is_nic_ack () const |
node_id | toaddr () const |
virtual void | put_on_wire () |
node_id | fromaddr () const |
void | set_toaddr (node_id addr) |
void | set_fromaddr (node_id addr) |
void | set_needs_ack (bool n) |
virtual bool | needs_ack () const |
virtual void | serialize_order (serializer &ser) |
void | convert_to_ack () |
void | set_net_id (const network_id &id) |
network_id | net_id () const |
uint64_t | unique_id () const |
sw::task_id | source_task () const |
sw::app_id | aid () const |
sw::task_id | dest_task () const |
type_t | type () const |
void | set_type (type_t ty) |
virtual void | reverse () |
long | byte_length () const |
Virtual function to return size. More... | |
Public Member Functions inherited from sstmac::event | |
virtual bool | is_packet () const |
convenience methods More... | |
virtual bool | is_credit () const |
virtual bool | is_failure () const |
template<class T > | |
T * | interface () |
Public Member Functions inherited from sprockit::serializable | |
virtual const char * | cls_name () const =0 |
virtual uint32_t | cls_id () const =0 |
virtual | ~serializable () |
Static Public Member Functions | |
static const char * | tostr (nic_event_t mut) |
static const char * | tostr (type_t ty) |
Public Attributes | |
node_id | toaddr_ |
node_id | fromaddr_ |
Protected Member Functions | |
void | clone_into (network_message *cln) const |
Protected Attributes | |
int | app_id_ |
int | flow_id_ |
network_id | net_id_ |
sw::app_id | aid_ |
bool | needs_ack_ |
sw::task_id | src_task_ |
sw::task_id | dest_task_ |
long | bytes_ |
type_t | type_ |
Private Types | |
enum | type_t { null_netmsg_type =0, rdma_get_request =1, rdma_get_sent_ack =2, rdma_get_nack =3, rdma_put_sent_ack =4, rdma_put_nack =5, payload_sent_ack =6, payload =7, rdma_get_payload =8, rdma_put_payload =9, nvram_get_request =10, nvram_get_payload =11, failure_notification =12 } |
Additional Inherited Members | |
Protected Types inherited from sprockit::serializable | |
enum | cxn_flag_t { ConstructorFlag } |
Definition at line 13 of file network_message.h.
|
private |
Definition at line 26 of file network_message.h.
sstmac::hw::network_message::network_message | ( | sw::app_id | aid, |
node_id | toaddr, | ||
node_id | fromaddr, | ||
sw::task_id | src, | ||
sw::task_id | dst, | ||
long | payload_bytes | ||
) |
sstmac::hw::network_message::network_message | ( | sw::app_id | aid, |
long | payload_bytes | ||
) |
sstmac::hw::network_message::network_message | ( | ) |
Referenced by clone_injection_ack().
|
inlinevirtual |
Definition at line 60 of file network_message.h.
References is_metadata(), and tostr().
|
inline |
Definition at line 145 of file network_message.h.
References aid_.
Referenced by sstmac::transport_message::ImplementSerializable().
|
virtual |
Virtual function to return size.
Child classes should impement this if they want any size tracked / modeled.
Implements sstmac::flow.
Referenced by sstmac::transport_message::ImplementSerializable(), and set_type().
|
inlinevirtual |
Reimplemented in sstmac::transport_message.
Definition at line 72 of file network_message.h.
References clone_into(), is_nic_ack(), network_message(), and nic_reverse().
|
protected |
Referenced by clone_injection_ack().
void sstmac::hw::network_message::convert_to_ack | ( | ) |
Referenced by needs_ack().
|
inline |
Definition at line 150 of file network_message.h.
References dest_task_.
|
inlinevirtual |
bool sstmac::hw::network_message::is_metadata | ( | ) | const |
Referenced by ~network_message().
bool sstmac::hw::network_message::is_nic_ack | ( | ) | const |
Referenced by clone_injection_ack().
|
inlinevirtual |
Definition at line 113 of file network_message.h.
References convert_to_ack(), needs_ack_, payload, serialize_order(), and type_.
|
inline |
Definition at line 130 of file network_message.h.
References net_id_.
|
virtual |
Referenced by clone_injection_ack().
|
virtual |
Reimplemented in sstmac::transport_message.
Referenced by toaddr().
|
virtual |
Reimplemented in sstmac::transport_message.
Referenced by set_type().
|
virtual |
Reimplemented from sstmac::event.
Reimplemented in sstmac::transport_message.
Referenced by needs_ack().
|
inline |
Definition at line 103 of file network_message.h.
References fromaddr_.
|
inline |
Definition at line 108 of file network_message.h.
References needs_ack_.
|
inline |
Definition at line 125 of file network_message.h.
References net_id_.
|
inline |
Definition at line 98 of file network_message.h.
References toaddr_.
|
inline |
Definition at line 160 of file network_message.h.
References byte_length(), reverse(), and type_.
|
inline |
Definition at line 140 of file network_message.h.
References src_task_.
|
inlinevirtual |
Implements sstmac::event.
Reimplemented in sstmac::transport_message.
Definition at line 56 of file network_message.h.
|
inlinevirtual |
Implements sstmac::message.
Definition at line 85 of file network_message.h.
References put_on_wire(), and toaddr_.
|
static |
Referenced by ~network_message().
|
static |
|
inline |
Definition at line 155 of file network_message.h.
References type_.
|
inlinevirtual |
|
protected |
Definition at line 184 of file network_message.h.
Referenced by aid().
|
protected |
Definition at line 179 of file network_message.h.
|
protected |
Definition at line 192 of file network_message.h.
|
protected |
Definition at line 190 of file network_message.h.
Referenced by sstmac::transport_message::dest(), dest_task(), and sstmac::transport_message::set_dest().
|
protected |
Definition at line 180 of file network_message.h.
node_id sstmac::hw::network_message::fromaddr_ |
Definition at line 172 of file network_message.h.
Referenced by fromaddr(), and set_fromaddr().
|
protected |
Definition at line 186 of file network_message.h.
Referenced by needs_ack(), and set_needs_ack().
|
protected |
Definition at line 182 of file network_message.h.
Referenced by net_id(), set_net_id(), and unique_id().
|
protected |
Definition at line 188 of file network_message.h.
Referenced by sstmac::transport_message::set_src(), source_task(), and sstmac::transport_message::src().
node_id sstmac::hw::network_message::toaddr_ |
Definition at line 170 of file network_message.h.
Referenced by set_toaddr(), and toaddr().
|
protected |
Definition at line 194 of file network_message.h.
Referenced by needs_ack(), set_type(), and type().