scc 2025.09
SystemC components library
tlm::scc::tlm_gp_mm_t< SZ, BE > Struct Template Reference

Creates a new tlm_gp_mm object with fixed size. More...

#include <tlm_mm.h>

Inheritance diagram for tlm::scc::tlm_gp_mm_t< SZ, BE >:
Collaboration diagram for tlm::scc::tlm_gp_mm_t< SZ, BE >:

Public Member Functions

virtual ~tlm_gp_mm_t ()
void free () override
Public Member Functions inherited from tlm::scc::tlm_gp_mm
void copy_from (ATTR_UNUSED tlm_extension_base const &from) override
tlm_gp_mm * clone () const override

Public Attributes

friend tlm_gp_mm
Public Attributes inherited from tlm::scc::tlm_gp_mm
size_t const data_size
uint8_t *const data_ptr
uint8_t *const be_ptr

Protected Member Functions

 tlm_gp_mm_t (size_t sz)
Protected Member Functions inherited from tlm::scc::tlm_gp_mm
 tlm_gp_mm (size_t sz, uint8_t *data_ptr, uint8_t *be_ptr)

Protected Attributes

uint8_t data [SZ]
uint8_t be [BE ? SZ :0]

Additional Inherited Members

Static Public Member Functions inherited from tlm::scc::tlm_gp_mm
static tlm_gp_mm * create (size_t sz, bool be=false)
 Creates a new tlm_gp_mm object with a dynamically allocated buffer.
template<typename TYPES = tlm_base_protocol_types>
static TYPES::tlm_payload_type * add_data_ptr (size_t sz, typename TYPES::tlm_payload_type &gp, bool be=false)
template<typename TYPES = tlm_base_protocol_types>
static TYPES::tlm_payload_type * add_data_ptr (size_t sz, typename TYPES::tlm_payload_type *gp, bool be=false)
 Adds a data pointer to a tlm_gp_mm object.

Detailed Description

template<size_t SZ, bool BE = false>
struct tlm::scc::tlm_gp_mm_t< SZ, BE >

Creates a new tlm_gp_mm object with fixed size.

Parameters
szThe size of the data to be handled.
beIf true, the data is byte-swapped.
Returns
A new tlm_gp_mm object.

Definition at line 77 of file tlm_mm.h.

Constructor & Destructor Documentation

◆ ~tlm_gp_mm_t()

template<size_t SZ, bool BE = false>
virtual tlm::scc::tlm_gp_mm_t< SZ, BE >::~tlm_gp_mm_t ( )
inlinevirtual

virtual destructor

Definition at line 83 of file tlm_mm.h.

◆ tlm_gp_mm_t()

template<size_t SZ, bool BE = false>
tlm::scc::tlm_gp_mm_t< SZ, BE >::tlm_gp_mm_t ( size_t sz)
inlineprotected

Definition at line 90 of file tlm_mm.h.

Member Function Documentation

◆ free()

template<size_t SZ, bool BE = false>
void tlm::scc::tlm_gp_mm_t< SZ, BE >::free ( )
inlineoverride

frees the extension by returning it to the memory manager

Definition at line 87 of file tlm_mm.h.

Member Data Documentation

◆ be

template<size_t SZ, bool BE = false>
uint8_t tlm::scc::tlm_gp_mm_t< SZ, BE >::be[BE ? SZ :0]
protected

Definition at line 93 of file tlm_mm.h.

◆ data

template<size_t SZ, bool BE = false>
uint8_t tlm::scc::tlm_gp_mm_t< SZ, BE >::data[SZ]
protected

Definition at line 92 of file tlm_mm.h.

◆ tlm_gp_mm

template<size_t SZ, bool BE = false>
friend tlm::scc::tlm_gp_mm_t< SZ, BE >::tlm_gp_mm

Definition at line 79 of file tlm_mm.h.


The documentation for this struct was generated from the following file:
  • /home/eyck/Projects/MINRES/SystemC-Components/src/sysc/tlm/scc/tlm_mm.h