Pool< Element > Struct Template Reference

#include <collection.h>

List of all members.

Public Member Functions

 Pool (int nptrs)
 ~Pool ()
int size ()
Ptr< Element > * get ()
bool put (Ptr< Element > *ptr)
bool check (char *msg)

Public Attributes

int mptrs
int nptrs
Ptr< Element > * hook


Detailed Description

template<class Element>
struct Pool< Element >

Definition at line 414 of file collection.h.


Constructor & Destructor Documentation

template<class Element >
Pool< Element >::Pool ( int  nptrs  )  [inline]

template<class Element >
Pool< Element >::~Pool (  )  [inline]


Member Function Documentation

template<class Element >
bool Pool< Element >::check ( char *  msg  )  [inline]

DDD

DDD

DDD

DDD

DDD

DDD

DDD

DDD

Definition at line 495 of file collection.h.

References Pool< Element >::hook, Pool< Element >::mptrs, Ptr< Element >::next, and Pool< Element >::nptrs.

Referenced by Container< Element >::checkPool().

template<class Element >
Ptr< Element > * Pool< Element >::get (  )  [inline]

DDD: probably not needed, but just to be on the safe side

Definition at line 457 of file collection.h.

References Pool< Element >::hook, Ptr< Element >::next, Pool< Element >::nptrs, and Ptr< Element >::prev.

Referenced by Container< Element >::append0(), and Container< Element >::insert0().

template<class Element >
bool Pool< Element >::put ( Ptr< Element > *  ptr  )  [inline]

template<class Element >
int Pool< Element >::size (  )  [inline]

Definition at line 419 of file collection.h.


Member Data Documentation

template<class Element >
Ptr<Element>* Pool< Element >::hook

template<class Element >
int Pool< Element >::mptrs

template<class Element >
int Pool< Element >::nptrs


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

Generated on Tue May 26 16:10:36 2009 for ReMoDy by  doxygen 1.5.7.1