|
LibSWOC++ 1.5.14
Solid Wall of C++
|
A bucket for the hash map. More...
#include <IntrusiveHashMap.h>

Classes | |
| struct | Linkage |
| Support for IntrusiveDList<Bucket::Linkage>, definitions and link storage. More... | |
Public Member Functions | |
| value_type * | limit () const |
| bool | contains (value_type *v) const |
| Verify v is in this bucket. | |
| void | clear () |
| Reset to initial state. | |
Public Attributes | |
| struct swoc::IntrusiveHashMap::Bucket::Linkage | _link |
| value_type * | _v {nullptr} |
| First element in the bucket. | |
| size_t | _count {0} |
| Number of elements in the bucket. | |
| bool | _mixed_p {false} |
A bucket for the hash map.
Definition at line 100 of file IntrusiveHashMap.h.
| void swoc::IntrusiveHashMap< H >::Bucket::clear | ( | ) |
Reset to initial state.
Definition at line 338 of file IntrusiveHashMap.h.
| bool swoc::IntrusiveHashMap< H >::Bucket::contains | ( | value_type * | v | ) | const |
Verify v is in this bucket.
Definition at line 348 of file IntrusiveHashMap.h.
| auto swoc::IntrusiveHashMap< H >::Bucket::limit | ( | ) | const |
Compute the limit value for iteration in this bucket. This is the value of the next bucket, or nullptr if no next bucket.
Definition at line 331 of file IntrusiveHashMap.h.
| size_t swoc::IntrusiveHashMap< H >::Bucket::_count {0} |
Number of elements in the bucket.
Definition at line 110 of file IntrusiveHashMap.h.
| bool swoc::IntrusiveHashMap< H >::Bucket::_mixed_p {false} |
Marker for the chain having different keys.
This is used to determine if expanding the hash map would be useful - buckets that are not mixed will not be changed by an expansion.
Definition at line 117 of file IntrusiveHashMap.h.
| value_type* swoc::IntrusiveHashMap< H >::Bucket::_v {nullptr} |
First element in the bucket.
Definition at line 109 of file IntrusiveHashMap.h.