Rosetta  2021.16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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>

Inheritance diagram for protocols::pack_daemon::SurrogateVariableExpression:
Inheritance graph
[legend]

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)
 
std::list< std::string > active_variables () const override
 
void root_expression (ExpressionCOP setting)
 
ExpressionCOP differentiate (std::string const &varname) const override
 

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

typedef numeric::expression_parser::ExpressionCOP protocols::pack_daemon::SurrogateVariableExpression::ExpressionCOP
typedef numeric::expression_parser::VariableExpression protocols::pack_daemon::SurrogateVariableExpression::parent

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
override

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.

References root_expression_.

ExpressionCOP protocols::pack_daemon::SurrogateVariableExpression::differentiate ( std::string const &  varname) const
override

References root_expression_.

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: