#include <shared.h>
Public Member Functions | |
Shared (const char *name, T data=T()) throw (Exception) | |
const Shared & | operator= (const T &b) |
const Shared & | operator= (const Shared &b) |
void | assign (T &b) |
const T & | getData (void) const |
T | operator* (void) const |
Protected Member Functions | |
chain | pack (void) |
bool | unpack (chain &c, unsigned int &used) |
Protected Attributes | |
T | data |
Definition at line 242 of file shared.h.
libglass::Shared< T, T, T >::Shared | ( | const char * | name, | |
T | data = T() | |||
) | throw (Exception) [inline] |
void libglass::Shared< T, T, T >::assign | ( | T & | b | ) | [inline] |
Assignment operator.
b | The value to assign. |
Definition at line 300 of file shared.h.
References libglass::_Shared::changed, and libglass::Shared< T, T, T >::data.
const T& libglass::Shared< T, T, T >::getData | ( | void | ) | const [inline] |
Returns the variable value.
Definition at line 310 of file shared.h.
References libglass::Shared< T, T, T >::data.
T libglass::Shared< T, T, T >::operator* | ( | void | ) | const [inline] |
Value operator.
Definition at line 318 of file shared.h.
References libglass::Shared< T, T, T >::data.
const Shared& libglass::Shared< T, T, T >::operator= | ( | const Shared< T, T, T > & | b | ) | [inline] |
Assignment operator.
b | The Shared to be assign to this. |
Definition at line 290 of file shared.h.
References libglass::_Shared::changed, and libglass::Shared< T, T, T >::data.
const Shared& libglass::Shared< T, T, T >::operator= | ( | const T & | b | ) | [inline] |
Assignment operator.
b | The value to assign to this. |
Definition at line 279 of file shared.h.
References libglass::_Shared::changed, and libglass::Shared< T, T, T >::data.
chain libglass::Shared< T, T, T >::pack | ( | void | ) | [inline, protected, virtual] |
Pack function. Serializes the variable to a string.
Reimplemented from libglass::_Shared.
Definition at line 246 of file shared.h.
References libglass::Shared< T, T, T >::data.
bool libglass::Shared< T, T, T >::unpack | ( | chain & | s, | |
unsigned int & | used | |||
) | [inline, protected, virtual] |
Unpack function. Unserializes the string to a variable.
s | The string. | |
used | The number of bytes used by the unserialization. |
Reimplemented from libglass::_Shared.
Definition at line 252 of file shared.h.
References libglass::Shared< T, T, T >::data.
T libglass::Shared< T, T, T >::data [protected] |