File indexing completed on 2024-04-06 12:01:30
0001 #ifndef CondCore_HDF5ESSource_IOVSyncValue_h
0002 #define CondCore_HDF5ESSource_IOVSyncValue_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022 #include <vector>
0023
0024
0025
0026
0027
0028 namespace cond::hdf5 {
0029 struct IOVSyncValue {
0030 unsigned int high_;
0031 unsigned int low_;
0032 };
0033
0034 inline bool operator<(IOVSyncValue const& iLHS, IOVSyncValue const& iRHS) {
0035 if (iLHS.high_ < iRHS.high_)
0036 return true;
0037 if (iLHS.high_ > iRHS.high_)
0038 return false;
0039 return iLHS.low_ < iRHS.low_;
0040 }
0041
0042 std::vector<IOVSyncValue>::const_iterator findMatchingFirst(std::vector<IOVSyncValue> const&, IOVSyncValue);
0043 }
0044 #endif