.. oe:namespace:: OESystem



.. meta::
   :keywords: OEAnd


.. _OESystem_OEAnd:

.. oe:class:: OEAnd

   .. oe:api::


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

   This class represents `OEAnd`.

   This class template is a composition predicate which generates a predicate
   which is the logical *and* 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:

      ==================== =====================================================
      OEAndAtom            OESystem::OEAnd<OEChem::OEAtomBase>
      OEAndBond            OESystem::OEAnd<OEChem::OEBondBase>
      OEAndConf            OESystem::OEAnd<OEChem::OEConfBase>
      OEAndGroup           OESystem::OEAnd<OEChem::OEGroupBase>
      OEAndRoleSet         OESystem::OEAnd<OEChem::OERoleSet>
      OEAndInteractionHint OESystem::OEAnd<OEChem::OEInteractionHint>
      ==================== =====================================================


   .. oe:method:: Constructors

      .. oe:api::

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

      Default and copy constructors.

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

      .. oe:api::

         OEAnd& operator=(const OEAnd& 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() -> OEAnd

