|
Embedded Template Library
1.0
|
#include <ideque.h>
Classes | |
| struct | const_iterator |
| Const Iterator. More... | |
| struct | is_iterator |
| Test for an iterator. More... | |
| struct | iterator |
| Iterator. More... | |
Public Types | |
| typedef T | value_type |
| typedef size_t | size_type |
| typedef T & | reference |
| typedef const T & | const_reference |
| typedef T * | pointer |
| typedef const T * | const_pointer |
|
typedef std::iterator_traits < pointer >::difference_type | difference_type |
|
typedef std::reverse_iterator < iterator > | reverse_iterator |
|
typedef std::reverse_iterator < const_iterator > | const_reverse_iterator |
Public Types inherited from etl::deque_base | |
| typedef size_t | size_type |
Public Member Functions | |
| ideque & | operator= (const ideque &other) |
| Assignment operator. | |
| template<typename TIterator > | |
| etl::enable_if< is_iterator < TIterator >::value, void > ::type | assign (TIterator range_begin, TIterator range_end) |
| Assigns a range to the deque. | |
| void | assign (size_type n, const value_type &value) |
| reference | at (size_t index) |
| const_reference | at (size_t index) const |
| reference | operator[] (size_t index) |
| const_reference | operator[] (size_t index) const |
| reference | front () |
| const_reference | front () const |
| reference | back () |
| const_reference | back () const |
| iterator | begin () |
| Gets an iterator to the beginning of the deque. | |
| const_iterator | begin () const |
| Gets a const iterator to the beginning of the deque. | |
| const_iterator | cbegin () const |
| Gets a const iterator to the beginning of the deque. | |
| iterator | end () |
| Gets an iterator to the end of the deque. | |
| const_iterator | end () const |
| Gets a const iterator to the end of the deque. | |
| const_iterator | cend () const |
| Gets a const iterator to the end of the deque. | |
| reverse_iterator | rbegin () |
| Gets a reverse iterator to the end of the deque. | |
| const_reverse_iterator | rbegin () const |
| Gets a const reverse iterator to the end of the deque. | |
| const_reverse_iterator | crbegin () const |
| Gets a const reverse iterator to the end of the deque. | |
| reverse_iterator | rend () |
| Gets a reverse iterator to the beginning of the deque. | |
| const_reverse_iterator | rend () const |
| Gets a const reverse iterator to the beginning of the deque. | |
| const_reverse_iterator | crend () const |
| Gets a const reverse iterator to the beginning of the deque. | |
| void | clear () |
| Clears the deque. | |
| iterator | insert (const_iterator insert_position, const value_type &value) |
| iterator | insert (const_iterator insert_position, size_type n, const value_type &value) |
| template<typename TIterator > | |
| enable_if< is_iterator < TIterator >::value, iterator > ::type | insert (const_iterator insert_position, TIterator range_begin, TIterator range_end) |
| iterator | erase (const_iterator erase_position) |
| iterator | erase (const_iterator range_begin, const_iterator range_end) |
| void | push_back (parameter_t item) |
| reference | push_back () |
| void | pop_back () |
| Removes the oldest item from the deque. | |
| void | push_front (parameter_t item) |
| reference | push_front () |
| void | pop_front () |
| Removes the oldest item from the deque. | |
| void | resize (size_t new_size, const value_type &value=value_type()) |
Public Member Functions inherited from etl::deque_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 deque. | |
Protected Types | |
| typedef parameter_type< T >::type | parameter_t |
Protected Member Functions | |
| ideque (pointer p_buffer, size_t max_size, size_t buffer_size) | |
| Constructor. | |
Protected Member Functions inherited from etl::deque_base | |
| deque_base (size_t max_size, size_t buffer_size) | |
| Constructor. | |
Protected Attributes | |
| iterator | first |
| iterator | last |
| Iterator to the first item in the deque. | |
| pointer | p_buffer |
| Iterator to the last item in the deque. | |
Protected Attributes inherited from etl::deque_base | |
| size_type | current_size |
| The current number of elements in the deque. | |
| const size_type | MAX_SIZE |
| The maximum number of elements in the deque. | |
| const size_type | BUFFER_SIZE |
| The of elements in the buffer. | |
Friends | |
| difference_type | operator- (const iterator &lhs, const iterator &rhs) |
| difference_type | operator- (const const_iterator &lhs, const const_iterator &rhs) |
| difference_type | operator- (const reverse_iterator &lhs, const reverse_iterator &rhs) |
| difference_type | operator- (const const_reverse_iterator &lhs, const const_reverse_iterator &rhs) |
The base class for all etl::deque classes.
| T | The type of values this deque should hold. |
|
inline |
Assigns 'n' copies of a value to the deque. If ETL_THROW_EXCEPTIONS is defined, throws an etl::deque_full is 'n' is too large.
| n | The number of copies to assign. |
| value | The value to add.< |
|
inline |
Gets a reference to the item at the index. If ETL_THROW_EXCEPTIONS is defined, throws an etl::deque_out_of_bounds if the index is out of range.
|
inline |
Gets a const reference to the item at the index. If ETL_THROW_EXCEPTIONS is defined, throws an etl::deque_out_of_bounds if the index is out of range.
|
inline |
Gets a reference to the item at the back of the deque.
|
inline |
Gets a const reference to the item at the back of the deque.
|
inline |
erase an item. If ETL_THROW_EXCEPTIONS is defined, throws an etl::deque_out_of_bounds if the position is out of range.
| erase_position | The position to erase. |
|
inline |
erase a range. If ETL_THROW_EXCEPTIONS is defined, throws an etl::deque_out_of_bounds if the iterators are out of range.
| range_begin | The beginning of the range to erase. |
| range_end | The end of the range to erase. |
|
inline |
Gets a reference to the item at the front of the deque.
|
inline |
Gets a const reference to the item at the front of the deque.
|
inline |
Inserts data into the deque. If ETL_THROW_EXCEPTIONS is defined, throws an etl::deque_full if the deque is full.
| insert_position>The | insert position. |
| value>The | value to insert. |
|
inline |
Inserts 'n' copies of a value into the deque. If ETL_THROW_EXCEPTIONS is defined, throws an etl::deque_full if the deque is full.
| insert_position | The insert position. |
| n | The number of values to insert. |
| value | The value to insert. |
|
inline |
Inserts a range into the deque. If ETL_THROW_EXCEPTIONS is defined, throws an etl::deque_empty if the deque is full.
| insert_position>The | insert position. |
| range_begin | The beginning of the range to insert. |
| range_end | The end of the range to insert. |
|
inline |
Gets a reference to the item at the index.
|
inline |
Gets a const reference to the item at the index.
|
inline |
Adds an item to the back of the deque. If ETL_THROW_EXCEPTIONS is defined, throws an etl::deque_full is the deque is already full.
| item | The item to push to the deque. |
|
inline |
Adds one to the front of the deque and returns a reference to the new element. If ETL_THROW_EXCEPTIONS is defined, throws an etl::deque_full is the deque is already full.
|
inline |
Adds an item to the front of the deque. If ETL_THROW_EXCEPTIONS is defined, throws an etl::deque_full is the deque is already full.
| item | The item to push to the deque. |
|
inline |
Adds one to the front of the deque and returns a reference to the new element. If ETL_THROW_EXCEPTIONS is defined, throws an etl::deque_full is the deque is already full.
|
inline |
Resizes the deque. If ETL_THROW_EXCEPTIONS is defined, throws an etl::deque_full is 'new_size' is too large.
| new_size | The new size of the deque. |
| value | The value to assign if the new size is larger. Default = Default constructed value. |
|
friend |
|
friend |
|
friend |
|
friend |