![]() |
ATLAS Offline Software
|
Description: More...
#include <StorageSvc/DbAccessObj.h>
Public Types | |
| typedef DbAccessObj< KEY, TYPE > | Base |
| Type definitions. | |
| typedef std::map< KEY, TYPE * > | Keys |
| typedef Keys::iterator | iterator |
| typedef Keys::const_iterator | const_iterator |
Public Member Functions | |
| size_t | size () const |
| Object size. | |
| void | clearEntries () |
| Object cleanup: remove all entries. | |
| const TYPE * | find (const KEY &key) const |
| Find object by key (CONST). | |
| TYPE * | find (const KEY &key) |
| Find object by key. | |
| StatusCode | add (const KEY &key, TYPE *val) |
| Add entry to container. | |
| StatusCode | remove (const TYPE *val) |
| Remove entry from container. | |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
| DbAccessObjBase (const std::string &n, Io::IoFlag m, const DbType &t, IOODatabase *s=0) | |
| Constructor from the base class. | |
| 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 | |
| Keys | m_keys |
| Key entry buffer. | |
| 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. | |
Description:
Templated base class for "abstarct" container objects. These abstarct containers are: DnSessions, DbDomainObjs, DbDatabaseObjs and DbContainerObjs.
Definition at line 115 of file DbAccessObj.h.
| typedef DbAccessObj< KEY , TYPE > pool::DbAccessObj< KEY, TYPE >::Base |
Type definitions.
Definition at line 118 of file DbAccessObj.h.
| typedef Keys::const_iterator pool::DbAccessObj< KEY, TYPE >::const_iterator |
Definition at line 121 of file DbAccessObj.h.
| typedef Keys::iterator pool::DbAccessObj< KEY, TYPE >::iterator |
Definition at line 120 of file DbAccessObj.h.
| typedef std::map< KEY, TYPE* > pool::DbAccessObj< KEY, TYPE >::Keys |
Definition at line 119 of file DbAccessObj.h.
|
inline |
|
inlineinherited |
Add reference count.
Definition at line 85 of file DbAccessObj.h.
|
inline |
Definition at line 172 of file DbAccessObj.h.
|
inline |
Definition at line 173 of file DbAccessObj.h.
|
inline |
Object cleanup: remove all entries.
Definition at line 136 of file DbAccessObj.h.
|
inlineinherited |
Definition at line 81 of file DbAccessObj.h.
|
inlineinherited |
|
inline |
|
inline |
Definition at line 174 of file DbAccessObj.h.
|
inline |
Definition at line 175 of file DbAccessObj.h.
|
inline |
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Remove reference count.
Definition at line 97 of file DbAccessObj.h.
|
inline |
Remove entry from container.
Definition at line 161 of file DbAccessObj.h.
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 78 of file DbAccessObj.h.
|
private |
Key entry buffer.
Definition at line 125 of file DbAccessObj.h.
|
privateinherited |
Access mode.
Definition at line 54 of file DbAccessObj.h.
|
privateinherited |
Name of the instance.
Definition at line 56 of file DbAccessObj.h.
|
privateinherited |
Pointer to specific pool implementation.
Definition at line 60 of file DbAccessObj.h.
|
mutableprivateinherited |
Reference counter.
Definition at line 52 of file DbAccessObj.h.
|
privateinherited |
Database type.
Definition at line 58 of file DbAccessObj.h.