Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:54:33

0001 #include "DataFormats/Provenance/interface/ProductID.h"
0002 #include <ostream>
0003 #include <algorithm>
0004 
0005 namespace edm {
0006   std::ostream& operator<<(std::ostream& os, ProductID const& id) {
0007     os << id.processIndex() << ":" << id.productIndex();
0008     return os;
0009   }
0010 
0011   bool operator<(ProductID const& lh, ProductID const& rh) {
0012     return lh.processIndex() < rh.processIndex() ||
0013            (lh.processIndex() == rh.processIndex() && lh.productIndex() < rh.productIndex());
0014   }
0015 
0016   void ProductID::swap(ProductID& other) {
0017     std::swap(processIndex_, other.processIndex_);
0018     std::swap(productIndex_, other.productIndex_);
0019   }
0020 }  // namespace edm