.. include:: ../../toolkit-substitutions

.. oe:namespace:: OEChem

.. oe:class:: OEIsInMonomerCodeSet

   .. attention::

      |PRELIMINARY-API|

   .. oe:api::

      class OEIsInMonomerCodeSet
      
   Functor that identifies monomers whose code is defined in the specified code set.

   .. oe:method:: Constructors

      .. oe:language:: c++ java csharp

         .. oe:api::

            OEIsInMonomerCodeSet(const std::string& codeSet)

      .. oe:language:: python

         .. oe:api:: python

            OEIsInMonomerCodeSet(codeSet: str) -> OEIsInMonomerCodeSet

      Constructs the functor with the name of the code set to match against.

      .. oe:language:: c++ java csharp

         .. oe:api::

            OEIsInMonomerCodeSet(const OEIsInMonomerCodeSet &)

      .. oe:language:: python

         .. oe:api:: python

            OEIsInMonomerCodeSet(arg2: OEIsInMonomerCodeSet) -> OEIsInMonomerCodeSet

      Copy constructor.

   .. oe:method:: operator()

      .. oe:language:: c++ java csharp

         .. oe:api::

            bool operator()(const OEMonomer &) const

      .. oe:language:: python

         .. oe:api:: python

            __call__(arg2: OEMonomer) -> bool

      Returns ``true`` if the monomer has a code defined in the code set
      specified at construction.

   .. oe:method:: operator=
      :language: c++

      .. oe:api::

         OEIsInMonomerCodeSet &operator=(const OEIsInMonomerCodeSet &)

      Assignment operator.


   .. oe:method:: CreateCopy

      .. oe:language:: c++ java csharp

         .. oe:api::

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

      .. oe:language:: python

         .. oe:api:: python

            CreateCopy() -> OEUnaryMonomerBoolFunc

