3.31.5 GetQBonds

virtual OESystem::OEIterBase<OEQBondBase> *GetQBonds()

Return an iterator over all the query 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<OEQBondBase> *GetQBonds(
  const OESystem::OEUnaryPredicate<OEChem::OEBondBase> &predicate)

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