Stefan Scholz / ETL
Embed: (wiki syntax)

« Back to documentation index

array_wrapper< T, SIZE_, ARRAY_ > Class Template Reference

array_wrapper< T, SIZE_, ARRAY_ > Class Template Reference

Array wrapper. More...

#include <array_wrapper.h>

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_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.

Detailed Description

template<typename T, std::size_t SIZE_, T(&) ARRAY_>
class etl::array_wrapper< T, SIZE_, ARRAY_ >

Array wrapper.

Definition at line 84 of file array_wrapper.h.


Member Function Documentation

reference at ( size_t  i )

Returns a reference to the indexed value.

Definition at line 293 of file array_wrapper.h.

const_reference at ( size_t  i ) const

Returns a const reference to the indexed value.

Definition at line 302 of file array_wrapper.h.

reference back (  )

Returns a reference to the last element.

Definition at line 133 of file array_wrapper.h.

ETL_CONSTEXPR const_reference back (  ) const

Returns a const reference to the last element.

Definition at line 141 of file array_wrapper.h.

ETL_CONSTEXPR const_iterator begin (  ) const

Returns a const iterator to the beginning of the array.

Definition at line 173 of file array_wrapper.h.

iterator begin (  )

Returns an iterator to the beginning of the array.

Definition at line 165 of file array_wrapper.h.

ETL_CONSTEXPR const_iterator cbegin (  ) const

Returns a const iterator to the beginning of the array.

Definition at line 181 of file array_wrapper.h.

ETL_CONSTEXPR const_reverse_iterator crbegin (  ) const

Returns a const reverse iterator to the reverse beginning of the array.

Definition at line 229 of file array_wrapper.h.

ETL_CONSTEXPR const_reverse_iterator crend (  ) const

Returns a const reverse iterator to the end of the array.

Definition at line 253 of file array_wrapper.h.

pointer data (  )

Returns a pointer to the first element of the internal storage.

Definition at line 149 of file array_wrapper.h.

ETL_CONSTEXPR const_pointer data (  ) const

Returns a const pointer to the first element of the internal storage.

Definition at line 157 of file array_wrapper.h.

iterator end (  )

Returns an iterator to the end of the array.

Definition at line 189 of file array_wrapper.h.

ETL_CONSTEXPR const_iterator end (  ) const

Returns a const iterator to the end of the array.

Definition at line 197 of file array_wrapper.h.

void fill ( parameter_t  value )

Fills the array.

Definition at line 311 of file array_wrapper.h.

ETL_CONSTEXPR const_reference front (  ) const

Returns a const reference to the first element.

Definition at line 125 of file array_wrapper.h.

reference front (  )

Returns a reference to the first element.

Definition at line 117 of file array_wrapper.h.

ETL_CONSTEXPR size_t max_size (  ) const

Returns the maximum possible size of the array.

Definition at line 269 of file array_wrapper.h.

reference operator[] ( size_t  i )

Returns a reference to the indexed value.

Definition at line 277 of file array_wrapper.h.

ETL_CONSTEXPR const_reference operator[] ( size_t  i ) const

Returns a const reference to the indexed value.

Definition at line 285 of file array_wrapper.h.

ETL_CONSTEXPR const_reverse_iterator rbegin (  ) const

Returns a const reverse iterator to the reverse beginning of the array.

Definition at line 221 of file array_wrapper.h.

ETL_CONSTEXPR const_reverse_iterator rend (  ) const

Returns a const reverse iterator to the end of the array.

Definition at line 245 of file array_wrapper.h.

reverse_iterator rend (  )

Returns a reverse iterator to the end of the array.

Definition at line 237 of file array_wrapper.h.

ETL_CONSTEXPR size_t size (  ) const

Returns the size of the array.

Definition at line 261 of file array_wrapper.h.

etl::enable_if<etl::is_same<T, U>::value, void>::type swap ( etl::array_wrapper< U, SIZE_, ARRAYOTHER > &  other )

Swaps the contents of arrays.

Definition at line 321 of file array_wrapper.h.