scc 2025.09
SystemC components library
tlm::scc::tlm_mm_t< TYPES, CLEANUP_DATA, BASE > Class Template Reference

a tlm payload memory manager More...

#include <tlm_mm.h>

Inheritance diagram for tlm::scc::tlm_mm_t< TYPES, CLEANUP_DATA, BASE >:
Collaboration diagram for tlm::scc::tlm_mm_t< TYPES, CLEANUP_DATA, BASE >:

Public Member Functions

 tlm_mm_t (const tlm_mm_t &)=delete
 tlm_mm_t (tlm_mm_t &&)=delete
tlm_mm_t & operator= (const tlm_mm_t &other)=delete
tlm_mm_t & operator= (tlm_mm_t &&other)=delete
payload_type * allocate ()
 get a plain tlm_payload_type without extensions
template<typename PEXT>
payload_type * allocate ()
 get a tlm_payload_type with registered extension
void free (payload_base *trans)
 return the extension into the memory pool (removing the extensions)

Detailed Description

template<typename TYPES, bool CLEANUP_DATA, typename BASE>
class tlm::scc::tlm_mm_t< TYPES, CLEANUP_DATA, BASE >

a tlm payload memory manager

This memory manager can be used as singleton or as local memory manager. It uses the pool_allocator as singleton to maximize reuse

Definition at line 196 of file tlm_mm.h.

Constructor & Destructor Documentation

◆ tlm_mm_t()

template<typename TYPES, bool CLEANUP_DATA, typename BASE>
tlm::scc::tlm_mm_t< TYPES, CLEANUP_DATA, BASE >::tlm_mm_t ( )
inline

Definition at line 202 of file tlm_mm.h.

Member Function Documentation

◆ allocate() [1/2]

template<typename TYPES, bool CLEANUP_DATA, typename BASE>
template<typename PEXT>
payload_type * tlm::scc::tlm_mm_t< TYPES, CLEANUP_DATA, BASE >::allocate ( )
inline

get a tlm_payload_type with registered extension

Returns
the tlm_payload_type

Definition at line 226 of file tlm_mm.h.

◆ allocate() [2/2]

template<typename TYPES, bool CLEANUP_DATA, typename BASE>
payload_type * tlm::scc::tlm_mm_t< TYPES, CLEANUP_DATA, BASE >::allocate ( )
inline

get a plain tlm_payload_type without extensions

Returns
the tlm_payload_type

Definition at line 218 of file tlm_mm.h.

◆ free()

template<typename TYPES, bool CLEANUP_DATA, typename BASE>
void tlm::scc::tlm_mm_t< TYPES, CLEANUP_DATA, BASE >::free ( payload_base * trans)
inline

return the extension into the memory pool (removing the extensions)

Parameters
transthe returning transaction

Definition at line 235 of file tlm_mm.h.


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