ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
pool::IOODatabase Class Referenceabstract

#include <IOODatabase.h>

Inheritance diagram for pool::IOODatabase:
Collaboration diagram for pool::IOODatabase:

Public Member Functions

virtual ~IOODatabase ()
 
virtual const std::string & name () const =0
 Name of the Database implementation. More...
 
virtual IDbDomaincreateDomain (void)=0
 Create Database domain. More...
 
virtual IDbDatabasecreateDatabase (void)=0
 Create Database. More...
 
virtual IDbContainercreateContainer (const DbType &typ)=0
 Create Database container. More...
 
void release ()
 delete object if ref count drops to 0 More...
 
int addRef ()
 Increase the reference count. More...
 
int subRef ()
 Decrease the reference count. More...
 

Private Attributes

int m_count = 1
 

Detailed Description

The IOODatabase interface allows to:

Author
Markus Frank
Version
1.0

Definition at line 50 of file IOODatabase.h.

Constructor & Destructor Documentation

◆ ~IOODatabase()

virtual pool::IOODatabase::~IOODatabase ( )
inlinevirtual

Definition at line 52 of file IOODatabase.h.

52 {}

Member Function Documentation

◆ addRef()

int pool::RefCounter::addRef ( )
inlineinherited

Increase the reference count.

Definition at line 139 of file Database/APR/StorageSvc/StorageSvc/pool.h.

139 { return ++m_count; }

◆ createContainer()

virtual IDbContainer* pool::IOODatabase::createContainer ( const DbType typ)
pure virtual

Create Database container.

Implemented in pool::RootOODb.

◆ createDatabase()

virtual IDbDatabase* pool::IOODatabase::createDatabase ( void  )
pure virtual

Create Database.

Implemented in pool::RootOODb.

◆ createDomain()

virtual IDbDomain* pool::IOODatabase::createDomain ( void  )
pure virtual

Create Database domain.

Implemented in pool::RootOODb.

◆ name()

virtual const std::string& pool::IOODatabase::name ( ) const
pure virtual

Name of the Database implementation.

Implemented in pool::RootOODb.

◆ release()

void pool::IOODatabase::release ( )
inline

delete object if ref count drops to 0

Definition at line 66 of file IOODatabase.h.

66 { if( RefCounter::subRef() <= 0 ) delete this; }

◆ subRef()

int pool::RefCounter::subRef ( )
inlineinherited

Decrease the reference count.

Definition at line 141 of file Database/APR/StorageSvc/StorageSvc/pool.h.

141 { return --m_count; }

Member Data Documentation

◆ m_count

int pool::RefCounter::m_count = 1
privateinherited

Definition at line 132 of file Database/APR/StorageSvc/StorageSvc/pool.h.


The documentation for this class was generated from the following file:
pool::RefCounter::m_count
int m_count
Definition: Database/APR/StorageSvc/StorageSvc/pool.h:132
pool::RefCounter::subRef
int subRef()
Decrease the reference count.
Definition: Database/APR/StorageSvc/StorageSvc/pool.h:141