Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:01:30

0001 #ifndef CondCore_HDF5ESSource_IOVSyncValue_h
0002 #define CondCore_HDF5ESSource_IOVSyncValue_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     CondCore/HDF5ESSource
0006 // Class  :     IOVSyncValue
0007 //
0008 /**\class IOVSyncValue IOVSyncValue.h "IOVSyncValue.h"
0009 
0010  Description: [one line class summary]
0011 
0012  Usage:
0013     <usage>
0014 
0015 */
0016 //
0017 // Original Author:  Christopher Jones
0018 //         Created:  Tue, 20 Jun 2023 14:38:35 GMT
0019 //
0020 
0021 // system include files
0022 #include <vector>
0023 
0024 // user include files
0025 
0026 // forward declarations
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 }  // namespace cond::hdf5
0044 #endif