scc
2022.4.0
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 More... | |
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 42 of file pool_allocator.h.
|
inline |