SPH
Public Member Functions | List of all members
IteratorWithIndex< TIterator > Class Template Reference

Wrapper of iterator keeping also an index of current element. More...

#include <IteratorAdapters.h>

Public Member Functions

 IteratorWithIndex (const TIterator iterator, const Size index)
 
ElementWithIndex< TValue > operator* ()
 
ElementWithIndex< const TValue > operator* () const
 
IteratorWithIndexoperator++ ()
 
bool operator!= (const IteratorWithIndex &other) const
 

Detailed Description

template<typename TIterator>
class IteratorWithIndex< TIterator >

Wrapper of iterator keeping also an index of current element.

Definition at line 400 of file IteratorAdapters.h.

Constructor & Destructor Documentation

◆ IteratorWithIndex()

template<typename TIterator >
IteratorWithIndex< TIterator >::IteratorWithIndex ( const TIterator  iterator,
const Size  index 
)
inline

Definition at line 408 of file IteratorAdapters.h.

Member Function Documentation

◆ operator!=()

template<typename TIterator >
bool IteratorWithIndex< TIterator >::operator!= ( const IteratorWithIndex< TIterator > &  other) const
inline

Definition at line 426 of file IteratorAdapters.h.

◆ operator*() [1/2]

template<typename TIterator >
ElementWithIndex<TValue> IteratorWithIndex< TIterator >::operator* ( )
inline

Definition at line 412 of file IteratorAdapters.h.

◆ operator*() [2/2]

template<typename TIterator >
ElementWithIndex<const TValue> IteratorWithIndex< TIterator >::operator* ( ) const
inline

Definition at line 416 of file IteratorAdapters.h.

◆ operator++()

template<typename TIterator >
IteratorWithIndex& IteratorWithIndex< TIterator >::operator++ ( )
inline

Definition at line 420 of file IteratorAdapters.h.


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