class QPanda::QIfRegisterAction

Overview

QIf program register action. More…

#include <ControlFlow.h>

class QIfRegisterAction
{
public:
    // construction

    QIfRegisterAction(std::string class_name, CreateQIfTrueFalse_cb create_callback);
    QIfRegisterAction(std::string class_name, CreateQIfTrueOnly_cb create_callback);
};

Detailed Documentation

QIf program register action.

Provide QIfFactory class registration interface for the outside

Construction

QIfRegisterAction(std::string class_name, CreateQIfTrueFalse_cb create_callback)

Construct a new QIfRegisterAction object Call QIfFactory`s registClass interface.

Parameters:

class_name

AbstractControlFlowNode Implementation class name

create_callback

The Constructor of Implementation class for AbstractControlFlowNode which have true and false branch

QIfRegisterAction(std::string class_name, CreateQIfTrueOnly_cb create_callback)

Construct a new QIfRegisterAction object Call QIfFactory`s registClass interface.

Parameters:

class_name

AbstractControlFlowNode Implementation class name

create_callback

The Constructor of Implementation class for AbstractControlFlowNode which only have branch