Import Geant4 10.7.0 source tree

This commit is contained in:
Gabriele Cosmo
2020-12-04 12:30:43 +01:00
parent 67ba86d073
commit dab42d2018
3770 changed files with 226369 additions and 286486 deletions
+6 -6
View File
@@ -7,8 +7,8 @@
// sf for simple field.
// bsf is intended to have no implementation of :
// virtual bool write(io::iwbuf&)
// virtual bool read(io::irbuf&)
// virtual bool write(io::iwbuf&)
// virtual bool read(io::irbuf&)
#include "field"
@@ -30,10 +30,10 @@ public:
}
virtual const std::string& s_cls() const {return s_class();}
/*
virtual bool equal(const field& a_field) const {
virtual bool equal(const field& a_field) const {
bsf<T>* fld = safe_cast<field,bsf<T>>(a_field);
if(!fld) return false;
return operator==(*fld);
return operator==(*fld);
}
*/
protected:
@@ -68,7 +68,7 @@ public:
bool operator==(const T& a_value) const {
return m_value==a_value;
}
bool operator!=(const T& a_value) const {
bool operator!=(const T& a_value) const {
return !operator==(a_value);
}
@@ -112,7 +112,7 @@ public:
// if(v!=m_value) m_touched = true;
// m_value = v;
// return true;
// }
// }
public: //for iv2sg
void setValue(const T& a_value) {value(a_value);}
const T& getValue() const {return m_value;}