.. oe:namespace:: OEChem



.. meta::
   :keywords: OEInSamePart, InSamePart


.. _OEChem_OEInSamePart:

.. oe:class:: OEInSamePart

   .. oe:api::


      class OEInSamePart : public OESystem::OEBinaryPredicate<OEChem::OEAtomBase, OEChem::OEAtomBase>

   This class represents `OEInSamePart`.

   The following methods are publicly inherited from :ref:`OEBinaryPredicate <OESystem_OEBinaryPredicate>`:

   =============================================================================== =============================================================================== ================================================================================
   :oe:meth:`operator()<OESystem::OEBinaryPredicate::operator()>`                  :oe:meth:`CreateCopy<OESystem::OEBinaryPredicate::CreateCopy>`                  :oe:meth:`CreatePredicateCopy<OESystem::OEBinaryPredicate::CreatePredicateCopy>`
   =============================================================================== =============================================================================== ================================================================================

   The following methods are publicly inherited from :ref:`OEBinaryFunction <OESystem_OEBinaryFunction>`:

   ============================================================= ============================================================= ============================================================
   :oe:meth:`operator()<OESystem::OEBinaryFunction::operator()>` :oe:meth:`CreateCopy<OESystem::OEBinaryFunction::CreateCopy>`                                                             
   ============================================================= ============================================================= ============================================================

   .. oe:method:: Constructors

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

         .. oe:api::

            OEInSamePart(const OEInSamePart& rhs)
            OEInSamePart(unsigned int* parts, unsigned int size,
                         bool boolval = true)

      .. oe:language:: python

         .. oe:api:: python

            OEInSamePart(parts: int, boolval: bool = True) -> OEInSamePart
            OEInSamePart(rhs: OEInSamePart) -> OEInSamePart

      Default and copy constructors.

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

      .. oe:api::

         OEInSamePart &operator=(const OEInSamePart &rhs)

      Assignment operator.


   .. oe:method:: operator()

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

         .. oe:api::

            bool operator()(const OEAtomBase& a1, const OEAtomBase& a2) const

      .. oe:language:: python

         .. oe:api:: python

            __call__(a1: OEAtomBase, a2: OEAtomBase) -> bool

   .. oe:method:: CreateCopy

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

         .. oe:api::

            OESystem::OEBinaryFunction<OEChem::OEAtomBase , OEChem::OEAtomBase , bool>* CreateCopy() const

      .. oe:language:: python

         .. oe:api:: python

            CreateCopy() -> OEInSamePart

