CMS 3D CMS Logo

MergeableCounter.cc
Go to the documentation of this file.
3 #include <ostream>
4 #include <utility>
5 
6 namespace edm
7 {
8 
10  {
11  if (a.value > 0 && value+a.value < a.value){
12  edm::LogWarning("MergeableCounter|ProductsNotMergeable")
13  << "The merge would lead to an overflow of the counter" << std::endl;
14  return false;
15  }
16  value += a.value;
17  return true;
18  }
19 
21  std::swap(value, iOther.value);
22  }
23 }
bool mergeProduct(MergeableCounter const &newThing)
void swap(MergeableCounter &iOther)
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
Definition: value.py:1
HLT enums.
double a
Definition: hdecay.h:121