![]() |
ATLAS Offline Software
|
#include <StorageSvc/DbAccessObj.h>
Public Types | |
| typedef DbAccessObj< KEY, TYPE > | Base |
| Type definitions. More... | |
| typedef std::map< KEY, TYPE * > | Keys |
| typedef Keys::iterator | iterator |
| typedef Keys::const_iterator | const_iterator |
Public Member Functions | |
| DbAccessObj (const std::string &n, DbAccessMode m, const DbType &t, IOODatabase *s=0) | |
| Constructor with initializing arguments. More... | |
| virtual | ~DbAccessObj () |
| Standard destructor. More... | |
| const std::string & | name () const |
| Access the instance name. More... | |
| void | setName (const std::string &n) |
| Access the instance name. More... | |
| DbAccessMode | mode () const |
| Access mode. More... | |
| void | setMode (DbAccessMode m) |
| Set Access mode. More... | |
| const DbType & | type () const |
| const IOODatabase * | db () const |
| Allow access to the Database implementation. More... | |
| IOODatabase * | db () |
| int | refCount () const |
| Access reference counter. More... | |
| int | addRef () const |
| Add reference count. More... | |
| int | release () const |
| Remove reference count. More... | |
| size_t | size () const |
| Object size. More... | |
| DbStatus | clearEntries () |
| Object cleanup: remove all entries. More... | |
| const TYPE * | find (const KEY &key) const |
| Find object by key (CONST) More... | |
| TYPE * | find (const KEY &key) |
| Find object by key. More... | |
| DbStatus | add (const KEY &key, TYPE *val) |
| Add entry to container. More... | |
| DbStatus | remove (const TYPE *val) |
| Remove entry from container. More... | |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
Private Attributes | |
| std::atomic< int > | m_refCount |
| Reference counter. More... | |
| DbAccessMode | m_mode |
| Access mode. More... | |
| std::string | m_name |
| Name of the instance. More... | |
| DbType | m_type |
| Database type. More... | |
| Keys | m_keys |
| Key entry buffer. More... | |
| IOODatabase * | m_pool |
| Pointer to specific pool implementation. More... | |
Description:
Templated base class for "abstarct" container objects. These abstarct containers are: DnSessions, DbDomainObjs, DbDatabaseObjs and DbContainerObjs.
Definition at line 47 of file DbAccessObj.h.
| typedef DbAccessObj< KEY , TYPE > pool::DbAccessObj< KEY, TYPE >::Base |
Type definitions.
Definition at line 50 of file DbAccessObj.h.
| typedef Keys::const_iterator pool::DbAccessObj< KEY, TYPE >::const_iterator |
Definition at line 53 of file DbAccessObj.h.
| typedef Keys::iterator pool::DbAccessObj< KEY, TYPE >::iterator |
Definition at line 52 of file DbAccessObj.h.
| typedef std::map< KEY, TYPE* > pool::DbAccessObj< KEY, TYPE >::Keys |
Definition at line 51 of file DbAccessObj.h.
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
Definition at line 163 of file DbAccessObj.h.
|
inline |
Definition at line 164 of file DbAccessObj.h.
|
inline |
|
inline |
Definition at line 87 of file DbAccessObj.h.
|
inline |
|
inline |
Definition at line 165 of file DbAccessObj.h.
|
inline |
Definition at line 166 of file DbAccessObj.h.
|
inline |
|
inline |
Find object by key (CONST)
Definition at line 132 of file DbAccessObj.h.
|
inline |
|
inline |
|
inline |
|
inline |
Remove reference count.
Definition at line 103 of file DbAccessObj.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 84 of file DbAccessObj.h.
|
private |
Key entry buffer.
Definition at line 64 of file DbAccessObj.h.
|
private |
Access mode.
Definition at line 58 of file DbAccessObj.h.
|
private |
Name of the instance.
Definition at line 60 of file DbAccessObj.h.
|
private |
Pointer to specific pool implementation.
Definition at line 66 of file DbAccessObj.h.
|
mutableprivate |
Reference counter.
Definition at line 56 of file DbAccessObj.h.
|
private |
Database type.
Definition at line 62 of file DbAccessObj.h.
1.8.18