.. index:: pair: class; QPanda::OriginQWhile .. _doxid-class_q_panda_1_1_origin_q_while: class QPanda::OriginQWhile ========================== .. toctree:: :hidden: Overview ~~~~~~~~ Implementation class of :ref:`QWhileProg `. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class OriginQWhile: public :ref:`QPanda::QNode`, public :ref:`QPanda::AbstractControlFlowNode` { public: // construction :target:`OriginQWhile`( :ref:`ClassicalCondition` ccCon, :ref:`QProg` node ); // methods virtual :ref:`NodeType` :ref:`getNodeType`() const; virtual std::shared_ptr<:ref:`QNode`> :ref:`getTrueBranch`() const; virtual std::shared_ptr<:ref:`QNode`> :ref:`getFalseBranch`() const; virtual void :ref:`setTrueBranch`(:ref:`QProg` node); virtual void :ref:`setFalseBranch`(:ref:`QProg` node); virtual :ref:`ClassicalCondition` :ref:`getCExpr`(); }; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // methods virtual :ref:`NodeType` :ref:`getNodeType`() const = 0; 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_origin_q_while: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Implementation class of :ref:`QWhileProg `. Methods ------- .. index:: pair: function; getNodeType .. _doxid-class_q_panda_1_1_origin_q_while_1ae04adcc7d926c55c89ad978ffe58149c: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual :ref:`NodeType` getNodeType() const Get current node type. .. rubric:: Returns: NodeType current node type .. rubric:: See also: :ref:`NodeType ` .. index:: pair: function; getTrueBranch .. _doxid-class_q_panda_1_1_origin_q_while_1ac3a0eb8b9eadb9587411239d0ce2844d: .. 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_origin_q_while_1ad5f4e9fa2205d20ac16fbbcf36de4fb2: .. 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; setTrueBranch .. _doxid-class_q_panda_1_1_origin_q_while_1acf16723f488d5e715091d526898a308d: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void setTrueBranch(:ref:`QProg` node) Set the True branch. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - Node - True branch node .. index:: pair: function; setFalseBranch .. _doxid-class_q_panda_1_1_origin_q_while_1a74547eb6766cf7bac0544cd33622446d: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void setFalseBranch(:ref:`QProg` node) Set the False Branch object. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - Node - False branch node .. index:: pair: function; getCExpr .. _doxid-class_q_panda_1_1_origin_q_while_1a9efb38f77ed3cf4ef5b13e87a79faa05: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual :ref:`ClassicalCondition` getCExpr() Get classical expr. .. rubric:: Returns: :ref:`ClassicalCondition ` ptr