Mantid
|
BeforeReplaceNotification is sent before an object is replaced in the addOrReplace() function. More...
#include <DataService.h>
Public Member Functions | |
BeforeReplaceNotification (const std::string &name, const std::shared_ptr< T > &obj, const std::shared_ptr< T > &newObj) | |
Constructor. More... | |
const std::shared_ptr< T > & | newObject () const |
Returns the pointer to the new object. More... | |
const std::shared_ptr< T > & | oldObject () const |
Public Member Functions inherited from Mantid::Kernel::DataService< T >::DataServiceNotification | |
DataServiceNotification (const std::string &name, const std::shared_ptr< T > &obj) | |
Constructor. More... | |
const std::shared_ptr< T > & | object () const |
Returns the const pointer to the object concerned or 0 if it is a general notification. More... | |
Public Member Functions inherited from Mantid::Kernel::DataService< T >::NamedObjectNotification | |
NamedObjectNotification (const std::string &name) | |
const std::string & | objectName () const |
Returns the name of the object. More... | |
Private Attributes | |
std::shared_ptr< T > | m_newObject |
shared pointer to the object More... | |
std::shared_ptr< T > | m_oldObject |
BeforeReplaceNotification is sent before an object is replaced in the addOrReplace() function.
Definition at line 105 of file DataService.h.
|
inline |
Constructor.
name | :: The name of the replaced object |
obj | :: The pointer to the old object |
newObj | :: The pointer to the new object |
Both old and new objects are guaranteed to exist when an observer receives the notification.
Definition at line 116 of file DataService.h.
|
inline |
Returns the pointer to the new object.
Definition at line 118 of file DataService.h.
|
inline |
Definition at line 119 of file DataService.h.
|
private |
shared pointer to the object
Definition at line 122 of file DataService.h.
|
private |
Definition at line 123 of file DataService.h.