OpendTect  6.6
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
Strat::NodeUnitRef Class Referenceabstract

UnitRef for units containing other units only. More...

Inheritance diagram for Strat::NodeUnitRef:
[legend]

Public Member Functions

 NodeUnitRef (NodeUnitRef *, const char *, const char *d=0)
 
 ~NodeUnitRef ()
 
virtual bool add (UnitRef *, bool rev=false)
 
virtual const OD::String & code () const
 
UnitRef * find (const char *urcode)
 
const UnitRef * find (const char *urcode) const
 
virtual void getPropsFrom (const IOPar &)
 
virtual bool hasChildren () const
 
virtual bool hasLeaves () const =0
 
void incTimeRange (const Interval< float > &)
 
int indexOf (const UnitRef *ur) const
 
virtual bool insert (UnitRef *, int posidx)
 
virtual bool isEmpty () const
 
virtual bool isParentOf (const UnitRef &) const
 
virtual int level () const
 
virtual int nrLeaves () const
 
int nrRefs () const
 
virtual void putPropsTo (IOPar &) const
 
UnitRef & ref (int idx)
 
const UnitRef & ref (int idx) const
 
void remove (const UnitRef *ur)
 
void remove (int uridx)
 
void removeAllChildren ()
 
virtual UnitRef * replace (int uridx, UnitRef *)
 
virtual void setCode (const char *c)
 
void setEmpty ()
 
virtual void setTimeRange (const Interval< float > &)
 
void swapChildren (int, int)
 
virtual Interval< float > timeRange () const
 
- Public Member Functions inherited from Strat::UnitRef
 UnitRef (NodeUnitRef *, const char *d=0)
 
virtual ~UnitRef ()
 
Color color () const
 
const OD::String & description () const
 
virtual void fill (BufferString &bs) const
 
virtual const LeafUnitRef * firstLeaf () const =0
 
CompoundKey fullCode () const
 
bool isBelow (const UnitRef *) const
 is given ref parent, grandparent, grandgrand... More...
 
bool isLeaf () const
 
bool isLeaved () const
 
virtual bool isUndef () const
 
CompoundKey parentCode () const
 
IOPar & pars ()
 
const IOPar & pars () const
 
bool precedes (const UnitRef &) const
 in terms of iterating through tree More...
 
RefTree & refTree ()
 
const RefTree & refTree () const
 
void setColor (Color)
 
virtual void setDescription (const char *d)
 
void setUpNode (NodeUnitRef *newpar)
 
NodeUnitRef * topNode ()
 
const NodeUnitRef * topNode () const
 
int treeDepth () const
 
virtual Type type () const =0
 
NodeUnitRef * upNode (int skip=0)
 
const NodeUnitRef * upNode (int skip=0) const
 
virtual void use (const char *s)
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const
 
bool attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const
 
void detachAllNotifiers () const
 Call from the destructor of your inherited object. More...
 
void detachCB (const NotifierAccess &, const CallBack &) const
 
void detachCB (const NotifierAccess *notif, const CallBack &cb) const
 
virtual bool isCapsule () const
 
