|
Embedded Template Library
1.0
|
#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. | |
The base class for all templated pool types.
|
inline |
Checks to see if there are no free items in the pool.