.. index:: pair: class; QPanda::QWhileProg .. _doxid-class_q_panda_1_1_q_while_prog: class QPanda::QWhileProg ======================== .. toctree:: :hidden: Overview ~~~~~~~~ Proxy class of quantum while program. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class QWhileProg: public :ref:`QPanda::AbstractControlFlowNode` { public: // construction :target:`QWhileProg`(const QWhileProg&); :target:`QWhileProg`(std::shared_ptr<:ref:`AbstractControlFlowNode`> qwhile); :target:`QWhileProg`( :ref:`ClassicalCondition`, :ref:`QProg` ); // methods std::shared_ptr<:ref:`AbstractControlFlowNode`> :target:`getImplementationPtr`(); virtual :ref:`NodeType` :target:`getNodeType`() const; virtual std::shared_ptr<:ref:`QNode`> :ref:`getTrueBranch`() const; virtual std::shared_ptr<:ref:`QNode`> :ref:`getFalseBranch`() const; virtual :ref:`ClassicalCondition` :ref:`getCExpr`(); virtual :ref:`ClassicalCondition` :target:`getClassicalCondition`(); }; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // methods virtual std::shared_ptr<:ref:`QNode`> :ref:`getTrueBranch`() const = 0; virtual std::shared_ptr<:ref:`QNode`> :ref:`getFalseBranch`() const = 0; virtual void :ref:`setTrueBranch`(:ref:`QProg` node) = 0; virtual void :ref:`setFalseBranch`(:ref:`QProg` node) = 0; virtual :ref:`ClassicalCondition` :ref:`getCExpr`() = 0; .. _details-class_q_panda_1_1_q_while_prog: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Proxy class of quantum while program. Methods ------- .. index:: pair: function; getTrueBranch .. _doxid-class_q_panda_1_1_q_while_prog_1a042e7133285464f8fa6c1e707a0b6d1c: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual std::shared_ptr<:ref:`QNode`> getTrueBranch() const Get true branch. .. rubric:: Returns: std::shared_ptr .. index:: pair: function; getFalseBranch .. _doxid-class_q_panda_1_1_q_while_prog_1a1b77b6d34a1ec94426fdbfc8ed289ce6: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual std::shared_ptr<:ref:`QNode`> getFalseBranch() const Get false branch. .. rubric:: Returns: std::shared_ptr .. index:: pair: function; getCExpr .. _doxid-class_q_panda_1_1_q_while_prog_1a9174f0fdac303628a93c8bbc5c45b8b0: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual :ref:`ClassicalCondition` getCExpr() Get classical expr. .. rubric:: Returns: :ref:`ClassicalCondition ` ptr