OpendTect  7.0
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 ()
 
const int * getPos () const
 
bool next ()
 
int operator[] (int) const
 
void reset ()
 
bool setGlobalPos (std::int64_t)
 
template<class T >
void setPos (const T &idxabl)
 

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::ArrayNDIter ( const ArrayNDInfo )

◆ ~ArrayNDIter()

ArrayNDIter::~ArrayNDIter ( )

Member Function Documentation

◆ getPos()

const int* ArrayNDIter::getPos ( ) const
inline

◆ inc()

bool ArrayNDIter::inc ( int  )
protected

◆ next()

bool ArrayNDIter::next ( )

◆ operator[]()

int ArrayNDIter::operator[] ( int  ) const

◆ reset()

void ArrayNDIter::reset ( )

◆ setGlobalPos()

bool ArrayNDIter::setGlobalPos ( std::int64_t  globalidx)
inline

◆ setPos()

template<class T >
void ArrayNDIter::setPos ( const T &  idxabl)
inline

Member Data Documentation

◆ position_

int* ArrayNDIter::position_
protected

◆ sz_

const ArrayNDInfo& ArrayNDIter::sz_
protected

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