Common base class for all objects that can be formed into a linked list.
More...
#include <linked.h>
|
class | LinkedRing |
|
class | NamedObject |
|
class | ObjectStack |
|
class | OrderedIndex |
|
Common base class for all objects that can be formed into a linked list.
This base class is used directly for objects that can be formed into a single linked list. It is also used directly as a type for a pointer to the start of list of objects that are linked together as a list.
- Author
- David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org
Definition at line 54 of file linked.h.
Construct base class attached to a chain of objects.
- Parameters
-
root | pointer to chain of objects we are part of. |
ucommon::LinkedObject::LinkedObject |
( |
) | |
|
|
protected |
Construct base class unattached to anyone.
This might be used to construct intermediary base classes that may form lists through indexing objects.
static unsigned ucommon::LinkedObject::count |
( |
const LinkedObject * |
root) | |
|
|
static |
Count the number of linked objects in a list.
- Parameters
-
root | pointer to list we are counting. |
Locate and remove ourselves from a list of objects.
This searches the list to locate our object and if found relinks the list around us.
- Parameters
-
root | pointer to list we are removing ourselves from. |
Add our object to an existing linked list through a pointer.
This forms a container sorted in lifo order since we become the head of the list, and the previous head becomes our next.
- Parameters
-
root | pointer to list we are adding ourselves to. |
Get member by index.
- Returns
- indexed member in linked list.
- Parameters
-
root | pointer to list we are indexing. |
index | member to find. |
Get next effective object when iterating.
- Returns
- next linked object in list.
Definition at line 139 of file linked.h.
bool ucommon::LinkedObject::is_member |
( |
LinkedObject * |
list) | |
const |
Search to see if we are a member of a specific list.
- Returns
- true if we are member of the list.
static void ucommon::LinkedObject::purge |
( |
LinkedObject * |
root) | |
|
|
static |
Release all objects from a list.
- Parameters
-
root | pointer to list we are purging. |
virtual void ucommon::LinkedObject::release |
( |
void |
) | |
|
|
virtual |
virtual void ucommon::LinkedObject::retain |
( |
void |
) | |
|
|
virtual |
Marker for end of linked list.
Definition at line 78 of file linked.h.
The documentation for this class was generated from the following file: