#include <iDynTree/Span.h>
template<class Span, bool IsConst>
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
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