IntFloatMap

ceramic.IntFloatMap (Class)

Fallback implementation of IntFloatMap for non-C++/C# targets. Uses standard Map internally with additional tracking for iteration.

Instance Members

iterableKeys: Array<Int>

When this map is marked as iterable, this array will contain every key. Only populated if iterable was set to true in constructor.


size: Int

The number of entries in the map.


clear(): Void

exists(key: Int): Bool
Name Type
key Int
Returns
Bool

set(key: Int, value: Float): Float
Name Type
key Int
value Float
Returns
Float

get(key: Int): Float
Name Type
key Int
Returns
Float

remove(key: Int): Float
Name Type
key Int
Returns
Float

getInline(key: Int): Float
Name Type
key Int
Returns
Float

existsInline(key: Int): Bool
Name Type
key Int
Returns
Bool

copy(): IntFloatMap
Returns
IntFloatMap

Returns
IntFloatMapIterator

Returns
IntFloatMapKeyIterator

keyValueIterator(): IntFloatMapKeyValueIterator
Returns
IntFloatMapKeyValueIterator

new(?size: Int = 16, ?fillFactor: Float = 0.5, ?iterable: Bool = false): Void
Name Type Default
size Int 16
fillFactor Float 0.5
iterable Bool false

Private Members

intMap: Map

Backing map for storing key-value pairs.


iterableKeysUsed: IntBoolMap

Tracks which keys are in iterableKeys to avoid duplicates