Changes in src/atom_bondedparticle.cpp [68f03d:112b09]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/atom_bondedparticle.cpp
r68f03d r112b09 5 5 * Author: heber 6 6 */ 7 8 #include "Helpers/MemDebug.hpp" 7 9 8 10 #include "atom.hpp" … … 74 76 *BondFile << nr << "\t" << (*Runner)->GetOtherAtom(this)->nr << "\n"; 75 77 }; 78 79 /** 80 * Adds a bond between this bonded particle and another. Does nothing if this 81 * bond already exists. 82 * 83 * \param bonding partner 84 */ 85 void BondedParticle::addBond(BondedParticle* Partner) { 86 if (IsBondedTo(Partner)) { 87 return; 88 } 89 90 bond* newBond = new bond((atom*) this, (atom*) Partner, 1, 0); 91 RegisterBond(newBond); 92 Partner->RegisterBond(newBond); 93 } 76 94 77 95 /** Puts a given bond into atom::ListOfBonds.
Note:
See TracChangeset
for help on using the changeset viewer.