Ignore:
Timestamp:
Oct 30, 2009, 9:05:30 AM (16 years ago)
Author:
Frederik Heber <heber@…>
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)
Message:

New class BondGraph.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/atom_bondedparticle.cpp

    rbc8155 r5f697c  
    151151};
    152152
     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 */
     157bool 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.