Go to the documentation of this file.
22 #ifndef GAUDIKERNEL_SMARTDATAPTR_H
23 #define GAUDIKERNEL_SMARTDATAPTR_H 1
60 #if !defined( __ICC ) && !defined( __COVERITY__ )
139 template <
class OTHER>
141 this->
m_pObject =
dynamic_cast<TYPE*
>( pObj );
146 template <
class OTHER>
148 this->
m_pObject =
dynamic_cast<TYPE*
>(
const_cast<OTHER*
>( pObj ) );
153 #endif // GAUDIKERNEL_SMARTDATAPTR_H
SmartDataPtr(IDataProviderSvc *pService, IRegistry *pDirectory)
Standard constructor: Construct an SmartDataPtr instance which is able to connect to a DataObject ins...
SmartDataPtr(IDataProviderSvc *pService, DataObject *pObject, std::string path)
Standard constructor: Construct an SmartDataPtr instance which is able to connect to a DataObject ins...
SmartDataPtr(IDataProviderSvc *pService, std::string fullPath)
Standard constructor: Construct an SmartDataPtr instance which is able to connect to a DataObject ins...
SmartDataPtr & operator=(OTHER *pObj)
Automatic conversion to data type.
IRegistry * directory()
Access to data directory.
IRegistry * m_pRegistry
Pointer to the data registry containing the object.
SmartDataPtr & operator=(const OTHER *pObj)
Automatic conversion to data type.
TYPE * m_pObject
Pointer to data store object.
Helper class to configure smart pointer functionality.
SmartDataPtr(SmartDataObjectPtr &refObject, std::string path)
Standard constructor: Construct an SmartDataPtr instance which is able to connect to a DataObject ins...
virtual ~SmartDataPtr()=default
Standard destructor.
A small class used to access easily (and efficiently) data items residing in data stores.
A small class used to access easily (and efficiently) data items residing in data stores.
SmartDataPtr(const SmartDataObjectPtr ©)
Copy constructor: Construct an copy of a SmartDataPtr instance.
const std::string & path() const
Path name.
SmartDataPtr(SmartDataObjectPtr &refObject, IRegistry *pDirectory)
Standard constructor: Construct an SmartDataPtr instance which is able to connect to a DataObject ins...
IDataProviderSvc * service()
Retrieve data service.
IRegistry * registry() const
Get pointer to Registry.