.. oe:namespace:: OESystem



.. meta::
   :keywords: OEOr


.. _OESystem_OEOr:

.. oe:class:: OEOr

   .. oe:api::

      template<class Arg>
      class OEOr : public OEUnaryPredicate<Arg>

   This class represents `OEOr`.

   This class template is a composition predicate which generates a predicate
   which is the logical *or* operation of the two predicates passed as
   arguments.

   .. seealso::

    * :ref:`section_predicates_composition_functors` section

   The following methods are publicly inherited from :ref:`OEUnaryPredicate <OESystem_OEUnaryPredicate>`:

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

   The following methods are publicly inherited from :ref:`OEUnaryFunction <OESystem_OEUnaryFunction>`:

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

   .. oe:language:: python java csharp

      The following specializations exist for this template :

      ==================== =====================================================
      OEOrAtom             OESystem::OEOr<OEChem::OEAtomBase>
      OEOrBond             OESystem::OEOr<OEChem::OEBondBase>
      OEOrConf             OESystem::OEOr<OEChem::OEConfBase>
      OEOrGroup            OESystem::OEOr<OEChem::OEGroupBase>
      OEOrRoleSet          OESystem::OEOr<OEChem::OERoleSet>
      OEOrInteractionHint  OESystem::OEOr<OEChem::OEInteractionHint>
      ==================== =====================================================

   .. oe:method:: Constructors

      .. oe:api::

         OEOr()
         OEOr(const OEOr<Arg>& rhs)
         OEOr(const OEUnaryPredicate<Arg>& func1,
              const OEUnaryPredicate<Arg>& func2)

      Default and copy constructors.

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

      .. oe:api::

         OEOr& operator=(const OEOr<Arg>& rhs)

      Assignment operator.


   .. oe:method:: operator()

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

         .. oe:api::

            bool operator()(const Arg& arg) const

      .. oe:language:: python

         .. oe:api:: python

            __call__(arg: Arg) -> bool

   .. oe:method:: CreateCopy

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

         .. oe:api::

            OEUnaryFunction<Arg, bool>* CreateCopy() const

      .. oe:language:: python

         .. oe:api:: python

            CreateCopy() -> OEOr

