Changeset 0647f4 for molecuilder/src/atom_bondedparticle.cpp
- Timestamp:
- May 8, 2010, 12:17:30 PM (15 years ago)
- Children:
- 401b97
- Parents:
- abde75 (diff), d3513b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/atom_bondedparticle.cpp
rabde75 r0647f4 74 74 *BondFile << nr << "\t" << (*Runner)->GetOtherAtom(this)->nr << "\n"; 75 75 }; 76 77 /** 78 * Adds a bond between this bonded particle and another. Does nothing if this 79 * bond already exists. 80 * 81 * \param bonding partner 82 */ 83 void BondedParticle::addBond(BondedParticle* Partner) { 84 if (IsBondedTo(Partner)) { 85 return; 86 } 87 88 bond* newBond = new bond((atom*) this, (atom*) Partner, 1, 0); 89 RegisterBond(newBond); 90 Partner->RegisterBond(newBond); 91 } 76 92 77 93 /** Puts a given bond into atom::ListOfBonds.
Note:
See TracChangeset
for help on using the changeset viewer.