ATLAS Offline Software
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions
Database/APR/StorageSvc/StorageSvc/pool.h File Reference
#include "StorageSvc/DbStatus.h"
#include <string>
#include <utility>
Include dependency graph for Database/APR/StorageSvc/StorageSvc/pool.h:

Go to the source code of this file.

Classes

class  pool::RefCounter
 

Namespaces

 pool
 pool namespace
 

Macros

#define POOL_BASE
 
#define POOL_BASE1(b1)   : b1
 
#define POOL_BASE2(b1, b2)   POOL_BASE1(b1), b2
 
#define POOL_BASE3(b1, b2, b3)   POOL_BASE2(b1,b2), b3
 
#define POOL_BASE4(b1, b2, b3, b4)   POOL_BASE3(b1,b2,b3), b4
 
#define POOL_BEGIN_STATIC_BLOCK(x)   namespace { struct __init { __init() {
 
#define POOL_END_STATIC_BLOCK(x)   }}; static __init _i;} void* __init_##x () {return &_i;}
 

Typedefs

typedef void pool::DbObject
 
typedef int pool::DbAccessMode
 
typedef std::pair< long long, long long > pool::DbLink
 

Enumerations

enum  pool::AccessMode {
  pool::NONE = 0, pool::NOT_OPEN = 1<<0, pool::READ = 1<<1, pool::UPDATE = 1<<2,
  pool::CREATE = 1<<3, pool::RECREATE = (1<<4)+(1<<3), pool::WRITE = 1<<3, pool::DESTROY = 1<<5
}
 Definition of access modes. More...
 

Functions

void pool::debugBreak ()
 Issue a debug break. More...
 
void pool::debugBreak (const std::string &src, const std::string &msg, bool rethrow=true)
 Issue a debug break with error message (to std::cout !!) More...
 
void pool::debugBreak (const std::string &src, const std::string &msg, const std::exception &e, bool rethrow=true)
 Debug break with printout and exception chaining. More...
 
bool pool::doTrace ()
 Check for tracing. More...
 
const char * pool::accessMode (pool::DbAccessMode access_mode)
 Translate access mode to string. More...
 
template<class T >
DbStatus pool::deletePtr (T *&p)
 Delete a pointer. More...
 
template<class T >
DbStatus pool::releasePtr (T *&p)
 Release a pointer. More...
 
template<class T >
int pool::decrementPtr (T *&p)
 Release Reference countable pointer. More...
 

Macro Definition Documentation

◆ POOL_BASE

#define POOL_BASE

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

◆ POOL_BASE1

#define POOL_BASE1 (   b1)    : b1

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

◆ POOL_BASE2

#define POOL_BASE2 (   b1,
  b2 
)    POOL_BASE1(b1), b2

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

◆ POOL_BASE3

#define POOL_BASE3 (   b1,
  b2,
  b3 
)    POOL_BASE2(b1,b2), b3

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

◆ POOL_BASE4

#define POOL_BASE4 (   b1,
  b2,
  b3,
  b4 
)    POOL_BASE3(b1,b2,b3), b4

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

◆ POOL_BEGIN_STATIC_BLOCK

#define POOL_BEGIN_STATIC_BLOCK (   x)    namespace { struct __init { __init() {

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

◆ POOL_END_STATIC_BLOCK

#define POOL_END_STATIC_BLOCK (   x)    }}; static __init _i;} void* __init_##x () {return &_i;}

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