OpendTect  6.3
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
Strat::LevelSet Class Reference

Set of Stratigraphic levels. More...

Inheritance diagram for Strat::LevelSet:
[legend]

Public Types

typedef Level::ID ID
 
typedef ObjectSet< Level >::size_type size_type
 
typedef size_type IdxType
 
- Public Types inherited from Monitorable
typedef int ChangeType
 
typedef int64_t IDType
 
typedef int64_t DirtyCountType
 
typedef CNotifier< Monitorable, ChangeDataChangeDataNotifier
 

Public Member Functions

 mDefIntegerIDType (int, LVLID)
 
 LevelSet (int idstartidsat=0)
 
 mDeclMonitorableAssignment (LevelSet)
 
bool isEmpty () const
 
size_type size () const
 
void setEmpty ()
 
bool isPresent (ID) const
 
bool isPresent (const char *) const
 
ID getIDByName (const char *) const
 
ID getIDByIdx (IdxType) const
 
IdxType indexOf (ID) const
 
IdxType indexOf (const char *) const
 
void getNames (BufferStringSet &) const
 
BufferString levelName (ID) const
 
Color levelColor (ID) const
 
IOPar levelPars (ID) const
 
Level get (ID) const
 
Level getByIdx (int) const
 
Level getByName (const char *) const
 
Level first () const
 
ID add (const char *, const Color &)
 
void remove (ID)
 
ID set (const Level &)
 
ID add (const Level &lvl)
 
void add (const BufferStringSet &, const TypeSet< Color > &)
 
bool store (Repos::Source) const
 
bool read (Repos::Source)
 
bool readFrom (const char *)
 
bool writeTo (const char *) const
 
Repos::Source readOldRepos ()
 
- Public Member Functions inherited from SharedObject
 SharedObject (const char *nm=0)
 
 SharedObject (const SharedObject &)
 
SharedObjectoperator= (const SharedObject &)
 
bool operator== (const SharedObject &) const
 
bool operator!= (const SharedObject &oth) const
 
virtual SharedObjectclone () const
 
ChangeType compareWith (const Monitorable &) const
 
- Public Member Functions inherited from NamedMonitorable
 NamedMonitorable (const char *nm=0)
 
 NamedMonitorable (const NamedObject &)
 
virtual ~NamedMonitorable ()
 
 NamedMonitorable (const NamedMonitorable &)
 
NamedMonitorableoperator= (const NamedMonitorable &)
 
bool operator== (const NamedMonitorable &) const
 
bool operator!= (const NamedMonitorable &oth) const
 
virtual NamedMonitorablegetClone () const
 
virtual BufferString getName () const
 
virtual void setName (const char *)
 
- Public Member Functions inherited from Monitorable
 Monitorable (const Monitorable &)
 
virtual ~Monitorable ()
 
Monitorableoperator= (const Monitorable &)
 
bool operator== (const Monitorable &) const
 
virtual ChangeDataNotifierobjectChanged () const
 
virtual Notifier< Monitorable > & objectToBeDeleted () const
 
virtual void touch () const
 
virtual DirtyCountType dirtyCount () const
 
void sendChangeNotification (const ChangeData &) const
 
void sendEntireObjectChangeNotification () const
 
void transferNotifsTo (const Monitorable &, const CallBacker *onlyfor=0) const
 
- 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 detachCB (const NotifierAccess &, const CallBack &) const
 
void detachCB (const NotifierAccess *notif, const CallBack &cb) const
 
