#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) |
b2FreeList * | GetFreeList () |
const b2FreeList * | GetFreeList () const |
Protected Attributes | |
b2FreeList | m_freeList |
Typed b2FreeList which manages items of type T assuming T implements the GetInstanceFromListNode() and GetListNode() methods.
|
inline |
Add an item to the freelist so that it can be allocated with b2TypedFreeList::Allocate().