OEHasPolymerType

Attention

This is a preliminary API and may be improved based on user feedback. It is currently available in C++ and Python.

class OEHasPolymerType

This functor can be used to identify monomers with the given polymer type (OEPolymerType).

Constructors

OEHasPolymerType(polymerType: int) -> OEHasPolymerType

Initializes the functor with the given polymer type from the OEPolymerType namespace.

OEHasPolymerType(arg2: OEHasPolymerType) -> OEHasPolymerType

Copy constructor.

operator()

__call__(arg2: OEMonomer) -> bool

Returns true, if the given monomer has the same polymer type the OEHasPolymerType functor is initialized with.

CreateCopy

CreateCopy() -> OEUnaryMonomerBoolFunc

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