ucommon
7.0.0
About: GNU uCommon C++ is a portable and optimized class framework for writing C++ applications that need to use threads and support concurrent synchronization, and that use sockets, XML parsing, object serialization, thread-optimized string and data structure classes, etc..
![]() ![]() |
Template value class to embed data structure into a linked list. More...
#include <linked.h>
Public Member Functions | |
linked_value () | |
Create embedded value object unlinked. More... | |
linked_value (LinkedObject **root) | |
Construct embedded object on a linked list. More... | |
linked_value (OrderedIndex *index) | |
Construct embedded object on an ordered list. More... | |
linked_value (LinkedObject **root, const T &typed_value) | |
Assign embedded value from related type and link to list. More... | |
linked_value (OrderedIndex *index, const T &typed_value) | |
Assign embedded value from related type and add to list. More... | |
void | set (const T &typed_value) |
linked_value & | operator= (const T &typed_value) |
Assign embedded value from related type. More... | |
T & | operator* () |
operator T& () | |
void | operator() (const T data) |
![]() | |
virtual | ~LinkedObject () |
virtual void | release (void) __OVERRIDE |
Release list, mark as no longer linked. More... | |
virtual void | retain (void) __OVERRIDE |
Retain by marking as self referenced list. More... | |
void | enlist (LinkedObject **root) |
Add our object to an existing linked list through a pointer. More... | |
void | delist (LinkedObject **root) |
Locate and remove ourselves from a list of objects. More... | |
bool | is_member (LinkedObject *list) const |
Search to see if we are a member of a specific list. More... | |
LinkedObject * | getNext (void) const |
Get next effective object when iterating. More... | |
Public Attributes | |
T | value |
Protected Member Functions | |
__DELETE_COPY (linked_value) | |
![]() | |
LinkedObject (LinkedObject **root) | |
Construct base class attached to a chain of objects. More... | |
LinkedObject () | |
Construct base class unattached to anyone. More... | |
LinkedObject (const LinkedObject &from) | |
Additional Inherited Members | |
![]() | |
static void | purge (LinkedObject *root) |
Release all objects from a list. More... | |
static unsigned | count (const LinkedObject *root) |
Count the number of linked objects in a list. More... | |
static LinkedObject * | getIndexed (LinkedObject *root, unsigned index) |
Get member by index. More... | |
![]() | |
LinkedObject * | Next |
Template value class to embed data structure into a linked list.
This is used to form a class which can be linked together using either an ordered index or simple linked pointer chain 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.
|
inline |
|
inline |
Construct embedded object on a linked list.
root | node or pointer for list. |
Definition at line 926 of file linked.h.
References ucommon::LinkedObject::enlist().
|
inline |
|
inline |
Assign embedded value from related type and link to list.
root | node or pointer for list. |
typed_value | to assign. |
Definition at line 943 of file linked.h.
References ucommon::LinkedObject::enlist(), and ucommon::linked_value< T, O >::value.
|
inline |
Assign embedded value from related type and add to list.
index | to list our object on. |
typed_value | to assign. |
Definition at line 953 of file linked.h.
References ucommon::linked_value< T, O >::value.
|
protected |
|
inline |
Definition at line 975 of file linked.h.
References ucommon::linked_value< T, O >::value.
|
inline |
Definition at line 979 of file linked.h.
References ucommon::linked_value< T, O >::value.
|
inline |
Definition at line 971 of file linked.h.
References ucommon::linked_value< T, O >::value.
|
inline |
Assign embedded value from related type.
typed_value | to assign. |
Definition at line 966 of file linked.h.
References ucommon::linked_value< T, O >::value.
|
inline |
Definition at line 958 of file linked.h.
References ucommon::linked_value< T, O >::value.
T ucommon::linked_value< T, O >::value |
Definition at line 915 of file linked.h.
Referenced by ucommon::linked_value< T, O >::linked_value(), ucommon::linked_value< T, O >::operator T&(), ucommon::linked_value< T, O >::operator()(), ucommon::linked_value< T, O >::operator*(), ucommon::linked_value< T, O >::operator=(), and ucommon::linked_value< T, O >::set().