envzn
0.8 · beta · not released

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 boolean
reads
MODIFY METHOD next() RETURNS | REFERENCE K
modifies
METHOD peek() RETURNS | REFERENCE K
reads
MODIFY METHOD skip(uint64 n) RETURNS | REFERENCE K
modifies