Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

chunk< T > Class Template Reference

#include <pool.h>

Collaboration diagram for chunk< T >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class T>
class chunk< T >

Blocks of pool items are allocated in chunks, to decrease allocation overhead.

Chunks are simply arrays with a pointer to the next chunk (used for freeing a pool).

Definition at line 31 of file pool.h.

Public Member Functions

 chunk (int n)
 ~chunk ()

Public Attributes

chunk< T > * nextp
T * items


Constructor & Destructor Documentation

template<class T>
chunk< T >::chunk int  n  )  [inline]
 

Definition at line 34 of file pool.h.

References chunk< T >::items.

template<class T>
chunk< T >::~chunk  )  [inline]
 

Definition at line 35 of file pool.h.

References chunk< T >::items.


Member Data Documentation

template<class T>
T* chunk< T >::items
 

Definition at line 39 of file pool.h.

Referenced by pool< T >::alloc_chunk(), chunk< T >::chunk(), pool< T >::reset(), and chunk< T >::~chunk().

template<class T>
chunk<T>* chunk< T >::nextp
 

Definition at line 38 of file pool.h.

Referenced by pool< T >::alloc_chunk(), and pool< T >::~pool().


The documentation for this class was generated from the following file:
Generated on Mon Jun 28 15:02:06 2004 for Advanced Surface Library by doxygen 1.3.4