#include <remotevar.h>

Public Member Functions | |
| bool | setValue (nodeId id) |
| bool | getValue (nodeId id) |
Protected Member Functions | |
| _Remote (const char *name) throw (Exception) | |
| virtual | ~_Remote () |
| virtual chain | pack (void) |
| virtual bool | unpack (chain &s, unsigned int &used) |
| bool | _setValue (chain &c, nodeId id) |
| bool | _getValue (chain &c, nodeId id) |
Protected Attributes | |
| RemoteBase * | rb |
| string | name |
| boost::mutex | mutex |
| std::set< nodeId > | owners |
Friends | |
| class | RemoteBase |
| class | RemoteVarPacket |
Definition at line 101 of file remotevar.h.
| libglass::_Remote::_Remote | ( | const char * | name | ) | throw (Exception) [protected] |
Constructor.
| name | The variable name. |
| Exception. |
| virtual libglass::_Remote::~_Remote | ( | ) | [protected, virtual] |
Destructor.
Gets the packed value of this variable in a remote node.
| c | The packed data. | |
| id | The remote node. |
| true | If successful. | |
| false | Otherwise. |
Referenced by libglass::Remote< T, T, T >::getData().
Sets the value of this variable in a remote node.
| c | The packed value. | |
| id | The remote node. |
| true | If successful. | |
| false | Otherwise. |
Referenced by libglass::Remote< T, T, T >::setData().
| bool libglass::_Remote::getValue | ( | nodeId | id | ) |
Updates this variable with its value in another node.
| id | The remote node. |
| true | If successful. | |
| false | Otherwise. |
| virtual chain libglass::_Remote::pack | ( | void | ) | [protected, virtual] |
Pack function. Serializes the variable to a string.
Reimplemented in libglass::Remote< T, T, T >.
| bool libglass::_Remote::setValue | ( | nodeId | id | ) |
Updates the remote variable with the current local value.
| id | The remote node. |
| true | If successful. | |
| false | Otherwise. |
| virtual bool libglass::_Remote::unpack | ( | chain & | s, | |
| unsigned int & | used | |||
| ) | [protected, virtual] |
Unpack function. Unserializes the string to a variable.
| s | The string. | |
| used | The number of bytes used by the unserializer. |
Reimplemented in libglass::Remote< T, T, T >.
friend class RemoteBase [friend] |
Definition at line 103 of file remotevar.h.
friend class RemoteVarPacket [friend] |
Definition at line 104 of file remotevar.h.
boost::mutex libglass::_Remote::mutex [protected] |
Mutex for atomic operations
Definition at line 110 of file remotevar.h.
Referenced by libglass::Remote< T, T, T >::lock(), libglass::Remote< T, T, T >::unlock(), and libglass::Remote< T, T, T >::unpack().
string libglass::_Remote::name [protected] |
the variable name.
Definition at line 107 of file remotevar.h.
std::set<nodeId> libglass::_Remote::owners [protected] |
owner list
Definition at line 113 of file remotevar.h.
RemoteBase* libglass::_Remote::rb [protected] |
our owner plugin.
Definition at line 106 of file remotevar.h.
1.5.8