Changes in src/Atom/AtomicInfo.cpp [d05088:c26617]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Atom/AtomicInfo.cpp
rd05088 rc26617 34 34 35 35 #include "CodePatterns/MemDebug.hpp" 36 37 #include "CodePatterns/Log.hpp" 36 38 37 39 #include "atom.hpp" … … 71 73 "Atom "+toString(_atom.getId())+" is not associated with any molecule."); 72 74 MolId = mol->getId(); 75 // accumulate bond info 76 const BondList &ListOfBonds = _atom.getListOfBonds(); 77 bonds.reserve(ListOfBonds.size()); 78 for (BondList::const_iterator bonditer = ListOfBonds.begin(); 79 bonditer != ListOfBonds.end(); ++bonditer) { 80 const BondInfo bondinfo(*bonditer); 81 bonds.push_back(bondinfo); 82 LOG(3, "DEBUG: Storing info for bond " << bondinfo.leftid << "<->" << bondinfo.rightid); 83 } 73 84 } 74 85 … … 101 112 } 102 113 114 // set bonds 115 for (std::vector<BondInfo>::const_iterator bonditer = bonds.begin(); 116 bonditer != bonds.end(); ++bonditer) 117 (*bonditer).RecreateBond(); 118 103 119 // setting molecule 104 120 molecule * const _mol = World::getInstance().getMolecule(MoleculeById(MolId));
Note:
See TracChangeset
for help on using the changeset viewer.