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

.. oe:namespace:: OEChem

.. oe:function:: OEGetMonomerType

   .. attention::

      |PRELIMINARY-API|

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

      .. oe:api::

         unsigned int OEGetMonomerType(const OEMolBase& monomer_mol)
         unsigned int OEGetMonomerType(const std::string& monomerSmiles)

   .. oe:language:: python

      .. oe:api:: python

         OEGetMonomerType(monomer_mol: Union[OEGraphMol,OEMol,OEQMol]) -> int
         OEGetMonomerType(monomerSmiles: str) -> int

   Determines the monomer type of the monomer defined by its molecule or smiles 
   representation.
   Returns :oe:const:`OEChem::OEMonomerType::Undefined` if given monomer
   does not satisfy the requirement of any of the specific monomer type. 

   .. seealso::

      * :oe:constns:`OEChem::OEMonomerType` namespace