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) {}

◆ IOVArray() [2/2]

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

Definition at line 85 of file IOVProxy.cc.

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

References m_array.

Member Function Documentation

◆ begin()

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

Definition at line 97 of file IOVProxy.cc.

97 { return Iterator(m_array->begin(), this); }

References Iterator, and m_array.

◆ end()

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

◆ 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.

106 { return m_array->empty(); }

References m_array.

Referenced by plotting.Plot::clone().

◆ operator=()

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

Definition at line 89 of file IOVProxy.cc.

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

References m_array, and m_tagInfo.

◆ size()

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

Definition at line 103 of file IOVProxy.cc.

103 { return m_array->size(); }

References m_array.

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

◆ tagInfo()

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

Definition at line 95 of file IOVProxy.cc.

95 { return m_tagInfo; }

References m_tagInfo.

Friends And Related Function Documentation

◆ IOVProxy

friend class IOVProxy
friend

Definition at line 86 of file IOVProxy.h.

◆ Iterator

friend class Iterator
friend

Definition at line 63 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 87 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 88 of file IOVProxy.h.

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

protons_cff.time
time
Definition: protons_cff.py:35
cond::persistency::IOVArray::m_array
std::unique_ptr< IOVContainer > m_array
Definition: IOVProxy.h:87
cond::persistency::IOVArray::Iterator
friend class Iterator
Definition: IOVProxy.h:63
cond::persistency::search
std::vector< T >::const_iterator search(const cond::Time_t &val, const std::vector< T > &container)
Definition: IOVProxy.cc:21
cond::persistency::IOVArray::m_tagInfo
cond::Tag_t m_tagInfo
Definition: IOVProxy.h:88
cond::persistency::IOVContainer
std::vector< std::tuple< cond::Time_t, cond::Hash > > IOVContainer
Definition: IOVProxy.h:25