|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Doubly linked list node with typed data. More...
Go to the source code of this file.
Classes | |
| class | Aleph::Dnode< T > |
| Node belonging to a double circular linked list with header node. More... | |
| class | Aleph::Dnode< T >::Iterator |
Iterator on a list of Dnode objects. More... | |
Namespaces | |
| namespace | Aleph |
| Main namespace for Aleph-w library functions. | |
Doubly linked list node with typed data.
This file provides Dnode<T>, a node for circular doubly linked lists that inherits from Dlink. Each node stores a value of type T.
| Operation | Time |
|---|---|
| insert_next/prev | O(1) |
| remove_next/prev | O(1) |
| get_data | O(1) |
Uses a sentinel (header) node pattern: the list is never empty as the header always exists. This simplifies boundary conditions.
Definition in file tpl_dnode.H.