![]() |
Rosetta Protocols
2014.35
|
#include <DynamicAggregateFunction.hh>
Public Member Functions | |
EntityFunc () | |
virtual | ~EntityFunc () |
void | set_num_entity_elements (Size num_ee) |
void | initialize_from_input_file (std::istream &input) |
core::Real | evaluate (Entity const &entity, bool verbose=false) |
ExpressionCOP | variable_expression (numeric::expression_parser::ArithmeticASTValue const &) const |
ExpressionCOP | function_expression (numeric::expression_parser::FunctionTokenCOP function, utility::vector1< ExpressionCOP > const &args) const |
Private Member Functions | |
void | initialize_scanner_and_function_names () |
void | process_AA_SET_line (std::string const &line, Size line_number, std::istream &input_line) |
void | process_SET_CONDITION_line (std::string const &line, Size line_number, std::istream &input_line) |
void | process_SUB_EXPRESSION_line (std::string const &line, Size line_number, std::istream &input_line, std::map< std::string, ArithmeticASTExpressionOP > &expression_asts) |
void | process_SCORE_line (std::string const &line, Size line_number, std::istream &input_line, ArithmeticASTExpressionOP &score_expression_ast) |
void | turn_expression_ASTs_into_expressions (std::map< std::string, ArithmeticASTExpressionOP > const &expression_asts, ArithmeticASTExpressionOP score_expression_ast) |
void | assign_entity_sequence_to_variables (Entity const &entity) |
Private Attributes | |
Size | num_entity_elements_ |
utility::vector1 < VariableExpressionOP > | entity_aas_ |
std::map< std::string, utility::vector1< core::Real > > | aa_sets_name_map_ |
std::map< std::string, Size > | aa_sets_dec_line_ |
std::map< std::string, ExpressionCOP > | subexpression_name_map_ |
std::map< std::string, Size > | subexpression_name_dec_line_ |
std::map< std::string, VariableExpressionOP > | variable_expression_map_ |
utility::vector1< std::pair < ExpressionCOP, SurrogateVariableExpressionOP > > | expression_evaluation_order_ |
ExpressionCOP | score_expression_ |
numeric::expression_parser::ArithmeticScannerOP | scanner_ |
std::set< std::string > | function_names_ |
Function names may not be used as variable names. More... | |
std::set< std::string > | illegal_variable_names_ |
typedef numeric::expression_parser::ArithmeticASTExpressionOP protocols::pack_daemon::EntityFunc::ArithmeticASTExpressionOP |
typedef numeric::expression_parser::VariableExpression protocols::pack_daemon::EntityFunc::VariableExpression |
typedef numeric::expression_parser::VariableExpressionCOP protocols::pack_daemon::EntityFunc::VariableExpressionCOP |
typedef numeric::expression_parser::VariableExpressionOP protocols::pack_daemon::EntityFunc::VariableExpressionOP |
protocols::pack_daemon::EntityFunc::EntityFunc | ( | ) |
|
virtual |
|
private |
References entity_aas_, num_entity_elements_, runtime_assert, protocols::genetic_algorithm::Entity::traits(), and protocols::multistate_design::PosType::type().
Referenced by evaluate().
core::Real protocols::pack_daemon::EntityFunc::evaluate | ( | Entity const & | entity, |
bool | verbose = false |
||
) |
ExpressionCOP protocols::pack_daemon::EntityFunc::function_expression | ( | numeric::expression_parser::FunctionTokenCOP | function, |
utility::vector1< ExpressionCOP > const & | args | ||
) | const |
References utility::to_string().
Referenced by protocols::pack_daemon::EntityFuncExpressionCreator::handle_function_expression().
void protocols::pack_daemon::EntityFunc::initialize_from_input_file | ( | std::istream & | input | ) |
|
private |
References numeric::expression_parser::ArithmeticScanner::add_function(), numeric::expression_parser::ArithmeticScanner::add_variable(), entity_aas_, function_names_, illegal_variable_names_, num_entity_elements_, scanner_, subexpression_name_dec_line_, subexpression_name_map_, utility::to_string(), and variable_expression_map_.
Referenced by initialize_from_input_file().
|
private |
References core::chemical::aa_from_oneletter_code(), aa_sets_dec_line_, aa_sets_name_map_, function_names_, illegal_variable_names_, core::chemical::oneletter_code_specifies_aa(), subexpression_name_dec_line_, subexpression_name_map_, and utility::to_string().
Referenced by initialize_from_input_file().
|
private |
References numeric::expression_parser::ArithmeticScanner::scan(), scanner_, and utility::to_string().
Referenced by initialize_from_input_file().
|
private |
References core::chemical::aa_from_oneletter_code(), aa_sets_dec_line_, aa_sets_name_map_, numeric::expression_parser::ArithmeticScanner::add_variable(), expression_evaluation_order_, function_names_, illegal_variable_names_, num_entity_elements_, core::chemical::oneletter_code_specifies_aa(), scanner_, subexpression_name_dec_line_, subexpression_name_map_, utility::to_string(), and variable_expression_map_.
Referenced by initialize_from_input_file().
|
private |
References aa_sets_dec_line_, aa_sets_name_map_, numeric::expression_parser::ArithmeticScanner::add_variable(), expression_evaluation_order_, function_names_, illegal_variable_names_, numeric::expression_parser::ArithmeticScanner::scan(), scanner_, subexpression_name_dec_line_, subexpression_name_map_, utility::to_string(), and variable_expression_map_.
Referenced by initialize_from_input_file().
void protocols::pack_daemon::EntityFunc::set_num_entity_elements | ( | Size | num_ee | ) |
References num_entity_elements_.
|
private |
References expression_evaluation_order_, score_expression_, and subexpression_name_map_.
Referenced by initialize_from_input_file().
ExpressionCOP protocols::pack_daemon::EntityFunc::variable_expression | ( | numeric::expression_parser::ArithmeticASTValue const & | var_node | ) | const |
References numeric::expression_parser::ArithmeticASTValue::is_literal(), numeric::expression_parser::ArithmeticASTValue::literal_value(), utility::to_string(), utility_exit_with_message, variable_expression_map_, and numeric::expression_parser::ArithmeticASTValue::variable_name().
Referenced by protocols::pack_daemon::EntityFuncExpressionCreator::handle_variable_expression().
|
private |
Referenced by process_AA_SET_line(), process_SET_CONDITION_line(), and process_SUB_EXPRESSION_line().
|
private |
Referenced by process_AA_SET_line(), process_SET_CONDITION_line(), and process_SUB_EXPRESSION_line().
|
private |
Referenced by assign_entity_sequence_to_variables(), and initialize_scanner_and_function_names().
|
private |
Evaluate the subexpressions and then store them in the surrogate variable expressions in order.
Referenced by evaluate(), process_SET_CONDITION_line(), process_SUB_EXPRESSION_line(), and turn_expression_ASTs_into_expressions().
|
private |
Function names may not be used as variable names.
Referenced by initialize_scanner_and_function_names(), process_AA_SET_line(), process_SET_CONDITION_line(), and process_SUB_EXPRESSION_line().
|
private |
This set represents strings that may not be used as variable names but which are not funciton names
Referenced by initialize_scanner_and_function_names(), process_AA_SET_line(), process_SET_CONDITION_line(), and process_SUB_EXPRESSION_line().
|
private |
|
private |
|
private |
Referenced by evaluate(), and turn_expression_ASTs_into_expressions().
|
private |
|
private |
|
private |