bool isNotifierAttached (const NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
void stopReceivingNotifications () const
 

Protected Member Functions

void changeTimeRange (float dtime)
 
UnitRef * fnd (const char *) const
 
void takeChildrenFrom (NodeUnitRef *)
 
- Protected Member Functions inherited from Strat::UnitRef
void doFill (BufferString &, int) const
 
void doUse (const char *, int *)
 
void notifChange (bool isrem=false)
 

Protected Attributes

BufferString code_
 
ObjectSet< UnitRef > refs_
 
Interval< float > timerg_
 
- Protected Attributes inherited from Strat::UnitRef
Color color_
 
BufferString desc_
 
IOPar pars_
 
NodeUnitRef * upnode_
 

Friends

class RefTree
 

Additional Inherited Members

- Public Types inherited from Strat::UnitRef
enum  Type { NodeOnly , Leaved , Leaf }
 
- Static Public Member Functions inherited from Strat::UnitRef
static const char * sKeyPropsFor ()
 
static const char * sKeyTreeProps ()
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 
- Public Attributes inherited from Strat::UnitRef
Notifier< UnitRef > changed
 
Notifier< UnitRef > toBeDeleted
 

Detailed Description

UnitRef for units containing other units only.

<>

Constructor & Destructor Documentation

◆ NodeUnitRef()

Strat::NodeUnitRef::NodeUnitRef ( NodeUnitRef *  ,
const char *  ,
const char *  d = 0 
)

◆ ~NodeUnitRef()

Strat::NodeUnitRef::~NodeUnitRef ( )

Member Function Documentation

◆ add()

virtual bool Strat::NodeUnitRef::add ( UnitRef *  ,
bool  rev = false 
)
virtual

◆ changeTimeRange()

void Strat::NodeUnitRef::changeTimeRange ( float  dtime)
protected

◆ code()

virtual const OD::String& Strat::NodeUnitRef::code ( ) const
inlinevirtual

Implements Strat::UnitRef.

◆ find() [1/2]

UnitRef* Strat::NodeUnitRef::find ( const char *  urcode)
inline

◆ find() [2/2]

const UnitRef* Strat::NodeUnitRef::find ( const char *  urcode) const
inline

◆ fnd()

UnitRef* Strat::NodeUnitRef::fnd ( const char *  ) const
protected

◆ getPropsFrom()

virtual void Strat::NodeUnitRef::getPropsFrom ( const IOPar &  )
virtual

Reimplemented from Strat::UnitRef.

◆ hasChildren()

virtual bool Strat::NodeUnitRef::hasChildren ( ) const
inlinevirtual

Implements Strat::UnitRef.

◆ hasLeaves()

virtual bool Strat::NodeUnitRef::hasLeaves ( ) const
pure virtual

◆ incTimeRange()

void Strat::NodeUnitRef::incTimeRange ( const Interval< float > &  )

◆ indexOf()

int Strat::NodeUnitRef::indexOf ( const UnitRef *  ur) const
inline

◆ insert()

virtual bool Strat::NodeUnitRef::insert ( UnitRef *  ,
int  posidx 
)
virtual

◆ isEmpty()

virtual bool Strat::NodeUnitRef::isEmpty ( ) const
inlinevirtual

Reimplemented from Strat::UnitRef.

◆ isParentOf()

virtual bool Strat::NodeUnitRef::isParentOf ( const UnitRef &  ) const
virtual

Reimplemented from Strat::UnitRef.

◆ level()

virtual int Strat::NodeUnitRef::level ( ) const
inlinevirtual

Implements Strat::UnitRef.

Reimplemented in Strat::RefTree.

◆ nrLeaves()

virtual int Strat::NodeUnitRef::nrLeaves ( ) const
virtual

Reimplemented in Strat::LeavedUnitRef.

◆ nrRefs()

int Strat::NodeUnitRef::nrRefs ( ) const
inline

◆ putPropsTo()

virtual void Strat::NodeUnitRef::putPropsTo ( IOPar &  ) const
virtual

Reimplemented from Strat::UnitRef.

◆ ref() [1/2]

UnitRef& Strat::NodeUnitRef::ref ( int  idx)
inline

◆ ref() [2/2]

const UnitRef& Strat::NodeUnitRef::ref ( int  idx) const
inline

◆ remove() [1/2]

void Strat::NodeUnitRef::remove ( const UnitRef *  ur)
inline

◆ remove() [2/2]

void Strat::NodeUnitRef::remove ( int  uridx)
inline

◆ removeAllChildren()

void Strat::NodeUnitRef::removeAllChildren ( )
inline

◆ replace()

virtual UnitRef* Strat::NodeUnitRef::replace ( int  uridx,
UnitRef *   
)
virtual

◆ setCode()

virtual void Strat::NodeUnitRef::setCode ( const char *  c)
inlinevirtual

Reimplemented from Strat::UnitRef.

◆ setEmpty()

void Strat::NodeUnitRef::setEmpty ( )

◆ setTimeRange()

virtual void Strat::NodeUnitRef::setTimeRange ( const Interval< float > &  )
virtual

◆ swapChildren()

void Strat::NodeUnitRef::swapChildren ( int  ,
int   
)

◆ takeChildrenFrom()

void Strat::NodeUnitRef::takeChildrenFrom ( NodeUnitRef *  )
protected

◆ timeRange()

virtual Interval<float> Strat::NodeUnitRef::timeRange ( ) const
inlinevirtual

Friends And Related Function Documentation

◆ RefTree

friend class RefTree
friend

Member Data Documentation

◆ code_

BufferString Strat::NodeUnitRef::code_
protected

◆ refs_

ObjectSet<UnitRef> Strat::NodeUnitRef::refs_
protected

◆ timerg_

Interval<float> Strat::NodeUnitRef::timerg_
protected

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