LiquidFun
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Protected Attributes | List of all members
b2TypedFreeList< T > Class Template Reference

#include <b2FreeList.h>

Public Member Functions

 b2TypedFreeList ()
 Construct the free list.
 
 ~b2TypedFreeList ()
 Destroy the free list.
 
T * Allocate ()
 Allocate an item from the free list.
 
void Free (T *instance)
 Free an item.
 
void AddToFreeList (T *instance)
 
b2FreeListGetFreeList ()
 
const b2FreeListGetFreeList () const
 

Protected Attributes

b2FreeList m_freeList
 

Detailed Description

template<typename T>
class b2TypedFreeList< T >

Typed b2FreeList which manages items of type T assuming T implements the GetInstanceFromListNode() and GetListNode() methods.

Member Function Documentation

template<typename T>
void b2TypedFreeList< T >::AddToFreeList ( T *  instance)
inline

Add an item to the freelist so that it can be allocated with b2TypedFreeList::Allocate().


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