Public Member Functions |
| object_value () |
| Construct composite value object.
|
| object_value (T &existing) |
| Construct composite value object and assign from existing data value.
|
| operator T & () |
| Retrieve data value by casting reference.
|
void | operator() (T &data) |
| Set data value by expression reference.
|
T & | operator() () |
T & | operator* () |
| Pointer reference to embedded data value.
|
void | operator= (const T &data) |
| Assign embedded data value.
|
Data Fields |
T | value |
| Embedded data value.
|
Protected Member Functions |
void | set (const T &object) |
| Assign our value from a typed data object.
|
template<typename T, class O = CountedObject>
class object_value< T, O >
Template for embedding a data structure into a reference counted 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.
- Author:
- David Sugar <dyfet@gnutelephony.org>
Definition at line 408 of file object.h.