The global state of the simulation.
Can be configured using the member function "configure". Must only be configured once while the simulation is initialized. If not configured, the global simulation state defaults to "Set<SUID>::emptySet()".
The global simulation state can be retrieved via calling the function "globalState()".
#include <GlobalState.h>
Public Member Functions | |
void | configure (const Set< SUID > &state) |
Must only be called once! (fails in debug mode if called for a second time - always succeeds in release mode, however only the first call has an effect) More... | |
void | reconfigure (const Set< SUID > &state) |
const Set< SUID > & | get () const |
Public Attributes | |
WALBERLA_BEFRIEND_SINGLETON | |
Private Member Functions | |
GlobalState () | |
Private Attributes | |
bool | configured_ |
Set< SUID > | state_ |
|
inlineprivate |
Must only be called once! (fails in debug mode if called for a second time - always succeeds in release mode, however only the first call has an effect)
|
private |
walberla::uid::GlobalState::WALBERLA_BEFRIEND_SINGLETON |