.. oe:namespace:: OEChem



.. meta::
   :keywords: OEMatchPair, MatchPair


.. _OEChem_OEMatchPair:

.. oe:class:: OEMatchPair

   .. oe:api::

      template<class T>
      class OEMatchPair

   This class represents `OEMatchPair`.

   The :ref:`OEMatchPair <OEChem_OEMatchPair>` template class represents both
   atom-atom and bond-bond equivalences in pattern matching.
   Each :ref:`OEMatchPair <OEChem_OEMatchPair>` represents a correspondence (or
   matching) between a pattern atom or bond in the query molecule, and
   a target atom or bond in the target molecule, respectively.

   .. oe:method:: Constructors

      .. oe:api::

         OEMatchPair()

      Default constructor.

      .. oe:api::

         OEMatchPair(const T* p, const T* t)

      Initializes the :ref:`OEMatchPair <OEChem_OEMatchPair>` object with either
      an atom (:ref:`OEAtomBase <OEChem_OEAtomBase>`) or a bond
      (:ref:`OEBondBase <OEChem_OEBondBase>`) pair.

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

      .. oe:api::

         OEMatchPair<T>& operator=(const OEMatchPair<T>& rhs)

      Assignment operator that copies the data of the 'rhs' :ref:`OEMatchPair <OEChem_OEMatchPair>` object
      into the right-hand side :ref:`OEMatchPair <OEChem_OEMatchPair>` object.

      Assignment operator.


