template<class Span, bool IsConst>
iDynTree::details::span_iterator class

Public types

using iterator_category = std::random_access_iterator_tag
using value_type = std::remove_cv_t<element_type_>
using difference_type = typename Span::index_type
using reference = std::conditional_t<IsConst, const element_type_, element_type_>&
using pointer = std::add_pointer_t<reference>

Constructors, destructors, conversion operators

span_iterator() defaulted

Public functions

auto span_iterator(const Span* span, typename Span::index_type idx) -> IDYNTREE_CONSTEXPR noexcept
template<bool B, std::enable_if_t<!B && IsConst>* = nullptr>
auto span_iterator(const span_iterator<Span, B>& other) -> IDYNTREE_CONSTEXPR noexcept
auto operator*() const -> IDYNTREE_CONSTEXPR reference
auto operator->() const -> IDYNTREE_CONSTEXPR pointer
auto operator++() -> IDYNTREE_CONSTEXPR span_iterator&
auto operator++(int) -> IDYNTREE_CONSTEXPR span_iterator
auto operator--() -> IDYNTREE_CONSTEXPR span_iterator&
auto operator--(int) -> IDYNTREE_CONSTEXPR span_iterator
auto operator+(difference_type n) const -> IDYNTREE_CONSTEXPR span_iterator
auto operator+=(difference_type n) -> IDYNTREE_CONSTEXPR span_iterator&
auto operator-(difference_type n) const -> IDYNTREE_CONSTEXPR span_iterator
auto operator-=(difference_type n) -> IDYNTREE_CONSTEXPR span_iterator&
auto operator-(span_iterator rhs) const -> IDYNTREE_CONSTEXPR difference_type
auto operator[](difference_type n) const -> IDYNTREE_CONSTEXPR reference

Public variables

friend span_iterator< Span, true >

Protected variables

const Span* span_
std::ptrdiff_t index_

Friends

auto operator==(span_iterator lhs, span_iterator rhs) -> IDYNTREE_CONSTEXPR friend bool noexcept
auto operator!=(span_iterator lhs, span_iterator rhs) -> IDYNTREE_CONSTEXPR friend bool noexcept
auto operator<(span_iterator lhs, span_iterator rhs) -> IDYNTREE_CONSTEXPR friend bool noexcept
auto operator<=(span_iterator lhs, span_iterator rhs) -> IDYNTREE_CONSTEXPR friend bool noexcept
auto operator>(span_iterator lhs, span_iterator rhs) -> IDYNTREE_CONSTEXPR friend bool noexcept
auto operator>=(span_iterator lhs, span_iterator rhs) -> IDYNTREE_CONSTEXPR friend bool noexcept