class OEHasPDBAtomIndex: public OESystem::OEUnaryPredicate<OEChem::OEAtomBase>
This class allows you to define a predicate for identifying any PDBAtom
according to it's PDBAtomIndex as defined in the OEChem::OEPDBAtomName
namespace.
OEHasPDBAtomIndex(unsigned pdbatomidx)
This constructor takes the PDBAtomIndex you are interested in as an argument.
bool operator () (const OEChem::OEAtomBase &atom) const
This implicit boolean function is the critical function for the predicate. It returns true if the atom's PDBAtomName is the same as the argument the object was constructed with.
OESystem::OEUnaryFunction<OEChem::OEAtomBase,bool> *CreateCopy()
This function can be called to generate a deep copy of any OEUnaryPredicate.