.. oe:namespace:: OESystem

.. meta::
   :keywords: OEIsTrue, IsTrue


.. _OESystem_OEIsTrue:

.. oe:class:: OEIsTrue

   .. oe:api::

      template<class Arg> struct OEIsTrue : public OEUnaryPredicate<Arg>

   This functor always returns ``true`` for any argument passed to it. The
   following specializations are provided to make using this class easier: 

   * ``OEIsTrueAtom``
   * ``OEIsTrueBond``
   * ``OEIsTrueConf``

   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>`                                                            
   ============================================================ ============================================================ ===========================================================


   The following classes derive from this class:
    * :ref:`IsTrue <OESystem_IsTrue>`
    * :ref:`OEUnaryTrue <OESystem_OEUnaryTrue>`
   

   .. oe:method:: operator()

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

         .. oe:api::

            bool operator()(const Arg &) const

      .. oe:language:: python

         .. oe:api:: python

            __call__(Arg) -> bool

      Always returns ``true``.

   .. oe:method:: CreateCopy

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

         .. oe:api::

            OEUnaryFunction<Arg, bool>* CreateCopy() const

      .. oe:language:: python

         .. oe:api:: python

            CreateCopy() -> OEIsTrue
