ATLAS Offline Software
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
v
w
x
z
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
GitLab
LXR
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Database
APR
StorageSvc
StorageSvc
DbObjectGuard.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
//====================================================================
6
// DbObjectGuard definition
7
//--------------------------------------------------------------------
8
//
9
// Package : StorageSvc (The POOL project)
10
//
11
// Description: Guard containing object persistency information
12
//
13
// @author M.Frank
14
//====================================================================
15
#ifndef POOL_DBOBJECTGUARD_H
16
#define POOL_DBOBJECTGUARD_H 1
17
18
// Framework include files
19
#include "
PersistentDataModel/Token.h
"
20
#include "
StorageSvc/DbContainer.h
"
21
22
/*
23
* POOL namespace declaration
24
*/
25
namespace
pool
{
26
36
class
DbObjectGuard
{
37
private
:
39
size_t
m_size
;
41
DbContainer
m_container
;
43
Token::OID_t
m_oid
;
44
public
:
46
virtual
~DbObjectGuard
();
48
DbObjectGuard
(
int
type
= 0,
int
siz = 0);
50
DbObjectGuard
(
const
DbContainer
& cntH,
int
siz = 0);
52
size_t
size
()
const
{
return
m_size
; }
54
Token::OID_t
&
oid
() {
return
m_oid
; }
55
const
Token::OID_t
&
oid
()
const
{
return
m_oid
; }
57
const
DbType
&
type
()
const
{
return
m_container
.
type
();}
59
DbContainer
&
container
() {
return
m_container
; }
60
const
DbContainer
&
container
()
const
{
return
m_container
; }
61
};
62
}
// End namespace pool
63
#endif // POOL_DBOBJECTGUARD_H
pool::DbObjectGuard::DbObjectGuard
DbObjectGuard(const DbContainer &cntH, int siz=0)
Copy constructor.
pool
pool namespace
Definition:
libname.h:15
pool::DbObjectGuard::container
DbContainer & container()
Accessor: get object container.
Definition:
DbObjectGuard.h:59
pool::DbHandleBase::type
const DbType & type() const
Inquire storage type of the handle.
Definition:
DbHandleBase.h:66
Token::OID_t
Definition:
Token.h:24
pool::DbObjectGuard::container
const DbContainer & container() const
Definition:
DbObjectGuard.h:60
DbContainer.h
pool::DbType
Definition:
DbType.h:31
pool::DbObjectGuard::m_size
size_t m_size
Size of memory chunk.
Definition:
DbObjectGuard.h:39
pool::DbObjectGuard::oid
Token::OID_t & oid()
Access oid.
Definition:
DbObjectGuard.h:54
pool::DbObjectGuard::DbObjectGuard
DbObjectGuard(int type=0, int siz=0)
Standard constructor.
pool::DbObjectGuard::oid
const Token::OID_t & oid() const
Definition:
DbObjectGuard.h:55
pool::DbObjectGuard::size
size_t size() const
Access memory chunk size.
Definition:
DbObjectGuard.h:52
pool::DbContainer
Definition:
DbContainer.h:51
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
pool::DbObjectGuard::~DbObjectGuard
virtual ~DbObjectGuard()
Destructor.
Token.h
This file contains the class definition for the Token class (migrated from POOL).
pool::DbObjectGuard
Definition:
DbObjectGuard.h:36
pool::DbObjectGuard::type
const DbType & type() const
Access Storage Type.
Definition:
DbObjectGuard.h:57
Generated on Wed May 28 2025 21:08:36 for ATLAS Offline Software by
1.8.18