Embedded Template Library 1.0
|
Public Types | |
typedef const T * | value_type |
typedef value_type & | reference |
typedef const value_type & | const_reference |
typedef value_type * | pointer |
typedef const value_type * | const_pointer |
typedef value_type * | iterator |
typedef const value_type * | const_iterator |
typedef ETL_OR_STD::reverse_iterator< iterator > | reverse_iterator |
typedef ETL_OR_STD::reverse_iterator< const_iterator > | const_reverse_iterator |
typedef size_t | size_type |
typedef etl::iterator_traits< iterator >::difference_type | difference_type |
![]() | |
typedef void * | value_type |
typedef value_type & | reference |
typedef const value_type & | const_reference |
typedef value_type * | pointer |
typedef const value_type * | const_pointer |
typedef value_type * | iterator |
typedef const value_type * | const_iterator |
typedef ETL_OR_STD::reverse_iterator< iterator > | reverse_iterator |
typedef ETL_OR_STD::reverse_iterator< const_iterator > | const_reverse_iterator |
typedef size_t | size_type |
typedef etl::iterator_traits< iterator >::difference_type | difference_type |
![]() | |
typedef size_t | size_type |
Public Member Functions | |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
const_iterator | cbegin () const |
const_iterator | cend () const |
reverse_iterator | rbegin () |
const_reverse_iterator | rbegin () const |
reverse_iterator | rend () |
const_reverse_iterator | rend () const |
const_reverse_iterator | crbegin () const |
const_reverse_iterator | crend () const |
void | resize (size_t new_size) |
void | resize (size_t new_size, value_type value) |
void | uninitialized_resize (size_t new_size) |
reference | operator[] (size_t i) |
const_reference | operator[] (size_t i) const |
reference | at (size_t i) |
const_reference | at (size_t i) const |
reference | front () |
const_reference | front () const |
reference | back () |
const_reference | back () const |
pointer | data () |
const_pointer | data () const |
template<typename TIterator > | |
void | assign (TIterator first, TIterator last) |
void | assign (size_t n, parameter_t value) |
void | clear () |
Clears the vector. | |
void | push_back (parameter_t value) |
void | pop_back () |
iterator | insert (const_iterator position, parameter_t value) |
void | insert (const_iterator position, size_t n, parameter_t value) |
template<class TIterator > | |
void | insert (const_iterator position, TIterator first, TIterator last) |
iterator | erase (iterator i_element) |
iterator | erase (const_iterator i_element) |
iterator | erase (const_iterator first, const_iterator last) |
ivector & | operator= (const ivector &rhs) |
Assignment operator. | |
![]() | |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
const_iterator | cbegin () const |
const_iterator | cend () const |
reverse_iterator | rbegin () |
const_reverse_iterator | rbegin () const |
reverse_iterator | rend () |
const_reverse_iterator | rend () const |
const_reverse_iterator | crbegin () const |
const_reverse_iterator | crend () const |
void | resize (size_t new_size) |
void | resize (size_t new_size, value_type value) |
void | uninitialized_resize (size_t new_size) |
reference | operator[] (size_t i) |
const_reference | operator[] (size_t i) const |
reference | at (size_t i) |
const_reference | at (size_t i) const |
reference | front () |
const_reference | front () const |
reference | back () |
const_reference | back () const |
pointer | data () |
const_pointer | data () const |
template<typename TIterator > | |
etl::enable_if<!etl::is_pointer< TIterator >::value, void >::type | assign (TIterator first, TIterator last) |
template<typename TIterator > | |
etl::enable_if< etl::is_pointer< TIterator >::value, void >::type | assign (TIterator first, TIterator last) |
void | assign (size_t n, value_type value) |
void | clear () |
Clears the vector. | |
void | push_back (value_type value) |
void | emplace_back (value_type value) |
void | pop_back () |
iterator | insert (const_iterator position, value_type value) |
iterator | emplace (const_iterator position) |
iterator | emplace (const_iterator position, value_type value) |
void | insert (const_iterator position, size_t n, value_type value) |
template<typename TIterator > | |
void | insert (const_iterator position, TIterator first, TIterator last) |
iterator | erase (iterator i_element) |
iterator | erase (const_iterator i_element) |
iterator | erase (const_iterator first, const_iterator last) |
etl::pvoidvector & | operator= (const etl::pvoidvector &rhs) |
Assignment operator. | |
size_type | size () const |
bool | empty () const |
bool | full () const |
size_t | available () const |
![]() | |
size_type | capacity () const |
size_type | max_size () const |
Protected Types | |
typedef value_type | parameter_t |
Protected Member Functions | |
ivector (const T **p_buffer_, size_t MAX_SIZE_) | |
Constructor. | |
![]() | |
pvoidvector (void **p_buffer_, size_t MAX_SIZE) | |
Constructor. | |
void | initialise () |
Initialise the vector. | |
void | repair_buffer (void **p_buffer_) |
Fix the internal pointers after a low level memory copy. | |
![]() | |
vector_base (size_t max_size_) | |
Constructor. | |
~vector_base () | |
Destructor. | |
Additional Inherited Members | |
![]() | |
void ** | p_buffer |
void ** | p_end |
![]() | |
const size_type | CAPACITY |
The maximum number of elements in the vector. | |
ETL_DECLARE_DEBUG_COUNT | |
Internal debugging. | |
Assigns values to the vector. If asserts or exceptions are enabled, emits vector_full if the vector does not have enough free space.
n | The number of elements to add. |
value | The value to insert for each element. |
Assigns values to the vector. If asserts or exceptions are enabled, emits vector_full if the vector does not have enough free space. If asserts or exceptions are enabled, emits vector_iterator if the iterators are reversed.
first | The iterator to the first element. |
last | The iterator to the last element + 1. |
Returns a reference to the value at index 'i' If asserts or exceptions are enabled, emits an etl::vector_out_of_bounds if the index is out of range.
i | The index. |
|
inline |
Returns a const reference to the value at index 'i' If asserts or exceptions are enabled, emits an etl::vector_out_of_bounds if the index is out of range.
i | The index. |
Returns a reference to the last element.
|
inline |
Returns a const reference to the last element.
|
inline |
Returns an iterator to the beginning of the vector.
|
inline |
Returns a const_iterator to the beginning of the vector.
|
inline |
Returns a const_iterator to the beginning of the vector.
|
inline |
Returns a const_iterator to the end of the vector.
|
inline |
Returns a const reverse iterator to the reverse beginning of the vector.
|
inline |
Returns a const reverse iterator to the end + 1 of the vector.
Returns a pointer to the beginning of the vector data.
|
inline |
Returns a const pointer to the beginning of the vector data.
|
inline |
Returns an iterator to the end of the vector.
|
inline |
Returns a const_iterator to the end of the vector.
|
inline |
Erases a range of elements. The range includes all the elements between first and last, including the element pointed by first, but not the one pointed by last.
first | Iterator to the first element. |
last | Iterator to the last element. |
|
inline |
Erases an element.
i_element | Iterator to the element. |
|
inline |
Erases an element.
i_element | Iterator to the element. |
Returns a reference to the first element.
|
inline |
Returns a const reference to the first element.
|
inline |
Inserts a value to the vector. If asserts or exceptions are enabled, emits vector_full if the vector is already full.
position | The position to insert before. |
value | The value to insert. |
|
inline |
Inserts 'n' values to the vector. If asserts or exceptions are enabled, emits vector_full if the vector does not have enough free space.
position | The position to insert before. |
n | The number of elements to add. |
value | The value to insert. |
|
inline |
Inserts a range of values to the vector. If asserts or exceptions are enabled, emits vector_full if the vector does not have enough free space.
position | The position to insert before. |
first | The first element to add. |
last | The last + 1 element to add. |
Returns a reference to the value at index 'i'
i | The index. |
|
inline |
Returns a const reference to the value at index 'i'
i | The index. |
Removes an element from the end of the vector. Does nothing if the vector is empty.
Inserts a value at the end of the vector. If asserts or exceptions are enabled, emits vector_full if the vector is already full.
value | The value to add. |
|
inline |
Returns an reverse iterator to the reverse beginning of the vector.
|
inline |
Returns a const reverse iterator to the reverse beginning of the vector.
|
inline |
Returns a reverse iterator to the end + 1 of the vector.
|
inline |
Returns a const reverse iterator to the end + 1 of the vector.
Resizes the vector. If asserts or exceptions are enabled and the new size is larger than the maximum then a vector_full is thrown.
new_size | The new size. |
|
inline |
Resizes the vector. If asserts or exceptions are enabled and the new size is larger than the maximum then a vector_full is thrown.
new_size | The new size. |
value | The value to fill new elements with. Default = default constructed value. |
|
inline |
Resizes the vector, but does not initialise new entries.
new_size | The new size. |