CUBRID Engine
latest
|
#include <mem_block.hpp>
Public Types | |
using | alloc_func = std::function< void(block &b, size_t size)> |
using | dealloc_func = std::function< void(block &b)> |
Public Member Functions | |
block_allocator ()=delete | |
block_allocator (const alloc_func &alloc_f, const dealloc_func &dealloc_f) | |
block_allocator & | operator= (const block_allocator &other) |
Public Attributes | |
alloc_func | m_alloc_f |
dealloc_func | m_dealloc_f |
Definition at line 99 of file mem_block.hpp.
using cubmem::block_allocator::alloc_func = std::function<void (block &b, size_t size)> |
Definition at line 102 of file mem_block.hpp.
using cubmem::block_allocator::dealloc_func = std::function<void (block &b)> |
Definition at line 103 of file mem_block.hpp.
|
delete |
cubmem::block_allocator::block_allocator | ( | const alloc_func & | alloc_f, |
const dealloc_func & | dealloc_f | ||
) |
Definition at line 132 of file mem_block.cpp.
block_allocator & cubmem::block_allocator::operator= | ( | const block_allocator & | other | ) |
Definition at line 139 of file mem_block.cpp.
References m_alloc_f, and m_dealloc_f.
alloc_func cubmem::block_allocator::m_alloc_f |
Definition at line 105 of file mem_block.hpp.
Referenced by cubmem::single_block_allocator::allocate(), cubmem::extensible_block::extend_by(), operator=(), and cubmem::single_block_allocator::reserve().
dealloc_func cubmem::block_allocator::m_dealloc_f |
Definition at line 106 of file mem_block.hpp.
Referenced by cubmem::extensible_block::freemem(), operator=(), cubmem::extensible_block::~extensible_block(), and cubmem::single_block_allocator::~single_block_allocator().