MemPool
MemPool
Section titled “MemPool”#include <sbio/util/mem_pool.hh>class MemPoolDefined in src/lib/sbio/util/mem_pool.hh:43
List of all members
Section titled “List of all members”| Name | Kind | Owner |
|---|---|---|
MemPool |
function |
Declared here |
realloc |
function |
Declared here |
get_block |
function |
Declared here |
free |
function |
Declared here |
m_ptr |
variable |
Declared here |
m_idx |
variable |
Declared here |
m_cap |
variable |
Declared here |
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
MemPool |
Defaulted constructor. | |
void |
realloc inline |
|
char * |
get_block inline |
|
void |
free inline |
MemPool
Section titled “MemPool”MemPool() = defaultDefined in src/lib/sbio/util/mem_pool.hh:45
Defaulted constructor.
realloc
Section titled “realloc”inline
inline void realloc(hd_std::size_t bytes)Defined in src/lib/sbio/util/mem_pool.hh:49
get_block
Section titled “get_block”inline
inline char * get_block(hd_std::size_t bytes, hd_std::size_t alignment = 16)Defined in src/lib/sbio/util/mem_pool.hh:65
inline
inline void free()Defined in src/lib/sbio/util/mem_pool.hh:86
Private Attributes
Section titled “Private Attributes”| Return | Name | Description |
|---|---|---|
char * |
m_ptr |
|
hd_std::size_t |
m_idx |
|
hd_std::size_t |
m_cap |
char * m_ptr { nullptr }Defined in src/lib/sbio/util/mem_pool.hh:101
hd_std::size_t m_idx { 0 }Defined in src/lib/sbio/util/mem_pool.hh:102
hd_std::size_t m_cap { 0 }Defined in src/lib/sbio/util/mem_pool.hh:103