class OEHasHvyDegree : public OESystem::OEUnaryPredicate<OEChem::OEAtomBase>
This class represents OEHasHvyDegree functor that identifies atoms (OEAtomBase) with a specific number of heavy atom neighbors.
The following methods are publicly inherited from OEUnaryFunction:
OEHasHvyDegree(unsigned int h)
Constructs the functor with the given number of heavy atom neighbor.
bool operator()(const OEAtomBase &atom) const
true, if the value returned by the
OEAtomBase.GetHvyDegree method for the given OEAtomBase
object is equivalent to the value with which the functor is constructed.
OESystem::OEUnaryFunction<OEChem::OEAtomBase, bool> *CreateCopy() const
Deep copy constructor that returns a copy of the object. The memory for the returned OEHasHvyDegree object is dynamically allocated and owned by the caller.