Changes in src/Atom/AtomicInfo.cpp [d05088:7e51e1]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Atom/AtomicInfo.cpp
rd05088 r7e51e1 88 88 bool status = true; 89 89 if (_atom.getId() != Id) 90 status &= _atom.changeId(Id);90 status = _atom.changeId(Id); 91 91 92 92 // set its father 93 if (status) { 94 atom * const _father = World::getInstance().getAtom(AtomById(FatherId)); 95 if ((_father == NULL) || (Id == FatherId)) { 96 _atom.father = &_atom; 97 // don't sign on 98 } else { 99 _atom.father = _father; 100 _father->signOn(&_atom); 101 } 93 atom * const _father = World::getInstance().getAtom(AtomById(FatherId)); 94 if (_father == NULL) 95 _atom.father = &_atom; 96 else 97 _atom.father = _father; 102 98 103 // setting molecule 104 molecule * const _mol = World::getInstance().getMolecule(MoleculeById(MolId)); 105 if (_mol != NULL) 106 _atom.setMolecule(_mol); // this is ok, mol is const within AtomicInfo, but not outside (atoms need to register) 107 _atom.changeNr(Nr); 108 } 99 // setting molecule 100 molecule * const _mol = World::getInstance().getMolecule(MoleculeById(MolId)); 101 if (_mol != NULL) 102 _atom.setMolecule(_mol); // this is ok, mol is const within AtomicInfo, but not outside (atoms need to register) 103 _atom.changeNr(Nr); 109 104 110 105 return status;
Note:
See TracChangeset
for help on using the changeset viewer.