CUBRID Engine  latest
cubmem::block_allocator Struct Reference

#include <mem_block.hpp>

Inheritance diagram for cubmem::block_allocator:
Inheritance graph
Collaboration diagram for cubmem::block_allocator:
Collaboration graph

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_allocatoroperator= (const block_allocator &other)
 

Public Attributes

alloc_func m_alloc_f
 
dealloc_func m_dealloc_f
 

Detailed Description

Definition at line 99 of file mem_block.hpp.

Member Typedef Documentation

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.

Constructor & Destructor Documentation

cubmem::block_allocator::block_allocator ( )
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.

Member Function Documentation

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.

Member Data Documentation


The documentation for this struct was generated from the following files: