|
scc 2025.09
SystemC components library
|
a generic pool allocator singleton not being MT-safe More...
#include <pool_allocator.h>
Public Member Functions | |
| void * | allocate (uint64_t id=0) |
| void | free (void *p) |
| pit the memory back into the pool | |
| void | resize () |
| add CHUNK_SIZE elements to the pool | |
| pool_allocator (const pool_allocator &)=delete | |
| deleted constructor | |
| pool_allocator (pool_allocator &&)=delete | |
| deleted constructor | |
| ~pool_allocator () | |
| deleted destructor | |
| pool_allocator & | operator= (const pool_allocator &)=delete |
| deleted assignment operator | |
| pool_allocator & | operator= (pool_allocator &&)=delete |
| deleted assignment operator | |
| size_t | get_capacity () |
| get the number of allocated bytes | |
| size_t | get_free_entries_count () |
| get the number of free elements | |
Static Public Member Functions | |
| static pool_allocator & | get () |
| pool allocator getter | |
a generic pool allocator singleton not being MT-safe
Definition at line 43 of file pool_allocator.h.
| util::pool_allocator< ELEM_SIZE, CHUNK_SIZE >::~pool_allocator | ( | ) |
deleted destructor
Definition at line 200 of file pool_allocator.h.
|
inline |
Definition at line 229 of file pool_allocator.h.
|
inline |
|
static |
pool allocator getter
Definition at line 195 of file pool_allocator.h.
|
inline |
get the number of allocated bytes
Definition at line 255 of file pool_allocator.h.
|
inline |
get the number of free elements
Definition at line 259 of file pool_allocator.h.
|
inline |
add CHUNK_SIZE elements to the pool
Definition at line 248 of file pool_allocator.h.