FuncSketch
Loading...
Searching...
No Matches
convert_expression.cpp File Reference

Implementation of convert_expression function. More...

Include dependency graph for convert_expression.cpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

expressions::Expressionfunc_sketch::parser::convert_expression (const ParsedExpression &parsed_expression, const math::MathFunctionList &math_function_list, const math::ConstantList &constant_list, expressions::ExpressionMemoryPool &pool)
 Convert parsed expression.
expressions::Expressionfunc_sketch::parser::convert_expression (const ParsedLiteral &parsed_expression, const math::MathFunctionList &, const math::ConstantList &, expressions::ExpressionMemoryPool &pool)
 Convert parsed expression.
expressions::Expressionfunc_sketch::parser::convert_expression (const ParsedIdentifier &parsed_expression, const math::MathFunctionList &, const math::ConstantList &constant_list, expressions::ExpressionMemoryPool &pool)
 Convert parsed expression.
expressions::Expressionfunc_sketch::parser::convert_expression (const ParsedFunctionCallExpression &parsed_expression, const math::MathFunctionList &math_function_list, const math::ConstantList &constant_list, expressions::ExpressionMemoryPool &pool)
 Convert parsed expression.
math::UnaryOperator func_sketch::parser::get_unary_operator (const std::string &operator_str)
 Get a unary operator by name.
expressions::Expressionfunc_sketch::parser::convert_expression (const ParsedUnaryExpression &parsed_expression, const math::MathFunctionList &math_function_list, const math::ConstantList &constant_list, expressions::ExpressionMemoryPool &pool)
 Convert parsed expression.
math::BinaryOperator func_sketch::parser::get_binary_operator (const std::string &operator_str)
 Get a binary operator by name.
expressions::Expressionfunc_sketch::parser::convert_expression (const ParsedBinaryExpression &parsed_expression, const math::MathFunctionList &math_function_list, const math::ConstantList &constant_list, expressions::ExpressionMemoryPool &pool)
 Convert parsed expression.
expressions::ExpressionPtr func_sketch::parser::convert_expression (const ParsedExpression &parsed_expression, const math::MathFunctionList &math_function_list, const math::ConstantList &constant_list)
 Convert parsed expression.

Detailed Description

Implementation of convert_expression function.

Definition in file convert_expression.cpp.

Function Documentation

◆ convert_expression() [1/7]

expressions::Expression * func_sketch::parser::convert_expression ( const ParsedExpression & parsed_expression,
const math::MathFunctionList & math_function_list,
const math::ConstantList & constant_list,
expressions::ExpressionMemoryPool & pool )
nodiscard

Convert parsed expression.

Parameters
[in]parsed_expressionParsed expression to convert.
[in]math_function_listList of math functions.
[in]constant_listList of constants.
[in]poolMemory pool to allocate expressions.
Returns
Converted expression.

Definition at line 208 of file convert_expression.cpp.

◆ convert_expression() [2/7]

expressions::Expression * func_sketch::parser::convert_expression ( const ParsedLiteral & parsed_expression,
const math::MathFunctionList & ,
const math::ConstantList & ,
expressions::ExpressionMemoryPool & pool )
nodiscard

Convert parsed expression.

Parameters
[in]parsed_expressionParsed expression to convert.
[in]poolMemory pool to allocate expressions.
Returns
Converted expression.

Definition at line 59 of file convert_expression.cpp.

◆ convert_expression() [3/7]

expressions::Expression * func_sketch::parser::convert_expression ( const ParsedIdentifier & parsed_expression,
const math::MathFunctionList & ,
const math::ConstantList & constant_list,
expressions::ExpressionMemoryPool & pool )
nodiscard

Convert parsed expression.

Parameters
[in]parsed_expressionParsed expression to convert.
[in]constant_listList of constants.
[in]poolMemory pool to allocate expressions.
Returns
Converted expression.

Definition at line 76 of file convert_expression.cpp.

◆ convert_expression() [4/7]

expressions::Expression * func_sketch::parser::convert_expression ( const ParsedFunctionCallExpression & parsed_expression,
const math::MathFunctionList & math_function_list,
const math::ConstantList & constant_list,
expressions::ExpressionMemoryPool & pool )
nodiscard

Convert parsed expression.

Parameters
[in]parsed_expressionParsed expression to convert.
[in]math_function_listList of math functions.
[in]constant_listList of constants.
[in]poolMemory pool to allocate expressions.
Returns
Converted expression.

Definition at line 101 of file convert_expression.cpp.

◆ get_unary_operator()

math::UnaryOperator func_sketch::parser::get_unary_operator ( const std::string & operator_str)
nodiscard

Get a unary operator by name.

Parameters
[in]operator_strName of the operator.
Returns
Unary operator.

Definition at line 128 of file convert_expression.cpp.

◆ convert_expression() [5/7]

expressions::Expression * func_sketch::parser::convert_expression ( const ParsedUnaryExpression & parsed_expression,
const math::MathFunctionList & math_function_list,
const math::ConstantList & constant_list,
expressions::ExpressionMemoryPool & pool )
nodiscard

Convert parsed expression.

Parameters
[in]parsed_expressionParsed expression to convert.
[in]math_function_listList of math functions.
[in]constant_listList of constants.
[in]poolMemory pool to allocate expressions.
Returns
Converted expression.

Definition at line 148 of file convert_expression.cpp.

◆ get_binary_operator()

math::BinaryOperator func_sketch::parser::get_binary_operator ( const std::string & operator_str)
nodiscard

Get a binary operator by name.

Parameters
[in]operator_strName of the operator.
Returns
Binary operator.

Definition at line 165 of file convert_expression.cpp.

◆ convert_expression() [6/7]

expressions::Expression * func_sketch::parser::convert_expression ( const ParsedBinaryExpression & parsed_expression,
const math::MathFunctionList & math_function_list,
const math::ConstantList & constant_list,
expressions::ExpressionMemoryPool & pool )
nodiscard

Convert parsed expression.

Parameters
[in]parsed_expressionParsed expression to convert.
[in]math_function_listList of math functions.
[in]constant_listList of constants.
[in]poolMemory pool to allocate expressions.
Returns
Converted expression.

Definition at line 195 of file convert_expression.cpp.

◆ convert_expression() [7/7]

expressions::ExpressionPtr func_sketch::parser::convert_expression ( const ParsedExpression & parsed_expression,
const math::MathFunctionList & math_function_list,
const math::ConstantList & constant_list )
nodiscard

Convert parsed expression.

Parameters
[in]parsed_expressionParsed expression to convert.
[in]math_function_listList of math functions.
[in]constant_listList of constants.
Returns
Converted expression.

Definition at line 222 of file convert_expression.cpp.