ATLAS Offline Software
Loading...
Searching...
No Matches
CollectionRowBuffer.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef COLLECTIONSVC_COLLECTIONROWBUFFER_H
6#define COLLECTIONSVC_COLLECTIONROWBUFFER_H
7
8#include "TokenList.h"
9
10#include "CoralBase/AttributeList.h"
12
13#include <string>
14
15
16namespace pool {
17
31 {
32 public:
35
42 CollectionRowBuffer( const TokenList& tokenList, coral::AttributeList& attributeList );
43
50
53
60
66 bool operator==( const CollectionRowBuffer& rhs ) const;
67
73 bool operator!=( const CollectionRowBuffer& rhs ) const;
74
81
87 void setAttributeList( const coral::AttributeList& attributeList );
88
91
93 coral::AttributeList& attributeList();
94
96 const TokenList& tokenList() const;
97
99 const coral::AttributeList& attributeList() const;
100
101 private:
104
106 // Changed to a pointed to be able to avoid thread-safety checker
107 // warnings about AttributeList. We can change back to holding
108 // this by value once those warnings are removed.
109 coral::AttributeList* m_attributeList;
110
111 bool deleteAL ATLAS_NOT_THREAD_SAFE ();
112 };
113}
114
115#endif
116
Define macros for attributes used to control the static checker.
TokenList m_tokenList
List of Tokens.
void setTokenList(const TokenList &tokenList)
Sets the Token list schema.
const coral::AttributeList & attributeList() const
Returns a constant reference to the list of Attributes.
bool operator!=(const CollectionRowBuffer &rhs) const
Inequality operator.
const TokenList & tokenList() const
Returns a constant reference to the list of Tokens.
bool operator==(const CollectionRowBuffer &rhs) const
Equality operator.
~CollectionRowBuffer()
Default destructor.
coral::AttributeList & attributeList()
Returns a reference to the list of Attributes.
CollectionRowBuffer & operator=(const CollectionRowBuffer &rhs)
Assignment operator.
coral::AttributeList * m_attributeList
List of Attributes.
CollectionRowBuffer(const TokenList &tokenList, coral::AttributeList &attributeList)
Constructor taking Token list and Attribute list schema as input.
bool deleteAL ATLAS_NOT_THREAD_SAFE()
void setAttributeList(const coral::AttributeList &attributeList)
Sets the Attribute list schema.
CollectionRowBuffer(const CollectionRowBuffer &rhs)
Copy Constructor.
TokenList & tokenList()
Returns a reference to the list of Tokens.
CollectionRowBuffer()
Default Constructor.
A container class to facilitate the use of Token objects.
Definition TokenList.h:24
pool namespace
Definition libname.h:15