#include <fsa.h>
Classes | |
struct | FSA_ELEMENT |
Public Types | |
enum | { FSA_DEFAULT_SIZE = 100 } |
Public Member Functions | |
USER_TYPE * | alloc () |
void | Debug () |
FixedSizeAllocator (unsigned int MaxElements=FSA_DEFAULT_SIZE) | |
void | free (USER_TYPE *user_data) |
USER_TYPE * | GetFirst () |
USER_TYPE * | GetNext (USER_TYPE *node) |
~FixedSizeAllocator () | |
Private Attributes | |
unsigned int | m_MaxElements |
FSA_ELEMENT * | m_pFirstFree |
FSA_ELEMENT * | m_pFirstUsed |
FSA_ELEMENT * | m_pMemory |
anonymous enum |
FixedSizeAllocator< USER_TYPE >::FixedSizeAllocator | ( | unsigned int | MaxElements = FSA_DEFAULT_SIZE | ) | [inline] |
FixedSizeAllocator< USER_TYPE >::~FixedSizeAllocator | ( | ) | [inline] |
USER_TYPE* FixedSizeAllocator< USER_TYPE >::alloc | ( | ) | [inline] |
void FixedSizeAllocator< USER_TYPE >::Debug | ( | ) | [inline] |
void FixedSizeAllocator< USER_TYPE >::free | ( | USER_TYPE * | user_data | ) | [inline] |
USER_TYPE* FixedSizeAllocator< USER_TYPE >::GetFirst | ( | ) | [inline] |
USER_TYPE* FixedSizeAllocator< USER_TYPE >::GetNext | ( | USER_TYPE * | node | ) | [inline] |
unsigned int FixedSizeAllocator< USER_TYPE >::m_MaxElements [private] |
FSA_ELEMENT* FixedSizeAllocator< USER_TYPE >::m_pFirstFree [private] |
FSA_ELEMENT* FixedSizeAllocator< USER_TYPE >::m_pFirstUsed [private] |
FSA_ELEMENT* FixedSizeAllocator< USER_TYPE >::m_pMemory [private] |