class QPanda::CExprFactoryHelper

Overview

CExpr factory helper Provide CExprFactory class registration interface for the outside. More…

#include <CExprFactory.h>

class CExprFactoryHelper
{
public:
    // construction

    CExprFactoryHelper(std::string name, cbit_constructor_t _Constructor);
    CExprFactoryHelper(std::string, value_constructor_t _Constructor);
    CExprFactoryHelper(std::string, operator_constructor_t _Constructor);
};

Detailed Documentation

CExpr factory helper Provide CExprFactory class registration interface for the outside.

Construction

CExprFactoryHelper(std::string name, cbit_constructor_t _Constructor)

Construct a new CExprFactoryHelper object Call the CExprFactory class registration interface for register the CExpr subclass.

Parameters:

std::string

subclass name

cbit_constructor_t

function

CExprFactoryHelper(std::string, value_constructor_t _Constructor)

Construct a new CExprFactoryHelper object Call the CExprFactory class registration interface for register the CExpr subclass.

Parameters:

std::string

subclass name

value_constructor_t

function

CExprFactoryHelper(std::string, operator_constructor_t _Constructor)

Construct a new CExprFactoryHelper object Call the CExprFactory class registration interface for register the CExpr subclass.

Parameters:

std::string

subclass name

operator_constructor_t

function