package cpp; @:coreType @:include("cpp/Pointer.h") @:native("cpp.Pointer") @:analyzer(no_simplification) extern class ConstPointer { // 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; @:analyzer(no_simplification) public var value(get,never):T; public var raw(get,never):RawConstPointer; @:analyzer(no_simplification) public function get_value() : T; public function lt(inOther:Pointer):Bool; public function leq(inOther:Pointer):Bool; public function gt(inOther:Pointer):Bool; public function geq(inOther:Pointer):Bool; public static function fromRaw(ptr:RawConstPointer) : ConstPointer; public static function fromPointer(inNativePointer:Dynamic) : ConstPointer; public function reinterpret():Pointer; public function rawCast():RawPointer; @:analyzer(no_simplification) public function at(inIndex:Int):T; public function inc():ConstPointer; public function dec():ConstPointer; @:analyzer(no_simplification) public function postIncVal():T; public function incBy(inT:Int):ConstPointer; public function add(inT:Int):ConstPointer; }