#include <shared.h>
Protected Member Functions | |
bool | registerShared (_Shared *v) |
bool | unregisterShared (_Shared *v) |
bool | sendUpdate (_Shared *s) |
bool | getUpdate (_Shared *s) |
bool | sendUpdateAll (void) |
virtual | ~SharedBase () |
Friends | |
class | _Shared |
Provides synchronous shared variables among the nodes.
Format of Shared Plugin packets:
These are valid actions in client->server packets:
Definition at line 61 of file shared.h.
virtual libglass::SharedBase::~SharedBase | ( | ) | [protected, virtual] |
Destructor.
bool libglass::SharedBase::getUpdate | ( | _Shared * | s | ) | [protected] |
Synchronizes the value of a given variable with the most current value.
s | The shared variable. |
true | If successful. | |
false | Otherwise. |
bool libglass::SharedBase::registerShared | ( | _Shared * | v | ) | [protected] |
Registers a shared variable in the list.
v | A pointer to the variable. |
true | If successful. | |
false | Otherwise. |
bool libglass::SharedBase::sendUpdate | ( | _Shared * | s | ) | [protected] |
Updates the shared variable with the current local value.
s | The shared variable. |
true | If successful. | |
false | Otherwise. |
bool libglass::SharedBase::sendUpdateAll | ( | void | ) | [protected] |
Synchronizes the value of all variables.
true | If successful. | |
false | Otherwise. |
bool libglass::SharedBase::unregisterShared | ( | _Shared * | v | ) | [protected] |
Unregisters a shared variable, taking it off the list.
v | A pointer to the variable. |
true | If successful. | |
false | Otherwise. |