24 CHECK(sys_catalog.isInitialized());
25 return sys_catalog.getDataMgr();
60 std::memset(ret, 0, num_bytes);
size_t totalBytes() const override
void * allocate(size_t num_bytes) override
virtual int8_t * getMemoryPtr()=0
Data_Namespace::DataMgr & get_data_mgr_instance()
static SysCatalog & instance()
This file contains the class specification and related data structures for SysCatalog.
An AbstractBuffer is a unit of data management for a data manager.
Allocate CPU memory using CpuBuffers via DataMgr.
MemoryType getMemoryType() const override
std::vector< Data_Namespace::AbstractBuffer * > allocated_buffers_
Data_Namespace::DataMgr & data_mgr_
~CpuMgrArenaAllocator() override
void free(AbstractBuffer *buffer)
size_t bytesUsed() const override
void * allocateAndZero(const size_t num_bytes) override
AbstractBuffer * alloc(const MemoryLevel memoryLevel, const int deviceId, const size_t numBytes)