src/NFcore/observable.cpp
//NOTE:  cloning a molecule DOES NOT clone any dependent reactions.  You will have to
//add that again to this observable, if there are any.  This is the behaviour, because
//observables are generally only cloned in this way for local functions
cloning a molecule DOES NOT clone any dependent reactions.  You will have to
add that again to this observable, if there are any.  This is the behaviour, because
observables are generally only cloned in this way for local functions
cloning a molecule DOES NOT clone any dependent reactions . You will have to add that again to this observable if there are any . This is the behaviour because observables are generally only cloned in this way for local functions
Observable * MoleculesObservable::clone() {
	vector <TemplateMolecule *> tmList;
	for(int t=0; t<n_templates; t++)
		tmList.push_back(templateMolecules[t]);
	return new MoleculesObservable(obsName+"_clone",tmList);
}
Observable * MoleculesObservable :: clone ( ) { vector < TemplateMolecule * > tmList ; for ( int t = 0 ; t < n_templates ; t ++ ) tmList . push_back ( templateMolecules [ t ] ) ; return new MoleculesObservable ( obsName + " " , tmList ) ; }
NOTE:  cloning a molecule DOES NOT clone any dependent reactions.
NOTE : cloning a molecule DOES NOT clone any dependent reactions .