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

#include <Arithmetic.hh>

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

Public Member Functions

 BinaryExpression ()
 
 ~BinaryExpression () override
 
 BinaryExpression (ExpressionCOP e1, ExpressionCOP e2)
 
void set_first_expression (ExpressionCOP e1)
 
void set_second_expression (ExpressionCOP e2)
 
std::list< std::string > active_variables () const override
 
ExpressionCOP e1 () const
 
ExpressionCOP e2 () const
 
- Public Member Functions inherited from numeric::expression_parser::Expression
 ~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...
 
- 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
 

Private Attributes

ExpressionCOP e1_
 
ExpressionCOP e2_
 

Constructor & Destructor Documentation

◆ BinaryExpression() [1/2]

numeric::expression_parser::BinaryExpression::BinaryExpression ( )

◆ ~BinaryExpression()

numeric::expression_parser::BinaryExpression::~BinaryExpression ( )
overridedefault

◆ BinaryExpression() [2/2]

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

Member Function Documentation

◆ active_variables()

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

◆ e1()

ExpressionCOP numeric::expression_parser::BinaryExpression::e1 ( ) const

◆ e2()

ExpressionCOP numeric::expression_parser::BinaryExpression::e2 ( ) const

◆ set_first_expression()

void numeric::expression_parser::BinaryExpression::set_first_expression ( ExpressionCOP  e1)

References e1(), and e1_.

◆ set_second_expression()

void numeric::expression_parser::BinaryExpression::set_second_expression ( ExpressionCOP  e2)

References e2(), and e2_.

Member Data Documentation

◆ e1_

ExpressionCOP numeric::expression_parser::BinaryExpression::e1_
private

◆ e2_

ExpressionCOP numeric::expression_parser::BinaryExpression::e2_
private

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