|
distortos
v0.7.0
object-oriented C++ RTOS for microcontrollers
|
ContiguousRange template class is a pair of iterators to contiguous sequence of elements in memory. More...
#include "estd/ContiguousRange.hpp"
Public Types | |
| using | value_type = T |
| value_type type More... | |
| using | pointer = value_type * |
| pointer type More... | |
| using | const_pointer = const value_type * |
| const_pointer type More... | |
| using | reference = value_type & |
| reference type More... | |
| using | const_reference = const value_type & |
| const_reference type More... | |
| using | iterator = value_type * |
| iterator type More... | |
| using | const_iterator = const value_type * |
| const_iterator type More... | |
| using | size_type = std::size_t |
| size_type type More... | |
| using | difference_type = std::ptrdiff_t |
| difference_type type More... | |
| using | reverse_iterator = std::reverse_iterator< iterator > |
| reverse_iterator type More... | |
| using | const_reverse_iterator = std::reverse_iterator< const_iterator > |
| const_reverse_iterator type More... | |
Public Member Functions | |
| constexpr | ContiguousRange (const iterator beginn, const iterator endd) noexcept |
| ContiguousRange's constructor. More... | |
| constexpr | ContiguousRange () noexcept |
| Empty ContiguousRange's constructor. More... | |
| constexpr | ContiguousRange (const iterator beginn, size_t sizee) noexcept |
| ContiguousRange's constructor using iterator and size. More... | |
| template<size_t N> | |
| constexpr | ContiguousRange (T(&array)[N]) noexcept |
| ContiguousRange's constructor using C-style array. More... | |
| template<size_t N> | |
| constexpr | ContiguousRange (std::array< T, N > &array) noexcept |
| ContiguousRange's constructor using std::array. More... | |
| template<size_t N> | |
| constexpr | ContiguousRange (const std::array< typename std::remove_const< T >::type, N > &array) noexcept |
| ContiguousRange's constructor using const std::array. More... | |
| template<size_t N, typename TT = T, typename = typename std::enable_if<std::is_const<TT>::value == true>::type> | |
| constexpr | ContiguousRange (const std::array< T, N > &array) noexcept |
| ContiguousRange's constructor using const std::array with const type. More... | |
| constexpr | ContiguousRange (T &value) noexcept |
| ContiguousRange's constructor using single value. More... | |
| template<typename TT = T, typename = typename std::enable_if<std::is_const<TT>::value == true>::type> | |
| constexpr | ContiguousRange (const ContiguousRange< typename std::remove_const< TT >::type > &other) noexcept |
| ContiguousRange's converting constructor. More... | |
| reference | operator[] (const size_type i) const noexcept |
| ContiguousRange's subscript operator. More... | |
| constexpr iterator | begin () const noexcept |
| constexpr const_iterator | cbegin () const noexcept |
| constexpr const_iterator | cend () const noexcept |
| constexpr const_reverse_iterator | crbegin () const noexcept |
| constexpr const_reverse_iterator | crend () const noexcept |
| constexpr iterator | end () const noexcept |
| constexpr reverse_iterator | rbegin () const noexcept |
| constexpr reverse_iterator | rend () const noexcept |
| constexpr size_type | size () const noexcept |
Private Attributes | |
| iterator | begin_ |
| iterator to first element in the range More... | |
| iterator | end_ |
| iterator to "one past the last" element in the range More... | |
ContiguousRange template class is a pair of iterators to contiguous sequence of elements in memory.
| T | is the type of data in the range |
| using estd::ContiguousRange< T >::const_iterator = const value_type* |
const_iterator type
| using estd::ContiguousRange< T >::const_pointer = const value_type* |
const_pointer type
| using estd::ContiguousRange< T >::const_reference = const value_type& |
const_reference type
| using estd::ContiguousRange< T >::const_reverse_iterator = std::reverse_iterator<const_iterator> |
const_reverse_iterator type
| using estd::ContiguousRange< T >::difference_type = std::ptrdiff_t |
difference_type type
| using estd::ContiguousRange< T >::iterator = value_type* |
iterator type
| using estd::ContiguousRange< T >::pointer = value_type* |
pointer type
| using estd::ContiguousRange< T >::reference = value_type& |
reference type
| using estd::ContiguousRange< T >::reverse_iterator = std::reverse_iterator<iterator> |
reverse_iterator type
| using estd::ContiguousRange< T >::size_type = std::size_t |
size_type type
| using estd::ContiguousRange< T >::value_type = T |
value_type type
|
inlinenoexcept |
ContiguousRange's constructor.
| [in] | beginn | is an iterator to first element in the range |
| [in] | endd | is an iterator to "one past the last" element in the range |
|
inlinenoexcept |
Empty ContiguousRange's constructor.
|
inlinenoexcept |
ContiguousRange's constructor using iterator and size.
| [in] | beginn | is an iterator to first element in the range |
| [in] | sizee | is the number of elements in the range |
|
inlineexplicitnoexcept |
ContiguousRange's constructor using C-style array.
| N | is the number of elements in the array |
| [in] | array | is the array used to initialize the range |
|
inlineexplicitnoexcept |
ContiguousRange's constructor using std::array.
| N | is the number of elements in the array |
| [in] | array | is the array used to initialize the range |
|
inlineexplicitnoexcept |
ContiguousRange's constructor using const std::array.
| N | is the number of elements in the array |
| [in] | array | is the const array used to initialize the range |
|
inlineexplicitnoexcept |
ContiguousRange's constructor using const std::array with const type.
This constructor is enabled only if T is const.
| N | is the number of elements in the array |
| [in] | array | is the array used to initialize the range |
|
inlineexplicitnoexcept |
ContiguousRange's constructor using single value.
| [in] | value | is a reference to variable used to initialize the range |
|
inlineexplicitnoexcept |
ContiguousRange's converting constructor.
This constructor is enabled only if T is const. It can be used to convert non-const range to const range.
| [in] | other | is a reference to source of conversion |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
ContiguousRange's subscript operator.
| [in] | i | is the index of element that will be accessed |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
private |
iterator to first element in the range
|
private |
iterator to "one past the last" element in the range