Template value class to embed data structure into a named list.
More...
#include <linked.h>
|
| named_value (LinkedObject **root, char *name) |
| Construct embedded named object on a linked list.
|
|
void | operator= (const T &typed_value) |
| Assign embedded value from related type.
|
|
| 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.
|
|
T & | operator() () |
|
void | operator() (T &data) |
| Set data value by expression reference.
|
|
T & | operator* () |
| Pointer reference to embedded data value.
|
|
void | operator= (const T &data) |
| Assign embedded data value.
|
|
|
T | value |
| Embedded data value.
|
|
void | set (const T &object) |
| Assign our value from a typed data object.
|
|
template<typename T, class O = NamedObject>
class ucommon::named_value< T, O >
Template value class to embed data structure into a named list.
This is used to form a class which can be searched by name and that contains a member value object. Most of the core logic for this template is found in and derived from the object_value template.
- Author
- David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org
Definition at line 1063 of file linked.h.
template<typename T , class O = NamedObject>
Construct embedded named object on a linked list.
- Parameters
-
root | node or pointer for list. |
name | of our object. |
Definition at line 1071 of file linked.h.
template<typename T , class O = NamedObject>
Find embedded object in chain by name.
- Parameters
-
first | object in list to search from. |
name | to search for. |
- Returns
- composite object found by name or NULL if not found.
Definition at line 1087 of file linked.h.
template<typename T , class O = NamedObject>
Assign embedded value from related type.
- Parameters
-
Definition at line 1078 of file linked.h.
The documentation for this class was generated from the following file: