ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | List of all members
CoraCoolObject Class Reference

#include <CoraCoolObject.h>

Collaboration diagram for CoraCoolObject:

Public Types

typedef std::vector< coral::AttributeList > AttrListVec
 
typedef AttrListVec::const_iterator const_iterator
 
typedef AttrListVec::size_type size_type
 

Public Member Functions

 CoraCoolObject (const cool::ValidityKey &since, const cool::ValidityKey &until, const cool::ChannelId &chan)
 
 CoraCoolObject (const cool::ValidityKey &since, const cool::ValidityKey &until, const cool::ChannelId &chan, const coral::AttributeListSpecification *spec)
 
 ~CoraCoolObject ()
 
cool::ValidityKey since () const
 
cool::ValidityKey until () const
 
cool::ChannelId channelId () const
 
const_iterator begin () const
 
const_iterator end () const
 
size_type size () const
 
void add (const coral::AttributeList &data)
 

Private Attributes

cool::ValidityKey m_since
 
cool::ValidityKey m_until
 
cool::ChannelId m_chan
 
AttrListVec m_payload
 
const coral::AttributeListSpecification * m_spec
 

Detailed Description

Definition at line 20 of file CoraCoolObject.h.

Member Typedef Documentation

◆ AttrListVec

typedef std::vector<coral::AttributeList> CoraCoolObject::AttrListVec

Definition at line 22 of file CoraCoolObject.h.

◆ const_iterator

typedef AttrListVec::const_iterator CoraCoolObject::const_iterator

Definition at line 23 of file CoraCoolObject.h.

◆ size_type

typedef AttrListVec::size_type CoraCoolObject::size_type

Definition at line 24 of file CoraCoolObject.h.

Constructor & Destructor Documentation

◆ CoraCoolObject() [1/2]

CoraCoolObject::CoraCoolObject ( const cool::ValidityKey &  since,
const cool::ValidityKey &  until,
const cool::ChannelId &  chan 
)

Definition at line 11 of file CoraCoolObject.cxx.

12  :

◆ CoraCoolObject() [2/2]

CoraCoolObject::CoraCoolObject ( const cool::ValidityKey &  since,
const cool::ValidityKey &  until,
const cool::ChannelId &  chan,
const coral::AttributeListSpecification *  spec 
)

Definition at line 15 of file CoraCoolObject.cxx.

17  :

◆ ~CoraCoolObject()

CoraCoolObject::~CoraCoolObject ( )

Definition at line 20 of file CoraCoolObject.cxx.

20 {}

Member Function Documentation

◆ add()

void CoraCoolObject::add ( const coral::AttributeList &  data)

Definition at line 22 of file CoraCoolObject.cxx.

22  {
23  if (m_spec==0) {
24  m_payload.push_back(data);
25  } else {
26  m_payload.emplace_back(*m_spec,true);
27  m_payload.back().fastCopyData(data);
28  }
29 }

◆ begin()

CoraCoolObject::const_iterator CoraCoolObject::begin ( ) const
inline

Definition at line 62 of file CoraCoolObject.h.

63 { return m_payload.begin(); }

◆ channelId()

cool::ChannelId CoraCoolObject::channelId ( ) const
inline

Definition at line 59 of file CoraCoolObject.h.

60 {return m_chan; }

◆ end()

CoraCoolObject::const_iterator CoraCoolObject::end ( ) const
inline

Definition at line 65 of file CoraCoolObject.h.

66 { return m_payload.end(); }

◆ since()

cool::ValidityKey CoraCoolObject::since ( ) const
inline

Definition at line 57 of file CoraCoolObject.h.

57 { return m_since; }

◆ size()

CoraCoolObject::size_type CoraCoolObject::size ( ) const
inline

Definition at line 68 of file CoraCoolObject.h.

69 {return m_payload.size(); }

◆ until()

cool::ValidityKey CoraCoolObject::until ( ) const
inline

Definition at line 58 of file CoraCoolObject.h.

58 { return m_until; }

Member Data Documentation

◆ m_chan

cool::ChannelId CoraCoolObject::m_chan
private

Definition at line 52 of file CoraCoolObject.h.

◆ m_payload

AttrListVec CoraCoolObject::m_payload
private

Definition at line 53 of file CoraCoolObject.h.

◆ m_since

cool::ValidityKey CoraCoolObject::m_since
private

Definition at line 50 of file CoraCoolObject.h.

◆ m_spec

const coral::AttributeListSpecification* CoraCoolObject::m_spec
private

Definition at line 54 of file CoraCoolObject.h.

◆ m_until

cool::ValidityKey CoraCoolObject::m_until
private

Definition at line 51 of file CoraCoolObject.h.


The documentation for this class was generated from the following files:
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
CoraCoolObject::until
cool::ValidityKey until() const
Definition: CoraCoolObject.h:58
CaloCondBlobAlgs_fillNoiseFromASCII.spec
spec
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:47
CoraCoolObject::m_payload
AttrListVec m_payload
Definition: CoraCoolObject.h:53
ReadCellNoiseFromCool.chan
chan
Definition: ReadCellNoiseFromCool.py:52
CoraCoolObject::m_spec
const coral::AttributeListSpecification * m_spec
Definition: CoraCoolObject.h:54
CoraCoolObject::since
cool::ValidityKey since() const
Definition: CoraCoolObject.h:57
CoraCoolObject::m_since
cool::ValidityKey m_since
Definition: CoraCoolObject.h:50
CoraCoolObject::m_until
cool::ValidityKey m_until
Definition: CoraCoolObject.h:51
CoraCoolObject::m_chan
cool::ChannelId m_chan
Definition: CoraCoolObject.h:52