![]() |
OpendTect
6.3
|
base class for recorder of changes in a Monitorable More...
Classes | |
| class | Record |
Public Types | |
| enum | Action { Undo, Redo } |
Public Types inherited from Monitorable | |
| typedef int | ChangeType |
| typedef int64_t | IDType |
| typedef int64_t | DirtyCountType |
| typedef CNotifier< Monitorable, ChangeData > | ChangeDataNotifier |
Public Member Functions | |
| ~ChangeRecorder () | |
| ChangeRecorder (const ChangeRecorder &) | |
| ChangeRecorder & | operator= (const ChangeRecorder &) |
| bool | operator== (const ChangeRecorder &) const |
| bool | operator!= (const ChangeRecorder &oth) const |
| virtual ChangeRecorder * | clone () const |
| ChangeType | compareWith (const Monitorable &) const |
| bool | isEmpty () const |
| void | setEmpty () |
| bool | canApply (Action) const |
| uiString | usrText (Action) const |
| bool | apply (Action) |
Public Member Functions inherited from NamedMonitorable | |
| NamedMonitorable (const char *nm=0) | |
| NamedMonitorable (const NamedObject &) | |
| virtual | ~NamedMonitorable () |
| NamedMonitorable (const NamedMonitorable &) | |
| NamedMonitorable & | operator= (const NamedMonitorable &) |
| bool | operator== (const NamedMonitorable &) const |
| bool | operator!= (const NamedMonitorable &oth) const |
| ChangeType | compareWith (const Monitorable &) const |
| virtual NamedMonitorable * | getClone () const |
| virtual BufferString | getName () const |
| virtual void | setName (const char *) |
Public Member Functions inherited from Monitorable | |
| Monitorable (const Monitorable &) | |
| virtual | ~Monitorable () |
| Monitorable & | operator= (const Monitorable &) |
| bool | operator== (const Monitorable &) const |
| virtual ChangeDataNotifier & | objectChanged () 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 () |
| NamedObject & | operator= (const NamedObject &) |
| bool | operator== (const NamedObject &oth) const |
| virtual const OD::String & | name () const |
| bool | getNameFromPar (const IOPar &) |
| void | putNameInPar (IOPar &) const |
Protected Types | |
| typedef ObjectSet< Record >::size_type | IdxType |
Protected Types inherited from Monitorable | |
| typedef Threads::Atomic< DirtyCountType > | DirtyCounter |
Protected Member Functions | |
| void | copyAll (const ChangeRecorder &) |
| ChangeRecorder (Monitorable &, const char *nm) | |
| ChangeRecorder (const Monitorable &, const char *) | |
| void | clear () |
| void | objDel (CallBacker *) |
| void | objChg (CallBacker *) |
| IdxType | gtIdx (Action) const |
| void | addRec (Record *) |
| virtual void | handleObjChange (const ChangeData &)=0 |
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 > | |
| 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 | |
| Monitorable * | obj_ |
| ObjectSet< Record > | recs_ |
| IdxType | idx4redo_ |
| bool | applying_ |
Protected Attributes inherited from Monitorable | |
| Threads::Lock | accesslock_ |
Protected Attributes inherited from NamedObject | |
| BufferString | name_ |
Private Member Functions | |
| void | copyClassData (const ChangeRecorder &) |
| ChangeType | compareClassData (const ChangeRecorder &) const |
| void | init () |
Additional Inherited Members | |
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 () |
base class for recorder of changes in a Monitorable
|
protected |
| ChangeRecorder::~ChangeRecorder | ( | ) |
| ChangeRecorder::ChangeRecorder | ( | const ChangeRecorder & | ) |
|
protected |
|
protected |
|
protected |
| bool ChangeRecorder::apply | ( | Action | ) |
| bool ChangeRecorder::canApply | ( | Action | ) | const |
|
protected |
|
inlinevirtual |
Reimplemented from NamedMonitorable.
|
private |
|
virtual |
Reimplemented from Monitorable.
|
protected |
|
private |
|
protectedpure virtual |
Implemented in Pick::SetChangeRecorder.
|
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. 2017