|
MDList
|
MDList class MDList is a dictionary based datastruture which stores (key, value) pairs. More...
#include <mdlist.h>
Public Member Functions | |
| MDList (int, ULL) | |
| MDList constructor. More... | |
| void | insert (ULL, T) |
| Insert (key, value) to MDList. More... | |
| T | find (ULL) |
| Searches for given key. More... | |
| T | remove (ULL) |
| Removes the given key. More... | |
Private Member Functions | |
| pair< Node< T > *, Node< T > * > | locatePredecessor (vector< int >) |
| Locate Predecessor/Parent of given coordinates. More... | |
Private Attributes | |
| int | D |
| The D value of MDList. More... | |
| ULL | N |
| The key space. More... | |
| Node< T > * | root |
| Head or Root of the MDList. More... | |
Friends | |
| template<class _T > | |
| void | printMDList (MDList< _T >) |
| template<class _T > | |
| void | findAndPrint (MDList< _T >, ULL) |
MDList class MDList is a dictionary based datastruture which stores (key, value) pairs.
It has a root node. Opoerations performed on a MDList are insert, find, remove. MDList is Lock-Free datastructure, so it is thread safe.
Searches for given key.
| key | The key. |
Insert (key, value) to MDList.
| key | The key. |
| val | The value. |
|
private |
Locate Predecessor/Parent of given coordinates.
| coordinates | The given coordinates. |
Removes the given key.
| key | The key. |
1.8.14