#include <ExpressionSetter.h>
Public Member Functions | |
ExpressionSetter (ExpressionPtr &expr, ExpressionStack &exprStack) | |
void | operator() (const char *, const char *) const |
Public Attributes | |
ExpressionPtr & | expr_ |
ExpressionStack & | exprStack_ |
Definition at line 18 of file ExpressionSetter.h.
reco::parser::ExpressionSetter::ExpressionSetter | ( | ExpressionPtr & | expr, |
ExpressionStack & | exprStack | ||
) | [inline] |
Definition at line 19 of file ExpressionSetter.h.
: expr_( expr ), exprStack_( exprStack ) { }
void ExpressionSetter::operator() | ( | const char * | begin, |
const char * | |||
) | const |
Definition at line 9 of file ExpressionSetter.cc.
References Exception, expr_, and exprStack_.
{ if ( exprStack_.size() == 0 ) throw Exception( begin ) << "Grammar error: When trying parse an expression, expression stack is empty! Please contact a developer."; expr_ = exprStack_.back(); }
Definition at line 23 of file ExpressionSetter.h.
Referenced by operator()().
Definition at line 24 of file ExpressionSetter.h.
Referenced by operator()().