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. More... | |
Public Member Functions | |
StateContainer (const State state) | |
Construct state container with specific state. More... | |
State & | state_new () |
Return reference to state cache. More... | |
const State & | state () const |
Return const reference to state. More... | |
void | update () noexcept |
Overwrite state with state cache. More... | |
Static Public Member Functions | |
static constexpr bool | is_sync () |
Export implementation type. More... | |
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 |