6.2 OEIsAlphaCarbon

class OEIsAlphaCarbon : public OESystem::OEUnaryPredicate<OEChem::OEAtomBase>

This class allows you to select only alpha carbons from all the atoms in a molecule. This function is particularly helpful when passed to OEChem::OEMolBase::GetAtoms. This class can be passed to any function that requires an OEUnaryPredicate.

bool operator () (const OEChem::OEAtomBase &atom) const

This implicit boolean function is the critical function for the predicate. It returns true if the atom is an alpha carbon.

OESystem::OEUnaryFunction<OEChem::OEAtomBase,bool> *CreateCopy()

This function can be called to generate a deep copy of any OEUnaryPredicate.