OpendTect  6.6
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | List of all members
SharedObject Class Reference
Inheritance diagram for SharedObject:
[legend]

Public Member Functions

 SharedObject (const char *nm=0)
 
 SharedObject (const SharedObject &)
 
SharedObjectclone () const override
 
ChangeType compareWith (const MonitoredObject &) const override
 
bool operator!= (const SharedObject &oth) const
 
SharedObjectoperator= (const SharedObject &)
 
bool operator== (const SharedObject &) const
 
- Public Member Functions inherited from RefCount::Referenced
void addObserver (WeakPtrBase *obs)
 Not for normal use. May become private. More...
 
int nrRefs () const
 Only for expert use. More...
 
void ref () const
 
bool refIfReffed () const
 Don't use in production, for debugging. More...
 
void removeObserver (WeakPtrBase *obs)
 Not for normal use. May become private. More...
 
bool tryRef () const
 Not for normal use. May become private. More...
 
void unRef () const
 
void unRefNoDelete () const
 
- Public Member Functions inherited from NamedMonitoredObject
 NamedMonitoredObject (const char *nm=0)
 
 NamedMonitoredObject (const NamedMonitoredObject &)
 
 NamedMonitoredObject (const NamedObject &)
 
virtual ~NamedMonitoredObject ()
 
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 Notifier< SharedObject > & instanceCreated ()
 
- Static Public Member Functions inherited from RefCount::Referenced
static bool isSane (const Referenced *)
 
- Static Public Member Functions inherited from NamedMonitoredObject
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

virtual ~SharedObject ()
 
void copyAll (const SharedObject &)
 
- Protected Member Functions inherited from RefCount::Referenced
 Referenced ()
 
 Referenced (const Referenced &)
 
virtual ~Referenced ()
 
Referencedoperator= (const Referenced &)
 
- Protected Member Functions inherited from NamedMonitoredObject
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 SharedObject &) const
 
void copyClassData (const SharedObject &)
 

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

<>

Constructor & Destructor Documentation

◆ SharedObject() [1/2]

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

◆ SharedObject() [2/2]

SharedObject::SharedObject ( const SharedObject )

◆ ~SharedObject()

virtual SharedObject::~SharedObject ( )
protectedvirtual

Member Function Documentation

◆ clone()

SharedObject* SharedObject::clone ( ) const
inlineoverridevirtual

Reimplemented from NamedMonitoredObject.

◆ compareClassData()

ChangeType SharedObject::compareClassData ( const SharedObject ) const
private

◆ compareWith()

ChangeType SharedObject::compareWith ( const MonitoredObject ) const
overridevirtual

Reimplemented from NamedMonitoredObject.

◆ copyAll()

void SharedObject::copyAll ( const SharedObject )
protected

◆ copyClassData()

void SharedObject::copyClassData ( const SharedObject )
private

◆ instanceCreated()

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

◆ operator!=()

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

◆ operator=()

SharedObject& SharedObject::operator= ( const SharedObject )

◆ operator==()

bool SharedObject::operator== ( const SharedObject ) const

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