.. oe:namespace:: OEChem



.. meta::
   :keywords: OEAbsCanonicalConfTest, AbsCanonicalConfTest


.. _OEChem_OEAbsCanonicalConfTest:

.. oe:class:: OEAbsCanonicalConfTest

   .. oe:api::


      class OEAbsCanonicalConfTest : public OEConfTestBase

   This class represents `OEAbsCanonicalConfTest`.

   This implementation of :ref:`OEConfTestBase <OEChem_OEConfTestBase>` combines
   subsequent connection tables into a multi-conformer molecule if
   they have the same :term:`canonical SMILES`, that is, absolute (nonisomeric) graph.

   The following methods are publicly inherited from :ref:`OEConfTestBase <OEChem_OEConfTestBase>`:

   =========================================================== =========================================================== ==========================================================
   :oe:meth:`CombineMols<OEChem::OEConfTestBase::CombineMols>` :oe:meth:`CompareMols<OEChem::OEConfTestBase::CompareMols>` :oe:meth:`CreateCopy<OEChem::OEConfTestBase::CreateCopy>` 
   =========================================================== =========================================================== ==========================================================


   .. oe:method:: CombineMols

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

         .. oe:api::

            bool CombineMols(OEMCMolBase& m1, OEMolBase& m2)

      .. oe:language:: python

         .. oe:api:: python

            CombineMols(m1: OEMol, m2: Union[OEGraphMol,OEMol,OEQMol]) -> bool

   .. oe:method:: CompareMols

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

         .. oe:api::

            bool CompareMols(OEMolBase& m1, OEMolBase& m2) const

      .. oe:language:: python

         .. oe:api:: python

            CompareMols(m1: Union[OEGraphMol,OEMol,OEQMol],
                        m2: Union[OEGraphMol,OEMol,OEQMol]) -> bool

      Returns whether the two :ref:`OEMolBase <OEChem_OEMolBase>` object have
      the same :term:`canonical SMILES`. Before the
      comparison all atom and bond stereo values of 'm2' are set to
      :oe:const:`OEChem::OEAtomStereo::Undefined` and
      :oe:const:`OEChem::OEBondStereo::Undefined`, respectively,
      followed by canonical ordering of its atoms by
      :oe:func:`OEChem::OECanonicalOrderAtoms`
  
   .. oe:method:: CreateCopy

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

         .. oe:api::

            OEConfTestBase* CreateCopy() const

      .. oe:language:: python

         .. oe:api:: python

            CreateCopy() -> OEConfTestBase

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

