ost::LinkedDouble(3) | Library Functions Manual | ost::LinkedDouble(3) |
ost::LinkedDouble - Self managed double linked list object chain.
#include <object.h>
enum InsertMode { modeAtFirst, modeAtLast,
modeBefore, modeAfter }
Requested in overloaded insert() method to indicate how to insert data
into list.
virtual LinkedDouble * getFirst (void)
Get first linked object in list. virtual LinkedDouble * getLast
(void)
Gets the last object in the list. virtual LinkedDouble *
getInsert (void)
Virtual to get the insert point to use when adding new members.
LinkedDouble * getNext (void)
Get next object, for convenience. LinkedDouble * getPrev (void)
Get prev object in the list. virtual void insert (LinkedDouble
&obj, InsertMode position=modeAtLast)
Insert object into chain at given position, as indicated by InsertMode;
If no position is given, it defaults to modeAtLast, inserting element
at list's end. virtual void detach (void)
Remove object from chain. LinkedDouble & operator+=
(LinkedDouble &obj)
LinkedDouble & operator-- ()
LinkedDouble ()
virtual ~LinkedDouble ()
virtual void enterLock (void)
virtual void leaveLock (void)
virtual LinkedDouble * firstObject ()
virtual LinkedDouble * lastObject ()
LinkedDouble * nextObject
LinkedDouble * prevObject
Self managed double linked list object chain.
This is used for accumulating lists by using as a base class for a derived subclass.
Author
Accumulating double linked list.
Requested in overloaded insert() method to indicate how to insert data into list.
Enumerator
Remove object from chain.
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
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
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
Get next object, for convenience. Derived class may use this with a dynamic cast.
Returns
Get prev object in the list.
Returns
Insert object into chain at given position, as indicated by InsertMode; If no position is given, it defaults to modeAtLast, inserting element at list's end.
Parameters
Generated automatically by Doxygen for GNU CommonC++ from the source code.
Sun Dec 27 2020 | GNU CommonC++ |