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. | |
Event * | takePayload () |
Returns the payload for the request. | |
Event * | inspectPayload () |
Returns the payload for the request for inspection. | |
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 () |
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 |
Friends | |
class | boost::serialization::access |
Represents both network sends and receives.
void SST::Interfaces::SimpleNetwork::Request::givePayload | ( | Event * | event | ) | [inline] |
Sets the payload field for this request.
payload_in | Event to set as payload. |
Event* SST::Interfaces::SimpleNetwork::Request::inspectPayload | ( | ) | [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.
Event* SST::Interfaces::SimpleNetwork::Request::takePayload | ( | ) | [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.
Node ID of destination
True if this is the head of a stream
Size of packet in bits
Node ID of source
True if this is the tail of a steram
Virtual network of packet