File indexing completed on 2025-01-30 09:16:30
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #include "DD4hep/InstanceCount.h"
0016 #include "DDCond/ConditionsEntry.h"
0017
0018 using std::string;
0019 using namespace dd4hep::cond;
0020
0021
0022 Entry::Entry()
0023 : NamedObject(), detector(), value(), validity(), hash(0)
0024 {
0025 InstanceCount::increment(this);
0026 }
0027
0028
0029 Entry::Entry(const DetElement& det, const string& nam, const string& typ, const string& valid, int h)
0030 : NamedObject(nam,typ), detector(det), value(), validity(valid), hash(h)
0031 {
0032 InstanceCount::increment(this);
0033 }
0034
0035
0036 Entry::Entry(const Entry& c)
0037 : NamedObject(c), detector(c.detector), value(c.value), validity(c.validity), hash(c.hash)
0038 {
0039 InstanceCount::increment(this);
0040 }
0041
0042
0043 Entry::~Entry() {
0044 InstanceCount::decrement(this);
0045 }
0046
0047
0048 Entry& Entry::operator=(const Entry& c) {
0049 if ( this != &c ) {
0050 this->NamedObject::operator=(c);
0051 detector = c.detector;
0052 value = c.value;
0053 validity = c.validity;
0054 hash = c.hash;
0055 }
0056 return *this;
0057 }