Embedded Template Library  1.0
 All Classes Files Functions Variables Typedefs Friends Modules Pages
etl::pool_base Class Reference

#include <pool_base.h>

Public Member Functions

size_t available () const
 Returns the number of free items in the pool.
 
bool empty () const
 

Protected Member Functions

 pool_base (size_t max_size)
 Constructor.
 

Protected Attributes

size_t next_free
 The position of the next free item in the pool.
 
size_t items_allocated
 The number of items allocated.
 
const size_t MAX_SIZE
 The maximum number of objects that can be allocated.
 

Detailed Description

The base class for all templated pool types.

Member Function Documentation

bool etl::pool_base::empty ( ) const
inline

Checks to see if there are no free items in the pool.

Returns
true if there are none free (or 'empty')

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