#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 std::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. | |
| const Value & OpenGUI::ValueList::get | ( | unsigned int | index | ) | const |
| const Value & OpenGUI::ValueList::get | ( | const std::string & | name | ) | const |
| Value OpenGUI::ValueList::pop_back | ( | ) |
| Value OpenGUI::ValueList::pop_front | ( | ) |
| void OpenGUI::ValueList::push_back | ( | const Value & | value | ) |
Push the given value to the back of the stack.
| void OpenGUI::ValueList::push_front | ( | const Value & | value | ) |
Push the given value to the front of the stack.
| size_t OpenGUI::ValueList::size | ( | ) | const |
Returns the current stack size.