Internal structure to hold the items and internal forward/backward pointers of the skiplist. More...
Public Member Functions | |
Element (const Element &)=delete | |
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 () | |
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 78 of file SortedSequence.h.
|
inline |
Creates a skiplist element for(key
,info
) and given height
.
Definition at line 87 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 98 of file SortedSequence.h.
|
delete |
|
inline |
Destructor.
Definition at line 106 of file SortedSequence.h.
|
inline |
Increases the element's height to newHeight
.
Definition at line 112 of file SortedSequence.h.
int ogdf::SortedSequence< KEY, INFO, CMP >::Element::m_height |
the height of the skiplist element.
Definition at line 81 of file SortedSequence.h.
INFO ogdf::SortedSequence< KEY, INFO, CMP >::Element::m_info |
stores the associated information.
Definition at line 80 of file SortedSequence.h.
KEY ogdf::SortedSequence< KEY, INFO, CMP >::Element::m_key |
stores the key.
Definition at line 79 of file SortedSequence.h.
Element** ogdf::SortedSequence< KEY, INFO, CMP >::Element::m_next |
array of successor elements.
Definition at line 83 of file SortedSequence.h.
Element** ogdf::SortedSequence< KEY, INFO, CMP >::Element::m_prev |
array of predecessor elements.
Definition at line 84 of file SortedSequence.h.