skip_list class.
More...
#include <skip_list.h>
|
std::ostream & | operator<< (std::ostream &out, skip_list< T > &l) |
| visualize function returns a .dot file that can be previewd with graphviz plugin in vscode
|
|
template<typename T>
class skip_list< T >
skip_list class.
◆ skip_list() [1/2]
skip_list constructor.
- Parameters
-
__MAX_LEVEL | max height of the list. |
__PROB | probability of increasing the height each time(by default it should be 0.5). |
◆ skip_list() [2/2]
Copy constructor for the skip_list class.
- Parameters
-
◆ begin()
pointer that points to the first element of the list
- Returns
- Iterator
◆ end()
pointer that points to the last element of the list
- Returns
- Iterator
◆ insert()
insert function.
- Parameters
-
◆ operator=()
◆ remove()
remove function.
- Parameters
-
key | key to be removed(if exist). |
◆ search()
search function.
- Parameters
-
- Returns
- true if the key exists in the list.
◆ operator<<
template<typename T >
std::ostream & operator<< |
( |
std::ostream & | out, |
|
|
skip_list< T > & | l ) |
|
friend |
visualize function returns a .dot file that can be previewd with graphviz plugin in vscode
operator << for skip_list<T> class.
The documentation for this class was generated from the following file:
- /Users/spirosmag/Documents/AlgoPlus/src/classes/list/skip_list.h