class QPanda::CExprFactory

Overview

classical expr class factory More…

Detailed Documentation

classical expr class factory

Typedefs

We typedef the cbit_constructor_t is a constructor that use cbit create cexpr.

We typedef the cbit_constructor_map_t is a collection of constructors that use cbit create cexpr.

We typedef the value_constructor_t is a constructor that use value create cexpr.

We typedef the value_constructor_map_t is a collection of constructors that use value create cexpr.

We typedef the operator_constructor_t is a constructor that use operator create cexpr.

We typedef the operator_constructor_map_t is a collection of constructors that use operator create cexpr.

Fields

A collection of constructors that use cbit create cexpr.

A collection of constructors that use value create cexpr.

A collection of constructors that use operator create cexpr.

Methods

Get the Factory Instance object.

Returns:

CExprFactory &

Get cexpr by cbit.

Parameters:

cbit

target cbit

Returns:

CExpr*

Registration function This function can be used to register constructors that inherit subclasses of the CExpr class.

Parameters:

std::string

name subclass name

cbit_constructor_t

constructor subclass constructor

Get cexpr by value.

Parameters:

cbit_size_t

target value

Returns:

CExpr*

Registration function This function can be used to register constructors that inherit subclasses of the CExpr class.

Parameters:

std::string

subclass name

value_constructor_t

subclass constructor

Get cexpr by Operation.

Parameters:

CExpr*

left CExpr

CExpr*

right CExpr

int

target operator

Returns:

CExpr*

Registration function This function can be used to register constructors that inherit subclasses of the CExpr class.

Parameters:

std::string

subclass name

operator_constructor_t

subclass constructor