.. oe:namespace:: OEChem



.. _OEChem_OEMolPropertyList:

.. oe:class:: OEMolPropertyList

   .. oe:api::

      class OEMolPropertyList

   This class is a container for multiple :ref:`OEMolPropertyFxn <OEChem_OEMolPropertyFxn>` objects.

   
   .. oe:method:: Constructors

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

         .. oe:api::

            OEMolPropertyList()
            OEMolPropertyList(const OEMolPropertyList &)

      .. oe:language:: python

         .. oe:api:: python

            OEMolPropertyList() -> OEMolPropertyList
            OEMolPropertyList(arg2: OEMolPropertyList) -> OEMolPropertyList

      Default and copy constructors.

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

      .. oe:api::

         OEMolPropertyList &operator=(const OEMolPropertyList &)

      The assignment operator.

      Assignment operator.


   .. oe:method:: Add

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

         .. oe:api::

            void Add(const OEMolPropertyFxn &)

      .. oe:language:: python

         .. oe:api:: python

            Add(arg2: OEMolPropertyFxn) -> None

      Adds a copy of the specified property function to the list.

   .. oe:method:: Clear

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

         .. oe:api::

            void Clear()

      .. oe:language:: python

         .. oe:api:: python

            Clear() -> None

      Clears the list of property functions.

   .. oe:method:: CreateCopy

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

         .. oe:api::

            OEMolPropertyList* CreateCopy() const

      .. oe:language:: python

         .. oe:api:: python

            CreateCopy() -> OEMolPropertyList

      Returns a copy of this :ref:`OEMolPropertyList <OEChem_OEMolPropertyList>` object.

   .. oe:method:: GetProperty

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

         .. oe:api::

            double GetProperty(const OEChem::OEMolBase &, size_t index) const
            double GetProperty(const OEChem::OEMCMolBase &, size_t index) const

      .. oe:language:: python

         .. oe:api:: python

            GetProperty(arg2: Union[OEGraphMol,OEQMol], index: int) -> float
            GetProperty(arg2: OEMol, index: int) -> float

      Returns the property value for the specified molecule, for the function 
      located at the specified index in the list. Method returns a large number
      (limiting large double in C++) when a value is not found.

   .. oe:method:: GetSize

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

         .. oe:api::

            size_t GetSize() const

      .. oe:language:: python

         .. oe:api:: python

            GetSize() -> int

      Returns the current number of :ref:`OEMolPropertyFxn <OEChem_OEMolPropertyFxn>` objects
      in the list.

   .. oe:method:: HasProperties

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

         .. oe:api::

            bool HasProperties(const OEChem::OEMolBase &) const
            bool HasProperties(const OEChem::OEMCMolBase &) const

      .. oe:language:: python

         .. oe:api:: python

            HasProperties(arg2: Union[OEGraphMol,OEQMol]) -> bool
            HasProperties(arg2: OEMol) -> bool

      Checks if the all of the property values exist for the specified molecule. 
      Returns ``False`` if at least of the property value does not exist.

