MxEngine
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
MxEngine::PoolAllocator< T >::Block Struct Reference

#include <PoolAllocator.h>

Public Member Functions

void MarkBusy ()
 
bool IsFree ()
 

Public Attributes

data
 
size_t next
 

Static Public Attributes

static constexpr size_t LastBit = 1ULL << (8 * sizeof(size_t) - 1)
 

Detailed Description

template<typename T>
struct MxEngine::PoolAllocator< T >::Block

block inner structure. Just holds object and offset in memory to next block

Member Data Documentation

§ data

template<typename T >
T MxEngine::PoolAllocator< T >::Block::data

object data itself

§ next

template<typename T >
size_t MxEngine::PoolAllocator< T >::Block::next

offset in memory of next block (counted in blocks). Stores


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