bool isNotifierAttached (const NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
virtual bool isCapsule () const
 
void stopReceivingNotifications () const
 
- Public Member Functions inherited from NamedObject
 NamedObject (const char *nm=0)
 
 NamedObject (const NamedObject &oth)
 
virtual ~NamedObject ()
 
NamedObjectoperator= (const NamedObject &)
 
bool operator== (const NamedObject &oth) const
 
virtual const OD::Stringname () const
 
bool getNameFromPar (const IOPar &)
 
void putNameInPar (IOPar &) const
 

Static Public Member Functions

static ChangeType cLevelAdded ()
 
static ChangeType cLevelToBeRemoved ()
 
static void getStdNames (BufferStringSet &)
 
static LevelSetcreateStd (const char *)
 
- Static Public Member Functions inherited from SharedObject
static Notifier< SharedObject > & instanceCreated ()
 
- Static Public Member Functions inherited from NamedMonitorable
static Notifier< NamedMonitorable > & instanceCreated ()
 
static ChangeType cNameChange ()
 
- Static Public Member Functions inherited from Monitorable
static Notifier< Monitorable > & instanceCreated ()
 defines static instanceCreated() More...
 
static ChangeType cEntireObjectChange ()
 
static ChangeType cNoChange ()
 
static IDType cUnspecChgID ()
 
static IDType cEntireObjectChgID ()
 
static ChangeType changeNotificationTypeOf (CallBacker *)
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 

Protected Member Functions

virtual ~LevelSet ()
 
int gtIdxOf (const char *, ID) const
 
Level gtLvl (int) const
 
void doSetEmpty ()
 
ID doSet (const Level &, bool *isnew=0)
 
void getFromStream (ascistream &, bool)
 
- Protected Member Functions inherited from SharedObject
void copyAll (const SharedObject &)
 
virtual ~SharedObject ()
 
- Protected Member Functions inherited from NamedMonitorable
void copyAll (const NamedMonitorable &)
 
- Protected Member Functions inherited from Monitorable
 Monitorable ()
 
void copyAll (const Monitorable &)
 
void sendChgNotif (AccessLocker &, const ChangeData &) const
 calls objectChanged with released lock More...
 
void sendChgNotif (AccessLocker &, ChangeType, IDType) const
 calls objectChanged with released lock More...
 
void sendDelNotif () const
 
void stopChangeNotifications () const
 
void resumeChangeNotifications () const
 
template<class T >
getMemberSimple (const T &) const
 the get function used by mImplSimpleMonitoredGet More...
 
template<class TMember , class TSetTo >
void setMemberSimple (TMember &, TSetTo, ChangeType, IDType)
 the set function used by mImplSimpleMonitoredSet More...
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers () const
 Call from the destructor of your inherited object. More...
 

Protected Attributes

ObjectSet< Levellvls_
 
Threads::Atomic< ID::IDType > curlevelid_
 
Strat::Level::ID lvlid_
 
- Protected Attributes inherited from Monitorable
Threads::Lock accesslock_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Friends

class LevelSetMgr
 

Additional Inherited Members

- Protected Types inherited from Monitorable
typedef Threads::Atomic< DirtyCountTypeDirtyCounter
 

Detailed Description

Set of Stratigraphic levels.

Manages not only the units, but also their IDs. The set will not allow adding levels with the same name; the result is that you simply set the existing one to new values.

Member Typedef Documentation

typedef Level::ID Strat::LevelSet::ID

Constructor & Destructor Documentation

Strat::LevelSet::LevelSet ( int  idstartidsat = 0)
virtual Strat::LevelSet::~LevelSet ( )
protectedvirtual

Member Function Documentation

ID Strat::LevelSet::add ( const char *  ,
const Color  
)
ID Strat::LevelSet::add ( const Level lvl)
inline
void Strat::LevelSet::add ( const BufferStringSet ,
const TypeSet< Color > &   
)
static ChangeType Strat::LevelSet::cLevelAdded ( )
inlinestatic
static ChangeType Strat::LevelSet::cLevelToBeRemoved ( )
inlinestatic
static LevelSet* Strat::LevelSet::createStd ( const char *  )
static
ID Strat::LevelSet::doSet ( const Level ,
bool *  isnew = 0 
)
protected
void Strat::LevelSet::doSetEmpty ( )
protected
Level Strat::LevelSet::first ( ) const
Level Strat::LevelSet::get ( ID  ) const
Level Strat::LevelSet::getByIdx ( int  ) const
Level Strat::LevelSet::getByName ( const char *  ) const
void Strat::LevelSet::getFromStream ( ascistream ,
bool   
)
protected
ID Strat::LevelSet::getIDByIdx ( IdxType  ) const
ID Strat::LevelSet::getIDByName ( const char *  ) const
void Strat::LevelSet::getNames ( BufferStringSet ) const
static void Strat::LevelSet::getStdNames ( BufferStringSet )
static
int Strat::LevelSet::gtIdxOf ( const char *  ,
ID   
) const
protected
Level Strat::LevelSet::gtLvl ( int  ) const
protected
IdxType Strat::LevelSet::indexOf ( ID  ) const
IdxType Strat::LevelSet::indexOf ( const char *  ) const
bool Strat::LevelSet::isEmpty ( ) const
inline
bool Strat::LevelSet::isPresent ( ID  ) const
bool Strat::LevelSet::isPresent ( const char *  ) const
Color Strat::LevelSet::levelColor ( ID  ) const
BufferString Strat::LevelSet::levelName ( ID  ) const
IOPar Strat::LevelSet::levelPars ( ID  ) const
Strat::LevelSet::mDeclMonitorableAssignment ( LevelSet  )
Strat::LevelSet::mDefIntegerIDType ( int  ,
LVLID   
)
bool Strat::LevelSet::read ( Repos::Source  )
bool Strat::LevelSet::readFrom ( const char *  )
Repos::Source Strat::LevelSet::readOldRepos ( )
void Strat::LevelSet::remove ( ID  )
ID Strat::LevelSet::set ( const Level )
void Strat::LevelSet::setEmpty ( )
size_type Strat::LevelSet::size ( ) const
bool Strat::LevelSet::store ( Repos::Source  ) const
bool Strat::LevelSet::writeTo ( const char *  ) const

Friends And Related Function Documentation

friend class LevelSetMgr
friend

Member Data Documentation

Threads::Atomic<ID::IDType> Strat::LevelSet::curlevelid_
mutableprotected
Strat::Level::ID Strat::LevelSet::lvlid_
protected
ObjectSet<Level> Strat::LevelSet::lvls_
protected

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