.. oe:namespace:: OEChem



.. meta::
   :keywords: OEIsInvertibleNitrogen, IsInvertibleNitrogen


.. _OEChem_OEIsInvertibleNitrogen:

.. oe:class:: OEIsInvertibleNitrogen

   .. oe:api::


      struct OEIsInvertibleNitrogen : public OESystem::OEUnaryPredicate<OEChem::OEAtomBase>

   This class represents :ref:`OEIsInvertibleNitrogen <OEChem_OEIsInvertibleNitrogen>` functor that
   identifies invertible nitrogen atoms (:ref:`OEAtomBase <OEChem_OEAtomBase>`).

   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:: 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::IsNitrogen`
      method returns ``true`` for the given 
      :ref:`OEAtomBase <OEChem_OEAtomBase>` object and the atom has a degree of 3, a valence of 3, is not aromatic, and has less than 3 ring bonds.

   .. oe:method:: CreateCopy

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

         .. oe:api::

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

      .. oe:language:: python

         .. oe:api:: python

            CreateCopy() -> OEIsInvertibleNitrogen

      Deep copy constructor that returns a copy of the object.
      The memory for the returned :ref:`OEIsInvertibleNitrogen <OEChem_OEIsInvertibleNitrogen>`
      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. 
