Mantid
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Mantid::Kernel::DataService< T >::AfterReplaceNotification Class Reference

AfterReplaceNotification is sent after an object is replaced in the addOrReplace() function. More...

#include <DataService.h>

Inheritance diagram for Mantid::Kernel::DataService< T >::AfterReplaceNotification:
Mantid::Kernel::DataService< T >::DataServiceNotification Mantid::Kernel::DataService< T >::NamedObjectNotification

Public Member Functions

 AfterReplaceNotification (const std::string &name, const std::shared_ptr< T > &newObj)
 Constructor. More...
 
- 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...
 

Detailed Description

template<typename T>
class Mantid::Kernel::DataService< T >::AfterReplaceNotification

AfterReplaceNotification is sent after an object is replaced in the addOrReplace() function.

Definition at line 128 of file DataService.h.

Constructor & Destructor Documentation

◆ AfterReplaceNotification()

template<typename T >
Mantid::Kernel::DataService< T >::AfterReplaceNotification::AfterReplaceNotification ( const std::string &  name,
const std::shared_ptr< T > &  newObj 
)
inline

Constructor.

Parameters
name:: The name of the replaced object
newObj:: The pointer to the new object Only new objects are guaranteed to exist when an observer receives the notification.

Definition at line 136 of file DataService.h.


The documentation for this class was generated from the following file: