Rosetta Utilities  2014.35
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
void ctor ()
 
virtual ~ReferenceCount ()
 Destructor. More...
 
Size ref_count () const
 Reference count. More...
 

Private Attributes

std::string equation_
 

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::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_, basic::options::OptionKeys::cp::output, 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: