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

.. oe:namespace:: OEChem

..  _OEChem_OESameSubSearchScreenTypes:

.. oe:function:: OESameSubSearchScreenTypes

   .. attention::

      |TWOLANGUAGE|

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

      .. oe:api::

         bool OESameSubSearchScreenTypes(const OESubSearchScreen &,
                                         const OESubSearchScreen &)

   .. oe:language:: python

      .. oe:api:: python

         OESameSubSearchScreenTypes(arg1: OESubSearchScreen,
                                    arg2: OESubSearchScreen) -> bool

   Returns whether or not the types (:ref:`OESubSearchScreenTypeBase <OEChem_OESubSearchScreenTypeBase>`) of
   the two :ref:`OESubSearchScreen <OEChem_OESubSearchScreen>` objects are the same.

   .. oe:language:: c++ python

      **Example:**

      .. oe:source:: ScreenType.cpp
         :language: c++
         :noindent:
         :frag:     SNIPPET

      .. oe:source:: ScreenType.py
         :language: python
         :noindent:
         :frag:     SNIPPET

   .. warning::

      Screens with different types should never be compared with each other since
      they have been generated with different algorithms, they might have different
      lengths and their bits can represent different molecular features.

   .. seealso::

      * :oe:func:`OEChem::OEGetSubSearchScreenType` function
      * :oe:constns:`OEChem::OESubSearchScreenType` namespace
