CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes
cond::persistency::IOVProxy Class Reference

#include <IOVProxy.h>

Classes

class  Iterator
 

Public Types

typedef std::vector
< std::tuple< cond::Time_t,
cond::Hash > > 
IOVContainer
 

Public Member Functions

Iterator begin () const
 
Iterator end () const
 
cond::Time_t endOfValidity () const
 
Iterator find (cond::Time_t time)
 
cond::Iov_t getInterval (cond::Time_t time)
 
cond::Iov_t getLast ()
 
std::tuple< std::string,
boost::posix_time::ptime,
boost::posix_time::ptime > 
getMetadata () const
 
 IOVProxy ()
 
 IOVProxy (const std::shared_ptr< SessionImpl > &session)
 
 IOVProxy (const IOVProxy &rhs)
 
bool isEmpty () const
 
cond::Time_t lastValidatedTime () const
 
void load (const std::string &tag, bool full=false)
 
void load (const std::string &tag, const boost::posix_time::ptime &snapshottime, bool full=false)
 
std::pair< cond::Time_t,
cond::Time_t
loadedGroup () const
 
int loadedSize () const
 
size_t numberOfQueries () const
 
IOVProxyoperator= (const IOVProxy &rhs)
 
std::string payloadObjectType () const
 
void reload ()
 
void reset ()
 
int sequenceSize () const
 
const std::shared_ptr
< SessionImpl > & 
session () const
 
cond::SynchronizationType synchronizationType () const
 
std::string tag () const
 
cond::TimeType timeType () const
 

Private Member Functions

void checkTransaction (const std::string &ctx) const
 
void fetchSequence (cond::Time_t lowerGroup, cond::Time_t higherGroup)
 

Private Attributes

std::shared_ptr< IOVProxyDatam_data
 
std::shared_ptr< SessionImplm_session
 

Detailed Description

Definition at line 28 of file IOVProxy.h.

Member Typedef Documentation

Definition at line 30 of file IOVProxy.h.

Constructor & Destructor Documentation

IOVProxy::IOVProxy ( )

Definition at line 109 of file IOVProxy.cc.

IOVProxy::IOVProxy ( const std::shared_ptr< SessionImpl > &  session)
explicit

Definition at line 114 of file IOVProxy.cc.

IOVProxy::IOVProxy ( const IOVProxy rhs)

Definition at line 119 of file IOVProxy.cc.

Member Function Documentation

IOVProxy::Iterator IOVProxy::begin ( void  ) const

Definition at line 257 of file IOVProxy.cc.

void IOVProxy::checkTransaction ( const std::string &  ctx) const
private

Definition at line 225 of file IOVProxy.cc.

IOVProxy::Iterator IOVProxy::end ( void  ) const
cond::Time_t IOVProxy::endOfValidity ( ) const

Definition at line 203 of file IOVProxy.cc.

void IOVProxy::fetchSequence ( cond::Time_t  lowerGroup,
cond::Time_t  higherGroup 
)
private

Definition at line 230 of file IOVProxy.cc.

IOVProxy::Iterator IOVProxy::find ( cond::Time_t  time)
cond::Iov_t IOVProxy::getInterval ( cond::Time_t  time)

Definition at line 317 of file IOVProxy.cc.

cond::Iov_t IOVProxy::getLast ( )

Definition at line 325 of file IOVProxy.cc.

Referenced by popcon::PopCon::initialize().

std::tuple< std::string, boost::posix_time::ptime, boost::posix_time::ptime > IOVProxy::getMetadata ( ) const

Definition at line 211 of file IOVProxy.cc.

bool IOVProxy::isEmpty ( ) const

Definition at line 221 of file IOVProxy.cc.

cond::Time_t IOVProxy::lastValidatedTime ( ) const

Definition at line 207 of file IOVProxy.cc.

void IOVProxy::load ( const std::string &  tag,
bool  full = false 
)
void IOVProxy::load ( const std::string &  tag,
const boost::posix_time::ptime &  snapshottime,
bool  full = false 
)
std::pair< cond::Time_t, cond::Time_t > IOVProxy::loadedGroup ( ) const

Definition at line 357 of file IOVProxy.cc.

int IOVProxy::loadedSize ( ) const

Definition at line 338 of file IOVProxy.cc.

size_t IOVProxy::numberOfQueries ( ) const

Definition at line 353 of file IOVProxy.cc.

IOVProxy & IOVProxy::operator= ( const IOVProxy rhs)

Definition at line 124 of file IOVProxy.cc.

std::string IOVProxy::payloadObjectType ( ) const

Definition at line 195 of file IOVProxy.cc.

void IOVProxy::reload ( )

Definition at line 173 of file IOVProxy.cc.

void IOVProxy::reset ( void  )

Definition at line 177 of file IOVProxy.cc.

int IOVProxy::sequenceSize ( ) const

Definition at line 342 of file IOVProxy.cc.

Referenced by popcon::PopCon::initialize().

const std::shared_ptr< SessionImpl > & IOVProxy::session ( ) const

Definition at line 361 of file IOVProxy.cc.

Referenced by cond::persistency::KeyList::load().

cond::SynchronizationType IOVProxy::synchronizationType ( ) const

Definition at line 199 of file IOVProxy.cc.

std::string IOVProxy::tag ( ) const
cond::TimeType IOVProxy::timeType ( ) const

Definition at line 191 of file IOVProxy.cc.

Referenced by cond::persistency::BasePayloadProxy::timeType().

Member Data Documentation

std::shared_ptr<IOVProxyData> cond::persistency::IOVProxy::m_data
private

Definition at line 146 of file IOVProxy.h.

std::shared_ptr<SessionImpl> cond::persistency::IOVProxy::m_session
private

Definition at line 147 of file IOVProxy.h.