Kanzi 4.0.0
kanzi::CompositionStack::StateStack< T > Class Template Reference

Template class for handling state arrays. More...

#include <kanzi/core.ui/graphics/composition_stack.hpp>

Public Member Functions

Tback ()
 Access last element.
 
const Tback () 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< Tm_stack
 Stack for holding.
 

Detailed Description

template<typename T>
class kanzi::CompositionStack::StateStack< T >

Template class for handling state arrays.

Constructor & Destructor Documentation

◆ StateStack()

template<typename T >
kanzi::CompositionStack::StateStack< T >::StateStack ( )
explicitdefault

Member Function Documentation

◆ back() [1/2]

template<typename T >
T & kanzi::CompositionStack::StateStack< T >::back ( )
inline

Access last element.

Returns
Reference to back of the stack.

◆ back() [2/2]

template<typename T >
const T & kanzi::CompositionStack::StateStack< T >::back ( ) const
inline

Access last element (const version).

Returns
Reference to back of the stack.

◆ empty()

template<typename T >
bool kanzi::CompositionStack::StateStack< T >::empty ( ) const
inline

Indicates whether or not the stack is empty.

Returns
If the stack is empty true, false otherwise.

◆ push()

template<typename T >
void kanzi::CompositionStack::StateStack< T >::push ( T state)
inline

Push new element into the stack.

Parameters
stateState to push.

◆ pop()

template<typename T >
void kanzi::CompositionStack::StateStack< T >::pop ( )
inline

Pop element from the stack.

◆ clear()

template<typename T >
void kanzi::CompositionStack::StateStack< T >::clear ( )
inline

Pop all elements from the stack.

Since
Kanzi 4.0.0

Member Data Documentation

◆ m_stack

template<typename T >
vector<T> kanzi::CompositionStack::StateStack< T >::m_stack
protected

Stack for holding.


The documentation for this class was generated from the following file: