Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
art::Timestamp Class Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/canvas/v3_06_01/source/canvas/Persistency/Provenance/Timestamp.h"

Public Member Functions

constexpr Timestamp (TimeValue_t const iValue)
 
constexpr Timestamp ()
 
constexpr TimeValue_t value () const
 
constexpr std::uint32_t timeLow () const
 
constexpr std::uint32_t timeHigh () const
 
constexpr bool operator== (Timestamp const &iRHS) const
 
constexpr bool operator!= (Timestamp const &iRHS) const
 
constexpr bool operator< (Timestamp const &iRHS) const
 
constexpr bool operator<= (Timestamp const &iRHS) const
 
constexpr bool operator> (Timestamp const &iRHS) const
 
constexpr bool operator>= (Timestamp const &iRHS) const
 

Static Public Member Functions

static constexpr Timestamp invalidTimestamp ()
 
static constexpr Timestamp endOfTime ()
 
static constexpr Timestamp beginOfTime ()
 

Static Private Member Functions

static constexpr TimeValue_t lowMask ()
 

Private Attributes

std::uint32_t timeLow_
 
std::uint32_t timeHigh_
 

Detailed Description

Definition at line 11 of file Timestamp.h.

Constructor & Destructor Documentation

constexpr art::Timestamp::Timestamp ( TimeValue_t const  iValue)
inline

Definition at line 13 of file Timestamp.h.

References lowMask(), and timeHigh_.

14  : timeLow_{static_cast<std::uint32_t>(lowMask() & iValue)}
15  , timeHigh_{static_cast<std::uint32_t>(iValue >> 32)}
16  {}
std::uint32_t timeHigh_
Definition: Timestamp.h:100
static constexpr TimeValue_t lowMask()
Definition: Timestamp.h:103
std::uint32_t timeLow_
Definition: Timestamp.h:99
constexpr art::Timestamp::Timestamp ( )
inline

Definition at line 18 of file Timestamp.h.

References invalidTimestamp(), timeHigh_, and timeLow_.

Referenced by endOfTime().

21  {}
std::uint32_t timeHigh_
Definition: Timestamp.h:100
static constexpr Timestamp invalidTimestamp()
Definition: Timestamp.h:83
std::uint32_t timeLow_
Definition: Timestamp.h:99

Member Function Documentation

static constexpr Timestamp art::Timestamp::beginOfTime ( )
inlinestatic

Definition at line 93 of file Timestamp.h.

94  {
95  return Timestamp{1};
96  }
constexpr Timestamp()
Definition: Timestamp.h:18
static constexpr Timestamp art::Timestamp::endOfTime ( )
inlinestatic

Definition at line 88 of file Timestamp.h.

References Timestamp().

89  {
90  return Timestamp(-1);
91  }
constexpr Timestamp()
Definition: Timestamp.h:18
static constexpr Timestamp art::Timestamp::invalidTimestamp ( )
inlinestatic
static constexpr TimeValue_t art::Timestamp::lowMask ( )
inlinestaticprivate

Definition at line 103 of file Timestamp.h.

Referenced by Timestamp().

104  {
105  return 0xFFFFFFFF;
106  }
constexpr bool art::Timestamp::operator!= ( Timestamp const &  iRHS) const
inline

Definition at line 48 of file Timestamp.h.

49  {
50  return !(*this == iRHS);
51  }
constexpr bool art::Timestamp::operator< ( Timestamp const &  iRHS) const
inline

Definition at line 54 of file Timestamp.h.

References timeHigh_, and timeLow_.

55  {
56  return timeHigh_ == iRHS.timeHigh_ ? timeLow_ < iRHS.timeLow_ :
57  timeHigh_ < iRHS.timeHigh_;
58  }
std::uint32_t timeHigh_
Definition: Timestamp.h:100
std::uint32_t timeLow_
Definition: Timestamp.h:99
constexpr bool art::Timestamp::operator<= ( Timestamp const &  iRHS) const
inline

Definition at line 61 of file Timestamp.h.

References timeHigh_, and timeLow_.

62  {
63  return timeHigh_ == iRHS.timeHigh_ ? timeLow_ <= iRHS.timeLow_ :
64  timeHigh_ <= iRHS.timeHigh_;
65  }
std::uint32_t timeHigh_
Definition: Timestamp.h:100
std::uint32_t timeLow_
Definition: Timestamp.h:99
constexpr bool art::Timestamp::operator== ( Timestamp const &  iRHS) const
inline

Definition at line 42 of file Timestamp.h.

References timeHigh_, and timeLow_.

43  {
44  return timeHigh_ == iRHS.timeHigh_ && timeLow_ == iRHS.timeLow_;
45  }
std::uint32_t timeHigh_
Definition: Timestamp.h:100
std::uint32_t timeLow_
Definition: Timestamp.h:99
constexpr bool art::Timestamp::operator> ( Timestamp const &  iRHS) const
inline

Definition at line 68 of file Timestamp.h.

References timeHigh_, and timeLow_.

69  {
70  return timeHigh_ == iRHS.timeHigh_ ? timeLow_ > iRHS.timeLow_ :
71  timeHigh_ > iRHS.timeHigh_;
72  }
std::uint32_t timeHigh_
Definition: Timestamp.h:100
std::uint32_t timeLow_
Definition: Timestamp.h:99
constexpr bool art::Timestamp::operator>= ( Timestamp const &  iRHS) const
inline

Definition at line 75 of file Timestamp.h.

References timeHigh_, and timeLow_.

76  {
77  return timeHigh_ == iRHS.timeHigh_ ? timeLow_ >= iRHS.timeLow_ :
78  timeHigh_ >= iRHS.timeHigh_;
79  }
std::uint32_t timeHigh_
Definition: Timestamp.h:100
std::uint32_t timeLow_
Definition: Timestamp.h:99
constexpr std::uint32_t art::Timestamp::timeHigh ( ) const
inline
constexpr std::uint32_t art::Timestamp::timeLow ( ) const
inline

Definition at line 30 of file Timestamp.h.

References timeLow_.

Referenced by air::AirKalmanAna::analyze(), and nova::dbi::RunHistoryService::preBeginRun().

31  {
32  return timeLow_;
33  }
std::uint32_t timeLow_
Definition: Timestamp.h:99
constexpr TimeValue_t art::Timestamp::value ( ) const
inline

Member Data Documentation

std::uint32_t art::Timestamp::timeHigh_
private
std::uint32_t art::Timestamp::timeLow_
private

The documentation for this class was generated from the following file: