Library / Collections / Dictionaries / HashBucketIterator
CLASSIMPLEMENTS ReferenceIterator<K>
HashBucketIterator
HashBucketIterator walks the dictionary's HashBucket[K,V,HASH][] buckets (a raw value-array of inline
buckets) in bucket order, yielding a non-owning REFERENCE to each entry's key. Holds
a mutation-locked REFERENCE to the buckets array (set in INIT from a by-reference
parameter — §REFERENCE condition 2); the lock pins the source dictionary against
mutation for the iterator's declaring-block lifetime.
Constructors 1
INIT(REFERENCE HashBucket[K, V, HASH][] buckets)
Methods 4
METHOD hasNext() RETURNS booleanreads
MODIFY METHOD next() RETURNS | REFERENCE Kmodifies
METHOD peek() RETURNS | REFERENCE Kreads
MODIFY METHOD skip(uint64 n) RETURNS | REFERENCE Kmodifies