OpendTect  6.6
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | List of all members
NamedMonitoredObject Class Reference

MonitoredObject with a name. All but name() are MT-safe. More...

Inheritance diagram for NamedMonitoredObject:
[legend]

Classes

class  NameChgData
 

Public Member Functions

 NamedMonitoredObject (const char *nm=0)
 
 NamedMonitoredObject (const NamedMonitoredObject &)
 
 NamedMonitoredObject (const NamedObject &)
 
virtual ~NamedMonitoredObject ()
 
NamedMonitoredObjectclone () const override
 
ChangeType compareWith (const MonitoredObject &) const override
 
NamedMonitoredObjectgetClone () const override
 
BufferString getName () const override
 
bool operator!= (const NamedMonitoredObject &oth) const
 
NamedMonitoredObjectoperator= (const NamedMonitoredObject &)
 
bool operator== (const NamedMonitoredObject &) const
 
void setName (const char *) override
 
- Public Member Functions inherited from MonitoredObject
 MonitoredObject (const MonitoredObject &)
 
virtual ~MonitoredObject ()
 
virtual DirtyCountType dirtyCount () const
 
virtual ChangeDataNotifierobjectChanged () const
 
virtual Notifier< MonitoredObject > & objectToBeDeleted () const
 
MonitoredObjectoperator= (const MonitoredObject &)
 
bool operator== (const MonitoredObject &) const
 
void sendChangeNotification (const ChangeData &) const
 
void sendEntireObjectChangeNotification () const
 
virtual void touch () const
 
void transferNotifsTo (const MonitoredObject &, 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 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
 
- Public Member Functions inherited from NamedObject
 NamedObject (const char *nm=nullptr)
 
 NamedObject (const NamedObject &oth)
 
virtual ~NamedObject ()
 
bool getNameFromPar (const IOPar &)
 
virtual const name_typename () const
 
NamedObjectoperator= (const NamedObject &)
 
bool operator== (const NamedObject &oth) const
 
- Public Member Functions inherited from ObjectWithName
virtual ~ObjectWithName ()
 
bool hasName (const char *nm) const
 
bool hasName (const name_type &nm) const
 
void putNameInPar (IOPar &) const
 

Static Public Member Functions

static ChangeType cNameChange ()
 
static Notifier< NamedMonitoredObject > & instanceCreated ()
 
- Static Public Member Functions inherited from MonitoredObject
static ChangeType cEntireObjectChange ()
 
static IDType cEntireObjectChgID ()
 
static ChangeType changeNotificationTypeOf (CallBacker *)
 
static ChangeType cNoChange ()
 
static IDType cUnspecChgID ()
 
static Notifier< MonitoredObject > & instanceCreated ()
 defines static instanceCreated() More...
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 

Protected Member Functions

void copyAll (const NamedMonitoredObject &)
 
- Protected Member Functions inherited from MonitoredObject
 MonitoredObject ()
 
void copyAll (const MonitoredObject &)
 
template<class T >
getMemberSimple (const T &) const
 the get function used by mImplSimpleMonitoredGet More...
 
void resumeChangeNotifications () const
 
void sendChgNotif (AccessLocker &, ChangeType, IDType) const
 calls objectChanged with released lock More...
 
void sendChgNotif (AccessLocker &, const ChangeData &) const
 calls objectChanged with released lock More...
 
void sendDelNotif () const
 
template<class TMember , class TSetTo >
void setMemberSimple (TMember &, TSetTo, ChangeType, IDType)
 the set function used by mImplSimpleMonitoredSet More...
 
void stopChangeNotifications () const
 

Private Member Functions

ChangeType compareClassData (const NamedMonitoredObject &) const
 
void copyClassData (const NamedMonitoredObject &)
 

Additional Inherited Members

- Public Types inherited from MonitoredObject
typedef CNotifier< MonitoredObject, ChangeDataChangeDataNotifier
 
typedef int ChangeType
 
typedef int64_t IDType
 
typedef Threads ::Locker Locker
 
- Public Types inherited from ObjectWithName
typedef OD::String name_type
 
- Protected Attributes inherited from MonitoredObject
Threads::Lock accesslock_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Detailed Description

MonitoredObject with a name. All but name() are MT-safe.

<>

Constructor & Destructor Documentation

◆ NamedMonitoredObject() [1/3]

NamedMonitoredObject::NamedMonitoredObject ( const char *  nm = 0)

◆ NamedMonitoredObject() [2/3]

NamedMonitoredObject::NamedMonitoredObject ( const NamedObject )

◆ ~NamedMonitoredObject()

virtual NamedMonitoredObject::~NamedMonitoredObject ( )
virtual

◆ NamedMonitoredObject() [3/3]

NamedMonitoredObject::NamedMonitoredObject ( const NamedMonitoredObject )

Member Function Documentation

◆ clone()

NamedMonitoredObject* NamedMonitoredObject::clone ( ) const
inlineoverridevirtual

Reimplemented from MonitoredObject.

Reimplemented in SharedObject.

◆ cNameChange()

static ChangeType NamedMonitoredObject::cNameChange ( )
inlinestatic

◆ compareClassData()

ChangeType NamedMonitoredObject::compareClassData ( const NamedMonitoredObject ) const
private

◆ compareWith()

ChangeType NamedMonitoredObject::compareWith ( const MonitoredObject ) const
overridevirtual

Reimplemented from MonitoredObject.

Reimplemented in SharedObject.

◆ copyAll()

void NamedMonitoredObject::copyAll ( const NamedMonitoredObject )
protected

◆ copyClassData()

void NamedMonitoredObject::copyClassData ( const NamedMonitoredObject )
private

◆ getClone()

NamedMonitoredObject* NamedMonitoredObject::getClone ( ) const
inlineoverridevirtual

Implements MonitoredObject.

◆ getName()

BufferString NamedMonitoredObject::getName ( ) const
inlineoverridevirtual

Reimplemented from NamedObject.

◆ instanceCreated()

static Notifier<NamedMonitoredObject>& NamedMonitoredObject::instanceCreated ( )
static

◆ operator!=()

bool NamedMonitoredObject::operator!= ( const NamedMonitoredObject oth) const
inline

◆ operator=()

NamedMonitoredObject& NamedMonitoredObject::operator= ( const NamedMonitoredObject )

◆ operator==()

bool NamedMonitoredObject::operator== ( const NamedMonitoredObject ) const

◆ setName()

void NamedMonitoredObject::setName ( const char *  )
overridevirtual

Reimplemented from NamedObject.


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