OSSIA
Open Scenario System for Interactive Application
ossia::state Class Reference

The state class. More...

Detailed Description

The state class.

A state is a container of state_element. Only non-null children will be added to the state.

Launching the state launches all children.

See also
state_element

Public Member Functions

auto begin ()
 
auto end ()
 
auto begin () const
 
auto end () const
 
auto cbegin () const
 
auto cend () const
 
auto & children () const
 
std::size_t size () const
 
bool empty () const
 
void launch ()
 
void add (const state_element &e)
 
void add (state_element &&e)
 
template<class Optional_T >
auto add (Optional_T &&opt) -> decltype(std::declval< typename std::remove_reference_t< Optional_T >::value_type >(), void())
 
void remove (const state_element &e)
 
void remove (std::vector< state_element >::iterator e)
 
void remove (std::vector< state_element >::const_iterator e)
 
void reserve (std::size_t)
 
void clear ()