#include <IOV.h>
Public Types | |
typedef Container::const_iterator | const_iterator |
typedef std::vector< Item > | Container |
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 |
typedef std::vector<Item> cond::IOV::Container |
typedef std::pair<cond::Time_t, std::string> cond::IOV::Item |
cond::IOV::IOV | ( | int | type, |
cond::Time_t | since | ||
) | [inline] |
Definition at line 20 of file IOV.h.
: timetype(type), firstsince(since){}
size_t cond::IOV::add | ( | cond::Time_t | time, |
std::string const & | token | ||
) | [inline] |
iterator cond::IOV::find | ( | cond::Time_t | time | ) | [inline] |
Definition at line 31 of file IOV.h.
References ora::QueryableVector< Tp >::begin(), ora::QueryableVector< Tp >::end(), first, and iov.
Referenced by cond::IOVProxy::find(), and cond::IOVProxy::setRange().
{ return std::lower_bound(iov.begin(),iov.end(),Item(time,""), boost::bind(std::less<cond::Time_t>(), boost::bind(&Item::first,_1), boost::bind(&Item::first,_2) ) ); }
const_iterator cond::IOV::find | ( | cond::Time_t | time | ) | const [inline] |
Definition at line 40 of file IOV.h.
References ora::QueryableVector< Tp >::begin(), ora::QueryableVector< Tp >::end(), first, and iov.
{ return std::lower_bound(iov.begin(),iov.end(),Item(time,""), boost::bind(std::less<cond::Time_t>(), boost::bind(&Item::first,_1), boost::bind(&Item::first,_2) ) ); }
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().
{ return cond::timeTypeSpecs[timetype].type;}
Definition at line 53 of file IOV.h.
Referenced by add(), copyObject(), find(), cond::IOVProxy::iov(), and publishObjects().
Definition at line 54 of file IOV.h.
Referenced by timeType().