Rosetta Protocols  2014.35
Public Types | Public Member Functions | Private Attributes | List of all members
protocols::pack_daemon::SurrogateVariableExpression Class Reference

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::stringactive_variables () const
 
void root_expression (ExpressionCOP setting)
 
virtual ExpressionCOP differentiate (std::string const &varname) const
 
- Public Member Functions inherited from numeric::expression_parser::VariableExpression
 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_
 

Detailed Description

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).

Member Typedef Documentation

Constructor & Destructor Documentation

protocols::pack_daemon::SurrogateVariableExpression::SurrogateVariableExpression ( std::string const &  name)
protocols::pack_daemon::SurrogateVariableExpression::SurrogateVariableExpression ( std::string const &  name,
core::Real  value 
)

Member Function Documentation

std::list< std::string > protocols::pack_daemon::SurrogateVariableExpression::active_variables ( ) const
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_.

ExpressionCOP protocols::pack_daemon::SurrogateVariableExpression::differentiate ( std::string const &  varname) const
virtual
void protocols::pack_daemon::SurrogateVariableExpression::root_expression ( ExpressionCOP  setting)

References root_expression_.

Member Data Documentation

ExpressionCOP protocols::pack_daemon::SurrogateVariableExpression::root_expression_
private

The documentation for this class was generated from the following files: