|
lab_btree
Belligerent BTrees
|
A fancy key-value pair which acts as elements in the BTree. More...
Public Member Functions | |
| DataPair (K key, V value) | |
| Constructs a DataPair from the given key and value. More... | |
Friends | |
| bool | operator< (const DataPair &lhs, const DataPair &rhs) |
| Less than operator for a DataPair. More... | |
| bool | operator< (const DataPair &lhs, const K &rhs) |
| Less than operator for a DataPair and a K. More... | |
| bool | operator< (const K &lhs, const DataPair &rhs) |
| Less than operator for a K and a DataPair. More... | |
| bool | operator> (const DataPair &lhs, const DataPair &rhs) |
| Greater than operator for a DataPair. More... | |
| bool | operator> (const K &lhs, const DataPair &rhs) |
| Greater than operator for a K and a DataPair. More... | |
| bool | operator> (const DataPair &lhs, const K &rhs) |
| Greater than operator for a DataPair and a K. More... | |
| bool | operator== (const DataPair &lhs, const DataPair &rhs) |
| Equality operator for a DataPair. More... | |
| bool | operator== (const DataPair &lhs, const K &rhs) |
| Equality operator for a DataPair and a K. More... | |
| bool | operator== (const K &lhs, const DataPair &rhs) |
| Equality operator for a K and a DataPair. More... | |
A fancy key-value pair which acts as elements in the BTree.
Can be compared with <, >, ==. Additionally they can be compared against a K with <, > and == based on its key.
|
inline |
Constructs a DataPair from the given key and value.
| key | The key of the pair. |
| value | The value of the pair. |
Less than operator for a DataPair.
One is less than another if its key is less than the other's key.
| lhs | The left hand of the < operator. |
| rhs | The right hand of the < operator. |
|
friend |
|
friend |
Greater than operator for a DataPair.
One is greater than another if its key is greater than the other's key.
| lhs | The left hand of the > operator. |
| rhs | The right hand of the > operator. |
|
friend |
|
friend |
Equality operator for a DataPair.
One is equal to another if its key is equal to the other's key.
| lhs | The left hand of the > operator. |
| rhs | The right hand of the > operator. |
|
friend |
|
friend |