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

#include <StorageSvc/DbObjectGuard.h>

Collaboration diagram for pool::DbObjectGuard:

Public Member Functions

virtual ~DbObjectGuard ()
 Destructor. More...
 
 DbObjectGuard (int type=0, int siz=0)
 Standard constructor. More...
 
 DbObjectGuard (const DbContainer &cntH, int siz=0)
 Copy constructor. More...
 
size_t size () const
 Access memory chunk size. More...
 
Token::OID_toid ()
 Access oid. More...
 
const Token::OID_toid () const
 
const DbTypetype () const
 Access Storage Type. More...
 
DbContainercontainer ()
 Accessor: get object container. More...
 
const DbContainercontainer () const
 

Private Attributes

size_t m_size
 Size of memory chunk. More...
 
DbContainer m_container
 Reference to persistent container. More...
 
Token::OID_t m_oid
 OID. More...
 

Detailed Description

Description: class containing persistency information for managing basic persistable objects.

Author
M.Frank
Version
1.0

Definition at line 36 of file DbObjectGuard.h.

Constructor & Destructor Documentation

◆ ~DbObjectGuard()

virtual pool::DbObjectGuard::~DbObjectGuard ( )
virtual

Destructor.

◆ DbObjectGuard() [1/2]

pool::DbObjectGuard::DbObjectGuard ( int  type = 0,
int  siz = 0 
)

Standard constructor.

◆ DbObjectGuard() [2/2]

pool::DbObjectGuard::DbObjectGuard ( const DbContainer cntH,
int  siz = 0 
)

Copy constructor.

Member Function Documentation

◆ container() [1/2]

DbContainer& pool::DbObjectGuard::container ( )
inline

Accessor: get object container.

Definition at line 59 of file DbObjectGuard.h.

59 { return m_container; }

◆ container() [2/2]

const DbContainer& pool::DbObjectGuard::container ( ) const
inline

Definition at line 60 of file DbObjectGuard.h.

60 { return m_container; }

◆ oid() [1/2]

Token::OID_t& pool::DbObjectGuard::oid ( )
inline

Access oid.

Definition at line 54 of file DbObjectGuard.h.

54 { return m_oid; }

◆ oid() [2/2]

const Token::OID_t& pool::DbObjectGuard::oid ( ) const
inline

Definition at line 55 of file DbObjectGuard.h.

55 { return m_oid; }

◆ size()

size_t pool::DbObjectGuard::size ( ) const
inline

Access memory chunk size.

Definition at line 52 of file DbObjectGuard.h.

52 { return m_size; }

◆ type()

const DbType& pool::DbObjectGuard::type ( ) const
inline

Access Storage Type.

Definition at line 57 of file DbObjectGuard.h.

57 { return m_container.type();}

Member Data Documentation

◆ m_container

DbContainer pool::DbObjectGuard::m_container
private

Reference to persistent container.

Definition at line 41 of file DbObjectGuard.h.

◆ m_oid

Token::OID_t pool::DbObjectGuard::m_oid
private

OID.

Definition at line 43 of file DbObjectGuard.h.

◆ m_size

size_t pool::DbObjectGuard::m_size
private

Size of memory chunk.

Definition at line 39 of file DbObjectGuard.h.


The documentation for this class was generated from the following file:
pool::DbHandleBase::type
const DbType & type() const
Inquire storage type of the handle.
Definition: DbHandleBase.h:66
pool::DbObjectGuard::m_size
size_t m_size
Size of memory chunk.
Definition: DbObjectGuard.h:39
pool::DbObjectGuard::m_container
DbContainer m_container
Reference to persistent container.
Definition: DbObjectGuard.h:41
pool::DbObjectGuard::m_oid
Token::OID_t m_oid
OID.
Definition: DbObjectGuard.h:43