  | 
  
    ATLAS Offline Software
    
   | 
 
 
 
 
Go to the documentation of this file.
   13 #ifndef POOL_DBACCESSOBJ_H 
   14 #define POOL_DBACCESSOBJ_H 1 
   27 #ifdef DEBUG_REFCOUNTS 
   51     typedef std::map< KEY, TYPE* >        
Keys;
 
   92 #ifdef DEBUG_REFCOUNTS 
   93       std::cout << 
typeid(*this).name() 
 
  105 #ifdef DEBUG_REFCOUNTS 
  106       std::cout << 
typeid(*this).name() 
 
  125       for(
iterator j = 
k.begin(); j != 
k.end(); ++j )  {
 
  126         (*j).second->release();
 
  134       return (
m_keys.end() == 
i) ? 0 : (*i).second;
 
  139       return (
m_keys.end() == 
i) ? 0 : (*i).second;
 
  154         if ( (*j).second == 
val ) {
 
  155           TYPE* 
p = (*j).second;
 
  169 #endif // POOL_DBACCESSOBJ_H 
  
JetConstituentVector::iterator iterator
 
DbStatus remove(const TYPE *val)
Remove entry from container.
 
DbAccessMode m_mode
Access mode.
 
void setMode(DbAccessMode m)
Set Access mode.
 
int addRef()
Increase the reference count.
 
DbType m_type
Database type.
 
const_iterator end() const
 
TYPE * find(const KEY &key)
Find object by key.
 
const IOODatabase * db() const
Allow access to the Database implementation.
 
const std::string & name() const
Access the instance name.
 
void setName(const std::string &n)
Access the instance name.
 
int release() const
Remove reference count.
 
DbStatus clearEntries()
Object cleanup: remove all entries.
 
DbAccessObj(const std::string &n, DbAccessMode m, const DbType &t, IOODatabase *s=0)
Constructor with initializing arguments.
 
std::atomic< int > m_refCount
Reference counter.
 
DbAccessMode mode() const
Access mode.
 
Keys::const_iterator const_iterator
 
Keys m_keys
Key entry buffer.
 
std::string m_name
Name of the instance.
 
DbAccessObj< KEY, TYPE > Base
Type definitions.
 
#define TYPE(CODE, TYP, IOTYP)
 
int refCount() const
Access reference counter.
 
int addRef() const
Add reference count.
 
std::map< KEY, TYPE * > Keys
 
const_iterator begin() const
 
const TYPE * find(const KEY &key) const
Find object by key (CONST)
 
DbStatus releasePtr(T *&p)
Release a pointer.
 
IOODatabase * m_pool
Pointer to specific pool implementation.
 
virtual ~DbAccessObj()
Standard destructor.
 
size_t size() const
Object size.
 
DbStatus add(const KEY &key, TYPE *val)
Add entry to container.
 
const DbType & type() const