| Method |
Description
|
| name_stack &push(const string str="") |
This methods pushes an string at the
top of the name stack. The method returns a reference to the current
name stack object. |
| name_stack &push(const int i) |
This method pushes a (decimal)
representation of ``i'' enclosed in brackets ``()'' as a string on top
of the stack. It returns a reference to the current
name stack object. |
| name_stack &pop() |
Pop removes the string on top of the stack. The
method returns a reference to the current name stack object. |
| name_stack &set(const string str) |
''set'' replaces the top stack element
with ``str''. The method returns a reference to the current name stack
object. |
| name_stack &set(const int i) |
Same as ``push(const int i)'' but
replaces the top stack element. |
| string &get_name() |
get_name concatenates all elements currently
present on the stack and returns the resulting string. Note, the
memory to store this result is maintained by the stack class. |
| string &get_top() |
Returns the top stack element. |
| name_stack() |
A constructor to initialise a name stack
instance. After initialisation the stack is empty. |
| ~ name_stack() |
A destructor. |
| |
|