SST
7.1.0
StructuralSimulationToolkit
|
Represents both network sends and receives. More...
#include <simpleNetwork.h>
Public Types | |
enum | TraceType { NONE, ROUTE, FULL } |
Trace types. More... | |
Public Member Functions | |
void | givePayload (Event *event) |
Sets the payload field for this request. More... | |
Event * | takePayload () |
Returns the payload for the request. More... | |
Event * | inspectPayload () |
Returns the payload for the request for inspection. More... | |
Request () | |
Constructor. | |
Request (nid_t dest, nid_t src, size_t size_in_bits, bool head, bool tail, Event *payload=NULL) | |
Request * | clone () |
void | setTraceID (int id) |
void | setTraceType (TraceType type) |
int | getTraceID () |
TraceType | getTraceType () |
void | serialize_order (SST::Core::Serialization::serializer &ser) override |
Public Member Functions inherited from SST::Core::Serialization::serializable | |
virtual const char * | cls_name () const =0 |
virtual uint32_t | cls_id () const =0 |
virtual std::string | serialization_name () const =0 |
Data Fields | |
nid_t | dest |
nid_t | src |
int | vn |
size_t | size_in_bits |
bool | head |
bool | tail |
Protected Attributes | |
TraceType | trace |
int | traceID |
Additional Inherited Members | |
Protected Types inherited from SST::Core::Serialization::serializable | |
enum | cxn_flag_t { ConstructorFlag } |
Static Protected Member Functions inherited from SST::Core::Serialization::serializable | |
static void | serializable_abort (uint32_t line, const char *file, const char *func, const char *obj) |
Represents both network sends and receives.
|
inline |
Sets the payload field for this request.
payload_in | Event to set as payload. |
|
inline |
Returns the payload for the request for inspection.
This call does not set the payload to NULL, so deleting the reqeust will also delete the payload. If the request is going to be deleted, use takePayload instead.
|
inline |
Returns the payload for the request.
This will also set the payload to NULL, so the call will only return valid data one time after each givePayload call.
bool SST::Interfaces::SimpleNetwork::Request::head |
True if this is the head of a stream
Referenced by Request().
size_t SST::Interfaces::SimpleNetwork::Request::size_in_bits |
Size of packet in bits
Referenced by Request().
bool SST::Interfaces::SimpleNetwork::Request::tail |
True if this is the tail of a steram
Referenced by Request().
int SST::Interfaces::SimpleNetwork::Request::vn |
Virtual network of packet
Referenced by SST::Interfaces::SimpleNetwork::Handler< classT, argT >::Handler(), SST::Interfaces::SimpleNetwork::Handler< classT, void >::Handler(), Request(), and SST::Interfaces::SimpleNetwork::SimpleNetwork().