ATLAS Offline Software
Loading...
Searching...
No Matches
IOVTime.h File Reference

Basic time unit for IOVSvc. More...

#include <iosfwd>
#include <string>
#include <stdint.h>
#include <limits>
Include dependency graph for IOVTime.h:

Go to the source code of this file.

Classes

class  IOVTime
 Basic time unit for IOVSvc. More...
class  IOVTime::SortByTimeStamp
 Predicate. More...
class  IOVTime::SortByRunEvent
 Predicate. More...

Functions

bool operator< (const IOVTime &lhs, const IOVTime &rhs)
bool operator> (const IOVTime &lhs, const IOVTime &rhs)
bool operator== (const IOVTime &lhs, const IOVTime &rhs)
bool operator!= (const IOVTime &lhs, const IOVTime &rhs)
bool operator>= (const IOVTime &lhs, const IOVTime &rhs)
bool operator<= (const IOVTime &lhs, const IOVTime &rhs)

Detailed Description

Basic time unit for IOVSvc.

Hold time as a combination of run and event numbers

Author
Charles Leggett
Id
IOVTime.h,v 1.8 2007-06-14 01:57:23 calaf Exp

Definition in file IOVTime.h.

Function Documentation

◆ operator!=()

bool operator!= ( const IOVTime & lhs,
const IOVTime & rhs )
inlinenoexcept

Definition at line 158 of file IOVTime.h.

158 {
159 return !(lhs == rhs) ;
160}

◆ operator<()

bool operator< ( const IOVTime & lhs,
const IOVTime & rhs )
inlinenoexcept

Definition at line 137 of file IOVTime.h.

137 {
138 if (lhs.isTimestamp() && rhs.isTimestamp()) {
139 return lhs.m_timestamp < rhs.m_timestamp;
140 } else {
141 return lhs.m_time < rhs.m_time;
142 }
143}
uint64_t m_time
Definition IOVTime.h:133
bool isTimestamp() const noexcept
Definition IOVTime.h:111
uint64_t m_timestamp
Definition IOVTime.h:134

◆ operator<=()

bool operator<= ( const IOVTime & lhs,
const IOVTime & rhs )
inlinenoexcept

Definition at line 164 of file IOVTime.h.

164 {
165 return !( lhs > rhs );
166}

◆ operator==()

bool operator== ( const IOVTime & lhs,
const IOVTime & rhs )
inlinenoexcept

Definition at line 151 of file IOVTime.h.

151 {
152 if (lhs.isTimestamp() && rhs.isTimestamp()) {
153 return lhs.m_timestamp == rhs.m_timestamp;
154 } else {
155 return lhs.m_time == rhs.m_time;
156 }
157}

◆ operator>()

bool operator> ( const IOVTime & lhs,
const IOVTime & rhs )
inlinenoexcept

Definition at line 144 of file IOVTime.h.

144 {
145 if (lhs.isTimestamp() && rhs.isTimestamp()) {
146 return lhs.m_timestamp > rhs.m_timestamp;
147 } else {
148 return lhs.m_time > rhs.m_time;
149 }
150}

◆ operator>=()

bool operator>= ( const IOVTime & lhs,
const IOVTime & rhs )
inlinenoexcept

Definition at line 161 of file IOVTime.h.

161 {
162 return !( lhs < rhs );
163}