Internal structure to hold the items and internal forward/backward pointers of the skiplist. More...
Public Member Functions | |
| Element (const KEY &key, const INFO &info, int height) | |
Creates a skiplist element for(key,info) and given height. More... | |
| Element (int height) | |
Creates a dummy (stop) element with given height. More... | |
| Element (const Element &)=delete | |
| ~Element () | |
| Destructor. More... | |
| void | grow (int newHeight) |
Increases the element's height to newHeight. More... | |
Public Attributes | |
| int | m_height |
| the height of the skiplist element. More... | |
| INFO | m_info |
| stores the associated information. More... | |
| KEY | m_key |
| stores the key. More... | |
| Element ** | m_next |
| array of successor elements. More... | |
| Element ** | m_prev |
| array of predecessor elements. More... | |
Internal structure to hold the items and internal forward/backward pointers of the skiplist.
Definition at line 61 of file SortedSequence.h.
|
inline |
Creates a skiplist element for(key,info) and given height.
Definition at line 71 of file SortedSequence.h.
|
inline |
Creates a dummy (stop) element with given height.
Stop elements are marked with height 0, although this is not their real height. It is not necessary to store that, as we use realloc to increase their height.
Definition at line 83 of file SortedSequence.h.
|
delete |
|
inline |
Destructor.
Definition at line 92 of file SortedSequence.h.
|
inline |
Increases the element's height to newHeight.
Definition at line 98 of file SortedSequence.h.
| int ogdf::SortedSequence< KEY, INFO, CMP >::Element::m_height |
the height of the skiplist element.
Definition at line 65 of file SortedSequence.h.
| INFO ogdf::SortedSequence< KEY, INFO, CMP >::Element::m_info |
stores the associated information.
Definition at line 64 of file SortedSequence.h.
| KEY ogdf::SortedSequence< KEY, INFO, CMP >::Element::m_key |
stores the key.
Definition at line 63 of file SortedSequence.h.
| Element** ogdf::SortedSequence< KEY, INFO, CMP >::Element::m_next |
array of successor elements.
Definition at line 67 of file SortedSequence.h.
| Element** ogdf::SortedSequence< KEY, INFO, CMP >::Element::m_prev |
array of predecessor elements.
Definition at line 68 of file SortedSequence.h.