|
Embedded Template Library
1.0
|
#include <ivector.h>
Public Types | |
| typedef T | value_type |
| typedef T & | reference |
| typedef const T & | const_reference |
| typedef T * | pointer |
| typedef const T * | const_pointer |
| typedef T * | iterator |
| typedef const T * | const_iterator |
|
typedef std::reverse_iterator < iterator > | reverse_iterator |
|
typedef std::reverse_iterator < const_iterator > | const_reverse_iterator |
| typedef size_t | size_type |
|
typedef std::iterator_traits < iterator >::difference_type | difference_type |
Public Types inherited from etl::vector_base | |
| typedef size_t | size_type |
Public Member Functions | |
| ivector & | operator= (ivector &other) |
| 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 newSize, T value=T()) |
| 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 | push_back (parameter_t value) |
| iterator | insert (iterator position, parameter_t value) |
| void | insert (iterator position, size_t n, parameter_t value) |
| template<class TIterator > | |
| void | insert (iterator position, TIterator first, TIterator last) |
| iterator | erase (iterator iElement) |
| iterator | erase (iterator first, iterator last) |
| void | clear () |
Public Member Functions inherited from etl::vector_base | |
| 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 Types | |
| typedef parameter_type< T >::type | parameter_t |
Protected Member Functions | |
| ivector (T *p_buffer, size_t MAX_SIZE) | |
| Constructor. | |
Protected Member Functions inherited from etl::vector_base | |
| vector_base (size_t max_size) | |
| Constructor. | |
Additional Inherited Members | |
Protected Attributes inherited from etl::vector_base | |
| 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 specifically sized vectors. Can be used as a reference type for all vectors containing a specific type.
|
inline |
Assigns values to the vector. If ETL_THROW_EXCEPTIONS is defined, throws vector_full if the vector does not have enough free space. If ETL_THROW_EXCEPTIONS is defined, throws vector_iterator if the iterators are reversed.
| first | The iterator to the first element. |
| last | The iterator to the last element + 1. |
|
inline |
Assigns values to the vector. If ETL_THROW_EXCEPTIONS is defined, throws 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. |
|
inline |
Returns a reference to the value at index 'i' If ETL_THROW_EXCEPTIONS is defined, throws a std::range_error if the index is out of range.
| i | The index. |
|
inline |
Returns a const reference to the value at index 'i' If ETL_THROW_EXCEPTIONS is defined, throws a std::range_error if the index is out of range.
| i | The index. |
|
inline |
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 |
Clears the vector. Does not call the destructor for any elements.
|
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.
|
inline |
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 an element.
| iElement | Iterator to the element. |
|
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 |
Returns a reference to the first element.
|
inline |
Returns a const reference to the first element.
|
inline |
Inserts a value to the vector. If ETL_THROW_EXCEPTIONS is defined, throws vector_full if the vector is already full.
| position | The position to insert at. |
| value | The value to insert. |
|
inline |
Inserts 'n' values to the vector. If ETL_THROW_EXCEPTIONS is defined, throws vector_full if the vector does not have enough free space.
| position | The position to insert at. |
| n | The number of elements to add. |
| value | The value to insert. |
|
inline |
Inserts a range of values to the vector. If ETL_THROW_EXCEPTIONS is defined, throws vector_full if the vector does not have enough free space.
| position | The position to insert at. |
| first | The first element to add. |
| last | The last + 1 element to add. |
|
inline |
Assignment operator. The source vector can be larger than the destination, but only the elements that will fit in the destination will be copied.
| other | The other vector. |
|
inline |
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. |
|
inline |
Inserts a value at the end of the vector. If ETL_THROW_EXCEPTIONS is defined, throws 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.
|
inline |
Resizes the vector. If ETL_THROW_EXCEPTIONS is defined and the new size is larger than the maximum then a vector_full is thrown.
| newSize | The new size. |
| value | The value to fill new elements with. Default = default contructed value. |