Plasma Engine  2.0
Loading...
Searching...
No Matches
plDataBlock< 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

 PL_DECLARE_POD_TYPE ()
 
 plDataBlock (T *pData, plUInt32 uiCount)
 
T * ReserveBack ()
 
T * PopBack ()
 
bool IsEmpty () const
 
bool IsFull () const
 
T & operator[] (plUInt32 uiIndex) const
 

Public Attributes

T * m_pData
 
plUInt32 m_uiCount
 

Detailed Description

template<typename T, plUInt32 SizeInBytes>
struct plDataBlock< T, SizeInBytes >

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


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