#include <OpenGUI_Value.h>
This class provides access to a grouping of Value objects with both a stack interface as well as a by-name interface. Care must be taken when using the by-name interface, as stack pops can remove named entries from the container, causing subsequent by-name get() operations for the missing Value to result in an Exception.
Public Member Functions | |
| void | push_front (const Value &value) |
Push the given value to the front of the stack. | |
| void | push_back (const Value &value) |
Push the given value to the back of the stack. | |
| Value | pop_front () |
| Pops a Value from the front of the stack. | |
| Value | pop_back () |
| Pops a Value from the back of the stack. | |
| size_t | size () const |
| Returns the current stack size. | |
| const Value & | get (const String &name) const |
Retrieves the first Value in the list with the given name. | |
| const Value & | get (unsigned int index) const |
Retrieves a Value by its stack index. | |
|
|
Retrieves a Value by its stack
Throws an Exception if the given |
|
|
Retrieves the first Value in the list with the given
If a Value by the requested |
|
|
Pops a Value from the back of the stack. Throws an Exception if the Value stack is empty when called. |
|
|
Pops a Value from the front of the stack. Throws an Exception if the Value stack is empty when called. |
|
|
Push the given
|
|
|
Push the given
|
|
|
Returns the current stack size.
|