3.27.1 GetQAtoms

virtual OESystem::OEIterBase<OEQAtomBase> *GetQAtoms()
virtual OESystem::OEIterBase<OEQAtomBase> *GetQAtoms(
    const OESystem::OEUnaryPredicate<OEChem::OEAtomBase> &predicate)

Return an OEQAtomBase iterator of the neighboring atoms of the requested atom instance. The returned iterator traverses only the explicit atoms that are bonded to the OEQAtomBase. The number of neighbors in the iterator is identical to OEQAtomBase::GetExplicitDegree. The method which takes an atom predicate as an argument will return an iterator over the connected atoms which match the predicate.