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

Metadata

Name Parameters
:headerClassCode "\n inline void set(int key, ::null value) { __int_hash_set(HX_MAP_THIS,key,value); }\n inline void set(int key, bool value) { __int_hash_set(HX_MAP_THIS,key,value); }\n inline void set(int key, char value) { __int_hash_set_int(HX_MAP_THIS,key,value); }\n inline void set(int key, unsigned char value) { __int_hash_set_int(HX_MAP_THIS,key,value); }\n inline void set(int key, signed char value) { __int_hash_set_int(HX_MAP_THIS,key,value); }\n inline void set(int key, short value) { __int_hash_set_int(HX_MAP_THIS,key,value); }\n inline void set(int key, unsigned short value) { __int_hash_set_int(HX_MAP_THIS,key,value); }\n inline void set(int key, int value) { __int_hash_set_int(HX_MAP_THIS,key,value); }\n inline void set(int key, unsigned int value) { __int_hash_set_int(HX_MAP_THIS,key,value); }\n inline void set(int key, float value) { __int_hash_set_float(HX_MAP_THIS,key,value); }\n inline void set(int key, double value) { __int_hash_set_float(HX_MAP_THIS,key,value); }\n inline void set(int key, ::String value) { __int_hash_set_string(HX_MAP_THIS,key,value); }\n inline void set(int key, cpp::Int64 value) { __int_hash_set_int64(HX_MAP_THIS,key,value); }\n\n template<typename V, typename H>\n inline void set(int key, const ::cpp::Struct<V,H> &value) {__int_hash_set(HX_MAP_THIS,key,value); }\n template\n inline void set(int key, const ::cpp::Function &value) {__int_hash_set(HX_MAP_THIS,key,value); }\n template\n inline void set(int key, const ::cpp::Pointer &value) {__int_hash_set(HX_MAP_THIS,key,(Dynamic)value ); }\n\n template\n inline void set(Dynamic &key, const VALUE &value) { set( (int)key, value ); }\n\n inline bool get_bool(int key) { return __int_hash_get_bool(h,key); }\n inline int get_int(int key) { return __int_hash_get_int(h,key); }\n inline Float get_float(int key) { return __int_hash_get_float(h,key); }\n inline String get_string(int key) { return __int_hash_get_string(h,key); }\n inline cpp::Int64 get_int64(int key) { return __int_hash_get_int64(h,key); }\n"