Alexandria 2.31.2
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
Euclid::GridContainer::GridCellManagerVectorOfVectors< T >::StrideIterator Struct Reference

#include <GridCellManagerVectorOfVectors.h>

Collaboration diagram for Euclid::GridContainer::GridCellManagerVectorOfVectors< T >::StrideIterator:

Public Member Functions

 StrideIterator (typename std::vector< T >::iterator start, int stride)
 
bool operator!= (const StrideIterator &other) const
 
bool operator> (const StrideIterator &other) const
 
StrideIteratoroperator++ ()
 
StrideIteratoroperator+= (int diff)
 
ptrdiff_t operator- (const StrideIterator &other) const
 
VectorValueProxy< T > operator* ()
 
VectorValueProxy< T > operator-> ()
 

Private Attributes

std::vector< T >::iterator m_i
 
int m_stride
 

Detailed Description

template<typename T>
struct Euclid::GridContainer::GridCellManagerVectorOfVectors< T >::StrideIterator

Iterator that strides over the underlying vector, so +1 actually steps n positions

Definition at line 43 of file GridCellManagerVectorOfVectors.h.

Constructor & Destructor Documentation

◆ StrideIterator()

template<typename T>
Euclid::GridContainer::GridCellManagerVectorOfVectors< T >::StrideIterator::StrideIterator ( typename std::vector< T >::iterator start,
int stride )
inline

Definition at line 44 of file GridCellManagerVectorOfVectors.h.

References m_i, and m_stride.

Referenced by operator!=(), operator++(), operator+=(), operator-(), and operator>().

Member Function Documentation

◆ operator!=()

template<typename T>
bool Euclid::GridContainer::GridCellManagerVectorOfVectors< T >::StrideIterator::operator!= ( const StrideIterator & other) const
inline

Definition at line 46 of file GridCellManagerVectorOfVectors.h.

References m_i, and StrideIterator().

Here is the call graph for this function:

◆ operator*()

template<typename T>
VectorValueProxy< T > Euclid::GridContainer::GridCellManagerVectorOfVectors< T >::StrideIterator::operator* ( )
inline

Definition at line 68 of file GridCellManagerVectorOfVectors.h.

References m_i, and m_stride.

◆ operator++()

template<typename T>
StrideIterator & Euclid::GridContainer::GridCellManagerVectorOfVectors< T >::StrideIterator::operator++ ( )
inline

Definition at line 54 of file GridCellManagerVectorOfVectors.h.

References m_i, m_stride, and StrideIterator().

Here is the call graph for this function:

◆ operator+=()

template<typename T>
StrideIterator & Euclid::GridContainer::GridCellManagerVectorOfVectors< T >::StrideIterator::operator+= ( int diff)
inline

Definition at line 59 of file GridCellManagerVectorOfVectors.h.

References m_i, and StrideIterator().

Here is the call graph for this function:

◆ operator-()

template<typename T>
ptrdiff_t Euclid::GridContainer::GridCellManagerVectorOfVectors< T >::StrideIterator::operator- ( const StrideIterator & other) const
inline

Definition at line 64 of file GridCellManagerVectorOfVectors.h.

References m_i, m_stride, and StrideIterator().

Here is the call graph for this function:

◆ operator->()

template<typename T>
VectorValueProxy< T > Euclid::GridContainer::GridCellManagerVectorOfVectors< T >::StrideIterator::operator-> ( )
inline

Definition at line 72 of file GridCellManagerVectorOfVectors.h.

References m_i, and m_stride.

◆ operator>()

template<typename T>
bool Euclid::GridContainer::GridCellManagerVectorOfVectors< T >::StrideIterator::operator> ( const StrideIterator & other) const
inline

Definition at line 50 of file GridCellManagerVectorOfVectors.h.

References m_i, and StrideIterator().

Here is the call graph for this function:

Member Data Documentation

◆ m_i

template<typename T>
std::vector<T>::iterator Euclid::GridContainer::GridCellManagerVectorOfVectors< T >::StrideIterator::m_i
private

◆ m_stride

template<typename T>
int Euclid::GridContainer::GridCellManagerVectorOfVectors< T >::StrideIterator::m_stride
private

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