SST  14.0.0
StructuralSimulationToolkit
SST::Interfaces::StandardMem::CustomResp Class Reference
Inheritance diagram for SST::Interfaces::StandardMem::CustomResp:
SST::Interfaces::StandardMem::Request

Public Member Functions

 CustomResp (id_t id, CustomData *data, flags_t flags=0, Addr iPtr=0, uint32_t tid=0)
 
 CustomResp (CustomReq *req)
 
virtual RequestmakeResponse () override
 
virtual bool needsResponse () override
 
SST::Eventconvert (RequestConverter *converter) override
 
void handle (RequestHandler *handler) override
 
std::string getString () override
 
CustomDatagetData ()
 Get the CustomData object associated with this response. More...
 
const CustomDatagetData () 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...
 
CustomDataresetData (CustomData *d=nullptr)
 Reset the CustomData object associated with this response to a new value. More...
 
CustomDatareleaseData ()
 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

CustomDatadata
 
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
 

Member Function Documentation

◆ getData() [1/2]

CustomData& SST::Interfaces::StandardMem::CustomResp::getData ( )
inline

Get the CustomData object associated with this response.

Ownership of the CustomData object is retained by this response.

◆ getData() [2/2]

const CustomData& SST::Interfaces::StandardMem::CustomResp::getData ( ) const
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.

◆ releaseData()

CustomData* SST::Interfaces::StandardMem::CustomResp::releaseData ( )
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().

◆ resetData()

CustomData* SST::Interfaces::StandardMem::CustomResp::resetData ( CustomData d = nullptr)
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().

◆ setData()

void SST::Interfaces::StandardMem::CustomResp::setData ( CustomData d)
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.


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