Embedded Template Library 1.0
|
Array wrapper. More...
#include <array_wrapper.h>
Public Types | |
enum | { SIZE = SIZE_ , MAX_SIZE = SIZE_ , FRONT = 0 , BACK = SIZE - 1 , BEGIN = 0 , END = SIZE , RBEGIN = SIZE - 1 , REND = -1 } |
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 T * | iterator |
typedef const T * | const_iterator |
typedef ETL_OR_STD::reverse_iterator< iterator > | reverse_iterator |
typedef ETL_OR_STD::reverse_iterator< const_iterator > | const_reverse_iterator |
typedef etl::parameter_type< T >::type | parameter_t |
Public Member Functions | |
reference | front () |
Returns a reference to the first element. | |
ETL_CONSTEXPR const_reference | front () const |
Returns a const reference to the first element. | |
reference | back () |
Returns a reference to the last element. | |
ETL_CONSTEXPR const_reference | back () const |
Returns a const reference to the last element. | |
pointer | data () |
Returns a pointer to the first element of the internal storage. | |
ETL_CONSTEXPR const_pointer | data () const |
Returns a const pointer to the first element of the internal storage. | |
iterator | begin () |
Returns an iterator to the beginning of the array. | |
ETL_CONSTEXPR const_iterator | begin () const |
Returns a const iterator to the beginning of the array. | |
ETL_CONSTEXPR const_iterator | cbegin () const |
Returns a const iterator to the beginning of the array. | |
iterator | end () |
Returns an iterator to the end of the array. | |
ETL_CONSTEXPR const_iterator | end () const |
Returns a const iterator to the end of the array. | |
ETL_CONSTEXPR const_iterator | cend () const |
reverse_iterator | rbegin () |
ETL_CONSTEXPR const_reverse_iterator | rbegin () const |
Returns a const reverse iterator to the reverse beginning of the array. | |
ETL_CONSTEXPR const_reverse_iterator | crbegin () const |
Returns a const reverse iterator to the reverse beginning of the array. | |
reverse_iterator | rend () |
Returns a reverse iterator to the end of the array. | |
ETL_CONSTEXPR const_reverse_iterator | rend () const |
Returns a const reverse iterator to the end of the array. | |
ETL_CONSTEXPR const_reverse_iterator | crend () const |
Returns a const reverse iterator to the end of the array. | |
ETL_CONSTEXPR size_t | size () const |
Returns the size of the array. | |
ETL_CONSTEXPR size_t | max_size () const |
Returns the maximum possible size of the array. | |
reference | operator[] (size_t i) |
Returns a reference to the indexed value. | |
ETL_CONSTEXPR const_reference | operator[] (size_t i) const |
Returns a const reference to the indexed value. | |
reference | at (size_t i) |
Returns a reference to the indexed value. | |
const_reference | at (size_t i) const |
Returns a const reference to the indexed value. | |
void | fill (parameter_t value) |
Fills the array. | |
template<typename U , U(&) ARRAYOTHER> | |
etl::enable_if< etl::is_same< T, U >::value, void >::type | swap (etl::array_wrapper< U, SIZE_, ARRAYOTHER > &other) |
Swaps the contents of arrays. | |
Array wrapper.