#include <object.h>
Public Member Functions | |
object_value () | |
Construct composite value object. | |
object_value (T &existing) | |
Construct composite value object and assign from existing data value. | |
T & | operator* () |
Pointer reference to embedded data value. | |
void | operator= (const T &data) |
Assign embedded data value. | |
operator T () | |
Retrieve data value by casting reference. | |
T & | operator() () |
Retrieve data value by expression reference. | |
void | operator() (T &data) |
Set data value by expression reference. | |
Data Fields | |
T | value |
Embedded data value. | |
Protected Member Functions | |
void | set (const T &object) |
Assign our value from a typed data object. |
This is a convenient means to create reference counted heap managed data structure. This template can be used for embedding data into other kinds of managed object classes in addition to reference counting. For example, it can be used to embed a data structure into a linked list, as shown in the linked_value template.
Definition at line 408 of file object.h.
ucc::object_value< T, O >::object_value | ( | T & | existing | ) | [inline] |
ucc::object_value< T, O >::operator T | ( | ) | [inline] |
void ucc::object_value< T, O >::operator() | ( | T & | data | ) | [inline] |
T& ucc::object_value< T, O >::operator() | ( | void | ) | [inline] |
T& ucc::object_value< T, O >::operator* | ( | ) | [inline] |
void ucc::object_value< T, O >::operator= | ( | const T & | data | ) | [inline] |
Assign embedded data value.
data | value to assign. |
Reimplemented in ucc::named_value< T, O >, and ucc::linked_value< T, O >.
void ucc::object_value< T, O >::set | ( | const T & | object | ) | [inline, protected] |