MeshKit  1.0
ObjectPool< T >::Pool Struct Reference

List of all members.

Public Member Functions

 Pool (size_t n)
bool is_filled () const
T * allocate ()
void deleteAll ()

Public Attributes

size_t capacity
size_t currpos
T * objects

Detailed Description

template<class T>
struct ObjectPool< T >::Pool

Definition at line 60 of file ObjectPool.hpp.


Constructor & Destructor Documentation

Pool ( size_t  n) [inline]

Definition at line 62 of file ObjectPool.hpp.


Member Function Documentation

T* allocate ( ) [inline]

Definition at line 73 of file ObjectPool.hpp.

void deleteAll ( ) [inline]

Definition at line 77 of file ObjectPool.hpp.

bool is_filled ( ) const [inline]

Definition at line 69 of file ObjectPool.hpp.


Member Data Documentation

size_t capacity

Definition at line 84 of file ObjectPool.hpp.

size_t currpos

Definition at line 84 of file ObjectPool.hpp.

T* objects

Definition at line 85 of file ObjectPool.hpp.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines