Changeset 2598 in Sophya for trunk/SophyaLib/SysTools/rpneval.h
- Timestamp:
- Aug 11, 2004, 3:10:25 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SysTools/rpneval.h
r2510 r2598 15 15 namespace SOPHYA { 16 16 17 //! Exception class used by RPNExpressionEvaluator 18 17 /*! 18 \ingroup SysTools 19 \brief Exception class used by RPNExpressionEvaluator 20 \sa RPNExpressionEvaluator 21 */ 19 22 class RPNExprException : public PException { 20 23 public: … … 30 33 explicit RPNExpressionEvaluator(vector<string> & exe, int off=0); 31 34 virtual ~RPNExpressionEvaluator(); 35 //! Return the stack top \c (x) as the result of the expression evaluation 32 36 virtual double Evaluate() const; // Return the value of the stack top 37 //! Alias for Evaluate() 33 38 inline double Value() const { return Evaluate(); } 34 39 35 pr otected:40 private: 36 41 int EvalRPNExpr(vector<string> & args, int off=0); 37 42 inline bool CheckStack(double& x) const
Note:
See TracChangeset
for help on using the changeset viewer.