BloombergLP::bslalg::HashTableBucket

POD that refers to the first and last nodes of a hash-table bucket.

Synopsis

Declared in <bslalg_hashtablebucket.h>

struct HashTableBucket;

Member Functions

NameDescription
countElements Return the number of nodes in this hash bucket.
end Return the next node after the end of this bucket.
first Return the address of the first element in this hash bucket, or a null pointer value if the bucket is empty.
last Return the address of the last element in this hash bucket, or a null pointer value if the bucket is empty.
reset Set first and last to a null pointer value.
setFirst Set the first element of this bucket to the specified node.
setFirstAndLast Set first and last to the specified values.
setLast Set the last element of this bucket to the specified node.
operator BloombergLP::bslmf::NestedTraitDeclaration<HashTableBucket, IsBitwiseCopyable> Declare HashTableBucket as bitwise copyable.

Data Members

NameDescription
d_first_p Address of the first node in this bucket, or 0 if empty.
d_last_p Address of the last node in this bucket, or 0 if empty.

Non-Member Functions

NameDescription
operator!=Return true if the specified hash table buckets lhs and rhs are not equivalent and false otherwise.
operator==Return true if the specified hash table buckets lhs and rhs are equivalent and false otherwise.