5.2.3 GetAtom(pred), GetBond(pred), GetBond(atom1, atom2)

OEMolBases also provided a couple of methods for directly accessing an atom or bond. GetAtom and GetBond that take a predicate (HasAtomName or NthAtom, for example), return an OEAtomBase or OEBondBase respectively. A second GetBond method takes as arguments the OEAtomBases at each end and returns a reference to the OEBondBase connecting them.