IntMap

haxe.ds.IntMap (Class)
Implements: haxe.IMap

IntMap allows mapping of Int keys to arbitrary values.

See Map for documentation details.

See: https://haxe.org/manual/std-Map.html

Instance Members

set(key: Int, value: haxe.ds.IntMap.T): Void

See Map.set

Name Type
key Int
value haxe.ds.IntMap.T

get(key: Int): Null<haxe.ds.IntMap.T>

See Map.get

Name Type
key Int
Returns
Null<haxe.ds.IntMap.T>

exists(key: Int): Bool

See Map.exists

Name Type
key Int
Returns
Bool

remove(key: Int): Bool

See Map.remove

Name Type
key Int
Returns
Bool

keys(): Iterator

See Map.keys

(cs, java) Implementation detail: Do not set() any new value while iterating, as it may cause a resize, which will break iteration.

Returns
Iterator

iterator(): Iterator

See Map.iterator

(cs, java) Implementation detail: Do not set() any new value while iterating, as it may cause a resize, which will break iteration.

Returns
Iterator

keyValueIterator(): KeyValueIterator

See Map.keyValueIterator

Returns
KeyValueIterator

copy(): IntMap<haxe.ds.IntMap.T>

See Map.copy

Returns
IntMap<haxe.ds.IntMap.T>

clear(): Void

See Map.clear


new(): Void

Creates a new IntMap.

Private Members


vals: cs.NativeArray<haxe.ds.IntMap.T>

nBuckets: Int

size: Int

nOccupied: Int

upperBound: Int

cachedKey: Int

cachedIndex: Int

arrayCopy(sourceArray: cs.system.Array, sourceIndex: Int, destinationArray: cs.system.Array, destinationIndex: Int, length: Int): Void
Name Type
sourceArray cs.system.Array
sourceIndex Int
destinationArray cs.system.Array
destinationIndex Int
length Int

getInc(k: Int, mask: Int): Int
Name Type
k Int
mask Int
Returns
Int

hash(i: Int): Int
Name Type
i Int
Returns
Int

getFlag(flags: cs.NativeArray<Int>, i: Int): Int
Name Type
flags cs.NativeArray<Int>
i Int
Returns
Int

isDel(flag: Int): Bool
Name Type
flag Int
Returns
Bool

isEmpty(flag: Int): Bool
Name Type
flag Int
Returns
Bool

isEither(flag: Int): Bool
Name Type
flag Int
Returns
Bool

setIsEmptyFalse(flags: cs.NativeArray<Int>, i: Int): Void
Name Type
flags cs.NativeArray<Int>
i Int

setIsBothFalse(flags: cs.NativeArray<Int>, i: Int): Void
Name Type
flags cs.NativeArray<Int>
i Int

setIsDelTrue(flags: cs.NativeArray<Int>, i: Int): Void
Name Type
flags cs.NativeArray<Int>
i Int

roundUp(x: Int): Int
Name Type
x Int
Returns
Int

flagsSize(m: Int): Int
Name Type
m Int
Returns
Int

lookup(key: Int): Int
Name Type
key Int
Returns
Int

resize(newNBuckets: Int): Void
Name Type
newNBuckets Int

Metadata

Name Parameters
:hxGen -