Rosetta  2019.07
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
numeric::expression_parser::MetaMinExpression Class Reference

Evaluates ee1 when e1 is less than e2; evaluates ee2 otherwise. More...

#include <Arithmetic.hh>

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

Public Member Functions

 MetaMinExpression (ExpressionCOP e1, ExpressionCOP e2, ExpressionCOP ee1, ExpressionCOP ee2)
 
numeric::Real operator() () const override
 
ExpressionCOP differentiate (std::string const &varname) const override
 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...
 
std::list< std::string > active_variables () const override
 
- Public Member Functions inherited from numeric::expression_parser::Expression
 ~Expression () override
 Automatically generated virtual destructor for class deriving directly from ReferenceCount. More...
 
- Public Member Functions inherited from utility::pointer::ReferenceCount
 ReferenceCount ()
 Default constructor. More...
 
virtual ~ReferenceCount ()
 

Private Attributes

ExpressionCOP e1_
 
ExpressionCOP e2_
 
ExpressionCOP ee1_
 
ExpressionCOP ee2_
 

Additional Inherited Members

- Public Types inherited from utility::pointer::ReferenceCount
typedef platform::Size Size
 
typedef platform::Size size_type
 

Detailed Description

Evaluates ee1 when e1 is less than e2; evaluates ee2 otherwise.

Constructor & Destructor Documentation

numeric::expression_parser::MetaMinExpression::MetaMinExpression ( ExpressionCOP  e1,
ExpressionCOP  e2,
ExpressionCOP  ee1,
ExpressionCOP  ee2 
)

Member Function Documentation

std::list< std::string > numeric::expression_parser::MetaMinExpression::active_variables ( ) const
overridevirtual

Implements numeric::expression_parser::Expression.

References e1_, e2_, ee1_, and ee2_.

ExpressionCOP numeric::expression_parser::MetaMinExpression::differentiate ( std::string const &  varname) const
overridevirtual

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.

Implements numeric::expression_parser::Expression.

References e1_, e2_, ee1_, and ee2_.

numeric::Real numeric::expression_parser::MetaMinExpression::operator() ( ) const
overridevirtual

Implements numeric::expression_parser::Expression.

References e1_, e2_, ee1_, and ee2_.

Member Data Documentation

ExpressionCOP numeric::expression_parser::MetaMinExpression::e1_
private
ExpressionCOP numeric::expression_parser::MetaMinExpression::e2_
private
ExpressionCOP numeric::expression_parser::MetaMinExpression::ee1_
private
ExpressionCOP numeric::expression_parser::MetaMinExpression::ee2_
private

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