|
Rosetta 3.5
|
#include <DynamicAggregateFunction.hh>


Public Types | |
| typedef utility::pointer::ReferenceCount | parent |
| typedef protocols::genetic_algorithm::Entity | Entity |
| typedef numeric::expression_parser::Expression | Expression |
| typedef numeric::expression_parser::ExpressionOP | ExpressionOP |
| typedef numeric::expression_parser::ExpressionCOP | ExpressionCOP |
| typedef numeric::expression_parser::VariableExpression | VariableExpression |
| typedef numeric::expression_parser::VariableExpressionOP | VariableExpressionOP |
| typedef numeric::expression_parser::VariableExpressionCOP | VariableExpressionCOP |
| typedef numeric::expression_parser::ArithmeticASTExpressionOP | ArithmeticASTExpressionOP |
| typedef core::Size | Size |
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_ |
Definition at line 819 of file DynamicAggregateFunction.hh.
| typedef numeric::expression_parser::ArithmeticASTExpressionOP protocols::pack_daemon::EntityFunc::ArithmeticASTExpressionOP |
Definition at line 834 of file DynamicAggregateFunction.hh.
Definition at line 824 of file DynamicAggregateFunction.hh.
Definition at line 826 of file DynamicAggregateFunction.hh.
| typedef numeric::expression_parser::ExpressionCOP protocols::pack_daemon::EntityFunc::ExpressionCOP |
Definition at line 828 of file DynamicAggregateFunction.hh.
| typedef numeric::expression_parser::ExpressionOP protocols::pack_daemon::EntityFunc::ExpressionOP |
Definition at line 827 of file DynamicAggregateFunction.hh.
Definition at line 822 of file DynamicAggregateFunction.hh.
Definition at line 836 of file DynamicAggregateFunction.hh.
| typedef numeric::expression_parser::VariableExpression protocols::pack_daemon::EntityFunc::VariableExpression |
Definition at line 830 of file DynamicAggregateFunction.hh.
| typedef numeric::expression_parser::VariableExpressionCOP protocols::pack_daemon::EntityFunc::VariableExpressionCOP |
Definition at line 832 of file DynamicAggregateFunction.hh.
| typedef numeric::expression_parser::VariableExpressionOP protocols::pack_daemon::EntityFunc::VariableExpressionOP |
Definition at line 831 of file DynamicAggregateFunction.hh.
| protocols::pack_daemon::EntityFunc::EntityFunc | ( | ) |
Definition at line 2515 of file DynamicAggregateFunction.cc.
|
virtual |
Definition at line 2519 of file DynamicAggregateFunction.cc.
|
private |
Definition at line 3200 of file DynamicAggregateFunction.cc.
References entity_aas_, num_entity_elements_, 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 |
||
| ) |
Definition at line 2570 of file DynamicAggregateFunction.cc.
References assign_entity_sequence_to_variables(), expression_evaluation_order_, and score_expression_.
| ExpressionCOP protocols::pack_daemon::EntityFunc::function_expression | ( | numeric::expression_parser::FunctionTokenCOP | function, |
| utility::vector1< ExpressionCOP > const & | args | ||
| ) | const |
Definition at line 2604 of file DynamicAggregateFunction.cc.
Referenced by protocols::pack_daemon::EntityFuncExpressionCreator::handle_function_expression().
| void protocols::pack_daemon::EntityFunc::initialize_from_input_file | ( | std::istream & | input) |
Definition at line 2528 of file DynamicAggregateFunction.cc.
References initialize_scanner_and_function_names(), num_entity_elements_, process_AA_SET_line(), process_SCORE_line(), process_SET_CONDITION_line(), process_SUB_EXPRESSION_line(), and turn_expression_ASTs_into_expressions().
|
private |
Definition at line 2689 of file DynamicAggregateFunction.cc.
References entity_aas_, function_names_, illegal_variable_names_, num_entity_elements_, scanner_, subexpression_name_dec_line_, subexpression_name_map_, and variable_expression_map_.
Referenced by initialize_from_input_file().
|
private |
Definition at line 2745 of file DynamicAggregateFunction.cc.
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_, and subexpression_name_map_.
Referenced by initialize_from_input_file().
|
private |
Definition at line 3155 of file DynamicAggregateFunction.cc.
References scanner_.
Referenced by initialize_from_input_file().
|
private |
Definition at line 2878 of file DynamicAggregateFunction.cc.
References core::chemical::aa_from_oneletter_code(), aa_sets_dec_line_, aa_sets_name_map_, 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_, and variable_expression_map_.
Referenced by initialize_from_input_file().
|
private |
Definition at line 3067 of file DynamicAggregateFunction.cc.
References aa_sets_dec_line_, aa_sets_name_map_, expression_evaluation_order_, function_names_, illegal_variable_names_, scanner_, subexpression_name_dec_line_, subexpression_name_map_, and variable_expression_map_.
Referenced by initialize_from_input_file().
| void protocols::pack_daemon::EntityFunc::set_num_entity_elements | ( | Size | num_ee) |
Definition at line 2523 of file DynamicAggregateFunction.cc.
References num_entity_elements_.
|
private |
Definition at line 3180 of file DynamicAggregateFunction.cc.
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 & | ) | const |
Definition at line 2584 of file DynamicAggregateFunction.cc.
References variable_expression_map_.
Referenced by protocols::pack_daemon::EntityFuncExpressionCreator::handle_variable_expression().
|
private |
Definition at line 906 of file DynamicAggregateFunction.hh.
Referenced by process_AA_SET_line(), process_SET_CONDITION_line(), and process_SUB_EXPRESSION_line().
|
private |
Definition at line 905 of file DynamicAggregateFunction.hh.
Referenced by process_AA_SET_line(), process_SET_CONDITION_line(), and process_SUB_EXPRESSION_line().
|
private |
Definition at line 903 of file DynamicAggregateFunction.hh.
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.
Definition at line 915 of file DynamicAggregateFunction.hh.
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.
Definition at line 921 of file DynamicAggregateFunction.hh.
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
Definition at line 924 of file DynamicAggregateFunction.hh.
Referenced by initialize_scanner_and_function_names(), process_AA_SET_line(), process_SET_CONDITION_line(), and process_SUB_EXPRESSION_line().
|
private |
Definition at line 901 of file DynamicAggregateFunction.hh.
Referenced by assign_entity_sequence_to_variables(), initialize_from_input_file(), initialize_scanner_and_function_names(), process_SET_CONDITION_line(), and set_num_entity_elements().
|
private |
Definition at line 919 of file DynamicAggregateFunction.hh.
Referenced by initialize_scanner_and_function_names(), process_SCORE_line(), process_SET_CONDITION_line(), and process_SUB_EXPRESSION_line().
|
private |
Definition at line 917 of file DynamicAggregateFunction.hh.
Referenced by evaluate(), and turn_expression_ASTs_into_expressions().
|
private |
Definition at line 909 of file DynamicAggregateFunction.hh.
Referenced by initialize_scanner_and_function_names(), process_AA_SET_line(), process_SET_CONDITION_line(), and process_SUB_EXPRESSION_line().
|
private |
Definition at line 908 of file DynamicAggregateFunction.hh.
Referenced by initialize_scanner_and_function_names(), process_AA_SET_line(), process_SET_CONDITION_line(), process_SUB_EXPRESSION_line(), and turn_expression_ASTs_into_expressions().
|
private |
Definition at line 911 of file DynamicAggregateFunction.hh.
Referenced by initialize_scanner_and_function_names(), process_SET_CONDITION_line(), process_SUB_EXPRESSION_line(), and variable_expression().
1.8.4