|
Embedded Template Library
1.0
|
#include <pool.h>
Public Member Functions | |
| pool () | |
| Constructor. | |
Public Member Functions inherited from etl::ipool< T > | |
| T * | allocate () |
| void | release (const T &object) |
| void | release (const T *const p_object) |
| bool | is_in_pool (const T &object) const |
| bool | is_in_pool (const T *const p_object) const |
Public Member Functions inherited from etl::pool_base | |
| size_t | available () const |
| Returns the number of free items in the pool. | |
| bool | empty () const |
Static Public Attributes | |
| static const size_t | SIZE = SIZE_ |
Additional Inherited Members | |
Protected Member Functions inherited from etl::ipool< T > | |
| ipool (T *p_buffer, ibitset &in_use_flags, size_t size) | |
| Constructor. | |
Protected Member Functions inherited from etl::pool_base | |
| pool_base (size_t max_size) | |
| Constructor. | |
Protected Attributes inherited from etl::ipool< T > | |
| T * | p_buffer |
| ibitset & | in_use_flags |
Protected Attributes inherited from etl::pool_base | |
| 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. | |
A templated pool implementation that uses a fixed size pool. SIZE_ elements will be always be constructed.