SST
14.1.0
StructuralSimulationToolkit
|
Public Member Functions | |
CustomResp (id_t id, CustomData *data, flags_t flags=0, Addr iPtr=0, uint32_t tid=0) | |
CustomResp (CustomReq *req) | |
virtual Request * | makeResponse () override |
virtual bool | needsResponse () override |
SST::Event * | convert (RequestConverter *converter) override |
void | handle (RequestHandler *handler) override |
std::string | getString () override |
CustomData & | getData () |
Get the CustomData object associated with this response. More... | |
const CustomData & | getData () const |
Get the CustomData object associated with this response. More... | |
void | setData (CustomData *d) |
Set the CustomData object associated with this response to a new value. More... | |
CustomData * | resetData (CustomData *d=nullptr) |
Reset the CustomData object associated with this response to a new value. More... | |
CustomData * | releaseData () |
Obtain the CustomData object associated with this response. More... | |
Public Member Functions inherited from SST::Interfaces::StandardMem::Request | |
Request (flags_t fl=0) | |
Request (id_t rid, flags_t flags=0) | |
id_t | getID () |
void | setNoncacheable () |
void | unsetNoncacheable () |
bool | getNoncacheable () |
void | setSuccess () |
void | unsetSuccess () |
bool | getSuccess () |
bool | getFail () |
void | setFail () |
void | unsetFail () |
void | setTrace () |
void | unsetTrace () |
bool | getTrace () |
void | setFlag (flags_t flag) |
void | setFlag (Flag flag) |
void | unsetFlag (flags_t flag) |
void | unsetFlag (Flag flag) |
bool | getFlag (flags_t flag) |
bool | getFlag (Flag flag) |
void | clearAllFlags () |
flags_t | getAllFlags () |
std::string | getFlagString () |
Data Fields | |
CustomData * | data |
Addr | iPtr |
uint32_t | tid |
Additional Inherited Members | |
Public Types inherited from SST::Interfaces::StandardMem::Request | |
enum | Flag { F_NONCACHEABLE = 1 << 1, F_FAIL = 1 << 2, F_TRACE = 1 << 3, F_RESERVED = 1 << 16 } |
Flags that modify requests. More... | |
typedef uint64_t | id_t |
typedef uint32_t | flags_t |
Protected Attributes inherited from SST::Interfaces::StandardMem::Request | |
id_t | id |
flags_t | flags |
|
inline |
Get the CustomData object associated with this response.
Ownership of the CustomData object is retained by this response.
|
inline |
Get the CustomData object associated with this response.
Ownership of the CustomData object is retained by this response. The returned data cannot be modified.
|
inline |
Obtain the CustomData object associated with this response.
Ownership of the CustomData object is transferred to the caller. The data member of this response is set to nullptr.
References resetData().
|
inline |
Reset the CustomData object associated with this response to a new value.
The previous CustomData object is returned and ownership is transferred to the caller. This response assumes ownership of the passed in CustomData object. If no CustomData object is passed in, the data member is set to nullptr.
Referenced by releaseData().
|
inline |
Set the CustomData object associated with this response to a new value.
This response takes ownership of the CustomData object. The previous CustomData object is deleted.