Self managed double linked list object chain.
More...
#include <object.h>
|
virtual void | enterLock (void) |
|
virtual LinkedDouble * | firstObject () |
|
virtual LinkedDouble * | lastObject () |
|
virtual void | leaveLock (void) |
|
Self managed double linked list object chain.
This is used for accumulating lists by using as a base class for a derived subclass.
- Author
- David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org Accumulating double linked list.
Definition at line 237 of file object.h.
◆ InsertMode
Requested in overloaded insert() method to indicate how to insert data into list.
Enumerator |
---|
modeAtFirst | insert at first position in list pointed by current object
|
modeAtLast | insert at last position in list pointed by current object
|
modeBefore | insert in list before current object
|
modeAfter | insert in list after current object
|
Definition at line 265 of file object.h.
◆ getFirst()
Get first linked object in list.
This may be dynamically recast, and may refer to a master static bookmark pointer in a derived class. Otherwise it follows list to front.
- Returns
- pointer to first object in list.
◆ getInsert()
Virtual to get the insert point to use when adding new members.
This may be current, or always head or always tail. As a virtual, this allows derived class to establish "policy".
- Returns
- pointer to insertion point in list.
◆ getLast()
Gets the last object in the list.
This normally follows the links to the end. This is a virtual because derived class may include a static member bookmark for the current end.
- Returns
- pointer to last object in list.
◆ getNext()
Get next object, for convenience.
Derived class may use this with a dynamic cast.
- Returns
- next object in list.
Definition at line 306 of file object.h.
◆ getPrev()
Get prev object in the list.
- Returns
- pointer to previous object.
Definition at line 315 of file object.h.
◆ insert()
Insert object into chain at given pos, as indicated by InsertMode; If no pos is given, it defaults to modeAtLast, inserting element at list's end.
- Parameters
-
object | being inserted. |
position | where object is inserted. |
The documentation for this class was generated from the following file: