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

#include <Arithmetic.hh>

Public Member Functions

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

numeric::Real value_
 

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::LiteralExpression::LiteralExpression ( )
numeric::expression_parser::LiteralExpression::LiteralExpression ( numeric::Real  value)

Member Function Documentation

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

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

Implements numeric::expression_parser::Expression.

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

References value, and value_.

Member Data Documentation

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

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


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