Classes | Public Types | Public Member Functions | Private Attributes | List of all members
FixedSizeAllocator< USER_TYPE > Class Template Reference

#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_ELEMENTm_pFirstFree
 
FSA_ELEMENTm_pFirstUsed
 
FSA_ELEMENTm_pMemory
 

Detailed Description

template<class USER_TYPE>
class FixedSizeAllocator< USER_TYPE >

Definition at line 51 of file fsa.h.

Member Enumeration Documentation

template<class USER_TYPE>
anonymous enum
Enumerator
FSA_DEFAULT_SIZE 

Definition at line 56 of file fsa.h.

Constructor & Destructor Documentation

template<class USER_TYPE>
FixedSizeAllocator< USER_TYPE >::FixedSizeAllocator ( unsigned int  MaxElements = FSA_DEFAULT_SIZE)
inline

Definition at line 73 of file fsa.h.

template<class USER_TYPE>
FixedSizeAllocator< USER_TYPE >::~FixedSizeAllocator ( )
inline

Definition at line 107 of file fsa.h.

Member Function Documentation

template<class USER_TYPE>
USER_TYPE* FixedSizeAllocator< USER_TYPE >::alloc ( )
inline

Definition at line 114 of file fsa.h.

template<class USER_TYPE>
void FixedSizeAllocator< USER_TYPE >::Debug ( )
inline

Definition at line 199 of file fsa.h.

template<class USER_TYPE>
void FixedSizeAllocator< USER_TYPE >::free ( USER_TYPE *  user_data)
inline

Definition at line 160 of file fsa.h.

template<class USER_TYPE>
USER_TYPE* FixedSizeAllocator< USER_TYPE >::GetFirst ( )
inline

Definition at line 224 of file fsa.h.

template<class USER_TYPE>
USER_TYPE* FixedSizeAllocator< USER_TYPE >::GetNext ( USER_TYPE *  node)
inline

Definition at line 229 of file fsa.h.

Member Data Documentation

template<class USER_TYPE>
unsigned int FixedSizeAllocator< USER_TYPE >::m_MaxElements
private

Definition at line 245 of file fsa.h.

template<class USER_TYPE>
FSA_ELEMENT* FixedSizeAllocator< USER_TYPE >::m_pFirstFree
private

Definition at line 243 of file fsa.h.

template<class USER_TYPE>
FSA_ELEMENT* FixedSizeAllocator< USER_TYPE >::m_pFirstUsed
private

Definition at line 244 of file fsa.h.

template<class USER_TYPE>
FSA_ELEMENT* FixedSizeAllocator< USER_TYPE >::m_pMemory
private

Definition at line 246 of file fsa.h.


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


stage
Author(s): Richard Vaughan , Brian Gerkey , Reed Hedges , Andrew Howard , Toby Collett , Pooya Karimian , Jeremy Asher , Alex Couture-Beil , Geoff Biggs , Rich Mattes , Abbas Sadat
autogenerated on Mon Jun 10 2019 15:06:11