Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
Grindstone::Memory::Allocators::BasePoolAllocator Class Reference
Inheritance diagram for Grindstone::Memory::Allocators::BasePoolAllocator:
Grindstone::Memory::Allocators::GenericPoolAllocator Grindstone::Memory::Allocators::PoolAllocator< T >

Classes

Public Member Functions

void Clear ()
void ClearAndZero ()
void Destroy ()
bool IsEmpty () const
size_t GetUsedCount () const

Protected Member Functions

void * AllocateImpl ()
void SetupLinkedList ()
void DeallocateImpl (size_t index)
void DeallocateImpl (void *ptr)

Protected Attributes

size_t totalMemorySize = 0
size_t chunkSize = 0
size_t usedChunkCount = 0
size_t totalChunkCount = 0
FreeLinkheadFreePtr = nullptr
void * memory = nullptr
bool hasAllocatedOwnMemory = false
std::function< void(void *)> deleteFn

The documentation for this class was generated from the following files:
  • /github/workspace/sources/code/Common/Memory/Allocators/PoolAllocator.hpp
  • /github/workspace/sources/code/Common/Memory/Allocators/PoolAllocator.cpp