OEHasMonomerType

Attention

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

class OEHasMonomerType

This functor can be used to identify monomers with the given monomer type (OEMonomerType).

Constructors

OEHasMonomerType(unsigned polymerType)

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

OEHasMonomerType(const OEHasMonomerType &)

Copy constructor.

operator()

bool operator()(const OEMonomer &) const

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

CreateCopy

OESystem::OEUnaryFunction<OEMonomer, bool>* CreateCopy() const

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