OpendTect 8.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Strat::UnitRefIter Class Reference

Iterator on Ref Nodes. More...

#include <stratunitrefiter.h>

Public Types

enum  Pol {
  All , Leaves , AllNodes , LeavedNodes ,
  NodesOnly
}
 

Public Member Functions

 UnitRefIter (const NodeUnitRef &, Pol p=All)
 
 UnitRefIter (const UnitRefIter &)
 
 ~UnitRefIter ()
 
Interval< int > levelRange () const
 
bool next ()
 
UnitRefIteroperator= (const UnitRefIter &)
 
Pol pol () const
 
void reset ()
 
void setPol (Pol p)
 
UnitRefunit ()
 
const UnitRefunit () const
 

Static Public Member Functions

static bool isValid (const UnitRef &, Pol)
 
static Pol polOf (const UnitRef *)
 
static Pol polOf (UnitRef::Type)
 

Protected Member Functions

UnitRefgtUnit () const
 
bool toNext ()
 

Protected Attributes

int curidx_
 
NodeUnitRefcurnode_
 
NodeUnitRefitnode_
 
Pol pol_
 

Detailed Description

Iterator on Ref Nodes.

When constructed, returns unit itself (regardless of Pol). First next() goes to first (valid) unit.

<>

Member Enumeration Documentation

◆ Pol

Enumerator
All 
Leaves 
AllNodes 
LeavedNodes 
NodesOnly 

Constructor & Destructor Documentation

◆ UnitRefIter() [1/2]

Strat::UnitRefIter::UnitRefIter ( const NodeUnitRef & ,
Pol p = All )

◆ UnitRefIter() [2/2]

Strat::UnitRefIter::UnitRefIter ( const UnitRefIter & )

◆ ~UnitRefIter()

Strat::UnitRefIter::~UnitRefIter ( )

Member Function Documentation

◆ gtUnit()

UnitRef * Strat::UnitRefIter::gtUnit ( ) const
protected

◆ isValid()

static bool Strat::UnitRefIter::isValid ( const UnitRef & ,
Pol  )
static

◆ levelRange()

Interval< int > Strat::UnitRefIter::levelRange ( ) const

◆ next()

bool Strat::UnitRefIter::next ( )

◆ operator=()

UnitRefIter & Strat::UnitRefIter::operator= ( const UnitRefIter & )

◆ pol()

Pol Strat::UnitRefIter::pol ( ) const
inline

◆ polOf() [1/2]

static Pol Strat::UnitRefIter::polOf ( const UnitRef * )
static

◆ polOf() [2/2]

static Pol Strat::UnitRefIter::polOf ( UnitRef::Type )
static

◆ reset()

void Strat::UnitRefIter::reset ( )

◆ setPol()

void Strat::UnitRefIter::setPol ( Pol p)
inline

◆ toNext()

bool Strat::UnitRefIter::toNext ( )
protected

◆ unit() [1/2]

UnitRef * Strat::UnitRefIter::unit ( )
inline

◆ unit() [2/2]

const UnitRef * Strat::UnitRefIter::unit ( ) const
inline

Member Data Documentation

◆ curidx_

int Strat::UnitRefIter::curidx_
protected

◆ curnode_

NodeUnitRef* Strat::UnitRefIter::curnode_
protected

◆ itnode_

NodeUnitRef* Strat::UnitRefIter::itnode_
protected

◆ pol_

Pol Strat::UnitRefIter::pol_
protected

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