matio-cpp
v0.2.5
A C++ wrapper of the matio library, with memory ownership handling, to read and write .mat files.
|
#include <matioCpp/Span.h>
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 > |
Public Member Functions | |
span_iterator ()=default | |
MATIOCPP_CONSTEXPR | span_iterator (const Span *span, typename Span::index_type idx) noexcept |
template<bool B, std::enable_if_t<!B &&IsConst > * = nullptr> | |
MATIOCPP_CONSTEXPR | span_iterator (const span_iterator< Span, B > &other) noexcept |
MATIOCPP_CONSTEXPR reference | operator* () const |
MATIOCPP_CONSTEXPR pointer | operator-> () const |
MATIOCPP_CONSTEXPR span_iterator & | operator++ () |
MATIOCPP_CONSTEXPR span_iterator | operator++ (int) |
MATIOCPP_CONSTEXPR span_iterator & | operator-- () |
MATIOCPP_CONSTEXPR span_iterator | operator-- (int) |
MATIOCPP_CONSTEXPR span_iterator | operator+ (difference_type n) const |
MATIOCPP_CONSTEXPR span_iterator & | operator+= (difference_type n) |
MATIOCPP_CONSTEXPR span_iterator | operator- (difference_type n) const |
MATIOCPP_CONSTEXPR span_iterator & | operator-= (difference_type n) |
MATIOCPP_CONSTEXPR difference_type | operator- (span_iterator rhs) const |
MATIOCPP_CONSTEXPR reference | operator[] (difference_type n) const |
Data Fields | |
friend | span_iterator< Span, true > |
Protected Attributes | |
const Span * | span_ = nullptr |
std::ptrdiff_t | index_ = 0 |
Friends | |
MATIOCPP_CONSTEXPR friend bool | operator== (span_iterator lhs, span_iterator rhs) noexcept |
MATIOCPP_CONSTEXPR friend bool | operator!= (span_iterator lhs, span_iterator rhs) noexcept |
MATIOCPP_CONSTEXPR friend bool | operator< (span_iterator lhs, span_iterator rhs) noexcept |
MATIOCPP_CONSTEXPR friend bool | operator<= (span_iterator lhs, span_iterator rhs) noexcept |
MATIOCPP_CONSTEXPR friend bool | operator> (span_iterator lhs, span_iterator rhs) noexcept |
MATIOCPP_CONSTEXPR friend bool | operator>= (span_iterator lhs, span_iterator rhs) noexcept |
using matioCpp::details::span_iterator< Span, IsConst >::difference_type = typename Span::index_type |
using matioCpp::details::span_iterator< Span, IsConst >::iterator_category = std::random_access_iterator_tag |
using matioCpp::details::span_iterator< Span, IsConst >::pointer = std::add_pointer_t<reference> |
using matioCpp::details::span_iterator< Span, IsConst >::reference = std::conditional_t<IsConst, const element_type_, element_type_>& |
using matioCpp::details::span_iterator< Span, IsConst >::value_type = std::remove_cv_t<element_type_> |
|
default |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
Definition at line 214 of file Span.h.
References matioCpp::details::span_iterator< Span, IsConst >::index_, matioCpp::Span< ElementType, Extent >::size(), and matioCpp::details::span_iterator< Span, IsConst >::span_.
|
inline |
|
inline |
Definition at line 248 of file Span.h.
References matioCpp::details::span_iterator< Span, IsConst >::index_, matioCpp::Span< ElementType, Extent >::size(), and matioCpp::details::span_iterator< Span, IsConst >::span_.
|
inline |
|
inline |
Definition at line 263 of file Span.h.
References matioCpp::details::span_iterator< Span, IsConst >::index_, and matioCpp::details::span_iterator< Span, IsConst >::span_.
|
inline |
Definition at line 228 of file Span.h.
References matioCpp::details::span_iterator< Span, IsConst >::index_.
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
protected |
Definition at line 312 of file Span.h.
Referenced by matioCpp::details::span_iterator< Span, IsConst >::operator*(), matioCpp::details::span_iterator< Span, IsConst >::operator++(), matioCpp::details::span_iterator< Span, IsConst >::operator+=(), matioCpp::details::span_iterator< Span, IsConst >::operator-(), matioCpp::details::span_iterator< Span, IsConst >::operator--(), and matioCpp::details::span_iterator< Span, IsConst >::operator->().
|
protected |
Definition at line 311 of file Span.h.
Referenced by matioCpp::details::span_iterator< Span, IsConst >::operator*(), matioCpp::details::span_iterator< Span, IsConst >::operator++(), matioCpp::details::span_iterator< Span, IsConst >::operator+=(), matioCpp::details::span_iterator< Span, IsConst >::operator-(), and matioCpp::details::span_iterator< Span, IsConst >::operator->().
friend matioCpp::details::span_iterator< Span, IsConst >::span_iterator< Span, true > |