|
Utopia 2
Framework for studying models of complex & adaptive systems.
|
State Container specialization for sync states. More...
#include <state.hh>
Public Types | |
| using | State = StateType |
| Type of state. | |
Public Member Functions | |
| StateContainer (const State state) | |
| Construct state container with specific state. | |
| State & | state_new () |
| Return reference to state cache. | |
| const State & | state () const |
| Return const reference to state. | |
| void | update () noexcept |
| Overwrite state with state cache. | |
Static Public Member Functions | |
| static constexpr bool | is_sync () |
| Export implementation type. | |
Private Attributes | |
| State | _state |
| State | _state_new |
State Container specialization for sync states.
| using Utopia::StateContainer< StateType, Update::sync >::State = StateType |
Type of state.
|
inline |
Construct state container with specific state.
|
inlinestaticconstexpr |
Export implementation type.
|
inline |
Return const reference to state.
|
inline |
Return reference to state cache.
|
inlinenoexcept |
Overwrite state with state cache.
|
private |
|
private |