|
@@ -1,16 +1,19 @@
|
|
|
package cpp;
|
|
|
|
|
|
@:coreType @:include("cpp/Pointer.h") @:native("cpp.Pointer")
|
|
|
+@:analyzer(no_simplification)
|
|
|
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
|
|
|
private var ptr:T;
|
|
|
|
|
|
+ @:analyzer(no_simplification)
|
|
|
public var value(get,never):T;
|
|
|
public var raw(get,never):RawConstPointer<T>;
|
|
|
|
|
|
- public function get_raw() : RawConstPointer<T>;
|
|
|
+ @:analyzer(no_simplification)
|
|
|
+ public function get_value() : T;
|
|
|
|
|
|
public function lt(inOther:Pointer<T>):Bool;
|
|
|
public function leq(inOther:Pointer<T>):Bool;
|
|
@@ -23,10 +26,12 @@ extern class ConstPointer<T>
|
|
|
|
|
|
public function reinterpret<Other>():Pointer<Other>;
|
|
|
|
|
|
+ @:analyzer(no_simplification)
|
|
|
public function at(inIndex:Int):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>;
|