CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Private Attributes | Friends
cond::persistency::IOVArray Class Reference

#include <IOVProxy.h>

Classes

class  Iterator
 

Public Member Functions

Iterator begin () const
 
Iterator end () const
 
Iterator find (cond::Time_t time) const
 
 IOVArray ()
 
 IOVArray (const IOVArray &rhs)
 
bool isEmpty () const
 
IOVArrayoperator= (const IOVArray &rhs)
 
size_t size () const
 
const cond::Tag_ttagInfo () const
 

Private Attributes

std::unique_ptr< IOVContainerm_array
 
cond::Tag_t m_tagInfo
 

Friends

class IOVProxy
 
class Iterator
 

Detailed Description

Definition at line 29 of file IOVProxy.h.

Constructor & Destructor Documentation

◆ IOVArray() [1/2]

cond::persistency::IOVArray::IOVArray ( )

Definition at line 83 of file IOVProxy.cc.

83 : m_array(new IOVContainer) {}
std::unique_ptr< IOVContainer > m_array
Definition: IOVProxy.h:94
std::vector< std::tuple< cond::Time_t, cond::Hash > > IOVContainer
Definition: IOVProxy.h:25

◆ IOVArray() [2/2]

cond::persistency::IOVArray::IOVArray ( const IOVArray rhs)

Definition at line 85 of file IOVProxy.cc.

References m_array.

85  : m_array(), m_tagInfo(rhs.m_tagInfo) {
86  m_array = std::make_unique<IOVContainer>(*rhs.m_array);
87  }
std::unique_ptr< IOVContainer > m_array
Definition: IOVProxy.h:94

Member Function Documentation

◆ begin()

IOVArray::Iterator cond::persistency::IOVArray::begin ( void  ) const

Definition at line 97 of file IOVProxy.cc.

References Iterator, and m_array.

97 { return Iterator(m_array->begin(), this); }
std::unique_ptr< IOVContainer > m_array
Definition: IOVProxy.h:94

◆ end()

IOVArray::Iterator cond::persistency::IOVArray::end ( void  ) const

Definition at line 99 of file IOVProxy.cc.

References Iterator, and m_array.

Referenced by Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), cond::persistency::KeyList::loadFromDB(), and cond::persistency::KeyList::setKeys().

99 { return Iterator(m_array->end(), this); }
std::unique_ptr< IOVContainer > m_array
Definition: IOVProxy.h:94

◆ find()

IOVArray::Iterator cond::persistency::IOVArray::find ( cond::Time_t  time) const

◆ isEmpty()

bool cond::persistency::IOVArray::isEmpty ( ) const

Definition at line 106 of file IOVProxy.cc.

References m_array.

Referenced by plotting.Plot::clone().

106 { return m_array->empty(); }
std::unique_ptr< IOVContainer > m_array
Definition: IOVProxy.h:94

◆ operator=()

IOVArray & cond::persistency::IOVArray::operator= ( const IOVArray rhs)

Definition at line 89 of file IOVProxy.cc.

References m_array, and m_tagInfo.

89  {
90  m_array = std::make_unique<IOVContainer>(*rhs.m_array);
91  m_tagInfo = rhs.m_tagInfo;
92  return *this;
93  }
std::unique_ptr< IOVContainer > m_array
Definition: IOVProxy.h:94

◆ size()

size_t cond::persistency::IOVArray::size ( void  ) const

Definition at line 103 of file IOVProxy.cc.

References m_array.

Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().

103 { return m_array->size(); }
std::unique_ptr< IOVContainer > m_array
Definition: IOVProxy.h:94

◆ tagInfo()

const cond::Tag_t & cond::persistency::IOVArray::tagInfo ( ) const

Definition at line 95 of file IOVProxy.cc.

References m_tagInfo.

95 { return m_tagInfo; }

Friends And Related Function Documentation

◆ IOVProxy

friend class IOVProxy
friend

Definition at line 93 of file IOVProxy.h.

◆ Iterator

friend class Iterator
friend

Definition at line 70 of file IOVProxy.h.

Referenced by begin(), end(), and find().

Member Data Documentation

◆ m_array

std::unique_ptr<IOVContainer> cond::persistency::IOVArray::m_array
private

Definition at line 94 of file IOVProxy.h.

Referenced by begin(), end(), find(), IOVArray(), isEmpty(), operator=(), and size().

◆ m_tagInfo

cond::Tag_t cond::persistency::IOVArray::m_tagInfo
private

Definition at line 95 of file IOVProxy.h.

Referenced by operator=(), and tagInfo().