.. index:: pair: class; QPanda::Exp .. _doxid-class_q_panda_1_1_exp: class QPanda::Exp ================= .. toctree:: :hidden: enum_QPanda_Exp_ContentType.rst struct_QPanda_Exp_Content.rst Overview ~~~~~~~~ Saves the expression containing the variable. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class Exp { public: // enums enum :ref:`ContentType`; // structs struct :ref:`Content`; // construction :target:`Exp`(std::string name); :target:`Exp`( std::shared_ptr left_exp_ptr, std::shared_ptr right_exp_ptr, std::string op ); :target:`Exp`(double val); // methods std::shared_ptr :ref:`clone`(); void :target:`set_formal_actual_var_map`(std::map name_val_map); double :ref:`eval`(); }; .. _details-class_q_panda_1_1_exp: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Saves the expression containing the variable. Methods ------- .. index:: pair: function; clone .. _doxid-class_q_panda_1_1_exp_1ab1523308d9cc8e39de0d7ea7450c8660: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::shared_ptr clone() clone :ref:`Exp ` class .. rubric:: Returns: std::shared_ptr :ref:`Exp ` class shared ptr .. index:: pair: function; eval .. _doxid-class_q_panda_1_1_exp_1a557f54032493ad2672a83fa19e0efe8c: .. ref-code-block:: cpp :class: doxyrest-title-code-block double eval() evaluation .. rubric:: Returns: double operation rusult