Geophysical Inversion and Modelling Library v1.5.4
Loading...
Searching...
No Matches
GIMLI::VectorIterator< ValueType > Class Template Reference

Public Types

typedef ValueType value_type
 

Public Member Functions

 VectorIterator (ValueType *v, Index size)
 
 VectorIterator (const VectorIterator< ValueType > &iter)
 
VectorIterator< ValueType > & operator= (const VectorIterator< ValueType > &iter)
 
const ValueType & operator* () const
 
ValueType & operator* ()
 
const ValueType & operator[] (const Index i) const
 
ValueType & operator[] (const Index i)
 
VectorIterator< ValueType > & operator++ ()
 
VectorIterator< ValueType > & operator-- ()
 
VectorIterator< ValueType > operator++ (int)
 
VectorIterator< ValueType > operator-- (int)
 
bool operator== (const VectorIterator< ValueType > &a) const
 
bool operator!= (const VectorIterator< ValueType > &a) const
 
Index size () const
 
ValueType * ptr () const
 
ValueType * ptr ()
 
bool hasMore () const
 
ValueType nextVal ()
 
ValueType nextForPy ()
 

Public Attributes

ValueType * val_
 
Index maxSize_
 
ValueType * end_
 

Member Function Documentation

◆ nextVal()

template<class ValueType>
ValueType GIMLI::VectorIterator< ValueType >::nextVal ( )
inline

Return the current and advance the iterator to the next.