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

Base class for DataService notifications that also stores a pointer to the object. More...

#include <DataService.h>

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

Public Member Functions

 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_object
 shared pointer to the object More...
 

Detailed Description

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

Base class for DataService notifications that also stores a pointer to the object.

Definition at line 82 of file DataService.h.

Constructor & Destructor Documentation

◆ DataServiceNotification()

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

Constructor.

Definition at line 85 of file DataService.h.

Member Function Documentation

◆ object()

template<typename T >
const std::shared_ptr< T > & Mantid::Kernel::DataService< T >::DataServiceNotification::object ( ) const
inline

Returns the const pointer to the object concerned or 0 if it is a general notification.

Definition at line 89 of file DataService.h.

Member Data Documentation

◆ m_object

template<typename T >
std::shared_ptr<T> Mantid::Kernel::DataService< T >::DataServiceNotification::m_object
private

shared pointer to the object

Definition at line 92 of file DataService.h.


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