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

#include <Arithmetic.hh>

Public Member Functions

 MinExpression ()
 
 MinExpression (ExpressionCOP e1, ExpressionCOP e2)
 
virtual numeric::Real operator() () const
 Returns the min of e1 and e2. More...
 
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::BinaryExpression
 BinaryExpression ()
 
 ~BinaryExpression ()
 
 BinaryExpression (ExpressionCOP e1, ExpressionCOP e2)
 
void set_first_expression (ExpressionCOP e1)
 
void set_second_expression (ExpressionCOP e2)
 
ExpressionCOP e1 () const
 
ExpressionCOP e2 () 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...
 

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...
 

Constructor & Destructor Documentation

numeric::expression_parser::MinExpression::MinExpression ( )
numeric::expression_parser::MinExpression::MinExpression ( ExpressionCOP  e1,
ExpressionCOP  e2 
)

Member Function Documentation

std::list< std::string > numeric::expression_parser::MinExpression::active_variables ( ) const
virtual
ExpressionCOP numeric::expression_parser::MinExpression::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 numeric::expression_parser::BinaryExpression::e1(), and numeric::expression_parser::BinaryExpression::e2().

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

Returns the min of e1 and e2.

get expression pointers; evaluate left and right hand sides; return the product.

Implements numeric::expression_parser::Expression.

References numeric::expression_parser::BinaryExpression::e1(), numeric::expression_parser::BinaryExpression::e2(), and min().


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