OEHasResidueNumber

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

This class represents OEHasResidueNumber functor that identifies atoms (OEAtomBase) with a specific residue number.

See also

Residue Data Functors section

The following methods are publicly inherited from OEUnaryPredicate:

operator()

CreateCopy

CreatePredicateCopy

The following methods are publicly inherited from OEUnaryFunction:

operator()

CreateCopy

Constructors

OEHasResidueNumber(num: int) -> OEHasResidueNumber

Constructs the functor with the internal residue number.

operator()

__call__(atom: OEAtomBase) -> bool

Returns true, if OEAtomGetResidue (atom). GetResidueNumber() is equivalent to the residue number with which the functor is constructed.

CreateCopy

CreateCopy() -> OEHasResidueNumber

Deep copy constructor that returns a copy of the object. The memory for the returned OEHasResidueNumber object is dynamically allocated and owned by the caller.