ATLAS Offline Software
Loading...
Searching...
No Matches
pool::CollectionRowBuffer Class Reference

A class representing a row of a collection. More...

#include <CollectionRowBuffer.h>

Collaboration diagram for pool::CollectionRowBuffer:

Public Member Functions

 CollectionRowBuffer ()
 Default Constructor.
 CollectionRowBuffer (const CollectionRowBuffer &rhs)
 Copy Constructor.
 ~CollectionRowBuffer ()
 Default destructor.
CollectionRowBuffer & operator= (const CollectionRowBuffer &rhs)=delete
void setAttributeList (const coral::AttributeList &attributeList)
 Sets the Attribute list schema.
Token & token ()
 Returns an object reference.
const Token & token () const
const std::string & tokenName () const
coral::AttributeList & attributeList ()
 Returns a reference to the list of Attributes.
const coral::AttributeList & attributeList () const
 Returns a constant reference to the list of Attributes.

Private Member Functions

bool deleteAL ATLAS_NOT_THREAD_SAFE ()

Private Attributes

Token * m_token
coral::AttributeList * m_attributeList
 List of Attributes.

Detailed Description

A class representing a row of a collection.

It contains a list of named attributes and a single POOL object reference. It is used when creatoing a new collection or when iterating over an existing one.

Definition at line 24 of file CollectionRowBuffer.h.

Constructor & Destructor Documentation

◆ CollectionRowBuffer() [1/2]

pool::CollectionRowBuffer::CollectionRowBuffer ( )

Default Constructor.

Definition at line 10 of file CollectionRowBuffer.cxx.

11 : m_token( new Token ),
12 m_attributeList( new coral::AttributeList )
13{}
coral::AttributeList * m_attributeList
List of Attributes.

◆ CollectionRowBuffer() [2/2]

pool::CollectionRowBuffer::CollectionRowBuffer ( const CollectionRowBuffer & rhs)

Copy Constructor.

Parameters
rhsObject to be copied.

Definition at line 16 of file CollectionRowBuffer.cxx.

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}

◆ ~CollectionRowBuffer()

pool::CollectionRowBuffer::~CollectionRowBuffer ( )

Default destructor.

Definition at line 34 of file CollectionRowBuffer.cxx.

35{
36 [[maybe_unused]] bool flag ATLAS_THREAD_SAFE = deleteAL();
37}
#define ATLAS_THREAD_SAFE
bool flag
Definition master.py:29

Member Function Documentation

◆ ATLAS_NOT_THREAD_SAFE()

bool deleteAL pool::CollectionRowBuffer::ATLAS_NOT_THREAD_SAFE ( )
private

◆ attributeList() [1/2]

coral::AttributeList & pool::CollectionRowBuffer::attributeList ( )

Returns a reference to the list of Attributes.

Definition at line 68 of file CollectionRowBuffer.cxx.

69{
70 return *m_attributeList;
71}

◆ attributeList() [2/2]

const coral::AttributeList & pool::CollectionRowBuffer::attributeList ( ) const

Returns a constant reference to the list of Attributes.

Definition at line 75 of file CollectionRowBuffer.cxx.

76{
77 return *m_attributeList;
78}

◆ operator=()

CollectionRowBuffer & pool::CollectionRowBuffer::operator= ( const CollectionRowBuffer & rhs)
delete

◆ setAttributeList()

void pool::CollectionRowBuffer::setAttributeList ( const coral::AttributeList & attributeList)

Sets the Attribute list schema.

Parameters
attributeListList of Attributes.

Definition at line 41 of file CollectionRowBuffer.cxx.

42{
44}
coral::AttributeList & attributeList()
Returns a reference to the list of Attributes.

◆ token() [1/2]

Token & pool::CollectionRowBuffer::token ( )

Returns an object reference.

Definition at line 48 of file CollectionRowBuffer.cxx.

49{
50 return *m_token;
51}

◆ token() [2/2]

const Token & pool::CollectionRowBuffer::token ( ) const

Definition at line 54 of file CollectionRowBuffer.cxx.

55{
56 return *m_token;
57}

◆ tokenName()

const std::string & pool::CollectionRowBuffer::tokenName ( ) const

Definition at line 61 of file CollectionRowBuffer.cxx.

62{
64}
static const CollectionColumn & tokenColumn()
const std::string & name() const
Returns the name of the column.

Member Data Documentation

◆ m_attributeList

coral::AttributeList* pool::CollectionRowBuffer::m_attributeList
private

List of Attributes.

Definition at line 67 of file CollectionRowBuffer.h.

◆ m_token

Token* pool::CollectionRowBuffer::m_token
private

Definition at line 61 of file CollectionRowBuffer.h.


The documentation for this class was generated from the following files: