Skip to content

MemPool

#include <sbio/util/mem_pool.hh>
class MemPool

Defined in src/lib/sbio/util/mem_pool.hh:43

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
Return Name Description
MemPool Defaulted constructor.
void realloc inline
char * get_block inline
void free inline

MemPool() = default

Defined in src/lib/sbio/util/mem_pool.hh:45

Defaulted constructor.


inline

inline void realloc(hd_std::size_t bytes)

Defined in src/lib/sbio/util/mem_pool.hh:49


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

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