Companion

object Companion

Functions

Link copied to clipboard
fun checkHashedSetBin(self: AvailObject)

Check that this hashed bin has a correct binHash.

Link copied to clipboard
fun combineHashedAndLinear(    hashedBin: AvailObject,     linearBin: AvailObject,     level: Int): A_SetBin

Combine a hashed bin and a linear bin. They're both at the specified level.

Link copied to clipboard
fun createInitializedHashSetBin(    level: Int,     localSize: Int,     bitVector: Long): AvailObject

Create a new hashed set bin with the given level, local size, total recursive number of elements, hash, bit vector, and either the bin union kind or nil. Initialize each sub-bin to the empty bin at level + 1.

Link copied to clipboard
fun descriptorFor(flag: Mutability, level: Int): HashedSetBinDescriptor

Answer the appropriate HashedSetBinDescriptor to use for the given mutability and level.

Link copied to clipboard
fun generateHashedSetBinFrom(    level: Int,     size: Int,     generator: (Int) -> A_BasicObject): AvailObject

Create a hashed set bin from the size and generator.

Properties

Link copied to clipboard
const val numberOfLevels: Int = 6

The number of distinct levels that my instances can occupy in a set's hash tree.