![]() |
Rosetta
2021.16
|
Class to traverse the abstract syntax tree produced by the parsing of a properly-formed string in the Arithmetic expression language. Produces a ResidueSelector tree capable of logically joining together already-defined ResidueSelectors. More...
#include <SelectorLogicParser.hh>

Public Member Functions | |
| SelectorLogicParser () | |
| ~SelectorLogicParser () override | |
| ResidueSelectorOP | parse_string_to_residue_selector (basic::datacache::DataMap const &dm, std::string const &selector_logic_string) |
| ResidueSelectorOP | parse_string_to_residue_selector (std::string const &input_string, std::map< std::string, ResidueSelectorOP > const &selectors) |
| void | add_named_selector (std::string const &name, ResidueSelectorOP selector) |
| void | visit (numeric::expression_parser::ArithmeticASTExpression const &) override |
| void | visit (numeric::expression_parser::ArithmeticASTAndClause const &) override |
| void | visit (numeric::expression_parser::ArithmeticASTOrClause const &) override |
| void | visit (numeric::expression_parser::ArithmeticASTFunction const &) override |
| void | visit (numeric::expression_parser::ArithmeticASTTerm const &) override |
| void | visit (numeric::expression_parser::ArithmeticASTFactor const &) override |
| void | visit (numeric::expression_parser::ArithmeticASTValue const &) override |
| void | visit (numeric::expression_parser::ArithmeticASTRestTerm const &) override |
| void | visit (numeric::expression_parser::ArithmeticASTRestAndClause const &) override |
| void | visit (numeric::expression_parser::ArithmeticASTRestOrClause const &) override |
| void | visit (numeric::expression_parser::ArithmeticASTRestExpression const &) override |
| void | visit (numeric::expression_parser::ArithmeticASTNode const &) override |
| ResidueSelectorOP | create_selector (numeric::expression_parser::ArithmeticASTExpression const &) |
| virtual ResidueSelectorOP | handle_variable_expression (numeric::expression_parser::ArithmeticASTValue const &) |
| Factory method to be implemented by derived classes which may wish to handle variable expressions in a specific manner. More... | |
| virtual ResidueSelectorOP | handle_function_expression (numeric::expression_parser::FunctionTokenCOP function, utility::vector1< ResidueSelectorOP > const &args) |
| Factory method to be implemented by derived classes which may wish to handle function expressions in a specific manner. More... | |
Private Member Functions | |
| ResidueSelectorOP | finish_parse_string_to_residue_selector (std::string const &input_string, numeric::expression_parser::ArithmeticScanner &as) |
| After creating an ArithmeticScanner and loading both it and this with the set of available ResidueSelectors, complete the scanning, parsing, and residue-selector construction steps of converting a string to a ResidueSelector. More... | |
Private Attributes | |
| std::map< std::string, ResidueSelectorOP > | variables_ |
| ResidueSelectorOP | last_constructed_selector_ |
| ResidueSelectorOP | semi_constructed_selector_ |
Class to traverse the abstract syntax tree produced by the parsing of a properly-formed string in the Arithmetic expression language. Produces a ResidueSelector tree capable of logically joining together already-defined ResidueSelectors.
|
default |
|
overridedefault |
| void core::select::residue_selector::SelectorLogicParser::add_named_selector | ( | std::string const & | name, |
| ResidueSelectorOP | selector | ||
| ) |
References variables_.
Referenced by parse_string_to_residue_selector().
| ResidueSelectorOP core::select::residue_selector::SelectorLogicParser::create_selector | ( | numeric::expression_parser::ArithmeticASTExpression const & | expr | ) |
References last_constructed_selector_, semi_constructed_selector_, and visit().
Referenced by finish_parse_string_to_residue_selector().
|
private |
After creating an ArithmeticScanner and loading both it and this with the set of available ResidueSelectors, complete the scanning, parsing, and residue-selector construction steps of converting a string to a ResidueSelector.
References create_selector(), and variables_.
Referenced by parse_string_to_residue_selector().
|
virtual |
Factory method to be implemented by derived classes which may wish to handle function expressions in a specific manner.
Referenced by visit().
|
virtual |
Factory method to be implemented by derived classes which may wish to handle variable expressions in a specific manner.
Factory method to be implemented by derived classes which may wish to handle variable expressions differently.
References variables_.
Referenced by visit().
| ResidueSelectorOP core::select::residue_selector::SelectorLogicParser::parse_string_to_residue_selector | ( | basic::datacache::DataMap const & | dm, |
| std::string const & | selector_logic_string | ||
| ) |
| ResidueSelectorOP core::select::residue_selector::SelectorLogicParser::parse_string_to_residue_selector | ( | std::string const & | input_string, |
| std::map< std::string, ResidueSelectorOP > const & | selectors | ||
| ) |
References add_named_selector(), and finish_parse_string_to_residue_selector().
|
override |
References last_constructed_selector_, semi_constructed_selector_, and core::id::to_string().
Referenced by create_selector().
|
override |
References last_constructed_selector_, semi_constructed_selector_, and core::id::to_string().
|
override |
References last_constructed_selector_, semi_constructed_selector_, and core::id::to_string().
|
override |
References handle_function_expression(), last_constructed_selector_, and core::id::to_string().
|
override |
References last_constructed_selector_, semi_constructed_selector_, and core::id::to_string().
|
override |
References last_constructed_selector_, and semi_constructed_selector_.
|
override |
References handle_variable_expression(), and last_constructed_selector_.
|
override |
References last_constructed_selector_, and semi_constructed_selector_.
|
override |
References last_constructed_selector_, and semi_constructed_selector_.
|
override |
References last_constructed_selector_, semi_constructed_selector_, and core::id::to_string().
|
override |
References last_constructed_selector_, semi_constructed_selector_, and core::id::to_string().
|
override |
|
private |
Referenced by create_selector(), and visit().
|
private |
Referenced by create_selector(), and visit().
|
private |
Referenced by add_named_selector(), finish_parse_string_to_residue_selector(), and handle_variable_expression().
1.8.7