CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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:87
std::vector< std::tuple< cond::Time_t, cond::Hash > > IOVContainer
Definition: IOVProxy.h:25
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:87

Member Function Documentation

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:87
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:87
IOVArray::Iterator cond::persistency::IOVArray::find ( cond::Time_t  time) const

Definition at line 101 of file IOVProxy.cc.

References Iterator, m_array, and cond::persistency::search().

Referenced by BeautifulSoup.Tag::__getattr__(), BeautifulSoup.Tag::firstText(), cond::persistency::importIovs(), cond::persistency::KeyList::loadFromDB(), and cond::persistency::KeyList::setKeys().

101 { return Iterator(search(time, *m_array), this); }
std::vector< T >::const_iterator search(const cond::Time_t &val, const std::vector< T > &container)
Definition: IOVProxy.cc:21
std::unique_ptr< IOVContainer > m_array
Definition: IOVProxy.h:87
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:87
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:87
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:87
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

friend class IOVProxy
friend

Definition at line 86 of file IOVProxy.h.

friend class Iterator
friend

Definition at line 63 of file IOVProxy.h.

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

Member Data Documentation

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