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

#include <Arithmetic.hh>

Public Member Functions

 VariableExpression (std::string const &name)
 VariableExpression (std::string const &name, numeric::Real value)
virtual numeric::Real operator() () const
void set_value (numeric::Real value)
std::string name () const
virtual ExpressionCOP differentiate (std::string const &varname) const
 Returns the literal expression 1 if name_ == varname_ and null otherwise. 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

std::string name_
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::VariableExpression::VariableExpression ( std::string const &  name)
numeric::expression_parser::VariableExpression::VariableExpression ( std::string const &  name,
numeric::Real  value 

Member Function Documentation

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

Returns the literal expression 1 if name_ == varname_ and null otherwise.

Implements numeric::expression_parser::Expression.

References name_.

std::string numeric::expression_parser::VariableExpression::name ( ) const

References name_.

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

References value, and value_.

Member Data Documentation

std::string numeric::expression_parser::VariableExpression::name_
numeric::Real numeric::expression_parser::VariableExpression::value_

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

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