rutz::free_list< T > Class Template Reference

Typesafe wrapper of free_list_base for maintaining free-list memory pools. More...

#include <rutz/freelist.h>

Collaboration diagram for rutz::free_list< T >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 free_list ()
 Construct an (empty) free list.
void * allocate (std::size_t bytes)
void deallocate (void *space)
void release_free_nodes ()
 Release all nodes currently on the free list (e.g. to conserve memory).


Detailed Description

template<class T>
class rutz::free_list< T >

Typesafe wrapper of free_list_base for maintaining free-list memory pools.

Definition at line 88 of file freelist.h.


Constructor & Destructor Documentation

template<class T>
rutz::free_list< T >::free_list (  )  [inline]

Construct an (empty) free list.

All objects allocated from this list must be of size sizeof(T).

Definition at line 96 of file freelist.h.


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

The software described here is Copyright (c) 1998-2005, Rob Peters.
This page was generated Wed Dec 3 06:56:34 2008 by Doxygen version 1.5.5.