MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
mtl::strided_vector_ref< Value >::strided_iterator< Ptr > Class Template Reference

#include <strided_vector_ref.hpp>

Public Types

using iterator_category = std::random_access_iterator_tag
using value_type = std::remove_cv_t<Value>
using difference_type = std::ptrdiff_t
using pointer = Ptr
using reference = decltype(*std::declval<Ptr>())

Public Member Functions

 strided_iterator ()
 strided_iterator (Ptr base, difference_type idx, difference_type stride)
reference operator* () const
pointer operator-> () const
reference operator[] (difference_type n) const
strided_iterator & operator++ ()
strided_iterator operator++ (int)
strided_iterator & operator-- ()
strided_iterator operator-- (int)
strided_iterator & operator+= (difference_type n)
strided_iterator & operator-= (difference_type n)

Friends

strided_iterator operator+ (strided_iterator it, difference_type n)
strided_iterator operator+ (difference_type n, strided_iterator it)
strided_iterator operator- (strided_iterator it, difference_type n)
difference_type operator- (const strided_iterator &a, const strided_iterator &b)
bool operator== (const strided_iterator &a, const strided_iterator &b)
bool operator!= (const strided_iterator &a, const strided_iterator &b)
bool operator< (const strided_iterator &a, const strided_iterator &b)
bool operator<= (const strided_iterator &a, const strided_iterator &b)
bool operator> (const strided_iterator &a, const strided_iterator &b)
bool operator>= (const strided_iterator &a, const strided_iterator &b)

Member Typedef Documentation

◆ difference_type

template<typename Value>
template<typename Ptr>
using mtl::vec::strided_vector_ref< Value >::strided_iterator< Ptr >::difference_type = std::ptrdiff_t

◆ iterator_category

template<typename Value>
template<typename Ptr>
using mtl::vec::strided_vector_ref< Value >::strided_iterator< Ptr >::iterator_category = std::random_access_iterator_tag

◆ pointer

template<typename Value>
template<typename Ptr>
using mtl::vec::strided_vector_ref< Value >::strided_iterator< Ptr >::pointer = Ptr

◆ reference

template<typename Value>
template<typename Ptr>
using mtl::vec::strided_vector_ref< Value >::strided_iterator< Ptr >::reference = decltype(*std::declval<Ptr>())

◆ value_type

template<typename Value>
template<typename Ptr>
using mtl::vec::strided_vector_ref< Value >::strided_iterator< Ptr >::value_type = std::remove_cv_t<Value>

Constructor & Destructor Documentation

◆ strided_iterator() [1/2]

template<typename Value>
template<typename Ptr>
mtl::vec::strided_vector_ref< Value >::strided_iterator< Ptr >::strided_iterator ( )
inline

◆ strided_iterator() [2/2]

template<typename Value>
template<typename Ptr>
mtl::vec::strided_vector_ref< Value >::strided_iterator< Ptr >::strided_iterator ( Ptr base,
difference_type idx,
difference_type stride )
inline

Member Function Documentation

◆ operator*()

template<typename Value>
template<typename Ptr>
reference mtl::vec::strided_vector_ref< Value >::strided_iterator< Ptr >::operator* ( ) const
inline

◆ operator++() [1/2]

template<typename Value>
template<typename Ptr>
strided_iterator & mtl::vec::strided_vector_ref< Value >::strided_iterator< Ptr >::operator++ ( )
inline

◆ operator++() [2/2]

template<typename Value>
template<typename Ptr>
strided_iterator mtl::vec::strided_vector_ref< Value >::strided_iterator< Ptr >::operator++ ( int )
inline

◆ operator+=()

template<typename Value>
template<typename Ptr>
strided_iterator & mtl::vec::strided_vector_ref< Value >::strided_iterator< Ptr >::operator+= ( difference_type n)
inline

◆ operator--() [1/2]

template<typename Value>
template<typename Ptr>
strided_iterator & mtl::vec::strided_vector_ref< Value >::strided_iterator< Ptr >::operator-- ( )
inline

◆ operator--() [2/2]

template<typename Value>
template<typename Ptr>
strided_iterator mtl::vec::strided_vector_ref< Value >::strided_iterator< Ptr >::operator-- ( int )
inline

◆ operator-=()

template<typename Value>
template<typename Ptr>
strided_iterator & mtl::vec::strided_vector_ref< Value >::strided_iterator< Ptr >::operator-= ( difference_type n)
inline

◆ operator->()

template<typename Value>
template<typename Ptr>
pointer mtl::vec::strided_vector_ref< Value >::strided_iterator< Ptr >::operator-> ( ) const
inline

◆ operator[]()

template<typename Value>
template<typename Ptr>
reference mtl::vec::strided_vector_ref< Value >::strided_iterator< Ptr >::operator[] ( difference_type n) const
inline

◆ operator!=

template<typename Value>
template<typename Ptr>
bool operator!= ( const strided_iterator< Ptr > & a,
const strided_iterator< Ptr > & b )
friend

◆ operator+ [1/2]

template<typename Value>
template<typename Ptr>
strided_iterator operator+ ( difference_type n,
strided_iterator< Ptr > it )
friend

◆ operator+ [2/2]

template<typename Value>
template<typename Ptr>
strided_iterator operator+ ( strided_iterator< Ptr > it,
difference_type n )
friend

◆ operator- [1/2]

template<typename Value>
template<typename Ptr>
difference_type operator- ( const strided_iterator< Ptr > & a,
const strided_iterator< Ptr > & b )
friend

◆ operator- [2/2]

template<typename Value>
template<typename Ptr>
strided_iterator operator- ( strided_iterator< Ptr > it,
difference_type n )
friend

◆ operator<

template<typename Value>
template<typename Ptr>
bool operator< ( const strided_iterator< Ptr > & a,
const strided_iterator< Ptr > & b )
friend

◆ operator<=

template<typename Value>
template<typename Ptr>
bool operator<= ( const strided_iterator< Ptr > & a,
const strided_iterator< Ptr > & b )
friend

◆ operator==

template<typename Value>
template<typename Ptr>
bool operator== ( const strided_iterator< Ptr > & a,
const strided_iterator< Ptr > & b )
friend

◆ operator>

template<typename Value>
template<typename Ptr>
bool operator> ( const strided_iterator< Ptr > & a,
const strided_iterator< Ptr > & b )
friend

◆ operator>=

template<typename Value>
template<typename Ptr>
bool operator>= ( const strided_iterator< Ptr > & a,
const strided_iterator< Ptr > & b )
friend

The documentation for this class was generated from the following file: