.. oe:namespace:: OEChem



.. meta::
   :keywords: OEHasAtomStereoSpecified, HasAtomStereoSpecified


.. _OEChem_OEHasAtomStereoSpecified:

.. oe:class:: OEHasAtomStereoSpecified

   .. oe:api::


      class OEHasAtomStereoSpecified : public OESystem::OEUnaryPredicate<OEChem::OEAtomBase>

   This class represents :ref:`OEHasAtomStereoSpecified <OEChem_OEHasAtomStereoSpecified>`
   functor that identifies atoms (:ref:`OEAtomBase <OEChem_OEAtomBase>`)
   which have stereo specified.

   .. seealso::

      * :term:`stereo atom`

   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:method:: Constructors

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

         .. oe:api::

            OEHasAtomStereoSpecified()

      .. oe:language:: python

         .. oe:api:: python

            OEHasAtomStereoSpecified() -> OEHasAtomStereoSpecified

      Default constructor.
      Constructs the functor so that atoms
      (:ref:`OEAtomBase <OEChem_OEAtomBase>`) with any stereo type will be
      identified (:oe:const:`OEChem::OEAtomStereo::All`).

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

         .. oe:api::

            OEHasAtomStereoSpecified(unsigned int v)

      .. oe:language:: python

         .. oe:api:: python

            OEHasAtomStereoSpecified(v: int) -> OEHasAtomStereoSpecified

      Constructs the functor so that atoms
      (:ref:`OEAtomBase <OEChem_OEAtomBase>`) with the given stereo type will be
      identified.

   .. oe:method:: operator()

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

         .. oe:api::

            bool operator()(const OEAtomBase& atom) const

      .. oe:language:: python

         .. oe:api:: python

            __call__(atom: OEAtomBase) -> bool

      Returns ``true``, if the
      :oe:meth:`OEChem::OEAtomBase::HasStereoSpecified` method returns
      ``true`` for the given :ref:`OEAtomBase <OEChem_OEAtomBase>` object for
      the stereo type with which the functor is constructed.

   .. oe:method:: CreateCopy

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

         .. oe:api::

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

      .. oe:language:: python

         .. oe:api:: python

            CreateCopy() -> OEHasAtomStereoSpecified

      Deep copy constructor that returns a copy of the object.
      The memory for the returned :ref:`OEHasAtomStereoSpecified <OEChem_OEHasAtomStereoSpecified>`
      object is dynamically allocated  and owned by the caller.

      .. oe:language:: c++ 

         The returned copy should be deallocated using C++
         delete operator in order to prevent a memory leak. 

