muParser API -
1.35
|
Parser stack implementation. More...
#include <muParserStack.h>
Public Member Functions | |
TValueType | pop () |
Pop a value from the stack. More... | |
void | push (const TValueType &a_Val) |
Push an object into the stack. More... | |
unsigned | size () const |
Return the number of stored elements. | |
bool | empty () const |
Returns true if stack is empty false otherwise. | |
TValueType & | top () |
Return reference to the top object in the stack. More... | |
Parser stack implementation.
Stack implementation based on a std::stack. The behaviour of pop() had been slightly changed in order to get an error code if the stack is empty. The stack is used within the Parser both as a value stack and as an operator stack.
Definition at line 53 of file muParserStack.h.
|
inline |
Pop a value from the stack.
Unlike the standard implementation this function will return the value that is going to be taken from the stack.
ParserException | in case the stack is empty. |
Definition at line 82 of file muParserStack.h.
Referenced by mu::ParserByteCode::Finalize().
|
inline |
Push an object into the stack.
a_Val | object to push into the stack. |
nothrow |
Definition at line 97 of file muParserStack.h.
Referenced by mu::ParserByteCode::Finalize().
|
inline |
Return reference to the top object in the stack.
The top object is the one pushed most recently.
Definition at line 118 of file muParserStack.h.
Referenced by mu::ParserStack< TValueType >::pop().