SST/macro
Protected Member Functions | Private Member Functions | Private Attributes | List of all members
sstmac::transport_message Class Reference

#include <message.h>

Inheritance diagram for sstmac::transport_message:
Inheritance graph
Collaboration diagram for sstmac::transport_message:
Collaboration graph

Protected Member Functions

void clone_into (transport_message *cln) const
 
void reverse ()
 
- Protected Member Functions inherited from sstmac::hw::network_message
void clone_into (network_message *cln) const
 
- Protected Member Functions inherited from sstmac::library_interface
 library_interface (const std::string &libname)
 
 library_interface ()
 
void clone_into (library_interface *cln) const
 

Private Member Functions

 ImplementSerializable (transport_message) public
 
 transport_message (sw::app_id aid, const sumi::message_ptr &msg, long byte_length)
 
virtual void serialize_order (serializer &ser)
 
sumi::message_ptr payload () const
 
std::string to_string () const
 
int dest () const
 
void set_dest (int dest)
 
int src () const
 
void set_src (int src)
 
virtual void put_on_wire ()
 
::sstmac::hw::network_messageclone_injection_ack () const
 

Private Attributes

sumi::message_ptr payload_
 

Additional Inherited Members

- Public Member Functions inherited from 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)
 
 network_message (sw::app_id aid, long payload_bytes)
 
 network_message ()
 
virtual ~network_message ()
 
bool is_metadata () const
 
virtual void nic_reverse (type_t newtype)
 
bool is_nic_ack () const
 
node_id toaddr () const
 
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
 
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)
 
long byte_length () const
 Virtual function to return size. More...
 
- Public Member Functions inherited from sstmac::message
virtual ~message ()
 
- 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 ()
 
- Public Member Functions inherited from sstmac::library_interface
std::string lib_name () const
 
void set_lib_name (const std::string &name)
 
void serialize_order (serializer &ser)
 
- Static Public Member Functions inherited from sstmac::hw::network_message
static const char * tostr (nic_event_t mut)
 
static const char * tostr (type_t ty)
 
- Public Attributes inherited from sstmac::hw::network_message
node_id toaddr_
 
node_id fromaddr_
 
- Protected Types inherited from sprockit::serializable
enum  cxn_flag_t { ConstructorFlag }
 
- Protected Attributes inherited from sstmac::hw::network_message
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_
 
- Protected Attributes inherited from sstmac::library_interface
std::string lib_name_
 

Detailed Description

Definition at line 13 of file message.h.

Constructor & Destructor Documentation

sstmac::transport_message::transport_message ( sw::app_id  aid,
const sumi::message_ptr &  msg,
long  byte_length 
)
private

Referenced by ImplementSerializable().

Member Function Documentation

::sstmac::hw::network_message* sstmac::transport_message::clone_injection_ack ( ) const
privatevirtual

Reimplemented from sstmac::hw::network_message.

Referenced by set_src().

void sstmac::transport_message::clone_into ( transport_message cln) const
protected

Referenced by set_src().

int sstmac::transport_message::dest ( ) const
inlineprivate

Definition at line 39 of file message.h.

References sstmac::hw::network_message::dest_task_.

sstmac::transport_message::ImplementSerializable ( transport_message  )
inlineprivate

Definition at line 18 of file message.h.

References sstmac::hw::network_message::aid(), sstmac::hw::network_message::byte_length(), serialize_order(), and transport_message().

Here is the call graph for this function:

sumi::message_ptr sstmac::transport_message::payload ( ) const
inlineprivate

Definition at line 31 of file message.h.

References payload_, and to_string().

Here is the call graph for this function:

virtual void sstmac::transport_message::put_on_wire ( )
privatevirtual

Reimplemented from sstmac::hw::network_message.

Referenced by set_src().

void sstmac::transport_message::reverse ( )
protectedvirtual

Reimplemented from sstmac::hw::network_message.

Referenced by set_src().

virtual void sstmac::transport_message::serialize_order ( serializer ser)
privatevirtual

Reimplemented from sstmac::hw::network_message.

Referenced by ImplementSerializable().

void sstmac::transport_message::set_dest ( int  dest)
inlineprivate

Definition at line 44 of file message.h.

References sstmac::hw::network_message::dest_task_.

void sstmac::transport_message::set_src ( int  src)
inlineprivate

Definition at line 54 of file message.h.

References clone_injection_ack(), clone_into(), put_on_wire(), reverse(), and sstmac::hw::network_message::src_task_.

Here is the call graph for this function:

int sstmac::transport_message::src ( ) const
inlineprivate

Definition at line 49 of file message.h.

References sstmac::hw::network_message::src_task_.

std::string sstmac::transport_message::to_string ( ) const
privatevirtual

Reimplemented from sstmac::hw::network_message.

Referenced by payload().

Member Data Documentation

sumi::message_ptr sstmac::transport_message::payload_
private

Definition at line 72 of file message.h.

Referenced by payload().


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