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

75 : m_array(new IOVContainer) {}

◆ IOVArray() [2/2]

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

Definition at line 77 of file IOVProxy.cc.

77  : m_array(), m_tagInfo(rhs.m_tagInfo) {
78  m_array.reset(new IOVContainer(*rhs.m_array));
79  }

References m_array.

Member Function Documentation

◆ begin()

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

Definition at line 89 of file IOVProxy.cc.

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

98 { return m_array->empty(); }

References m_array.

Referenced by plotting.Plot::clone().

◆ operator=()

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

Definition at line 81 of file IOVProxy.cc.

81  {
82  m_array.reset(new IOVContainer(*rhs.m_array));
83  m_tagInfo = rhs.m_tagInfo;
84  return *this;
85  }

References m_array, and m_tagInfo.

◆ size()

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

Definition at line 95 of file IOVProxy.cc.

95 { 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 87 of file IOVProxy.cc.

87 { 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:19
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