BDE 4.14.0 Production release
|
#include <bdlcc_skiplist.h>
Public Member Functions | |
SkipListPairHandle () | |
Construct a new PairHandle that does not refer to a pair. | |
SkipListPairHandle (const SkipListPairHandle &original) | |
~SkipListPairHandle () | |
SkipListPairHandle & | operator= (const SkipListPairHandle &rhs) |
void | release () |
Release the reference (if any) managed by this SkipListPairHandle . | |
void | releaseReferenceRaw (SkipList< KEY, DATA > **list, Pair **reference) |
operator const Pair * () const | |
DATA & | data () const |
const KEY & | key () const |
bool | isValid () const |
Friends | |
class | SkipList< KEY, DATA > |
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.
See bdlcc_skiplist
|
inline |
|
inline |
Construct a new pair reference for the same list and pair as the specified original
.
|
inline |
Destroy this SkipListPairHandle
. If this SkipListPairHandle
refers to a pair in the list, release the reference.
|
inline |
Return a reference to the "data" value of the pair referred to by this object. The behavior is undefined unless isValid
returns true
.
|
inline |
Return true
if this PairHandle currently refers to a pair, and false
otherwise.
|
inline |
Return a reference to the non-modifiable "key" value of the pair referred to by this object. The behavior is undefined unless isValid
returns true
.
bdlcc::SkipListPairHandle< KEY, DATA >::operator const Pair * | ( | ) | const |
Return the address of the pair referred to by this SkipListPairHandle
, or 0 if this handle does not manage a reference.
|
inline |
Change this SkipListPairHandle
to refer to the same list and pair as the specified rhs
. If this SkipListPairHandle
initially refers to a pair, release the reference. Return *this
.
|
inline |
|
inline |
Invoke release
and populate the specified list
and reference
pointers with the list and reference values of this SkipListPairHandle
.
|
friend |