Rosetta Utilities  2014.35
Public Member Functions | Private Attributes | List of all members
numeric::expression_parser::MetaMaxExpression Class Reference

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

#include <Arithmetic.hh>

Public Member Functions

 MetaMaxExpression (ExpressionCOP e1, ExpressionCOP e2, ExpressionCOP ee1, ExpressionCOP ee2)
 Evaluates ee1 when e1 is larger than e2; evaluates ee2 otherwise. More...
 
virtual numeric::Real operator() () const
 
virtual ExpressionCOP differentiate (std::string const &varname) const
 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
 
- 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

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
 
- Protected Member Functions inherited from utility::pointer::ReferenceCount
 ReferenceCount ()
 Default constructor. More...
 
 ReferenceCount (ReferenceCount const &)
 Copy constructor. More...
 
ReferenceCountoperator= (ReferenceCount const &)
 Copy assignment. More...
 

Detailed Description

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

Constructor & Destructor Documentation

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

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

Referenced by differentiate().

Member Function Documentation

std::list< std::string > numeric::expression_parser::MetaMaxExpression::active_variables ( ) const
virtual

Implements numeric::expression_parser::Expression.

References e1_, e2_, ee1_, and ee2_.

ExpressionCOP numeric::expression_parser::MetaMaxExpression::differentiate ( std::string const &  varname) const
virtual

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_, ee2_, and MetaMaxExpression().

numeric::Real numeric::expression_parser::MetaMaxExpression::operator() ( ) const
virtual

Implements numeric::expression_parser::Expression.

References e1_, e2_, ee1_, and ee2_.

Member Data Documentation

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

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