Rosetta Utilities  2015.09
Public Member Functions | Private Attributes | List of all members
numeric::Calculator Class Reference

#include <Calculator.hh>

Public Member Functions

virtual ~Calculator ()
 
 Calculator (std::string const &equation)
 
bool compute (std::map< std::string, Real > &values, Real &output) const
 Calculate the value of the equation, putting it in output Return true if the computation failed. More...
 
- Public Member Functions inherited from utility::pointer::ReferenceCount
 ReferenceCount ()
 Default constructor. More...
 
virtual ~ReferenceCount ()
 

Private Attributes

std::string equation_
 

Additional Inherited Members

- Public Types inherited from utility::pointer::ReferenceCount
typedef platform::Size Size
 
typedef platform::Size size_type
 

Constructor & Destructor Documentation

numeric::Calculator::~Calculator ( )
virtual
numeric::Calculator::Calculator ( std::string const &  equation)

Member Function Documentation

bool numeric::Calculator::compute ( std::map< std::string, Real > &  values,
Real output 
) const

Calculate the value of the equation, putting it in output Return true if the computation failed.

References equation_, and numeric::CalculatorParser::parser().

Member Data Documentation

std::string numeric::Calculator::equation_
private

Referenced by compute().


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