SST::Interfaces::SimpleNetwork::Request Class Reference

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.
EventtakePayload ()
 Returns the payload for the request.
EventinspectPayload ()
 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)
Requestclone ()
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

Detailed Description

Represents both network sends and receives.


Member Enumeration Documentation

Trace types.

Enumerator:
NONE 

No tracing enabled

ROUTE 

Trace route information only

FULL 

Trace all movements of packets through network


Member Function Documentation

void SST::Interfaces::SimpleNetwork::Request::givePayload ( Event event  )  [inline]

Sets the payload field for this request.

Parameters:
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.

Returns:
Event that was set as payload of the request.
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.

Returns:
Event that was set as payload of the request.

Field Documentation

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


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

Generated on 14 Sep 2015 for SST by  doxygen 1.6.1