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

#include <Arithmetic.hh>

Inheritance diagram for numeric::expression_parser::LiteralExpression:
Inheritance graph

Public Member Functions

 LiteralExpression ()
 LiteralExpression (numeric::Real value)
void set_value (numeric::Real value)
numeric::Real operator() () const override
ExpressionCOP differentiate (std::string const &varname) const override
 Returns null, since the derivative for a literal is always zero. 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 VirtualBase. 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

numeric::Real value_

Constructor & Destructor Documentation

numeric::expression_parser::LiteralExpression::LiteralExpression ( )
numeric::expression_parser::LiteralExpression::LiteralExpression ( numeric::Real  value)

Member Function Documentation

std::list< std::string > numeric::expression_parser::LiteralExpression::active_variables ( ) const
ExpressionCOP numeric::expression_parser::LiteralExpression::differentiate ( std::string const &  varname) const

Returns null, since the derivative for a literal is always zero.

Implements numeric::expression_parser::Expression.

numeric::Real numeric::expression_parser::LiteralExpression::operator() ( ) const
void numeric::expression_parser::LiteralExpression::set_value ( numeric::Real  value)

References value, and value_.

Member Data Documentation

numeric::Real numeric::expression_parser::LiteralExpression::value_

Referenced by operator()(), and set_value().

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