Import Geant4 10.7.0 source tree
This commit is contained in:
@@ -20,21 +20,21 @@ public:
|
||||
:m_name(a_name)
|
||||
,m_cid(a_cid)
|
||||
,m_user_obj(a_user_obj) //WARNING : not owner.
|
||||
{}
|
||||
{}
|
||||
virtual ~column_binding() {}
|
||||
public:
|
||||
column_binding(const column_binding& a_from)
|
||||
:m_name(a_from.m_name)
|
||||
,m_cid(a_from.m_cid)
|
||||
,m_user_obj(a_from.m_user_obj)
|
||||
{}
|
||||
{}
|
||||
column_binding& operator=(const column_binding& a_from) {
|
||||
if(&a_from==this) return *this;
|
||||
m_name = a_from.m_name;
|
||||
m_cid = a_from.m_cid;
|
||||
m_user_obj = a_from.m_user_obj;
|
||||
return *this;
|
||||
}
|
||||
}
|
||||
public:
|
||||
const std::string& name() const {return m_name;}
|
||||
cid get_cid() const {return m_cid;}
|
||||
@@ -79,7 +79,7 @@ public:
|
||||
void add_column_cid(const std::string& a_name,T& a_user_var) {
|
||||
m_columns.push_back(column_binding(a_name,T::id_class(),(void*)&a_user_var));
|
||||
}
|
||||
|
||||
|
||||
void add_column_no_var(const std::string& a_name) { //used in rcsv_ntuple.
|
||||
m_columns.push_back(column_binding(a_name,0,0));
|
||||
}
|
||||
@@ -113,7 +113,7 @@ public:
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
template <class T>
|
||||
std::vector<T>* find_vector_variable(const std::string& a_name) const {
|
||||
tools_vforcit(column_binding,m_columns,it) {
|
||||
|
||||
Reference in New Issue
Block a user