Changeset 5f697c for molecuilder/src/atom_bondedparticle.cpp
- Timestamp:
- Oct 30, 2009, 9:05:30 AM (16 years ago)
- Children:
- b84ab4
- Parents:
- bc8155
- git-author:
- Frederik Heber <heber@…> (10/30/09 08:30:57)
- git-committer:
- Frederik Heber <heber@…> (10/30/09 09:05:30)
- File:
-
- 1 edited
-
molecuilder/src/atom_bondedparticle.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/atom_bondedparticle.cpp
rbc8155 r5f697c 151 151 }; 152 152 153 /** Checks whether there is a bond between \a this atom and the given \a *BondPartner. 154 * \param *BondPartner atom to check for 155 * \return true - bond exists, false - bond does not exist 156 */ 157 bool BondedParticle::IsBondedTo(BondedParticle * const BondPartner) 158 { 159 bool status = false; 160 161 for (BondList::iterator runner = ListOfBonds.begin(); runner != ListOfBonds.end(); runner++) { 162 status = status || ((*runner)->Contains(BondPartner)); 163 } 164 return status; 165 }; 166
Note:
See TracChangeset
for help on using the changeset viewer.
