#include <CpuMgrArenaAllocator.h>
Definition at line 31 of file CpuMgrArenaAllocator.h.
CpuMgrArenaAllocator::CpuMgrArenaAllocator |
( |
| ) |
|
Definition at line 29 of file CpuMgrArenaAllocator.cpp.
Data_Namespace::DataMgr & get_data_mgr_instance()
Data_Namespace::DataMgr & data_mgr_
CpuMgrArenaAllocator::~CpuMgrArenaAllocator |
( |
| ) |
|
|
override |
void * CpuMgrArenaAllocator::allocate |
( |
size_t |
num_bytes | ) |
|
|
overridevirtual |
Implements Arena.
Definition at line 38 of file CpuMgrArenaAllocator.cpp.
References Data_Namespace::DataMgr::alloc(), allocated_buffers_, CHECK, Data_Namespace::CPU_LEVEL, data_mgr_, logger::ERROR, Data_Namespace::AbstractBuffer::getMemoryPtr(), LOG, and size_.
Referenced by allocateAndZero().
virtual int8_t * getMemoryPtr()=0
An AbstractBuffer is a unit of data management for a data manager.
std::vector< Data_Namespace::AbstractBuffer * > allocated_buffers_
Data_Namespace::DataMgr & data_mgr_
AbstractBuffer * alloc(const MemoryLevel memoryLevel, const int deviceId, const size_t numBytes)
void * CpuMgrArenaAllocator::allocateAndZero |
( |
const size_t |
num_bytes | ) |
|
|
overridevirtual |
size_t CpuMgrArenaAllocator::bytesUsed |
( |
| ) |
const |
|
overridevirtual |
size_t CpuMgrArenaAllocator::totalBytes |
( |
| ) |
const |
|
overridevirtual |
size_t CpuMgrArenaAllocator::size_ |
|
private |
The documentation for this class was generated from the following files: