|
@@ -25,19 +25,19 @@ package haxe.ds;
|
|
|
|
|
|
private var h : Dynamic;
|
|
private var h : Dynamic;
|
|
|
|
|
|
- public function new() : Void {
|
|
|
|
|
|
+ public inline function new() : Void {
|
|
h = {};
|
|
h = {};
|
|
}
|
|
}
|
|
|
|
|
|
- public function set( key : Int, value : T ) : Void {
|
|
|
|
|
|
+ public inline function set( key : Int, value : T ) : Void {
|
|
untyped h[key] = value;
|
|
untyped h[key] = value;
|
|
}
|
|
}
|
|
|
|
|
|
- public function get( key : Int ) : Null<T> {
|
|
|
|
|
|
+ public inline function get( key : Int ) : Null<T> {
|
|
return untyped h[key];
|
|
return untyped h[key];
|
|
}
|
|
}
|
|
|
|
|
|
- public function exists( key : Int ) : Bool {
|
|
|
|
|
|
+ public inline function exists( key : Int ) : Bool {
|
|
return untyped h.hasOwnProperty(key);
|
|
return untyped h.hasOwnProperty(key);
|
|
}
|
|
}
|
|
|
|
|