3.24.11 GetBonds

virtual OESystem::OEIterBase<OEBondBase> *GetBonds() const

Return an iterator over all the bonds of a molecule. By default, this returns all the bonds of the molecule in the order they were created. The ordering of the bonds returned by GetBonds may be modified by OEMolBase::OrderBonds.

virtual OESystem::OEIterBase<OEBondBase> *GetBonds(
  const OESystem::OEUnaryPredicate<OEChem::OEBondBase> &) const

Return an iterator over all of the bonds of a molecule that match the specified bond predicate.