Template value class to embed data structure into a named list.
More...
#include <linked.h>
Public Member Functions |
| named_value (LinkedObject **root, char *name) |
| Construct embedded named object on a linked list.
|
void | operator= (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.
|
Additional Inherited Members |
T | value |
| Embedded data value.
|
void | set (T &object) |
| Assign our value from a typed data object.
|
Detailed Description
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 1051 of file linked.h.
Constructor & Destructor Documentation
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 1059 of file linked.h.
Member Function Documentation
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 1075 of file linked.h.
template<typename T , class O = NamedObject>
The documentation for this class was generated from the following file: