.. include:: ../../toolkit-substitutions

.. oe:namespace:: OEChem

.. oe:class:: OEHasAminoAcidType

   .. attention::

      |PRELIMINARY-API|

   .. oe:api::

      class OEHasAminoAcidType
      
   This functor can be used to identify monomers with the given amino acid type
   (:oe:constns:`OEChem::OEAminoAcidType`).

   .. oe:method:: Constructors

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

         .. oe:api::

            OEHasAminoAcidType(unsigned aminoAcidType)

      .. oe:language:: python

         .. oe:api:: python

            OEHasAminoAcidType(aminoAcidType: int) -> OEHasAminoAcidType

      Initializes the functor with the given polymer type from the 
      :oe:constns:`OEChem::OEAminoAcidType` namespace.

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

         .. oe:api::

            OEHasAminoAcidType(const OEHasAminoAcidType &)

      .. oe:language:: python

         .. oe:api:: python

            OEHasAminoAcidType(arg2: OEHasAminoAcidType) -> OEHasAminoAcidType

      Copy Constructors.

   .. oe:method:: operator()

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

         .. oe:api::

            bool operator()(const OEMonomer &) const

      .. oe:language:: python

         .. oe:api:: python

            __call__(arg2: OEMonomer) -> bool

      Returns true, if the given monomer has the same amino acid type
      the :oe:cls:`OEChem::OEHasAminoAcidType` functor is initialized with.

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

      .. oe:api::

         OEHasAminoAcidType &operator=(const OEHasAminoAcidType &)

      Assignment operator.

   .. oe:method:: CreateCopy

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

         .. oe:api::

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

      .. oe:language:: python

         .. oe:api:: python

            CreateCopy() -> OEUnaryMonomerBoolFunc

      Deep copy constructor that returns a copy of the object.
      The memory for the returned :oe:cls:`OEChem::OEHasAminoAcidType`
      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. 
