#include <Arithmetic.hh>
◆ ~ArithmeticScanner()
numeric::expression_parser::ArithmeticScanner::~ArithmeticScanner |
( |
| ) |
|
|
overridedefault |
Automatically generated virtual destructor for class deriving directly from VirtualBase.
Auto-generated virtual destructor
◆ ArithmeticScanner() [1/2]
numeric::expression_parser::ArithmeticScanner::ArithmeticScanner |
( |
| ) |
|
◆ ArithmeticScanner() [2/2]
numeric::expression_parser::ArithmeticScanner::ArithmeticScanner |
( |
bool |
| ) |
|
Constructor which does not add the "standard" set of min, max and sqrt functions.
◆ add_function()
void numeric::expression_parser::ArithmeticScanner::add_function |
( |
std::string const & |
name, |
|
|
numeric::Size |
nargs |
|
) |
| |
◆ add_standard_functions()
void numeric::expression_parser::ArithmeticScanner::add_standard_functions |
( |
| ) |
|
◆ add_variable()
void numeric::expression_parser::ArithmeticScanner::add_variable |
( |
std::string const & |
name | ) |
|
◆ log_error()
std::string numeric::expression_parser::ArithmeticScanner::log_error |
( |
| ) |
const |
|
private |
◆ scan()
TokenSetOP numeric::expression_parser::ArithmeticScanner::scan |
( |
std::string const & |
input_string | ) |
|
References numeric::expression_parser::COMMA, numeric::expression_parser::DIVIDE_SYMBOL, gpu_set_args::done, numeric::expression_parser::is_letter(), numeric::expression_parser::is_numeral(), numeric::expression_parser::LEFT_PAREN, numeric::expression_parser::MULTIPLY_SYMBOL, numeric::expression_parser::NOT_SYMBOL, numeric::expression_parser::PLUS_SYMBOL, numeric::expression_parser::RIGHT_PAREN, scan_identifier(), scan_literal(), numeric::expression_parser::SUBTRACT_SYMBOL, utility::to_string(), and utility_exit_with_message.
Referenced by numeric::expression_parser::parse_string_to_boolean_expression(), and numeric::expression_parser::parse_string_to_expression().
◆ scan_identifier()
TokenOP numeric::expression_parser::ArithmeticScanner::scan_identifier |
( |
std::string const & |
input_string | ) |
const |
|
private |
References numeric::expression_parser::AND_SYMBOL, closure_error::error, functions_, create_a3b_hbs::ii, numeric::expression_parser::is_letter(), numeric::expression_parser::is_numeral(), log_error(), numeric::expression_parser::NOT_SYMBOL, numeric::expression_parser::OR_SYMBOL, utility::to_string(), numeric::expression_parser::to_uppercase(), treat_AND_and_OR_as_operators_, treat_NOT_as_operator_, utility_exit_with_message, and variables_.
Referenced by scan().
◆ scan_literal()
LiteralTokenOP numeric::expression_parser::ArithmeticScanner::scan_literal |
( |
std::string const & |
input_string | ) |
const |
|
private |
◆ treat_AND_and_OR_as_operators()
void numeric::expression_parser::ArithmeticScanner::treat_AND_and_OR_as_operators |
( |
bool |
setting | ) |
|
◆ treat_NOT_as_operator()
void numeric::expression_parser::ArithmeticScanner::treat_NOT_as_operator |
( |
bool |
setting | ) |
|
◆ functions_
std::map< std::string, numeric::Size > numeric::expression_parser::ArithmeticScanner::functions_ |
|
private |
◆ treat_AND_and_OR_as_operators_
bool numeric::expression_parser::ArithmeticScanner::treat_AND_and_OR_as_operators_ |
|
private |
◆ treat_NOT_as_operator_
bool numeric::expression_parser::ArithmeticScanner::treat_NOT_as_operator_ = false |
|
private |
◆ variables_
std::map< std::string, numeric::Size > numeric::expression_parser::ArithmeticScanner::variables_ |
|
private |
The documentation for this class was generated from the following files: