Rosetta
2019.07
|
#include <Arithmetic.hh>
Public Member Functions | |
UnaryExpression () | |
~UnaryExpression () override | |
UnaryExpression (ExpressionCOP ex) | |
void | set_expression (ExpressionCOP ex) |
std::list< std::string > | active_variables () const override |
ExpressionCOP | ex () const |
Public Member Functions inherited from numeric::expression_parser::Expression | |
~Expression () override | |
Automatically generated virtual destructor for class deriving directly from ReferenceCount. More... | |
virtual numeric::Real | operator() () const =0 |
virtual ExpressionCOP | differentiate (std::string const &varname) const =0 |
Returns the expression for the partial derivative of this expression by the variable named varname. If the partial derivative is always zero with respect to varname, returns null. More... | |
Public Member Functions inherited from utility::pointer::ReferenceCount | |
ReferenceCount () | |
Default constructor. More... | |
virtual | ~ReferenceCount () |
Private Attributes | |
ExpressionCOP | ex_ |
Additional Inherited Members | |
Public Types inherited from utility::pointer::ReferenceCount | |
typedef platform::Size | Size |
typedef platform::Size | size_type |
numeric::expression_parser::UnaryExpression::UnaryExpression | ( | ) |
|
overridedefault |
numeric::expression_parser::UnaryExpression::UnaryExpression | ( | ExpressionCOP | ex | ) |
|
overridevirtual |
Implements numeric::expression_parser::Expression.
References ex_.
ExpressionCOP numeric::expression_parser::UnaryExpression::ex | ( | ) | const |
References ex_, and utility_exit_with_message.
Referenced by numeric::expression_parser::SquarerootExpression::differentiate(), numeric::expression_parser::AbsoluteValueExpression::differentiate(), numeric::expression_parser::SquarerootExpression::operator()(), numeric::expression_parser::AbsoluteValueExpression::operator()(), numeric::expression_parser::NotExpression::operator()(), and set_expression().
void numeric::expression_parser::UnaryExpression::set_expression | ( | ExpressionCOP | ex | ) |
|
private |
Referenced by active_variables(), ex(), and set_expression().