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

This class represents OEHasAtomicNum functor that identifies atoms (OEAtomBase) with a specific atomic number.

The following methods are publicly inherited from OEUnaryPredicate:

operator() CreateCopy CreatePredicateCopy

The following methods are publicly inherited from OEUnaryFunction:

operator() CreateCopy  


OEHasAtomicNum(unsigned int an)

Constructs the functor with the internal atomic number.


bool operator()(const OEAtomBase &atom) const

Returns true, if the atomic number returned by the OEAtomBase.GetAtomicNum method for the given OEAtomBase object is equivalent to the atomic number 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 OEHasAtomicNum object is dynamically allocated and owned by the caller.