.. oe:namespace:: OEChem

.. oe:constnamespace:: OEMolBaseType

   The :oe:constns:`OEChem::OEMolBaseType` namespace encodes symbolic
   constants representing specific :ref:`OEMolBase <OEChem_OEMolBase>` class
   implementation types.

   .. seealso::

      * :ref:`OEGraphMol <OEChem_OEGraphMol>` constructor
      * :oe:func:`OEChem::OENewMolBase` function

   This namespace contains the following constants:

   .. oe:constant:: Undefined

      Used to signal errors.

   .. oe:constant:: OEDefault

      The default molecule implementation used by OEChem.

   .. oe:constant:: OEDBMol

      A molecule implementation designed to have a very small memory
      footprint. :oe:meth:`OEChem::OEMolBase::Compress` can be called
      to dramatically reduce memory consumption. However,
      :oe:meth:`OEChem::OEMolBase::UnCompress` must be called to make
      the molecule usable again.

   .. oe:constant:: OEMiniMol

      A molecule implementation designed to have a small memory
      footprint, however, the molecule is still usable for molecular
      algorithms, i.e., substructure searching. This molecule
      implementation has been tuned for high performance in-memory
      substructure searching, while maintaining a small memory
      footprint. :oe:meth:`OEChem::OEMolBase::Compress` will reduce
      memory consumption, however, it will put the molecule in a
      "read-only" state. :oe:meth:`OEChem::OEMolBase::UnCompress` will
      make the molecule writeable again.

      .. warning::

         :ref:`OEGroupBase <OEChem_OEGroupBase>` information will be lost
         when compressing molecules that are constructed with the
         :oe:const:`OEChem::OEMolBaseType::OEMiniMol` type.

   .. oe:constant:: MaxType

      The maximum numerical value possible from this namespace.
