Logo Search packages:      
Sourcecode: lttoolbox version File versions  Download package

Pool< T > Class Template Reference

#include <Pool.H>

List of all members.

Detailed Description

template<class T>
class Pool< T >

Pool of T objects

Definition at line 30 of file Pool.H.

Public Member Functions

T * get ()
 Pool (Pool const &p)
 Pool (unsigned int const nelems)
 Pool (unsigned int const nelems, T const &object)
 Pool ()
void release (T *item)
 ~Pool ()

Private Member Functions

void copy (Pool const &p)
void destroy ()
void init (unsigned int const nelems, T const &object)
void init (unsigned int const nelems)

Private Attributes

list< T > created
list< T * > free

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

Generated by  Doxygen 1.6.0   Back to index