#include <Arithmetic.hh>
| numeric::expression_parser::ArithmeticScanner::~ArithmeticScanner |
( |
| ) |
|
|
overridedefault |
Automatically generated virtual destructor for class deriving directly from VirtualBase.
Auto-generated virtual destructor
| numeric::expression_parser::ArithmeticScanner::ArithmeticScanner |
( |
| ) |
|
| numeric::expression_parser::ArithmeticScanner::ArithmeticScanner |
( |
bool |
| ) |
|
Constructor which does not add the "standard" set of min, max and sqrt functions.
| void numeric::expression_parser::ArithmeticScanner::add_function |
( |
std::string const & |
name, |
|
|
numeric::Size |
nargs |
|
) |
| |
| void numeric::expression_parser::ArithmeticScanner::add_standard_functions |
( |
| ) |
|
| void numeric::expression_parser::ArithmeticScanner::add_variable |
( |
std::string const & |
name | ) |
|
| std::string numeric::expression_parser::ArithmeticScanner::log_error |
( |
| ) |
const |
|
private |
| TokenSetOP numeric::expression_parser::ArithmeticScanner::scan |
( |
std::string const & |
input_string | ) |
|
References numeric::expression_parser::COMMA, numeric::expression_parser::DIVIDE_SYMBOL, 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().
| TokenOP numeric::expression_parser::ArithmeticScanner::scan_identifier |
( |
std::string const & |
input_string | ) |
const |
|
private |
References numeric::expression_parser::AND_SYMBOL, functions_, test.T200_Scoring::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().
| LiteralTokenOP numeric::expression_parser::ArithmeticScanner::scan_literal |
( |
std::string const & |
input_string | ) |
const |
|
private |
| void numeric::expression_parser::ArithmeticScanner::treat_AND_and_OR_as_operators |
( |
bool |
setting | ) |
|
| void numeric::expression_parser::ArithmeticScanner::treat_NOT_as_operator |
( |
bool |
setting | ) |
|
| std::map< std::string, numeric::Size > numeric::expression_parser::ArithmeticScanner::functions_ |
|
private |
| bool numeric::expression_parser::ArithmeticScanner::treat_AND_and_OR_as_operators_ |
|
private |
| bool numeric::expression_parser::ArithmeticScanner::treat_NOT_as_operator_ = false |
|
private |
| std::map< std::string, numeric::Size > numeric::expression_parser::ArithmeticScanner::variables_ |
|
private |
The documentation for this class was generated from the following files: