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
See Map.set
Name | Type |
---|---|
key |
Int |
value |
haxe.ds.IntMap.T |
See Map.get
Name | Type |
---|---|
key |
Int |
Returns |
---|
Null<haxe.ds.IntMap.T> |
See Map.exists
Name | Type |
---|---|
key |
Int |
Returns |
---|
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
flags: cs.NativeArray<Int>
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 |
Name | Type |
---|---|
k |
Int |
mask |
Int |
Returns |
---|
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 |
Name | Type |
---|---|
flag |
Int |
Returns |
---|
Bool |
Name | Type |
---|---|
flag |
Int |
Returns |
---|
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 |
Name | Type |
---|---|
x |
Int |
Returns |
---|
Int |
Name | Type |
---|---|
m |
Int |
Returns |
---|
Int |
Name | Type |
---|---|
key |
Int |
Returns |
---|
Int |
Name | Type |
---|---|
newNBuckets |
Int |
Metadata
Name | Parameters |
---|---|
:hxGen |
- |