|
template<typename T > |
optional< T > | get (const char *name) const |
| Access global variable of Ink runner.
|
|
template<typename T > |
bool | set (const char *name, const T &val) |
| Write new value in global store.
|
|
template<typename F > |
void | observe (const char *name, F callback) |
| Observers global variable.
|
|
virtual snapshot * | create_snapshot () const =0 |
| create a snapshot of the current runtime state.
|
|
|
template<> |
optional< value > | get (const char *name) const |
| getter and setter instanciations for supported types
|
|
template<> |
bool | set (const char *name, const value &val) |
| getter and setter instanciations for supported types
|
|
template<> |
optional< bool > | get (const char *name) const |
| getter and setter instanciations for supported types
|
|
template<> |
bool | set (const char *name, const bool &val) |
| getter and setter instanciations for supported types
|
|
template<> |
optional< uint32_t > | get (const char *name) const |
| getter and setter instanciations for supported types
|
|
template<> |
bool | set (const char *name, const uint32_t &val) |
| getter and setter instanciations for supported types
|
|
template<> |
optional< int32_t > | get (const char *name) const |
| getter and setter instanciations for supported types
|
|
template<> |
bool | set (const char *name, const int32_t &val) |
| getter and setter instanciations for supported types
|
|
template<> |
optional< float > | get (const char *name) const |
| getter and setter instanciations for supported types
|
|
template<> |
bool | set (const char *name, const float &val) |
| getter and setter instanciations for supported types
|
|
template<> |
optional< const char * > | get (const char *name) const |
| getter and setter instanciations for supported types
|
|
template<> |
bool | set (const char *name, const char *const &val) |
| getter and setter instanciations for supported types
|
|
template<> |
optional< list > | get (const char *name) const |
| getter and setter instanciations for supported types
|
|
template<> |
bool | set (const char *name, const list &val) |
| getter and setter instanciations for supported types
|
|
Represents a global store to be shared amongst ink runners.
Stores global variable values, visit counts, turn counts, etc.