OpendTect-6_4  6.4
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...

Public Types

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

Public Member Functions

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

Static Public Member Functions

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

Protected Member Functions

UnitRefgtUnit () const
 
bool toNext ()
 

Protected Attributes

Pol pol_
 
NodeUnitRefitnode_
 
NodeUnitRefcurnode_
 
int curidx_
 

Detailed Description

Iterator on Ref Nodes.

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

Member Enumeration Documentation

Enumerator
All 
Leaves 
AllNodes 
LeavedNodes 
NodesOnly 

Constructor & Destructor Documentation

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

Member Function Documentation

UnitRef* Strat::UnitRefIter::gtUnit ( ) const
protected
static bool Strat::UnitRefIter::isValid ( const UnitRef ,
Pol   
)
static
Interval<int> Strat::UnitRefIter::levelRange ( ) const
bool Strat::UnitRefIter::next ( )
UnitRefIter& Strat::UnitRefIter::operator= ( const UnitRefIter )
Pol Strat::UnitRefIter::pol ( ) const
inline
static Pol Strat::UnitRefIter::polOf ( UnitRef::Type  )
static
static Pol Strat::UnitRefIter::polOf ( const UnitRef )
static
void Strat::UnitRefIter::reset ( )
void Strat::UnitRefIter::setPol ( Pol  p)
inline
bool Strat::UnitRefIter::toNext ( )
protected
UnitRef* Strat::UnitRefIter::unit ( )
inline
const UnitRef* Strat::UnitRefIter::unit ( ) const
inline

Member Data Documentation

int Strat::UnitRefIter::curidx_
protected
NodeUnitRef* Strat::UnitRefIter::curnode_
protected
NodeUnitRef* Strat::UnitRefIter::itnode_
protected
Pol Strat::UnitRefIter::pol_
protected

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