ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
APR
CollectionSvc
CollectionSvc
CollectionRowBuffer.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef COLLECTIONSVC_COLLECTIONROWBUFFER_H
6
#define COLLECTIONSVC_COLLECTIONROWBUFFER_H
7
8
#include "CoralBase/AttributeList.h"
9
#include "
CxxUtils/checker_macros.h
"
10
11
#include <string>
12
13
class
Token
;
14
15
namespace
pool
{
16
24
class
CollectionRowBuffer
25
{
26
public
:
28
CollectionRowBuffer
();
29
35
CollectionRowBuffer
( coral::AttributeList&
attributeList
);
36
42
CollectionRowBuffer
(
const
CollectionRowBuffer
& rhs );
43
45
~CollectionRowBuffer
();
46
52
CollectionRowBuffer
&
operator=
(
const
CollectionRowBuffer
& rhs );
53
59
bool
operator==
(
const
CollectionRowBuffer
& rhs )
const
;
60
66
bool
operator!=
(
const
CollectionRowBuffer
& rhs )
const
;
67
73
void
setAttributeList
(
const
coral::AttributeList&
attributeList
);
74
76
Token
&
token
();
77
const
Token
&
token
()
const
;
78
const
std::string&
tokenName
()
const
;
79
81
coral::AttributeList&
attributeList
();
82
84
const
coral::AttributeList&
attributeList
()
const
;
85
86
private
:
87
Token
*
m_token
;
88
90
// Changed to a pointed to be able to avoid thread-safety checker
91
// warnings about AttributeList. We can change back to holding
92
// this by value once those warnings are removed.
93
coral::AttributeList*
m_attributeList
;
94
95
bool
deleteAL
ATLAS_NOT_THREAD_SAFE
();
96
};
97
}
98
99
#endif
100
checker_macros.h
Define macros for attributes used to control the static checker.
Token
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition
Token.h:22
pool::CollectionRowBuffer::attributeList
const coral::AttributeList & attributeList() const
Returns a constant reference to the list of Attributes.
pool::CollectionRowBuffer::operator!=
bool operator!=(const CollectionRowBuffer &rhs) const
Inequality operator.
pool::CollectionRowBuffer::operator==
bool operator==(const CollectionRowBuffer &rhs) const
Equality operator.
pool::CollectionRowBuffer::token
const Token & token() const
pool::CollectionRowBuffer::~CollectionRowBuffer
~CollectionRowBuffer()
Default destructor.
pool::CollectionRowBuffer::attributeList
coral::AttributeList & attributeList()
Returns a reference to the list of Attributes.
pool::CollectionRowBuffer::operator=
CollectionRowBuffer & operator=(const CollectionRowBuffer &rhs)
Assignment operator.
pool::CollectionRowBuffer::m_attributeList
coral::AttributeList * m_attributeList
List of Attributes.
Definition
CollectionRowBuffer.h:93
pool::CollectionRowBuffer::token
Token & token()
Returns an object reference.
pool::CollectionRowBuffer::CollectionRowBuffer
CollectionRowBuffer(coral::AttributeList &attributeList)
Constructor taking Attribute list as input.
pool::CollectionRowBuffer::m_token
Token * m_token
Definition
CollectionRowBuffer.h:87
pool::CollectionRowBuffer::tokenName
const std::string & tokenName() const
pool::CollectionRowBuffer::ATLAS_NOT_THREAD_SAFE
bool deleteAL ATLAS_NOT_THREAD_SAFE()
pool::CollectionRowBuffer::setAttributeList
void setAttributeList(const coral::AttributeList &attributeList)
Sets the Attribute list schema.
pool::CollectionRowBuffer::CollectionRowBuffer
CollectionRowBuffer(const CollectionRowBuffer &rhs)
Copy Constructor.
pool::CollectionRowBuffer::CollectionRowBuffer
CollectionRowBuffer()
Default Constructor.
pool
Framework include files.
Definition
libname.h:15
Generated on
for ATLAS Offline Software by
1.17.0