ATLAS Offline Software
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
pool::RootOODb Class Reference

#include <src/RootOODb.h>

Inheritance diagram for pool::RootOODb:
Collaboration diagram for pool::RootOODb:

Public Types

typedef Gaudi::PluginService::Factory< IOODatabase *()> Factory
 

Public Member Functions

 RootOODb (DbType typ=ROOT_StorageType)
 Standard Constructor. More...
 
virtual ~RootOODb ()
 Standard Destructor. More...
 
virtual const std::string & name () const
 Name of the Database implementation. More...
 
IDbDomaincreateDomain ()
 Create Root Domain object. More...
 
IDbDatabasecreateDatabase ()
 Create Root Database object (TFile) More...
 
IDbContainercreateContainer (const DbType &typ)
 Create Root Container object. 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...
 

Static Public Member Functions

static const char * catalogLabel ()
 Label of the specific class. More...
 

Private Attributes

int m_count = 1
 

Detailed Description

Description: ROOT specific implementation of the POOL database structure. The object allows to create

Author
M.Frank
Version
1.0

Definition at line 38 of file RootOODb.h.

Member Typedef Documentation

◆ Factory

typedef Gaudi::PluginService::Factory<IOODatabase*()> pool::RootOODb::Factory

Definition at line 40 of file RootOODb.h.

Constructor & Destructor Documentation

◆ RootOODb()

pool::RootOODb::RootOODb ( DbType  typ = ROOT_StorageType)

Standard Constructor.

◆ ~RootOODb()

virtual pool::RootOODb::~RootOODb ( )
virtual

Standard Destructor.

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; }

◆ catalogLabel()

static const char* pool::RootOODb::catalogLabel ( )
inlinestatic

Label of the specific class.

Definition at line 51 of file RootOODb.h.

51 { return "ROOT_All"; }

◆ createContainer()

IDbContainer* pool::RootOODb::createContainer ( const DbType typ)
virtual

Create Root Container object.

Implements pool::IOODatabase.

◆ createDatabase()

IDbDatabase* pool::RootOODb::createDatabase ( )
virtual

Create Root Database object (TFile)

Implements pool::IOODatabase.

◆ createDomain()

IDbDomain* pool::RootOODb::createDomain ( )
virtual

Create Root Domain object.

Implements pool::IOODatabase.

◆ name()

virtual const std::string& pool::RootOODb::name ( ) const
virtual

Name of the Database implementation.

Implements pool::IOODatabase.

◆ release()

void pool::IOODatabase::release ( )
inlineinherited

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