starling-framework
Version:
A fast, productive library for 2D cross-platform development.
97 lines (79 loc) • 2.37 kB
JavaScript
// Class: haxe.ds._Map.Map_Impl_
var $global = typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : this
$global.Object.defineProperty(exports, "__esModule", {value: true});
var __map_reserved = {};
// Imports
var $hxClasses = require("./../../../hxClasses_stub").default;
var $hxEnums = require("./../../../hxEnums_stub").default;
var $import = require("./../../../import_stub").default;
function haxe_ds_StringMap() {return require("./../../../haxe/ds/StringMap");}
function haxe_ds_IntMap() {return require("./../../../haxe/ds/IntMap");}
function haxe_ds_EnumValueMap() {return require("./../../../haxe/ds/EnumValueMap");}
function haxe_ds_ObjectMap() {return require("./../../../haxe/ds/ObjectMap");}
// Constructor
var Map_Impl_ = function(){}
// Meta
Map_Impl_.__name__ = "haxe.ds._Map.Map_Impl_";
Map_Impl_.__isInterface__ = false;
Map_Impl_.prototype = {
};
Map_Impl_.prototype.__class__ = Map_Impl_.prototype.constructor = $hxClasses["haxe.ds._Map.Map_Impl_"] = Map_Impl_;
// Init
// Statics
Map_Impl_.set = function(this1,key,value) {
this1.set(key,value);
}
Map_Impl_.get = function(this1,key) {
return this1.get(key);
}
Map_Impl_.exists = function(this1,key) {
return this1.exists(key);
}
Map_Impl_.remove = function(this1,key) {
return this1.remove(key);
}
Map_Impl_.keys = function(this1) {
return this1.keys();
}
Map_Impl_.iterator = function(this1) {
return this1.iterator();
}
Map_Impl_.keyValueIterator = function(this1) {
return this1.keyValueIterator();
}
Map_Impl_.copy = function(this1) {
return this1.copy();
}
Map_Impl_.toString = function(this1) {
return this1.toString();
}
Map_Impl_.clear = function(this1) {
this1.clear();
}
Map_Impl_.arrayWrite = function(this1,k,v) {
this1.set(k,v);
return v;
}
Map_Impl_.toStringMap = function(t) {
return new (haxe_ds_StringMap().default)();
}
Map_Impl_.toIntMap = function(t) {
return new (haxe_ds_IntMap().default)();
}
Map_Impl_.toEnumValueMapMap = function(t) {
return new (haxe_ds_EnumValueMap().default)();
}
Map_Impl_.toObjectMap = function(t) {
return new (haxe_ds_ObjectMap().default)();
}
Map_Impl_.fromStringMap = function(map) {
return map;
}
Map_Impl_.fromIntMap = function(map) {
return map;
}
Map_Impl_.fromObjectMap = function(map) {
return map;
}
// Export
exports.default = Map_Impl_;