XII Release 0.1.0
Loading...
Searching...
No Matches
xiiDataBlock< T, SizeInBytes > Struct Template Reference

This struct represents a block of type T, typically 4kb. More...

#include <LargeBlockAllocator.h>

Public Types

enum  { SIZE_IN_BYTES = SizeInBytes , CAPACITY = SIZE_IN_BYTES / sizeof(T) }
 

Public Member Functions

 XII_DECLARE_POD_TYPE ()
 
 xiiDataBlock (T *pData, xiiUInt32 uiCount)
 
T * ReserveBack ()
 
T * PopBack ()
 
bool IsEmpty () const
 
bool IsFull () const
 
T & operator[] (xiiUInt32 uiIndex) const
 

Public Attributes

T * m_pData
 
xiiUInt32 m_uiCount
 

Detailed Description

template<typename T, xiiUInt32 SizeInBytes>
struct xiiDataBlock< T, SizeInBytes >

This struct represents a block of type T, typically 4kb.


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