CMS 3D CMS Logo

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

#include <IOV.h>

Public Types

typedef Container::const_iterator const_iterator
 
typedef std::vector< ItemContainer
 
typedef std::pair
< cond::Time_t, std::string > 
Item
 
typedef Container::iterator iterator
 

Public Member Functions

size_t add (cond::Time_t time, std::string const &token)
 
iterator find (cond::Time_t time)
 
const_iterator find (cond::Time_t time) const
 
 IOV ()
 
 IOV (int type, cond::Time_t since)
 
cond::TimeType timeType () const
 
virtual ~IOV ()
 

Public Attributes

cond::Time_t firstsince
 
Container iov
 
int timetype
 

Detailed Description

Definition at line 12 of file IOV.h.

Member Typedef Documentation

typedef Container::const_iterator cond::IOV::const_iterator

Definition at line 17 of file IOV.h.

typedef std::vector<Item> cond::IOV::Container

Definition at line 15 of file IOV.h.

typedef std::pair<cond::Time_t, std::string> cond::IOV::Item

Definition at line 14 of file IOV.h.

typedef Container::iterator cond::IOV::iterator

Definition at line 16 of file IOV.h.

Constructor & Destructor Documentation

cond::IOV::IOV ( )
inline

Definition at line 19 of file IOV.h.

19 {}
cond::IOV::IOV ( int  type,
cond::Time_t  since 
)
inline

Definition at line 20 of file IOV.h.

20  :
21  timetype(type), firstsince(since){}
type
Definition: HCALResponse.h:22
int timetype
Definition: IOV.h:54
cond::Time_t firstsince
Definition: IOV.h:55
virtual cond::IOV::~IOV ( )
inlinevirtual

Definition at line 23 of file IOV.h.

23 {}

Member Function Documentation

size_t cond::IOV::add ( cond::Time_t  time,
std::string const &  token 
)
inline

Definition at line 26 of file IOV.h.

References iov, ora::PVector< Tp >::push_back(), and ora::PVector< Tp >::size().

26  {
27  iov.push_back(Item(time, token));
28  return iov.size()-1;
29  }
void push_back(const Tp &x)
Definition: PVector.h:177
Container iov
Definition: IOV.h:53
std::pair< cond::Time_t, std::string > Item
Definition: IOV.h:14
size_type size() const
Definition: PVector.h:102
iterator cond::IOV::find ( cond::Time_t  time)
inline

Definition at line 31 of file IOV.h.

References ora::PVector< Tp >::begin(), ora::PVector< Tp >::end(), first, and iov.

Referenced by cond::IOVProxy::find(), and cond::IOVProxy::setRange().

31  {
32  return std::lower_bound(iov.begin(),iov.end(),Item(time,""),
33  boost::bind(std::less<cond::Time_t>(),
34  boost::bind(&Item::first,_1),
35  boost::bind(&Item::first,_2)
36  )
37  );
38  }
iterator end()
Definition: PVector.h:67
iterator begin()
Definition: PVector.h:62
Container iov
Definition: IOV.h:53
std::pair< cond::Time_t, std::string > Item
Definition: IOV.h:14
bool first
Definition: L1TdeRCT.cc:79
const_iterator cond::IOV::find ( cond::Time_t  time) const
inline

Definition at line 40 of file IOV.h.

References ora::PVector< Tp >::begin(), ora::PVector< Tp >::end(), first, and iov.

40  {
41  return std::lower_bound(iov.begin(),iov.end(),Item(time,""),
42  boost::bind(std::less<cond::Time_t>(),
43  boost::bind(&Item::first,_1),
44  boost::bind(&Item::first,_2)
45  )
46  );
47  }
iterator end()
Definition: PVector.h:67
iterator begin()
Definition: PVector.h:62
Container iov
Definition: IOV.h:53
std::pair< cond::Time_t, std::string > Item
Definition: IOV.h:14
bool first
Definition: L1TdeRCT.cc:79
cond::TimeType cond::IOV::timeType ( ) const
inline

Definition at line 50 of file IOV.h.

References timetype, cond::timeTypeSpecs, and cond::TimeTypeSpecs::type.

Referenced by cond::IOVProxy::timetype().

const TimeTypeSpecs timeTypeSpecs[]
Definition: Time.cc:22
TimeType type
Definition: Time.h:41
int timetype
Definition: IOV.h:54

Member Data Documentation

cond::Time_t cond::IOV::firstsince

Definition at line 55 of file IOV.h.

Referenced by cond::migrateIOV().

Container cond::IOV::iov

Definition at line 53 of file IOV.h.

Referenced by add(), copyObject(), find(), cond::IOVProxy::iov(), cond::migrateIOV(), and publishObjects().

int cond::IOV::timetype

Definition at line 54 of file IOV.h.

Referenced by cond::migrateIOV(), and timeType().