Base class for the dictionary backed by a linked list.
public abstract class base hash set[readonly value element type]
Declaration: base hash set
Announcements: base hash set
Direct supertypes: set
protected class hash cell[readonly value element type]
Declaration: hash cell
Use: base hash set / base hash set / base hash set / base hash set / base hash set / base hash set / base hash set / hash set / hash set
public overload hash cell(element type the value, integer the hash, hash cell[element type] or null next)
Declaration: constructor
Declaration: constructor
Wrapper of an array that implements on-demand resizing and copy-on-write semantics.
The same set_state can be shared by multiple instances of base_hash_sets.
protected class set state[readonly value element type]
Declaration: set state
import ideal • machine • elements • array
Specifies whether this instance of set_state is writable.
A single non-writable copy can be shared among multiple instances of base_hash_set.
var boolean writable
Declaration: writable
Use: base hash set
An array used to store the elements.
var array[hash cell[element type] or null] the buckets
Declaration: the buckets
Specifies how many elements are stored in this set_state.
The size is less or equal to the_buckets.size.
var nonnegative size
Declaration: size
Construct a dictionary state with an array of specified size.
overload set state(nonnegative initial size)
Declaration: constructor
Construct a dictionary state with a table of default size.
overload set state()
Declaration: constructor
Declaration: clear
Declaration: reserve
Declaration: bucket index
Use: base hash set
Declaration: copy
Declaration: constructor
protected overload base hash set(equivalence with hash[element type] equivalence, set state[element type] state)
Declaration: constructor
Declaration: size
Direct overrides: size
Declaration: is empty
Direct overrides: is empty
Use: is empty
Specifies whether the collection has more than zero elements.
Shortcut for !is_empty.
implement boolean is not empty
Declaration: is not empty
Direct overrides: is not empty
Enumerates elements in some collection-defined order.
This method returns a snapshot of the collection state, so subsequent mutations
of the collection do not cause changes in the returned list.
implement immutable list[element type] elements()
Declaration: elements
Direct overrides: elements
Declaration: frozen copy
Direct overrides: set
Directly overriden by: immutable hash set
Declaration: contains
Direct overrides: set