|
Embedded Template Library
1.0
|
#include <list_base.h>
Public Types | |
| typedef size_t | size_type |
| The type used for determining the size of list. | |
Public Member Functions | |
| size_type | size () const |
| Gets the size of the list. | |
| size_type | max_size () const |
| Gets the maximum possible size of the list. | |
| bool | empty () const |
| Checks to see if the list is empty. | |
| bool | full () const |
| Checks to see if the list is full. | |
| size_t | available () const |
Protected Member Functions | |
| list_base (size_type max_size) | |
| The constructor that is called from derived classes. | |
Protected Attributes | |
| size_type | next_free |
| The index of the next free node. | |
| size_type | current_size |
| The number of the used nodes. | |
| const size_type | MAX_SIZE |
| The maximum size of the list. | |
The base class for all lists.
|
inline |
Returns the remaining capacity.