remora::iterators::indexed_iterator< Closure > Class Template Reference

#include <shark/LinAlg/BLAS/cpu/iterator.hpp>

+ Inheritance diagram for remora::iterators::indexed_iterator< Closure >:

Public Types

typedef std::conditional< std::is_const< Closure >::value, typename Closure::const_reference, typename Closure::reference >::type reference
 

Public Member Functions

 indexed_iterator ()
 
 indexed_iterator (Closure container, size_type index)
 
template<class C >
 indexed_iterator (indexed_iterator< C > const &iterator)
 
indexed_iteratoroperator++ ()
 
indexed_iteratoroperator-- ()
 
indexed_iteratoroperator+= (difference_type n)
 
indexed_iteratoroperator-= (difference_type n)
 
template<class T >
difference_type operator- (indexed_iterator< T > const &it) const
 
reference operator* () const
 
reference operator[] (difference_type n) const
 
size_type index () const
 
template<class T >
indexed_iteratoroperator= (indexed_iterator< T > const &it)
 
template<class T >
bool operator== (indexed_iterator< T > const &it) const
 
template<class T >
bool operator< (indexed_iterator< T > const &it) const
 

Friends

template<class >
class indexed_iterator
 

Detailed Description

template<class Closure>
class remora::iterators::indexed_iterator< Closure >

Definition at line 219 of file iterator.hpp.

Member Typedef Documentation

◆ reference

template<class Closure>
typedef std::conditional< std::is_const<Closure>::value, typename Closure::const_reference, typename Closure::reference >::type remora::iterators::indexed_iterator< Closure >::reference

Definition at line 233 of file iterator.hpp.

Constructor & Destructor Documentation

◆ indexed_iterator() [1/3]

template<class Closure>
remora::iterators::indexed_iterator< Closure >::indexed_iterator ( )
inline

Definition at line 236 of file iterator.hpp.

◆ indexed_iterator() [2/3]

template<class Closure>
remora::iterators::indexed_iterator< Closure >::indexed_iterator ( Closure  container,
size_type  index 
)
inline

Definition at line 237 of file iterator.hpp.

◆ indexed_iterator() [3/3]

template<class Closure>
template<class C >
remora::iterators::indexed_iterator< Closure >::indexed_iterator ( indexed_iterator< C > const &  iterator)
inline

Definition at line 241 of file iterator.hpp.

Member Function Documentation

◆ index()

template<class Closure>
size_type remora::iterators::indexed_iterator< Closure >::index ( ) const
inline

Definition at line 277 of file iterator.hpp.

◆ operator*()

template<class Closure>
reference remora::iterators::indexed_iterator< Closure >::operator* ( ) const
inline

Definition at line 267 of file iterator.hpp.

◆ operator++()

template<class Closure>
indexed_iterator& remora::iterators::indexed_iterator< Closure >::operator++ ( )
inline

Definition at line 245 of file iterator.hpp.

◆ operator+=()

template<class Closure>
indexed_iterator& remora::iterators::indexed_iterator< Closure >::operator+= ( difference_type  n)
inline

Definition at line 253 of file iterator.hpp.

◆ operator-()

template<class Closure>
template<class T >
difference_type remora::iterators::indexed_iterator< Closure >::operator- ( indexed_iterator< T > const &  it) const
inline

Definition at line 262 of file iterator.hpp.

◆ operator--()

template<class Closure>
indexed_iterator& remora::iterators::indexed_iterator< Closure >::operator-- ( )
inline

Definition at line 249 of file iterator.hpp.

◆ operator-=()

template<class Closure>
indexed_iterator& remora::iterators::indexed_iterator< Closure >::operator-= ( difference_type  n)
inline

Definition at line 257 of file iterator.hpp.

◆ operator<()

template<class Closure>
template<class T >
bool remora::iterators::indexed_iterator< Closure >::operator< ( indexed_iterator< T > const &  it) const
inline

Definition at line 295 of file iterator.hpp.

◆ operator=()

template<class Closure>
template<class T >
indexed_iterator& remora::iterators::indexed_iterator< Closure >::operator= ( indexed_iterator< T > const &  it)
inline

Definition at line 283 of file iterator.hpp.

◆ operator==()

template<class Closure>
template<class T >
bool remora::iterators::indexed_iterator< Closure >::operator== ( indexed_iterator< T > const &  it) const
inline

Definition at line 291 of file iterator.hpp.

◆ operator[]()

template<class Closure>
reference remora::iterators::indexed_iterator< Closure >::operator[] ( difference_type  n) const
inline

Definition at line 271 of file iterator.hpp.

Friends And Related Function Documentation

◆ indexed_iterator

template<class Closure>
template<class >
friend class indexed_iterator
friend

Definition at line 302 of file iterator.hpp.


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