Hash set/map base class.
More...
#include <HashBase.h>
List of all members.
Public Member Functions |
| HashBase () |
| Construct.
|
| ~HashBase () |
| Destruct.
|
void | Swap (HashBase &rhs) |
| Swap with another hash set or map.
|
unsigned | Size () const |
| Return number of elements.
|
unsigned | NumBuckets () const |
| Return number of buckets.
|
bool | Empty () const |
| Return whether has no elements.
|
Static Public Attributes |
static const unsigned | MIN_BUCKETS = 8 |
| Initial amount of buckets.
|
static const unsigned | MAX_LOAD_FACTOR = 4 |
| Maximum load factor.
|
Protected Member Functions |
void | AllocateBuckets (unsigned size, unsigned numBuckets) |
| Allocate bucket head pointers + room for size and bucket count variables.
|
void | ResetPtrs () |
| Reset bucket head pointers.
|
void | SetSize (unsigned size) |
| Set new size.
|
HashNodeBase ** | Ptrs () const |
| Return bucket head pointers.
|
Detailed Description
The documentation for this class was generated from the following files:
- D:/UrhoV122Source/Engine/Container/HashBase.h
- D:/UrhoV122Source/Engine/Container/HashBase.cpp