Rosetta  2020.37
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
numeric::expression_parser::Expression Class Referenceabstract

Pure virtual base class to define arbitrary expressions for scripting arithmetic operations (e.g. addition and multipliction). More...

#include <Arithmetic.hh>

Inheritance diagram for numeric::expression_parser::Expression:
Inheritance graph
[legend]

Public Member Functions

 ~Expression () override
 Automatically generated virtual destructor for class deriving directly from VirtualBase. 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...
 
virtual std::list< std::string > active_variables () const =0
 
- Public Member Functions inherited from utility::VirtualBase
 VirtualBase ()=default
 Default constructor. More...
 
virtual ~VirtualBase ()=default
 The virtual destructor is one of the main reasons for the VirtualBase class. More...
 
 VirtualBase (VirtualBase const &)=default
 
 VirtualBase (VirtualBase &&)=default
 
VirtualBaseoperator= (VirtualBase const &)=default
 
VirtualBaseoperator= (VirtualBase &&)=default
 

Detailed Description

Pure virtual base class to define arbitrary expressions for scripting arithmetic operations (e.g. addition and multipliction).

Constructor & Destructor Documentation

numeric::expression_parser::Expression::~Expression ( )
overridedefault

Automatically generated virtual destructor for class deriving directly from VirtualBase.

Auto-generated virtual destructor

Member Function Documentation

virtual std::list< std::string > numeric::expression_parser::Expression::active_variables ( ) const
pure virtual
virtual ExpressionCOP numeric::expression_parser::Expression::differentiate ( std::string const &  varname) const
pure virtual
virtual numeric::Real numeric::expression_parser::Expression::operator() ( ) const
pure virtual

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