Managed handle to a key/data pair in a SkipList.
Declared in <bdlcc_skiplist.h>
template<
class KEY,
class DATA>
class SkipListPairHandle;
Objects of this class refer to an association (pair) in a SkipList. A bdlcc::SkipListPairHandle is implicitly convertible to a const Pair* and thus may be used anywhere in the SkipList API that a const Pair* is expected.
| Name | Description |
|---|---|
SkipListPairHandle [constructor] | Constructors |
~SkipListPairHandle [destructor] | Destroy this SkipListPairHandle. If this SkipListPairHandle refers to a pair in the list, release the reference. |
operator= | Make this handle refer to the same pair as rhs. |
data | data overloads |
isValid | Return true if this PairHandle currently refers to a pair, and false otherwise. |
key | key overloads |
release | Release the reference (if any) managed by this SkipListPairHandle. |
releaseReferenceRaw | Release this handle and return the raw list and pair pointers. |
operator bdlcc::SkipListPair<KEY, DATA> const* | Return the address of the pair referred to by this SkipListPairHandle, or 0 if this handle does not manage a reference. |
| Name | Description |
|---|---|
BloombergLP::bdlcc::SkipList | Thread-safe ordered associative skip list of key/data pairs. |