![]() |
Rosetta Protocols
2014.35
|
Stores the result of the surragate expression as if this expression were a variable, but defers to the root expression for questions of deriviatives and which variables are active (this is not a real variable). More...
#include <DynamicAggregateFunction.hh>
Public Types | |
typedef numeric::expression_parser::VariableExpression | parent |
typedef numeric::expression_parser::ExpressionCOP | ExpressionCOP |
Public Member Functions | |
SurrogateVariableExpression (std::string const &) | |
SurrogateVariableExpression (std::string const &, core::Real value) | |
virtual std::list< std::string > | active_variables () const |
void | root_expression (ExpressionCOP setting) |
virtual ExpressionCOP | differentiate (std::string const &varname) const |
![]() | |
VariableExpression (std::string const &name) | |
VariableExpression (std::string const &name, numeric::Real value) | |
virtual numeric::Real | operator() () const |
void | set_value (numeric::Real value) |
std::string | name () const |
Private Attributes | |
ExpressionCOP | root_expression_ |
Stores the result of the surragate expression as if this expression were a variable, but defers to the root expression for questions of deriviatives and which variables are active (this is not a real variable).
typedef numeric::expression_parser::ExpressionCOP protocols::pack_daemon::SurrogateVariableExpression::ExpressionCOP |
typedef numeric::expression_parser::VariableExpression protocols::pack_daemon::SurrogateVariableExpression::parent |
protocols::pack_daemon::SurrogateVariableExpression::SurrogateVariableExpression | ( | std::string const & | name | ) |
protocols::pack_daemon::SurrogateVariableExpression::SurrogateVariableExpression | ( | std::string const & | name, |
core::Real | value | ||
) |
|
virtual |
If you don't want to consider any of the variables to be active in a SurrogateVariableExpression, then do not set the root_expression_ for the SurrogateVariableExpression. This allows non-expressions (e.g. the EntityFuncs) to still contribute to the FITNESS without having to correspond to a particular state.
Reimplemented from numeric::expression_parser::VariableExpression.
References root_expression_.
|
virtual |
Reimplemented from numeric::expression_parser::VariableExpression.
References root_expression_.
void protocols::pack_daemon::SurrogateVariableExpression::root_expression | ( | ExpressionCOP | setting | ) |
References root_expression_.
|
private |
Referenced by active_variables(), differentiate(), and root_expression().