OpendTect-6_4  6.4
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ArrayNDIter Class Reference

Iterates through all samples in an ArrayND. More...

Public Member Functions

 ArrayNDIter (const ArrayNDInfo &)
 
 ~ArrayNDIter ()
 
bool next ()
 
void reset ()
 
bool setGlobalPos (int64_t)
 
template<class T >
void setPos (const T &idxabl)
 
const int * getPos () const
 
int operator[] (int) const
 

Protected Member Functions

bool inc (int)
 

Protected Attributes

int * position_
 
const ArrayNDInfosz_
 

Detailed Description

Iterates through all samples in an ArrayND.

ArrayNDIter will be on the first position when initiated, and move to the second at the first call to next(). next() will return false when no more positions are available.

Constructor & Destructor Documentation

ArrayNDIter::ArrayNDIter ( const ArrayNDInfo )
ArrayNDIter::~ArrayNDIter ( )

Member Function Documentation

const int* ArrayNDIter::getPos ( ) const
inline
bool ArrayNDIter::inc ( int  )
protected
bool ArrayNDIter::next ( )
int ArrayNDIter::operator[] ( int  ) const
void ArrayNDIter::reset ( )
bool ArrayNDIter::setGlobalPos ( int64_t  globalidx)
inline
template<class T >
void ArrayNDIter::setPos ( const T &  idxabl)
inline

Member Data Documentation

int* ArrayNDIter::position_
protected
const ArrayNDInfo& ArrayNDIter::sz_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019