CommonLibSSE NG
Loading...
Searching...
No Matches
RE::hkContainerHeapAllocator::Allocator Struct Reference

#include <hkContainerAllocators.h>

Inheritance diagram for RE::hkContainerHeapAllocator::Allocator:
RE::hkMemoryAllocator

Public Member Functions

 ~Allocator () override
 
void * BlockAlloc (std::int32_t a_numBytes) override
 
void BlockFree (void *a_ptr, std::int32_t a_numBytes) override
 
void * BufAlloc (std::int32_t &a_reqNumBytesInOut) override
 
void BufFree (void *a_ptr, std::int32_t a_numBytes) override
 
void GetMemoryStatistics (MemoryStatistics &a_usage) override
 
std::int32_t GetAllocatedSize (const void *a_obj, std::int32_t a_numBytes) override
 
- Public Member Functions inherited from RE::hkMemoryAllocator
virtual ~hkMemoryAllocator ()
 
virtual void * BlockAlloc (std::int32_t a_numBytes)=0
 
virtual void BlockFree (void *a_ptr, std::int32_t a_numBytes)=0
 
virtual void * BufAlloc (std::int32_t &a_reqNumBytesInOut)
 
virtual void BufFree (void *a_ptr, std::int32_t a_numBytes)
 
virtual void * BufRealloc (void *a_ptrOld, std::int32_t a_oldNumBytes, std::int32_t &a_reqNumBytesInOut)
 
virtual void BlockAllocBatch (void **a_ptrsOut, std::int32_t a_numPtrs, std::int32_t a_blockSize)
 
virtual void BlockFreeBatch (void **a_ptrsIn, std::int32_t a_numPtrs, std::int32_t a_blockSize)
 
virtual void GetMemoryStatistics (MemoryStatistics &a_usage)=0
 
virtual std::int32_t GetAllocatedSize (const void *a_obj, std::int32_t a_numBytes)=0
 
virtual void ResetPeakMemoryStatistics ()
 

Static Public Attributes

static constexpr auto RTTI = RTTI_hkContainerHeapAllocator__Allocator
 
static constexpr auto VTABLE = VTABLE_hkContainerHeapAllocator__Allocator
 
- Static Public Attributes inherited from RE::hkMemoryAllocator
static constexpr auto RTTI = RTTI_hkMemoryAllocator
 
static constexpr auto VTABLE = VTABLE_hkMemoryAllocator
 

Additional Inherited Members

- Public Types inherited from RE::hkMemoryAllocator
enum class  MemoryState { kOK , kOutOfMemory }
 
using MemoryWalkCallback = void(void *a_start, std::size_t a_size, bool a_allocated, std::int32_t a_pool, void *a_param)
 

Constructor & Destructor Documentation

◆ ~Allocator()

RE::hkContainerHeapAllocator::Allocator::~Allocator ( )
override

Member Function Documentation

◆ BlockAlloc()

void * RE::hkContainerHeapAllocator::Allocator::BlockAlloc ( std::int32_t  a_numBytes)
overridevirtual

Implements RE::hkMemoryAllocator.

◆ BlockFree()

void RE::hkContainerHeapAllocator::Allocator::BlockFree ( void *  a_ptr,
std::int32_t  a_numBytes 
)
overridevirtual

Implements RE::hkMemoryAllocator.

◆ BufAlloc()

void * RE::hkContainerHeapAllocator::Allocator::BufAlloc ( std::int32_t &  a_reqNumBytesInOut)
overridevirtual

Reimplemented from RE::hkMemoryAllocator.

◆ BufFree()

void RE::hkContainerHeapAllocator::Allocator::BufFree ( void *  a_ptr,
std::int32_t  a_numBytes 
)
overridevirtual

Reimplemented from RE::hkMemoryAllocator.

◆ GetAllocatedSize()

std::int32_t RE::hkContainerHeapAllocator::Allocator::GetAllocatedSize ( const void *  a_obj,
std::int32_t  a_numBytes 
)
overridevirtual

Implements RE::hkMemoryAllocator.

◆ GetMemoryStatistics()

void RE::hkContainerHeapAllocator::Allocator::GetMemoryStatistics ( MemoryStatistics a_usage)
overridevirtual

Implements RE::hkMemoryAllocator.

Member Data Documentation

◆ RTTI

constexpr auto RE::hkContainerHeapAllocator::Allocator::RTTI = RTTI_hkContainerHeapAllocator__Allocator
inlinestaticconstexpr

◆ VTABLE

constexpr auto RE::hkContainerHeapAllocator::Allocator::VTABLE = VTABLE_hkContainerHeapAllocator__Allocator
inlinestaticconstexpr

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