.. index:: pair: class; QPanda::QIfRegisterAction .. _doxid-class_q_panda_1_1_q_if_register_action: class QPanda::QIfRegisterAction =============================== .. toctree:: :hidden: Overview ~~~~~~~~ QIf program register action. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class QIfRegisterAction { public: // construction :ref:`QIfRegisterAction`(std::string class_name, :ref:`CreateQIfTrueFalse_cb` create_callback); :ref:`QIfRegisterAction`(std::string class_name, :ref:`CreateQIfTrueOnly_cb` create_callback); }; .. _details-class_q_panda_1_1_q_if_register_action: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ QIf program register action. Provide :ref:`QIfFactory ` class registration interface for the outside Construction ------------ .. index:: pair: function; QIfRegisterAction .. _doxid-class_q_panda_1_1_q_if_register_action_1a6c8f122a01429dea66af9d5767ee8516: .. ref-code-block:: cpp :class: doxyrest-title-code-block QIfRegisterAction(std::string class_name, :ref:`CreateQIfTrueFalse_cb` create_callback) Construct a new :ref:`QIfRegisterAction ` object Call QIfFactory`s registClass interface. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - class_name - :ref:`AbstractControlFlowNode ` Implementation class name * - create_callback - The Constructor of Implementation class for :ref:`AbstractControlFlowNode ` which have true and false branch .. index:: pair: function; QIfRegisterAction .. _doxid-class_q_panda_1_1_q_if_register_action_1a1e5e2951ee0e2407093e77c4f4509822: .. ref-code-block:: cpp :class: doxyrest-title-code-block QIfRegisterAction(std::string class_name, :ref:`CreateQIfTrueOnly_cb` create_callback) Construct a new :ref:`QIfRegisterAction ` object Call QIfFactory`s registClass interface. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - class_name - :ref:`AbstractControlFlowNode ` Implementation class name * - create_callback - The Constructor of Implementation class for :ref:`AbstractControlFlowNode ` which only have branch