![]() |
OpendTect
6.6
|
base class for recorder of changes in a MonitoredObject More...
Classes | |
| class | Record |
Public Types | |
| enum | Action { Undo , Redo } |
Public Types inherited from MonitoredObject | |
| typedef CNotifier< MonitoredObject, ChangeData > | ChangeDataNotifier |
| typedef int | ChangeType |
| typedef int64_t | IDType |
| typedef Threads ::Locker | Locker |
Public Types inherited from ObjectWithName | |
| typedef OD::String | name_type |
Public Member Functions | |
| ChangeRecorder (const ChangeRecorder &) | |
| ~ChangeRecorder () | |
| bool | apply (Action) |
| bool | canApply (Action) const |
| ChangeRecorder * | clone () const override |
| ChangeType | compareWith (const MonitoredObject &) const override |
| bool | isEmpty () const |
| bool | operator!= (const ChangeRecorder &oth) const |
| ChangeRecorder & | operator= (const ChangeRecorder &) |
| bool | operator== (const ChangeRecorder &) const |
| void | setEmpty () |
| uiString | usrText (Action) const |
Public Member Functions inherited from NamedMonitoredObject | |
| NamedMonitoredObject (const char *nm=0) | |
| NamedMonitoredObject (const NamedMonitoredObject &) | |
| NamedMonitoredObject (const NamedObject &) | |
| virtual | ~NamedMonitoredObject () |
| NamedMonitoredObject * | clone () const override |
| ChangeType | compareWith (const MonitoredObject &) const override |
| NamedMonitoredObject * | getClone () const override |
| BufferString | getName () const override |
| bool | operator!= (const NamedMonitoredObject &oth) const |
| NamedMonitoredObject & | operator= (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 ChangeDataNotifier & | objectChanged () const |
| virtual Notifier< MonitoredObject > & | objectToBeDeleted () const |
| MonitoredObject & | operator= (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_type & | name () const |
| NamedObject & | operator= (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 |
Protected Types | |
| typedef ObjectSet< Record >::idx_type | idx_type |
Protected Member Functions | |
| ChangeRecorder (const MonitoredObject &, const char *) | |
| ChangeRecorder (MonitoredObject &, const char *nm) | |
| void | addRec (Record *) |
| void | clear () |
| void | copyAll (const ChangeRecorder &) |
| idx_type | gtIdx (Action) const |
| virtual void | handleObjChange (const ChangeData &)=0 |
| void | objChg (CallBacker *) |
| void | objDel (CallBacker *) |
Protected Member Functions inherited from NamedMonitoredObject | |
| void | copyAll (const NamedMonitoredObject &) |
Protected Member Functions inherited from MonitoredObject | |
| MonitoredObject () | |
| void | copyAll (const MonitoredObject &) |
| template<class T > | |
| 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 |
Protected Attributes | |
| bool | applying_ |
| idx_type | idx4redo_ |
| MonitoredObject * | obj_ |
| ObjectSet< Record > | recs_ |
Protected Attributes inherited from MonitoredObject | |
| Threads::Lock | accesslock_ |
Protected Attributes inherited from NamedObject | |
| BufferString | name_ |
Private Member Functions | |
| ChangeType | compareClassData (const ChangeRecorder &) const |
| void | copyClassData (const ChangeRecorder &) |
| void | init () |
Additional Inherited Members | |
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 () |
base class for recorder of changes in a MonitoredObject
<>
|
protected |
| ChangeRecorder::~ChangeRecorder | ( | ) |
| ChangeRecorder::ChangeRecorder | ( | const ChangeRecorder & | ) |
|
protected |
|
protected |
|
protected |
| bool ChangeRecorder::apply | ( | Action | ) |
| bool ChangeRecorder::canApply | ( | Action | ) | const |
|
protected |
|
inlineoverridevirtual |
Reimplemented from MonitoredObject.
|
private |
|
overridevirtual |
Reimplemented from MonitoredObject.
|
protected |
|
private |
|
protectedpure virtual |
|
private |
| bool ChangeRecorder::isEmpty | ( | ) | const |
|
protected |
|
protected |
|
inline |
| ChangeRecorder& ChangeRecorder::operator= | ( | const ChangeRecorder & | ) |
| bool ChangeRecorder::operator== | ( | const ChangeRecorder & | ) | const |
| void ChangeRecorder::setEmpty | ( | ) |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022