ObjectMap

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

ObjectMap allows mapping of object keys to arbitrary values.

On static targets, the keys are considered to be strong references. Refer to haxe.ds.WeakMap for a weak reference version.

See Map for documentation details.

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

Instance Members

set(key: haxe.ds.ObjectMap.K, value: haxe.ds.ObjectMap.V): Void

See Map.set

Name Type
key haxe.ds.ObjectMap.K
value haxe.ds.ObjectMap.V

get(key: haxe.ds.ObjectMap.K): Null<haxe.ds.ObjectMap.V>

See Map.get

Name Type
key haxe.ds.ObjectMap.K
Returns
Null<haxe.ds.ObjectMap.V>

remove(key: haxe.ds.ObjectMap.K): Bool

See Map.remove

Name Type
key haxe.ds.ObjectMap.K
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

new(): Void

Creates a new ObjectMap.

Private Members

Metadata

Name Parameters
:headerClassCode "\n inline void set(Dynamic key, ::null value) { __object_hash_set(HX_MAP_THIS,key,value); }\n inline void set(Dynamic key, bool value) { __object_hash_set(HX_MAP_THIS,key,value); }\n inline void set(Dynamic key, char value) { __object_hash_set_int(HX_MAP_THIS,key,value); }\n inline void set(Dynamic key, unsigned char value) { __object_hash_set_int(HX_MAP_THIS,key,value); }\n inline void set(Dynamic key, signed char value) { __object_hash_set_int(HX_MAP_THIS,key,value); }\n inline void set(Dynamic key, short value) { __object_hash_set_int(HX_MAP_THIS,key,value); }\n inline void set(Dynamic key, unsigned short value) { __object_hash_set_int(HX_MAP_THIS,key,value); }\n inline void set(Dynamic key, int value) { __object_hash_set_int(HX_MAP_THIS,key,value); }\n inline void set(Dynamic key, unsigned int value) { __object_hash_set_int(HX_MAP_THIS,key,value); }\n inline void set(Dynamic key, float value) { __object_hash_set_float(HX_MAP_THIS,key,value); }\n inline void set(Dynamic key, double value) { __object_hash_set_float(HX_MAP_THIS,key,value); }\n inline void set(Dynamic key, ::String value) { __object_hash_set_string(HX_MAP_THIS,key,value); }\n inline void set(Dynamic key, cpp::Int64 value) { __object_hash_set_int64(HX_MAP_THIS,key,value); }\n\n\n template<typename V, typename H>\n inline void set(Dynamic key, const ::cpp::Struct<V,H> &value) {__object_hash_set(HX_MAP_THIS,key,value); }\n template\n inline void set(Dynamic key, const ::cpp::Function &value) {__object_hash_set(HX_MAP_THIS,key,(Dynamic)value ); }\n template\n inline void set(Dynamic key, const ::cpp::Pointer &value) {__object_hash_set(HX_MAP_THIS,key,(Dynamic)value ); }\n\n inline bool get_bool(Dynamic key) { return __object_hash_get_bool(h,key); }\n inline int get_int(Dynamic key) { return __object_hash_get_int(h,key); }\n inline Float get_float(Dynamic key) { return __object_hash_get_float(h,key); }\n inline String get_string(Dynamic key) { return __object_hash_get_string(h,key); }\n inline cpp::Int64 get_int64(Dynamic key) { return __object_hash_get_int64(h,key); }\n"