Template class for handling state arrays. More...
#include <kanzi/core.ui/graphics/composition_stack.hpp>
Public Member Functions | |
| T & | back () |
| Access last element. | |
| const T & | back () const |
| Access last element (const version). | |
| void | clear () |
| Pop all elements from the stack. | |
| bool | empty () const |
| Indicates whether or not the stack is empty. | |
| void | pop () |
| Pop element from the stack. | |
| void | push (T state) |
| Push new element into the stack. | |
| StateStack ()=default | |
Protected Attributes | |
| vector< T > | m_stack |
| Stack for holding. | |
Template class for handling state arrays.
|
explicitdefault |
|
inline |
Access last element.
Access last element (const version).
|
inline |
Indicates whether or not the stack is empty.
Push new element into the stack.
| state | State to push. |
|
inline |
Pop element from the stack.
|
inline |
Pop all elements from the stack.
|
protected |
Stack for holding.