|
Embedded Template Library
1.0
|
#include <vector_base.h>
Public Types | |
| typedef size_t | size_type |
Public Member Functions | |
| size_type | size () const |
| bool | empty () const |
| bool | full () const |
| size_type | capacity () const |
| size_type | max_size () const |
| size_t | available () const |
| void | clear () |
| Clears the vector. | |
| void | push_back () |
| void | pop_back () |
Protected Member Functions | |
| vector_base (size_t max_size) | |
| Constructor. | |
Protected Attributes | |
| size_type | current_size |
| The current number of elements in the vector. | |
| const size_type | MAX_SIZE |
| The maximum number of elements in the vector. | |
The base class for all templated vector types.
|
inline |
Returns the remaining capacity.
|
inline |
Returns the capacity of the vector.
|
inline |
Checks the 'empty' state of the vector.
|
inline |
Checks the 'full' state of the vector.
|
inline |
Returns the maximum possible size of the vector.
|
inline |
Removes an element from the end of the vector. Does nothing if the vector is empty.
|
inline |
Increases the size of the vector by one, but does not initialise the new element. If ETL_THROW_EXCEPTIONS is defined, throws a vector_full if the vector is already full.
|
inline |
Gets the current size of the vector.