SST 15.0
Structural Simulation Toolkit
|
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=nullptr) | |
Request * | clone () |
void | setTraceID (int id) |
void | setTraceType (TraceType type) |
int | getTraceID () |
TraceType | getTraceType () |
void | serialize_order (SST::Core::Serialization::serializer &ser) override |
![]() | |
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 |
bool | allow_adaptive |
Protected Attributes | |
TraceType | trace |
int | traceID |
Additional Inherited Members | |
![]() | |
static constexpr uint32_t | NullClsId = std::numeric_limits<uint32_t>::max() |
![]() | |
static constexpr uint32_t | NullClsId = std::numeric_limits<uint32_t>::max() |
![]() | |
enum | cxn_flag_t { ConstructorFlag } |
![]() | |
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 nullptr, so deleting the request will also delete the payload. If the request is going to be deleted, use takePayload instead.
|
inlineoverridevirtual |
Implements SST::Core::Serialization::serializable_base.
|
inline |
Returns the payload for the request.
This will also set the payload to nullptr, so the call will only return valid data one time after each givePayload call.
bool SST::Interfaces::SimpleNetwork::Request::allow_adaptive |
Indicates whether adaptive routing is allowed or not.
Referenced by Request().
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