Thread‐safe ordered associative skip list of key/data pairs.
Synopsis
Declared in <bdlcc_skiplist.h>
template<
class KEY,
class DATA>
class SkipList;
Description
This class provides a generic thread‐safe Skip List (an ordered associative container). It supports an almost complete set of value semantic operations, including copy construction, assignment, equality comparison, and ostream printing (but not BDEX serialization).
Type Aliases
Name |
Description |
Unmanaged reference to a key/data pair in this list. |
|
Managed handle to a key/data pair in this list. |
Enums
Name |
Description |
Status codes returned by skip‐list operations. |
Member Functions
Name |
Description |
|
Constructors |
|
Destroy this Skip List. The behavior is undefined if references are outstanding to any pairs in the list. |
Assign to this list the value of |
|
|
|
Add a key/data pair at a specified skip‐list level. |
|
Add a key/data pair at |
|
Add a unique key/data pair at the specified |
|
Add a unique key/data pair at |
|
Increment the reference count for the pair at |
|
|
|
Add a key/data pair and load a raw reference into |
|
Add |
|
|
|
|
|
Add a unique key/data pair and load a raw reference. |
|
Add a unique key/data pair and return a raw reference to it. |
|
Return the allocator used by this object to supply memory. |
|
Load a reference to the last item into |
|
Load a raw reference to the last item into |
|
Load into |
|
Return whether a pair with the specified |
|
Find the element with |
|
Find the lower bound for |
|
Find the lower bound for |
|
Find the reverse lower bound for |
|
Find the lower bound for |
|
Find the element with |
|
Find |
|
Find |
|
Find the upper bound for |
|
Find the upper bound for |
|
Find the reverse upper bound for |
|
Find the upper bound for |
|
Load a reference to the first item into |
|
Load a raw reference to the first item into |
|
Return |
|
Load into |
|
Return the number of items in this list. |
|
Load into |
|
Load a raw reference to the item after |
|
Remove and return the first item in the list. |
|
Remove the first item and load a raw reference into |
|
Load into |
|
Load a raw reference to the pair before |
|
Format this list to the specified output |
|
Release the reference to the pair at |
|
Remove the item identified by |
|
|
|
Remove all items and append raw references to |
|
Move |
|
Move the raw reference |
|
Advance |
|
Advance the raw reference |
|
Assign |
|
Update the key of a pair, searching for position from the back. |
|
|
Return the nested trait declaration for this skip‐list type. |
Static Member Functions
Name |
Description |
Return the skip‐list level of the pair at |
Friends
Name |
Description |
Return |
|
Return |
|
Managed handle to a key/data pair in a |
|
Type‐safe pointer to a key/data pair in a |
Non-Member Functions
Name |
Description |
Return whether |
|
Return whether |
Created with MrDocs