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

.. oe:namespace:: OEChem

.. oe:function:: OEGetPolymerType

   .. attention::

      |PRELIMINARY-API|

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

      .. oe:api::

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

   .. oe:language:: python

      .. oe:api:: python

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

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

   .. seealso::

      * :oe:constns:`OEChem::OEPolymerType` namespace
