A base class for TLM network payloads.
More...
#include <tlm_network_gp.h>
A base class for TLM network payloads.
The tlm_network_payload_base class provides a foundation for creating custom TLM network payloads. It includes methods for managing extensions, memory management, and response status.
Definition at line 52 of file tlm_network_gp.h.
◆ tlm_network_payload_base() [1/2]
| tlm::nw::tlm_network_payload_base::tlm_network_payload_base |
( |
| ) |
|
|
inline |
◆ tlm_network_payload_base() [2/2]
Constructor with memory management interface.
Initializes the tlm_network_payload_base object with a specified memory management interface.
- Parameters
-
| mm | The memory management interface. |
Definition at line 67 of file tlm_network_gp.h.
◆ ~tlm_network_payload_base()
| virtual tlm::nw::tlm_network_payload_base::~tlm_network_payload_base |
( |
| ) |
|
|
inlinevirtual |
◆ acquire()
| void tlm::nw::tlm_network_payload_base::acquire |
( |
| ) |
|
|
inline |
Acquires a reference to the payload.
Increments the reference count of the payload, indicating that it is being used.
Definition at line 92 of file tlm_network_gp.h.
◆ clear_extension() [1/2]
template<typename T>
| void tlm::nw::tlm_network_payload_base::clear_extension |
( |
| ) |
|
|
inline |
◆ clear_extension() [2/2]
template<typename T>
| void tlm::nw::tlm_network_payload_base::clear_extension |
( |
const T * | ext | ) |
|
|
inline |
◆ copy_extensions_from()
◆ free_all_extensions()
| void tlm::nw::tlm_network_payload_base::free_all_extensions |
( |
| ) |
|
|
inline |
◆ get_extension() [1/3]
template<typename T>
| T * tlm::nw::tlm_network_payload_base::get_extension |
( |
| ) |
const |
|
inline |
◆ get_extension() [2/3]
template<typename T>
| void tlm::nw::tlm_network_payload_base::get_extension |
( |
T *& | ext | ) |
const |
|
inline |
◆ get_extension() [3/3]
| tlm_extension_base * tlm::nw::tlm_network_payload_base::get_extension |
( |
unsigned int | index | ) |
const |
|
inline |
◆ get_extension_count()
| size_t tlm::nw::tlm_network_payload_base::get_extension_count |
( |
| ) |
|
|
inline |
◆ get_ref_count()
| int tlm::nw::tlm_network_payload_base::get_ref_count |
( |
| ) |
const |
|
inline |
Gets the reference count of the payload.
Returns the current reference count of the payload.
- Returns
- The reference count.
Definition at line 114 of file tlm_network_gp.h.
◆ has_mm()
| bool tlm::nw::tlm_network_payload_base::has_mm |
( |
| ) |
const |
|
inline |
◆ release()
| void tlm::nw::tlm_network_payload_base::release |
( |
| ) |
|
|
inline |
Releases a reference to the payload.
Decrements the reference count of the payload, indicating that it is no longer being used. If the reference count reaches 0, the payload is freed using the memory management interface.
Definition at line 102 of file tlm_network_gp.h.
◆ release_extension() [1/2]
template<typename T>
| void tlm::nw::tlm_network_payload_base::release_extension |
( |
| ) |
|
|
inline |
◆ release_extension() [2/2]
template<typename T>
| void tlm::nw::tlm_network_payload_base::release_extension |
( |
T * | ext | ) |
|
|
inline |
◆ reset()
| void tlm::nw::tlm_network_payload_base::reset |
( |
| ) |
|
|
inline |
Constructor with memory management interface.
Initializes the tlm_network_payload_base object with a specified memory management interface.
- Parameters
-
| mm | The memory management interface. |
Definition at line 86 of file tlm_network_gp.h.
◆ resize_extensions()
| void tlm::nw::tlm_network_payload_base::resize_extensions |
( |
| ) |
|
|
inline |
◆ set_auto_extension() [1/2]
template<typename T>
| T * tlm::nw::tlm_network_payload_base::set_auto_extension |
( |
T * | ext | ) |
|
|
inline |
◆ set_auto_extension() [2/2]
| tlm_extension_base * tlm::nw::tlm_network_payload_base::set_auto_extension |
( |
unsigned int | index, |
|
|
tlm_extension_base * | ext ) |
|
inline |
◆ set_extension() [1/2]
template<typename T>
| T * tlm::nw::tlm_network_payload_base::set_extension |
( |
T * | ext | ) |
|
|
inline |
◆ set_extension() [2/2]
| tlm_extension_base * tlm::nw::tlm_network_payload_base::set_extension |
( |
unsigned int | index, |
|
|
tlm_extension_base * | ext ) |
|
inline |
◆ set_mm()
◆ update_extensions_from()
The documentation for this struct was generated from the following file: