![]() |
ATLAS Offline Software
|
Base class for all access objects with reference counting and common members but no container functionality. More...
#include <DbAccessObj.h>
Public Member Functions | |
| DbAccessObjBase (const std::string &n, Io::IoFlag m, const DbType &t, IOODatabase *s=0) | |
| Constructor with initializing arguments. | |
| virtual | ~DbAccessObjBase () |
| Standard destructor. | |
| const std::string & | name () const |
| Access the instance name. | |
| void | setName (const std::string &n) |
| Access the instance name. | |
| Io::IoFlag | mode () const |
| Access mode. | |
| void | setMode (Io::IoFlag m) |
| Set Access mode. | |
| const DbType & | type () const |
| const IOODatabase * | db () const |
| Allow access to the Database implementation. | |
| IOODatabase * | db () |
| int | refCount () const |
| Access reference counter. | |
| int | addRef () const |
| Add reference count. | |
| int | release () const |
| Remove reference count. | |
Private Attributes | |
| std::atomic< int > | m_refCount |
| Reference counter. | |
| Io::IoFlag | m_mode |
| Access mode. | |
| std::string | m_name |
| Name of the instance. | |
| DbType | m_type |
| Database type. | |
| IOODatabase * | m_pool |
| Pointer to specific pool implementation. | |
Base class for all access objects with reference counting and common members but no container functionality.
Definition at line 49 of file DbAccessObj.h.
|
inline |
Constructor with initializing arguments.
Definition at line 64 of file DbAccessObj.h.
|
inlinevirtual |
Standard destructor.
Definition at line 68 of file DbAccessObj.h.
|
inline |
Add reference count.
Definition at line 85 of file DbAccessObj.h.
|
inline |
Definition at line 81 of file DbAccessObj.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Remove reference count.
Definition at line 97 of file DbAccessObj.h.
|
inline |
|
inline |
Definition at line 78 of file DbAccessObj.h.
|
private |
Access mode.
Definition at line 54 of file DbAccessObj.h.
|
private |
Name of the instance.
Definition at line 56 of file DbAccessObj.h.
|
private |
Pointer to specific pool implementation.
Definition at line 60 of file DbAccessObj.h.
|
mutableprivate |
Reference counter.
Definition at line 52 of file DbAccessObj.h.
|
private |
Database type.
Definition at line 58 of file DbAccessObj.h.