void LSQNumObj::SetParIsFixed(RefinableObj &obj,const bool fix) { if(mRefParList.GetNbPar()==0) this->PrepareRefParList(); for(unsigned int i=0;i<obj.GetNbPar();++i) this->SetParIsFixed(obj.GetPar(i),fix); }
void ScatteringPower::GetGeneGroup(const RefinableObj &obj, CrystVector_uint & groupIndex, unsigned int &first) const { // One group for all parameters unsigned int index=0; VFN_DEBUG_MESSAGE("ScatteringPower::GetGeneGroup()",4) for(long i=0;i<obj.GetNbPar();i++) for(long j=0;j<this->GetNbPar();j++) if(&(obj.GetPar(i)) == &(this->GetPar(j))) { if(index==0) index=first++; groupIndex(i)=index; } }
void RecursiveMapFunc(RefinableObj &obj,map<RefinableObj*,unsigned int> &themap, const unsigned int value) { themap[&obj]=value; ObjRegistry<RefinableObj> *pObjReg=&(obj.GetSubObjRegistry()); for(int i=0;i<pObjReg->GetNb();i++) RecursiveMapFunc(pObjReg->GetObj(i),themap,value); return; }