scc  2024.06
SystemC components library
tlm::scc::tlm_mm< TYPES, CLEANUP_DATA > Class Template Reference

a tlm memory manager More...

#include <tlm_mm.h>

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

Static Public Member Functions

static tlm_mmget ()
 accessor function of the singleton More...
 

Additional Inherited Members

- Public Member Functions inherited from tlm::scc::tlm_mm_t< tlm_base_protocol_types, true, std::conditional< std::is_base_of< tlm::tlm_generic_payload, TYPES::tlm_payload_type >::value, tlm::tlm_mm_interface, tlm_mm_traits< tlm_base_protocol_types >::mm_if_type >::type >
 tlm_mm_t (const tlm_mm_t &)=delete
 
 tlm_mm_t (tlm_mm_t &&)=delete
 
tlm_mm_toperator= (const tlm_mm_t &other)=delete
 
tlm_mm_toperator= (tlm_mm_t &&other)=delete
 
payload_type * allocate ()
 get a plain tlm_payload_type without extensions More...
 
payload_type * allocate ()
 get a tlm_payload_type with registered extension More...
 
void free (payload_base *trans)
 return the extension into the memory pool (removing the extensions) More...
 

Detailed Description

template<typename TYPES = tlm_base_protocol_types, bool CLEANUP_DATA = true>
class tlm::scc::tlm_mm< TYPES, CLEANUP_DATA >

a tlm 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 282 of file tlm_mm.h.

Member Function Documentation

◆ get()

template<typename TYPES , bool CLEANUP_DATA>
tlm_mm< TYPES, CLEANUP_DATA > & tlm::scc::tlm_mm< TYPES, CLEANUP_DATA >::get
inlinestatic

accessor function of the singleton

Returns

Definition at line 293 of file tlm_mm.h.


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