ATLAS Offline Software
Loading...
Searching...
No Matches
DbHandleBase< T > Class Template Reference

Description: Definition of the generic database object handle. More...

#include <StorageSvc/DbHandleBase.h>

Collaboration diagram for DbHandleBase< T >:

Public Member Functions

T * operator-> ()
 Dereference operator.
const T * operator-> () const
bool operator! () const
 Validity check through operator NOT.
const T * ptr () const
 Access to underlying object.
T * ptr ()
bool isValid () const
 Validity check (Objy like).
const DbType & type () const
 Inquire storage type of the handle.

Protected Types

typedef T _DataType
 Data type definition.
typedef DbHandleBase< _DataType > Base
 Data type definition.

Protected Member Functions

 ~DbHandleBase ()=default
 Standard destructor.
 DbHandleBase ()
 Standard constructor.
 DbHandleBase (const DbHandleBase &)=delete
 DbHandleBase (DbHandleBase &&)=delete
DbHandleBase & operator= (const DbHandleBase &)=delete
DbHandleBase & operator= (DbHandleBase &&)=delete
void setType (const DbType &typ)
 Set handle type.
void setPtr (T *ptr)
 Set data pointer.

Protected Attributes

T * m_ptr
 Data member: Object pointer. Sub-classes need access on re-assignment.
DbType m_type
 Data member: Technology type. Sub-classes need access on re-assignment.

Detailed Description

template<class T>
class DbHandleBase< T >

Description: Definition of the generic database object handle.

Author
M.Frank

Definition at line 17 of file DbHandleBase.h.

Member Typedef Documentation

◆ _DataType

template<class T>
typedef T DbHandleBase< T >::_DataType
protected

Data type definition.

Definition at line 20 of file DbHandleBase.h.

◆ Base

template<class T>
typedef DbHandleBase<_DataType> DbHandleBase< T >::Base
protected

Data type definition.

Definition at line 22 of file DbHandleBase.h.

Constructor & Destructor Documentation

◆ ~DbHandleBase()

template<class T>
DbHandleBase< T >::~DbHandleBase ( )
protecteddefault

Standard destructor.

◆ DbHandleBase() [1/3]

template<class T>
DbHandleBase< T >::DbHandleBase ( )
inlineprotected

Standard constructor.

Definition at line 31 of file DbHandleBase.h.

31: m_ptr(0), m_type(0) { }
DbType m_type
Data member: Technology type. Sub-classes need access on re-assignment.
T * m_ptr
Data member: Object pointer. Sub-classes need access on re-assignment.

◆ DbHandleBase() [2/3]

template<class T>
DbHandleBase< T >::DbHandleBase ( const DbHandleBase< T > & )
protecteddelete

◆ DbHandleBase() [3/3]

template<class T>
DbHandleBase< T >::DbHandleBase ( DbHandleBase< T > && )
protecteddelete

Member Function Documentation

◆ isValid()

template<class T>
bool DbHandleBase< T >::isValid ( ) const
inline

Validity check (Objy like).

Definition at line 54 of file DbHandleBase.h.

54{ return 0 != m_ptr; }

◆ operator!()

template<class T>
bool DbHandleBase< T >::operator! ( ) const
inline

Validity check through operator NOT.

Definition at line 49 of file DbHandleBase.h.

49{ return !isValid(); }
bool isValid() const
Validity check (Objy like).

◆ operator->() [1/2]

template<class T>
T * DbHandleBase< T >::operator-> ( )
inline

Dereference operator.

Definition at line 46 of file DbHandleBase.h.

46{ return m_ptr; }

◆ operator->() [2/2]

template<class T>
const T * DbHandleBase< T >::operator-> ( ) const
inline

Definition at line 47 of file DbHandleBase.h.

47{ return m_ptr; }

◆ operator=() [1/2]

template<class T>
DbHandleBase & DbHandleBase< T >::operator= ( const DbHandleBase< T > & )
protecteddelete

◆ operator=() [2/2]

template<class T>
DbHandleBase & DbHandleBase< T >::operator= ( DbHandleBase< T > && )
protecteddelete

◆ ptr() [1/2]

template<class T>
T * DbHandleBase< T >::ptr ( )
inline

Definition at line 52 of file DbHandleBase.h.

52{ return m_ptr; }

◆ ptr() [2/2]

template<class T>
const T * DbHandleBase< T >::ptr ( ) const
inline

Access to underlying object.

Definition at line 51 of file DbHandleBase.h.

51{ return m_ptr; }

◆ setPtr()

template<class T>
void DbHandleBase< T >::setPtr ( T * ptr)
inlineprotected

Set data pointer.

Definition at line 42 of file DbHandleBase.h.

42{ m_ptr=ptr; }
const T * ptr() const
Access to underlying object.

◆ setType()

template<class T>
void DbHandleBase< T >::setType ( const DbType & typ)
inlineprotected

Set handle type.

Definition at line 40 of file DbHandleBase.h.

40{ m_type=typ; }
Description: Definition of the generic database object handle.

◆ type()

template<class T>
const DbType & DbHandleBase< T >::type ( ) const
inline

Inquire storage type of the handle.

Definition at line 56 of file DbHandleBase.h.

56{ return m_type; }

Member Data Documentation

◆ m_ptr

template<class T>
T* DbHandleBase< T >::m_ptr
protected

Data member: Object pointer. Sub-classes need access on re-assignment.

Definition at line 24 of file DbHandleBase.h.

◆ m_type

template<class T>
DbType DbHandleBase< T >::m_type
protected

Data member: Technology type. Sub-classes need access on re-assignment.

Definition at line 26 of file DbHandleBase.h.


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