26 #ifndef MU_PARSER_STACK_H
27 #define MU_PARSER_STACK_H
52 template <
typename TValueType>
58 typedef std::stack<TValueType, std::vector<TValueType> > impl_type;
87 TValueType el =
top();
97 void push(
const TValueType& a_Val)
105 return (
unsigned)m_Stack.size();
111 return m_Stack.size()==0;
120 return m_Stack.top();
void push(const TValueType &a_Val)
Push an object into the stack.
Definition: muParserStack.h:97
TValueType pop()
Pop a value from the stack.
Definition: muParserStack.h:82
Parser stack implementation.
Definition: muParserStack.h:53
TValueType & top()
Return reference to the top object in the stack.
Definition: muParserStack.h:118
Error class of the parser.
Definition: muParserError.h:119
Namespace for mathematical applications.
Definition: muParser.cpp:47
ParserStack()
Definition: muParserStack.h:65
bool empty() const
Returns true if stack is empty false otherwise.
Definition: muParserStack.h:109
#define _T
Definition: muParserDef.h:62
This file contains the parser token definition.
virtual ~ParserStack()
Definition: muParserStack.h:70
unsigned size() const
Return the number of stored elements.
Definition: muParserStack.h:103
This file defines the error class used by the parser.