|
@@ -26,19 +26,28 @@ extern class ConstPointer<T>
|
|
|
{
|
|
|
// ptr actually returns the pointer - not strictly a 'T' - for pointers to smart pointers
|
|
|
// Use value or ref to get dereferenced value
|
|
|
- public var ptr:T;
|
|
|
+ public var ptr:T;
|
|
|
|
|
|
@:analyzer(no_simplification)
|
|
|
- public var value(get,never):T;
|
|
|
- public var raw(get,never):RawConstPointer<T>;
|
|
|
+ public var value(get,never):T;
|
|
|
+
|
|
|
+ // Typecast to non-const
|
|
|
+ public var raw(get,never):RawPointer<T>;
|
|
|
+
|
|
|
+ // const version
|
|
|
+ public var constRaw(get,never):RawConstPointer<T>;
|
|
|
|
|
|
@:analyzer(no_simplification)
|
|
|
public function get_value() : T;
|
|
|
|
|
|
- public function lt(inOther:ConstPointer<T>):Bool;
|
|
|
- public function leq(inOther:ConstPointer<T>):Bool;
|
|
|
- public function gt(inOther:ConstPointer<T>):Bool;
|
|
|
- public function geq(inOther:ConstPointer<T>):Bool;
|
|
|
+ public function get_constRaw() : RawConstPointer<T>;
|
|
|
+ public function get_raw() : RawPointer<T>;
|
|
|
+
|
|
|
+
|
|
|
+ public function lt(inOther:ConstPointer<T>):Bool;
|
|
|
+ public function leq(inOther:ConstPointer<T>):Bool;
|
|
|
+ public function gt(inOther:ConstPointer<T>):Bool;
|
|
|
+ public function geq(inOther:ConstPointer<T>):Bool;
|
|
|
|
|
|
public function setRaw<O>(ptr:RawPointer<O>) : Void;
|
|
|
|
|
@@ -47,18 +56,18 @@ extern class ConstPointer<T>
|
|
|
|
|
|
public static function fromPointer<T>(inNativePointer:Dynamic) : ConstPointer<T>;
|
|
|
|
|
|
- public function reinterpret<Other>():Pointer<Other>;
|
|
|
- public function rawCast<Other>():RawPointer<Other>;
|
|
|
+ public function reinterpret<Other>():Pointer<Other>;
|
|
|
+ public function rawCast<Other>():RawPointer<Other>;
|
|
|
|
|
|
@:analyzer(no_simplification)
|
|
|
- public function at(inIndex:Int):T;
|
|
|
+ public function at(inIndex:Int):T;
|
|
|
|
|
|
- public function inc():ConstPointer<T>;
|
|
|
- public function dec():ConstPointer<T>;
|
|
|
+ public function inc():ConstPointer<T>;
|
|
|
+ public function dec():ConstPointer<T>;
|
|
|
@:analyzer(no_simplification)
|
|
|
- public function postIncVal():T;
|
|
|
- public function incBy(inT:Int):ConstPointer<T>;
|
|
|
- public function add(inT:Int):ConstPointer<T>;
|
|
|
+ public function postIncVal():T;
|
|
|
+ public function incBy(inT:Int):ConstPointer<T>;
|
|
|
+ public function add(inT:Int):ConstPointer<T>;
|
|
|
|
|
|
}
|
|
|
|