OEHasAtomicNum

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

Constructors

OEHasAtomicNum(an: int) -> OEHasAtomicNum

Constructs the functor with the internal atomic number.

operator()

__call__(atom: OEAtomBase) -> bool

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.

CreateCopy

CreateCopy() -> OEHasAtomicNum

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.