RetroArch
Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions | Friends | List of all members
glslang::TPoolAllocator Class Reference

#include <PoolAlloc.h>

Collaboration diagram for glslang::TPoolAllocator:
[legend]

Classes

struct  tAllocState
 
struct  tHeader
 

Public Member Functions

 TPoolAllocator (int growthIncrement=8 *1024, int allocationAlignment=16)
 
 ~TPoolAllocator ()
 
void push ()
 
void pop ()
 
void popAll ()
 
voidallocate (size_t numBytes)
 

Protected Types

typedef std::vector< tAllocStatetAllocStack
 

Protected Member Functions

voidinitializeAllocation (tHeader *, unsigned char *memory, size_t)
 

Protected Attributes

size_t pageSize
 
size_t alignment
 
size_t alignmentMask
 
size_t headerSkip
 
size_t currentPageOffset
 
tHeaderfreeList
 
tHeaderinUseList
 
tAllocStack stack
 
int numCalls
 
size_t totalBytes
 

Private Member Functions

TPoolAllocatoroperator= (const TPoolAllocator &)
 
 TPoolAllocator (const TPoolAllocator &)
 

Friends

struct tHeader
 

Member Typedef Documentation

◆ tAllocStack

typedef std::vector<tAllocState> glslang::TPoolAllocator::tAllocStack
protected

Constructor & Destructor Documentation

◆ TPoolAllocator() [1/2]

glslang::TPoolAllocator::TPoolAllocator ( int  growthIncrement = 8*1024,
int  allocationAlignment = 16 
)
Here is the call graph for this function:

◆ ~TPoolAllocator()

glslang::TPoolAllocator::~TPoolAllocator ( )
Here is the call graph for this function:

◆ TPoolAllocator() [2/2]

glslang::TPoolAllocator::TPoolAllocator ( const TPoolAllocator )
private

Member Function Documentation

◆ allocate()

void * glslang::TPoolAllocator::allocate ( size_t  numBytes)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ initializeAllocation()

void* glslang::TPoolAllocator::initializeAllocation ( tHeader ,
unsigned char *  memory,
size_t   
)
inlineprotected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

TPoolAllocator& glslang::TPoolAllocator::operator= ( const TPoolAllocator )
private

◆ pop()

void glslang::TPoolAllocator::pop ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ popAll()

void glslang::TPoolAllocator::popAll ( )
Here is the call graph for this function:

◆ push()

void glslang::TPoolAllocator::push ( )
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ tHeader

friend struct tHeader
friend

Member Data Documentation

◆ alignment

size_t glslang::TPoolAllocator::alignment
protected

◆ alignmentMask

size_t glslang::TPoolAllocator::alignmentMask
protected

◆ currentPageOffset

size_t glslang::TPoolAllocator::currentPageOffset
protected

◆ freeList

tHeader* glslang::TPoolAllocator::freeList
protected

◆ headerSkip

size_t glslang::TPoolAllocator::headerSkip
protected

◆ inUseList

tHeader* glslang::TPoolAllocator::inUseList
protected

◆ numCalls

int glslang::TPoolAllocator::numCalls
protected

◆ pageSize

size_t glslang::TPoolAllocator::pageSize
protected

◆ stack

tAllocStack glslang::TPoolAllocator::stack
protected

◆ totalBytes

size_t glslang::TPoolAllocator::totalBytes
protected

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