OEHasHvyDegree

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

This class represents OEHasHvyDegree functor that identifies atoms (OEAtomBase) with a specific number of heavy atom neighbors.

operator() CreateCopy CreatePredicateCopy

The following methods are publicly inherited from OEUnaryFunction:

operator() CreateCopy

Constructors

OEHasHvyDegree(unsigned int h)

Constructs the functor with the given number of heavy atom neighbor.

operator()

bool operator()(const OEAtomBase &atom) const

Returns 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.

CreateCopy

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.