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 77 of file IOVProxy.cc.

77 : m_array(new IOVContainer) {}

◆ IOVArray() [2/2]

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

Definition at line 79 of file IOVProxy.cc.

79  : m_array(), m_tagInfo(rhs.m_tagInfo) {
80  m_array = std::make_unique<IOVContainer>(*rhs.m_array);
81  }

References m_array.

Member Function Documentation

◆ begin()

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

Definition at line 91 of file IOVProxy.cc.

91 { 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 100 of file IOVProxy.cc.

100 { return m_array->empty(); }

References m_array.

Referenced by plotting.Plot::clone().

◆ operator=()

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

Definition at line 83 of file IOVProxy.cc.

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

References m_array, and m_tagInfo.

◆ size()

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

Definition at line 97 of file IOVProxy.cc.

97 { 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 89 of file IOVProxy.cc.

89 { 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().

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
ntuplemaker.time
time
Definition: ntuplemaker.py:310