![]() |
Rosetta Utilities
2014.16.56682
|
#include <Arithmetic.hh>
Public Member Functions | |
| 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 |
| virtual ExpressionCOP | differentiate (std::string const &varname) const |
| Returns the literal expression 1 if name_ == varname_ and null otherwise. More... | |
| virtual std::list< std::string > | active_variables () const |
Public Member Functions inherited from numeric::expression_parser::Expression | |
| virtual | ~Expression () |
| Automatically generated virtual destructor for class deriving directly from ReferenceCount. More... | |
Public Member Functions inherited from utility::pointer::ReferenceCount | |
| void | ctor () |
| virtual | ~ReferenceCount () |
| Destructor. More... | |
| Size | ref_count () const |
| Reference count. More... | |
Private Attributes | |
| std::string | name_ |
| numeric::Real | value_ |
Additional Inherited Members | |
Public Types inherited from utility::pointer::ReferenceCount | |
| typedef platform::Size | Size |
| typedef platform::Size | size_type |
Protected Member Functions inherited from utility::pointer::ReferenceCount | |
| ReferenceCount () | |
| Default constructor. More... | |
| ReferenceCount (ReferenceCount const &) | |
| Copy constructor. More... | |
| ReferenceCount & | operator= (ReferenceCount const &) |
| Copy assignment. More... | |
| numeric::expression_parser::VariableExpression::VariableExpression | ( | std::string const & | name | ) |
| numeric::expression_parser::VariableExpression::VariableExpression | ( | std::string const & | name, |
| numeric::Real | value | ||
| ) |
|
virtual |
Implements numeric::expression_parser::Expression.
References name_.
|
virtual |
Returns the literal expression 1 if name_ == varname_ and null otherwise.
Implements numeric::expression_parser::Expression.
References name_.
| std::string numeric::expression_parser::VariableExpression::name | ( | ) | const |
References name_.
|
virtual |
Implements numeric::expression_parser::Expression.
References value_.
| void numeric::expression_parser::VariableExpression::set_value | ( | numeric::Real | value | ) |
|
private |
Referenced by active_variables(), differentiate(), and name().
|
private |
Referenced by operator()(), and set_value().
1.8.7