ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
AthenaPOOL
EventSelectorAthenaPool
src
CollectionRowBuffer.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
CollectionRowBuffer.h
"
6
#include "
CollectionColumn.h
"
7
#include "
PersistentDataModel/Token.h
"
8
9
10
pool::CollectionRowBuffer::CollectionRowBuffer
()
11
:
m_token
( new
Token
),
12
m_attributeList
( new
coral
::AttributeList )
13
{}
14
15
16
pool::CollectionRowBuffer::CollectionRowBuffer
(
const
pool::CollectionRowBuffer
& rhs )
17
:
m_token
( new
Token
),
18
m_attributeList
( new
coral
::AttributeList )
19
{
20
rhs.
token
().setData(
m_token
);
21
// share the data
22
m_attributeList
->merge( *rhs.
m_attributeList
);
23
}
24
25
26
bool
pool::CollectionRowBuffer::deleteAL
ATLAS_NOT_THREAD_SAFE
()
27
{
28
delete
m_attributeList; m_attributeList =
nullptr
;
29
delete
m_token; m_token =
nullptr
;
30
return
true
;
31
}
32
33
34
pool::CollectionRowBuffer::~CollectionRowBuffer
()
35
{
36
[[maybe_unused]]
bool
flag
ATLAS_THREAD_SAFE
= deleteAL();
37
}
38
39
40
void
41
pool::CollectionRowBuffer::setAttributeList
(
const
coral::AttributeList&
attributeList
)
42
{
43
*
m_attributeList
=
attributeList
;
44
}
45
46
47
Token
&
48
pool::CollectionRowBuffer::token
()
49
{
50
return
*
m_token
;
51
}
52
53
const
Token
&
54
pool::CollectionRowBuffer::token
()
const
55
{
56
return
*
m_token
;
57
}
58
59
60
const
std::string&
61
pool::CollectionRowBuffer::tokenName
()
const
62
{
63
return
CollectionColumn::tokenColumn
().
name
();
64
}
65
66
67
coral::AttributeList&
68
pool::CollectionRowBuffer::attributeList
()
69
{
70
return
*
m_attributeList
;
71
}
72
73
74
const
coral::AttributeList&
75
pool::CollectionRowBuffer::attributeList
()
const
76
{
77
return
*
m_attributeList
;
78
}
79
CollectionColumn.h
CollectionRowBuffer.h
Token.h
This file contains the class definition for the Token class (migrated from POOL).
ATLAS_NOT_THREAD_SAFE
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
Definition
checker_macros.h:212
ATLAS_THREAD_SAFE
#define ATLAS_THREAD_SAFE
Definition
checker_macros.h:211
Token
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition
Token.h:22
pool::CollectionColumn::tokenColumn
static const CollectionColumn & tokenColumn()
Definition
CollectionColumn.h:21
pool::CollectionColumn::name
const std::string & name() const
Returns the name of the column.
Definition
CollectionColumn.h:39
pool::CollectionRowBuffer
A class representing a row of a collection.
Definition
CollectionRowBuffer.h:25
pool::CollectionRowBuffer::~CollectionRowBuffer
~CollectionRowBuffer()
Default destructor.
Definition
CollectionRowBuffer.cxx:34
pool::CollectionRowBuffer::attributeList
coral::AttributeList & attributeList()
Returns a reference to the list of Attributes.
Definition
CollectionRowBuffer.cxx:68
pool::CollectionRowBuffer::m_attributeList
coral::AttributeList * m_attributeList
List of Attributes.
Definition
CollectionRowBuffer.h:67
pool::CollectionRowBuffer::token
Token & token()
Returns an object reference.
Definition
CollectionRowBuffer.cxx:48
pool::CollectionRowBuffer::m_token
Token * m_token
Definition
CollectionRowBuffer.h:61
pool::CollectionRowBuffer::tokenName
const std::string & tokenName() const
Definition
CollectionRowBuffer.cxx:61
pool::CollectionRowBuffer::setAttributeList
void setAttributeList(const coral::AttributeList &attributeList)
Sets the Attribute list schema.
Definition
CollectionRowBuffer.cxx:41
pool::CollectionRowBuffer::CollectionRowBuffer
CollectionRowBuffer()
Default Constructor.
Definition
CollectionRowBuffer.cxx:10
coral
Definition
ISecondaryEventSelector.h:19
Generated on
for ATLAS Offline Software by
1.17.0