diff options
Diffstat (limited to 'Examples/go')
-rw-r--r-- | Examples/go/callback/example.go | 188 | ||||
-rw-r--r-- | Examples/go/class/example.go | 284 | ||||
-rw-r--r-- | Examples/go/constants/example.go | 44 | ||||
-rw-r--r-- | Examples/go/enum/example.go | 93 | ||||
-rw-r--r-- | Examples/go/extend/example.go | 397 | ||||
-rw-r--r-- | Examples/go/funcptr/example.go | 54 | ||||
-rw-r--r-- | Examples/go/multimap/example.go | 55 | ||||
-rw-r--r-- | Examples/go/pointer/example.go | 68 | ||||
-rw-r--r-- | Examples/go/reference/example.go | 126 | ||||
-rw-r--r-- | Examples/go/simple/example.go | 48 | ||||
-rw-r--r-- | Examples/go/template/example.go | 150 | ||||
-rw-r--r-- | Examples/go/variables/example.go | 198 |
12 files changed, 0 insertions, 1705 deletions
diff --git a/Examples/go/callback/example.go b/Examples/go/callback/example.go deleted file mode 100644 index 5c0cfb051..000000000 --- a/Examples/go/callback/example.go +++ /dev/null @@ -1,188 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.1 - * - * This file is not intended to be easily readable and contains a number of - * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. - * ----------------------------------------------------------------------------- */ - -package example - - -type _swig_fnptr *byte -type _swig_memberptr *byte - - -func _swig_allocatememory(int) *byte -func _swig_internal_allocate(len int) *byte { - return _swig_allocatememory(len) -} - -func _swig_allocatestring(*byte, int) string -func _swig_internal_makegostring(p *byte, l int) string { - return _swig_allocatestring(p, l) -} - -func _swig_internal_gopanic(p *byte, l int) { - panic(_swig_allocatestring(p, l)) -} - -type _swig_DirectorCallback struct { - SwigcptrCallback - v interface{} -} - -func (p *_swig_DirectorCallback) Swigcptr() uintptr { - return p.SwigcptrCallback.Swigcptr() -} - -func (p *_swig_DirectorCallback) SwigIsCallback() { -} - -func (p *_swig_DirectorCallback) DirectorInterface() interface{} { - return p.v -} - -func _swig_NewDirectorCallbackCallback(*_swig_DirectorCallback) SwigcptrCallback - -func NewDirectorCallback(v interface{}) Callback { - p := &_swig_DirectorCallback{0, v} - p.SwigcptrCallback = _swig_NewDirectorCallbackCallback(p) - return p -} - -func _swig_wrap_DeleteDirectorCallback(uintptr) - -func DeleteDirectorCallback(arg1 Callback) { - _swig_wrap_DeleteDirectorCallback(arg1.Swigcptr()) -} - -func Swiggo_DeleteDirector_Callback(p *_swig_DirectorCallback) { - p.SwigcptrCallback = 0 -} - -type _swig_DirectorInterfaceCallbackRun interface { - Run() -} - -func _swig_wrap__swig_DirectorCallback_upcall_Run(SwigcptrCallback) -func (swig_p *_swig_DirectorCallback) Run() { - if swig_g, swig_ok := swig_p.v.(_swig_DirectorInterfaceCallbackRun); swig_ok { - swig_g.Run() - return - } - _swig_wrap__swig_DirectorCallback_upcall_Run(swig_p.SwigcptrCallback) -} - -func DirectorCallbackRun(p Callback) { - _swig_wrap__swig_DirectorCallback_upcall_Run(p.(*_swig_DirectorCallback).SwigcptrCallback) -} - -func Swig_DirectorCallback_callback_run(p *_swig_DirectorCallback) { - p.Run() -} - -type SwigcptrCallback uintptr - -func (p SwigcptrCallback) Swigcptr() uintptr { - return (uintptr)(p) -} - -func (p SwigcptrCallback) SwigIsCallback() { -} - -func (p SwigcptrCallback) DirectorInterface() interface{} { - return nil -} - -func _swig_wrap_delete_Callback(uintptr) - -func DeleteCallback(arg1 Callback) { - _swig_wrap_delete_Callback(arg1.Swigcptr()) -} - -func _swig_wrap_Callback_run(SwigcptrCallback) - -func (arg1 SwigcptrCallback) Run() { - _swig_wrap_Callback_run(arg1) -} - -func _swig_wrap_new_Callback() SwigcptrCallback - -func NewCallback() Callback { - return _swig_wrap_new_Callback() -} - -type Callback interface { - Swigcptr() uintptr - SwigIsCallback() - DirectorInterface() interface{} - Run() -} - -type SwigcptrCaller uintptr - -func (p SwigcptrCaller) Swigcptr() uintptr { - return (uintptr)(p) -} - -func (p SwigcptrCaller) SwigIsCaller() { -} - -func _swig_wrap_new_Caller() SwigcptrCaller - -func NewCaller() Caller { - return _swig_wrap_new_Caller() -} - -func _swig_wrap_delete_Caller(uintptr) - -func DeleteCaller(arg1 Caller) { - _swig_wrap_delete_Caller(arg1.Swigcptr()) -} - -func _swig_wrap_Caller_delCallback(SwigcptrCaller) - -func (arg1 SwigcptrCaller) DelCallback() { - _swig_wrap_Caller_delCallback(arg1) -} - -func _swig_wrap_Caller_setCallback(SwigcptrCaller, uintptr) - -func (arg1 SwigcptrCaller) SetCallback(arg2 Callback) { - _swig_wrap_Caller_setCallback(arg1, arg2.Swigcptr()) -} - -func _swig_wrap_Caller_call(SwigcptrCaller) - -func (arg1 SwigcptrCaller) Call() { - _swig_wrap_Caller_call(arg1) -} - -type Caller interface { - Swigcptr() uintptr - SwigIsCaller() - DelCallback() - SetCallback(arg2 Callback) - Call() -} - - -type SwigcptrSwigDirector_Callback uintptr -type SwigDirector_Callback interface { - Swigcptr() uintptr; -} -func (p SwigcptrSwigDirector_Callback) Swigcptr() uintptr { - return uintptr(p) -} - -type SwigcptrVoid uintptr -type Void interface { - Swigcptr() uintptr; -} -func (p SwigcptrVoid) Swigcptr() uintptr { - return uintptr(p) -} - diff --git a/Examples/go/class/example.go b/Examples/go/class/example.go deleted file mode 100644 index ec8113ad4..000000000 --- a/Examples/go/class/example.go +++ /dev/null @@ -1,284 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.1 - * - * This file is not intended to be easily readable and contains a number of - * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. - * ----------------------------------------------------------------------------- */ - -package example - - -type _swig_fnptr *byte -type _swig_memberptr *byte - - -func _swig_allocatememory(int) *byte -func _swig_internal_allocate(len int) *byte { - return _swig_allocatememory(len) -} - -func _swig_allocatestring(*byte, int) string -func _swig_internal_makegostring(p *byte, l int) string { - return _swig_allocatestring(p, l) -} - -func _swig_internal_gopanic(p *byte, l int) { - panic(_swig_allocatestring(p, l)) -} - -type SwigcptrShape uintptr - -func (p SwigcptrShape) Swigcptr() uintptr { - return (uintptr)(p) -} - -func (p SwigcptrShape) SwigIsShape() { -} - -func _swig_wrap_delete_Shape(uintptr) - -func DeleteShape(arg1 Shape) { - _swig_wrap_delete_Shape(arg1.Swigcptr()) -} - -func _swig_wrap_Shape_x_set(SwigcptrShape, float64) - -func (arg1 SwigcptrShape) SetX(arg2 float64) { - _swig_wrap_Shape_x_set(arg1, arg2) -} - -func _swig_wrap_Shape_x_get(SwigcptrShape) float64 - -func (arg1 SwigcptrShape) GetX() float64 { - return _swig_wrap_Shape_x_get(arg1) -} - -func _swig_wrap_Shape_y_set(SwigcptrShape, float64) - -func (arg1 SwigcptrShape) SetY(arg2 float64) { - _swig_wrap_Shape_y_set(arg1, arg2) -} - -func _swig_wrap_Shape_y_get(SwigcptrShape) float64 - -func (arg1 SwigcptrShape) GetY() float64 { - return _swig_wrap_Shape_y_get(arg1) -} - -func _swig_wrap_Shape_move(SwigcptrShape, float64, float64) - -func (arg1 SwigcptrShape) Move(arg2 float64, arg3 float64) { - _swig_wrap_Shape_move(arg1, arg2, arg3) -} - -func _swig_wrap_Shape_area(SwigcptrShape) float64 - -func (arg1 SwigcptrShape) Area() float64 { - return _swig_wrap_Shape_area(arg1) -} - -func _swig_wrap_Shape_perimeter(SwigcptrShape) float64 - -func (arg1 SwigcptrShape) Perimeter() float64 { - return _swig_wrap_Shape_perimeter(arg1) -} - -func _swig_wrap_Shape_nshapes_set(int) - -func SetShapeNshapes(arg1 int) { - _swig_wrap_Shape_nshapes_set(arg1) -} - -func GetShapeNshapes() int -type Shape interface { - Swigcptr() uintptr - SwigIsShape() - SetX(arg2 float64) - GetX() float64 - SetY(arg2 float64) - GetY() float64 - Move(arg2 float64, arg3 float64) - Area() float64 - Perimeter() float64 -} - -type SwigcptrCircle uintptr - -func (p SwigcptrCircle) Swigcptr() uintptr { - return (uintptr)(p) -} - -func (p SwigcptrCircle) SwigIsCircle() { -} - -func _swig_wrap_new_Circle(float64) SwigcptrCircle - -func NewCircle(arg1 float64) Circle { - return _swig_wrap_new_Circle(arg1) -} - -func _swig_wrap_Circle_area(SwigcptrCircle) float64 - -func (arg1 SwigcptrCircle) Area() float64 { - return _swig_wrap_Circle_area(arg1) -} - -func _swig_wrap_Circle_perimeter(SwigcptrCircle) float64 - -func (arg1 SwigcptrCircle) Perimeter() float64 { - return _swig_wrap_Circle_perimeter(arg1) -} - -func _swig_wrap_delete_Circle(uintptr) - -func DeleteCircle(arg1 Circle) { - _swig_wrap_delete_Circle(arg1.Swigcptr()) -} - -func _swig_wrap_SetCircle_X(SwigcptrCircle, float64) - -func (_swig_base SwigcptrCircle) SetX(arg1 float64) { - _swig_wrap_SetCircle_X(_swig_base, arg1) -} - -func _swig_wrap_GetCircle_X(SwigcptrCircle) float64 - -func (_swig_base SwigcptrCircle) GetX() float64 { - return _swig_wrap_GetCircle_X(_swig_base) -} - -func _swig_wrap_SetCircle_Y(SwigcptrCircle, float64) - -func (_swig_base SwigcptrCircle) SetY(arg1 float64) { - _swig_wrap_SetCircle_Y(_swig_base, arg1) -} - -func _swig_wrap_GetCircle_Y(SwigcptrCircle) float64 - -func (_swig_base SwigcptrCircle) GetY() float64 { - return _swig_wrap_GetCircle_Y(_swig_base) -} - -func _swig_wrap_Circle_move(SwigcptrCircle, float64, float64) - -func (_swig_base SwigcptrCircle) Move(arg1 float64, arg2 float64) { - _swig_wrap_Circle_move(_swig_base, arg1, arg2) -} - -func (p SwigcptrCircle) SwigIsShape() { -} - -func (p SwigcptrCircle) SwigGetShape() Shape { - return SwigcptrShape(p.Swigcptr()) -} - -type Circle interface { - Swigcptr() uintptr - SwigIsCircle() - Area() float64 - Perimeter() float64 - SetX(arg1 float64) - GetX() float64 - SetY(arg1 float64) - GetY() float64 - Move(arg1 float64, arg2 float64) - SwigIsShape() - SwigGetShape() Shape -} - -type SwigcptrSquare uintptr - -func (p SwigcptrSquare) Swigcptr() uintptr { - return (uintptr)(p) -} - -func (p SwigcptrSquare) SwigIsSquare() { -} - -func _swig_wrap_new_Square(float64) SwigcptrSquare - -func NewSquare(arg1 float64) Square { - return _swig_wrap_new_Square(arg1) -} - -func _swig_wrap_Square_area(SwigcptrSquare) float64 - -func (arg1 SwigcptrSquare) Area() float64 { - return _swig_wrap_Square_area(arg1) -} - -func _swig_wrap_Square_perimeter(SwigcptrSquare) float64 - -func (arg1 SwigcptrSquare) Perimeter() float64 { - return _swig_wrap_Square_perimeter(arg1) -} - -func _swig_wrap_delete_Square(uintptr) - -func DeleteSquare(arg1 Square) { - _swig_wrap_delete_Square(arg1.Swigcptr()) -} - -func _swig_wrap_SetSquare_X(SwigcptrSquare, float64) - -func (_swig_base SwigcptrSquare) SetX(arg1 float64) { - _swig_wrap_SetSquare_X(_swig_base, arg1) -} - -func _swig_wrap_GetSquare_X(SwigcptrSquare) float64 - -func (_swig_base SwigcptrSquare) GetX() float64 { - return _swig_wrap_GetSquare_X(_swig_base) -} - -func _swig_wrap_SetSquare_Y(SwigcptrSquare, float64) - -func (_swig_base SwigcptrSquare) SetY(arg1 float64) { - _swig_wrap_SetSquare_Y(_swig_base, arg1) -} - -func _swig_wrap_GetSquare_Y(SwigcptrSquare) float64 - -func (_swig_base SwigcptrSquare) GetY() float64 { - return _swig_wrap_GetSquare_Y(_swig_base) -} - -func _swig_wrap_Square_move(SwigcptrSquare, float64, float64) - -func (_swig_base SwigcptrSquare) Move(arg1 float64, arg2 float64) { - _swig_wrap_Square_move(_swig_base, arg1, arg2) -} - -func (p SwigcptrSquare) SwigIsShape() { -} - -func (p SwigcptrSquare) SwigGetShape() Shape { - return SwigcptrShape(p.Swigcptr()) -} - -type Square interface { - Swigcptr() uintptr - SwigIsSquare() - Area() float64 - Perimeter() float64 - SetX(arg1 float64) - GetX() float64 - SetY(arg1 float64) - GetY() float64 - Move(arg1 float64, arg2 float64) - SwigIsShape() - SwigGetShape() Shape -} - - -type SwigcptrVoid uintptr -type Void interface { - Swigcptr() uintptr; -} -func (p SwigcptrVoid) Swigcptr() uintptr { - return uintptr(p) -} - diff --git a/Examples/go/constants/example.go b/Examples/go/constants/example.go deleted file mode 100644 index 0e5e66418..000000000 --- a/Examples/go/constants/example.go +++ /dev/null @@ -1,44 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.1 - * - * This file is not intended to be easily readable and contains a number of - * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. - * ----------------------------------------------------------------------------- */ - -package example - - -type _swig_fnptr *byte -type _swig_memberptr *byte - - -func _swig_allocatememory(int) *byte -func _swig_internal_allocate(len int) *byte { - return _swig_allocatememory(len) -} - -func _swig_allocatestring(*byte, int) string -func _swig_internal_makegostring(p *byte, l int) string { - return _swig_allocatestring(p, l) -} - -func _swig_internal_gopanic(p *byte, l int) { - panic(_swig_allocatestring(p, l)) -} - -const ICONST int = 42 -const FCONST float64 = 2.1828 -const CCONST byte = 'x' -func _swig_getCCONST2() byte -var CCONST2 byte = _swig_getCCONST2() -const SCONST string = "Hello World" -func _swig_getSCONST2() string -var SCONST2 string = _swig_getSCONST2() -func _swig_getEXPR() float64 -var EXPR float64 = _swig_getEXPR() -const Iconst int = 37 -const Fconst float64 = 3.14 - diff --git a/Examples/go/enum/example.go b/Examples/go/enum/example.go deleted file mode 100644 index 4653ab57a..000000000 --- a/Examples/go/enum/example.go +++ /dev/null @@ -1,93 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.1 - * - * This file is not intended to be easily readable and contains a number of - * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. - * ----------------------------------------------------------------------------- */ - -package example - - -type _swig_fnptr *byte -type _swig_memberptr *byte - - -func _swig_allocatememory(int) *byte -func _swig_internal_allocate(len int) *byte { - return _swig_allocatememory(len) -} - -func _swig_allocatestring(*byte, int) string -func _swig_internal_makegostring(p *byte, l int) string { - return _swig_allocatestring(p, l) -} - -func _swig_internal_gopanic(p *byte, l int) { - panic(_swig_allocatestring(p, l)) -} - -type Color int -func _swig_getRED() Color -var RED Color = _swig_getRED() -func _swig_getBLUE() Color -var BLUE Color = _swig_getBLUE() -func _swig_getGREEN() Color -var GREEN Color = _swig_getGREEN() -type SwigcptrFoo uintptr - -func (p SwigcptrFoo) Swigcptr() uintptr { - return (uintptr)(p) -} - -func (p SwigcptrFoo) SwigIsFoo() { -} - -func _swig_wrap_new_Foo() SwigcptrFoo - -func NewFoo() Foo { - return _swig_wrap_new_Foo() -} - -type FooSpeed int -func _swig_getFoo_IMPULSE_Foo() FooSpeed -var FooIMPULSE FooSpeed = _swig_getFoo_IMPULSE_Foo() -func _swig_getFoo_WARP_Foo() FooSpeed -var FooWARP FooSpeed = _swig_getFoo_WARP_Foo() -func _swig_getFoo_LUDICROUS_Foo() FooSpeed -var FooLUDICROUS FooSpeed = _swig_getFoo_LUDICROUS_Foo() -func _swig_wrap_Foo_enum_test(SwigcptrFoo, FooSpeed) - -func (arg1 SwigcptrFoo) Enum_test(arg2 FooSpeed) { - _swig_wrap_Foo_enum_test(arg1, arg2) -} - -func _swig_wrap_delete_Foo(uintptr) - -func DeleteFoo(arg1 Foo) { - _swig_wrap_delete_Foo(arg1.Swigcptr()) -} - -type Foo interface { - Swigcptr() uintptr - SwigIsFoo() - Enum_test(arg2 FooSpeed) -} - -func _swig_wrap_enum_test(Color, FooSpeed) - -func Enum_test(arg1 Color, arg2 FooSpeed) { - _swig_wrap_enum_test(arg1, arg2) -} - - -type SwigcptrVoid uintptr -type Void interface { - Swigcptr() uintptr; -} -func (p SwigcptrVoid) Swigcptr() uintptr { - return uintptr(p) -} - diff --git a/Examples/go/extend/example.go b/Examples/go/extend/example.go deleted file mode 100644 index 08f21e6ab..000000000 --- a/Examples/go/extend/example.go +++ /dev/null @@ -1,397 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.1 - * - * This file is not intended to be easily readable and contains a number of - * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. - * ----------------------------------------------------------------------------- */ - -package example - - -type _swig_fnptr *byte -type _swig_memberptr *byte - - -func _swig_allocatememory(int) *byte -func _swig_internal_allocate(len int) *byte { - return _swig_allocatememory(len) -} - -func _swig_allocatestring(*byte, int) string -func _swig_internal_makegostring(p *byte, l int) string { - return _swig_allocatestring(p, l) -} - -func _swig_internal_gopanic(p *byte, l int) { - panic(_swig_allocatestring(p, l)) -} - -type _swig_DirectorEmployee struct { - SwigcptrEmployee - v interface{} -} - -func (p *_swig_DirectorEmployee) Swigcptr() uintptr { - return p.SwigcptrEmployee.Swigcptr() -} - -func (p *_swig_DirectorEmployee) SwigIsEmployee() { -} - -func (p *_swig_DirectorEmployee) DirectorInterface() interface{} { - return p.v -} - -func _swig_NewDirectorEmployeeEmployee(*_swig_DirectorEmployee, string) SwigcptrEmployee - -func NewDirectorEmployee(v interface{}, arg1 string) Employee { - p := &_swig_DirectorEmployee{0, v} - p.SwigcptrEmployee = _swig_NewDirectorEmployeeEmployee(p, arg1) - return p -} - -type _swig_DirectorInterfaceEmployeeGetTitle interface { - GetTitle() string -} - -func _swig_wrap__swig_DirectorEmployee_upcall_GetTitle(SwigcptrEmployee) string -func (swig_p *_swig_DirectorEmployee) GetTitle() string { - if swig_g, swig_ok := swig_p.v.(_swig_DirectorInterfaceEmployeeGetTitle); swig_ok { - return swig_g.GetTitle() - } - return _swig_wrap__swig_DirectorEmployee_upcall_GetTitle(swig_p.SwigcptrEmployee) -} - -func DirectorEmployeeGetTitle(p Employee) string { - return _swig_wrap__swig_DirectorEmployee_upcall_GetTitle(p.(*_swig_DirectorEmployee).SwigcptrEmployee) -} - -func Swig_DirectorEmployee_callback_getTitle(p *_swig_DirectorEmployee) (swig_result string) { - return p.GetTitle() -} - -type _swig_DirectorInterfaceEmployeeGetName interface { - GetName() string -} - -func _swig_wrap__swig_DirectorEmployee_upcall_GetName(SwigcptrEmployee) string -func (swig_p *_swig_DirectorEmployee) GetName() string { - if swig_g, swig_ok := swig_p.v.(_swig_DirectorInterfaceEmployeeGetName); swig_ok { - return swig_g.GetName() - } - return _swig_wrap__swig_DirectorEmployee_upcall_GetName(swig_p.SwigcptrEmployee) -} - -func DirectorEmployeeGetName(p Employee) string { - return _swig_wrap__swig_DirectorEmployee_upcall_GetName(p.(*_swig_DirectorEmployee).SwigcptrEmployee) -} - -func Swig_DirectorEmployee_callback_getName(p *_swig_DirectorEmployee) (swig_result string) { - return p.GetName() -} - -type _swig_DirectorInterfaceEmployeeGetPosition interface { - GetPosition() string -} - -func _swig_wrap__swig_DirectorEmployee_upcall_GetPosition(SwigcptrEmployee) string -func (swig_p *_swig_DirectorEmployee) GetPosition() string { - if swig_g, swig_ok := swig_p.v.(_swig_DirectorInterfaceEmployeeGetPosition); swig_ok { - return swig_g.GetPosition() - } - return _swig_wrap__swig_DirectorEmployee_upcall_GetPosition(swig_p.SwigcptrEmployee) -} - -func DirectorEmployeeGetPosition(p Employee) string { - return _swig_wrap__swig_DirectorEmployee_upcall_GetPosition(p.(*_swig_DirectorEmployee).SwigcptrEmployee) -} - -func Swig_DirectorEmployee_callback_getPosition(p *_swig_DirectorEmployee) (swig_result string) { - return p.GetPosition() -} - -func _swig_wrap_DeleteDirectorEmployee(uintptr) - -func DeleteDirectorEmployee(arg1 Employee) { - _swig_wrap_DeleteDirectorEmployee(arg1.Swigcptr()) -} - -func Swiggo_DeleteDirector_Employee(p *_swig_DirectorEmployee) { - p.SwigcptrEmployee = 0 -} - -type SwigcptrEmployee uintptr - -func (p SwigcptrEmployee) Swigcptr() uintptr { - return (uintptr)(p) -} - -func (p SwigcptrEmployee) SwigIsEmployee() { -} - -func (p SwigcptrEmployee) DirectorInterface() interface{} { - return nil -} - -func _swig_wrap_new_Employee(string) SwigcptrEmployee - -func NewEmployee(arg1 string) Employee { - return _swig_wrap_new_Employee(arg1) -} - -func _swig_wrap_Employee_getTitle(SwigcptrEmployee) string - -func (arg1 SwigcptrEmployee) GetTitle() string { - return _swig_wrap_Employee_getTitle(arg1) -} - -func _swig_wrap_Employee_getName(SwigcptrEmployee) string - -func (arg1 SwigcptrEmployee) GetName() string { - return _swig_wrap_Employee_getName(arg1) -} - -func _swig_wrap_Employee_getPosition(SwigcptrEmployee) string - -func (arg1 SwigcptrEmployee) GetPosition() string { - return _swig_wrap_Employee_getPosition(arg1) -} - -func _swig_wrap_delete_Employee(uintptr) - -func DeleteEmployee(arg1 Employee) { - _swig_wrap_delete_Employee(arg1.Swigcptr()) -} - -type Employee interface { - Swigcptr() uintptr - SwigIsEmployee() - DirectorInterface() interface{} - GetTitle() string - GetName() string - GetPosition() string -} - -type _swig_DirectorManager struct { - SwigcptrManager - v interface{} -} - -func (p *_swig_DirectorManager) Swigcptr() uintptr { - return p.SwigcptrManager.Swigcptr() -} - -func (p *_swig_DirectorManager) SwigIsManager() { -} - -func (p *_swig_DirectorManager) DirectorInterface() interface{} { - return p.v -} - -func _swig_NewDirectorManagerManager(*_swig_DirectorManager, string) SwigcptrManager - -func NewDirectorManager(v interface{}, arg1 string) Manager { - p := &_swig_DirectorManager{0, v} - p.SwigcptrManager = _swig_NewDirectorManagerManager(p, arg1) - return p -} - -type _swig_DirectorInterfaceManagerGetTitle interface { - GetTitle() string -} - -func _swig_wrap__swig_DirectorManager_upcall_GetTitle(SwigcptrManager) string -func (swig_p *_swig_DirectorManager) GetTitle() string { - if swig_g, swig_ok := swig_p.v.(_swig_DirectorInterfaceManagerGetTitle); swig_ok { - return swig_g.GetTitle() - } - return _swig_wrap__swig_DirectorManager_upcall_GetTitle(swig_p.SwigcptrManager) -} - -func DirectorManagerGetTitle(p Manager) string { - return _swig_wrap__swig_DirectorManager_upcall_GetTitle(p.(*_swig_DirectorManager).SwigcptrManager) -} - -func Swig_DirectorManager_callback_getTitle(p *_swig_DirectorManager) (swig_result string) { - return p.GetTitle() -} - -type _swig_DirectorInterfaceManagerGetName interface { - GetName() string -} - -func _swig_wrap__swig_DirectorManager_upcall_GetName(SwigcptrManager) string -func (swig_p *_swig_DirectorManager) GetName() string { - if swig_g, swig_ok := swig_p.v.(_swig_DirectorInterfaceManagerGetName); swig_ok { - return swig_g.GetName() - } - return _swig_wrap__swig_DirectorManager_upcall_GetName(swig_p.SwigcptrManager) -} - -func DirectorManagerGetName(p Manager) string { - return _swig_wrap__swig_DirectorManager_upcall_GetName(p.(*_swig_DirectorManager).SwigcptrManager) -} - -func Swig_DirectorManager_callback_getName(p *_swig_DirectorManager) (swig_result string) { - return p.GetName() -} - -type _swig_DirectorInterfaceManagerGetPosition interface { - GetPosition() string -} - -func _swig_wrap__swig_DirectorManager_upcall_GetPosition(SwigcptrManager) string -func (swig_p *_swig_DirectorManager) GetPosition() string { - if swig_g, swig_ok := swig_p.v.(_swig_DirectorInterfaceManagerGetPosition); swig_ok { - return swig_g.GetPosition() - } - return _swig_wrap__swig_DirectorManager_upcall_GetPosition(swig_p.SwigcptrManager) -} - -func DirectorManagerGetPosition(p Manager) string { - return _swig_wrap__swig_DirectorManager_upcall_GetPosition(p.(*_swig_DirectorManager).SwigcptrManager) -} - -func Swig_DirectorManager_callback_getPosition(p *_swig_DirectorManager) (swig_result string) { - return p.GetPosition() -} - -func _swig_wrap_DeleteDirectorManager(uintptr) - -func DeleteDirectorManager(arg1 Manager) { - _swig_wrap_DeleteDirectorManager(arg1.Swigcptr()) -} - -func Swiggo_DeleteDirector_Manager(p *_swig_DirectorManager) { - p.SwigcptrManager = 0 -} - -type SwigcptrManager uintptr - -func (p SwigcptrManager) Swigcptr() uintptr { - return (uintptr)(p) -} - -func (p SwigcptrManager) SwigIsManager() { -} - -func (p SwigcptrManager) DirectorInterface() interface{} { - return nil -} - -func _swig_wrap_new_Manager(string) SwigcptrManager - -func NewManager(arg1 string) Manager { - return _swig_wrap_new_Manager(arg1) -} - -func _swig_wrap_Manager_getPosition(SwigcptrManager) string - -func (arg1 SwigcptrManager) GetPosition() string { - return _swig_wrap_Manager_getPosition(arg1) -} - -func _swig_wrap_delete_Manager(uintptr) - -func DeleteManager(arg1 Manager) { - _swig_wrap_delete_Manager(arg1.Swigcptr()) -} - -func _swig_wrap_Manager_getTitle(SwigcptrManager) string - -func (_swig_base SwigcptrManager) GetTitle() string { - return _swig_wrap_Manager_getTitle(_swig_base) -} - -func _swig_wrap_Manager_getName(SwigcptrManager) string - -func (_swig_base SwigcptrManager) GetName() string { - return _swig_wrap_Manager_getName(_swig_base) -} - -func (p SwigcptrManager) SwigIsEmployee() { -} - -func (p SwigcptrManager) SwigGetEmployee() Employee { - return SwigcptrEmployee(p.Swigcptr()) -} - -type Manager interface { - Swigcptr() uintptr - SwigIsManager() - DirectorInterface() interface{} - GetPosition() string - GetTitle() string - GetName() string - SwigIsEmployee() - SwigGetEmployee() Employee -} - -type SwigcptrEmployeeList uintptr - -func (p SwigcptrEmployeeList) Swigcptr() uintptr { - return (uintptr)(p) -} - -func (p SwigcptrEmployeeList) SwigIsEmployeeList() { -} - -func _swig_wrap_new_EmployeeList() SwigcptrEmployeeList - -func NewEmployeeList() EmployeeList { - return _swig_wrap_new_EmployeeList() -} - -func _swig_wrap_EmployeeList_addEmployee(SwigcptrEmployeeList, uintptr) - -func (arg1 SwigcptrEmployeeList) AddEmployee(arg2 Employee) { - _swig_wrap_EmployeeList_addEmployee(arg1, arg2.Swigcptr()) -} - -func _swig_wrap_EmployeeList_get_item(SwigcptrEmployeeList, int) SwigcptrEmployee - -func (arg1 SwigcptrEmployeeList) Get_item(arg2 int) Employee { - return _swig_wrap_EmployeeList_get_item(arg1, arg2) -} - -func _swig_wrap_delete_EmployeeList(uintptr) - -func DeleteEmployeeList(arg1 EmployeeList) { - _swig_wrap_delete_EmployeeList(arg1.Swigcptr()) -} - -type EmployeeList interface { - Swigcptr() uintptr - SwigIsEmployeeList() - AddEmployee(arg2 Employee) - Get_item(arg2 int) Employee -} - - -type SwigcptrSwigDirector_Manager uintptr -type SwigDirector_Manager interface { - Swigcptr() uintptr; -} -func (p SwigcptrSwigDirector_Manager) Swigcptr() uintptr { - return uintptr(p) -} - -type SwigcptrSwigDirector_Employee uintptr -type SwigDirector_Employee interface { - Swigcptr() uintptr; -} -func (p SwigcptrSwigDirector_Employee) Swigcptr() uintptr { - return uintptr(p) -} - -type SwigcptrVoid uintptr -type Void interface { - Swigcptr() uintptr; -} -func (p SwigcptrVoid) Swigcptr() uintptr { - return uintptr(p) -} - diff --git a/Examples/go/funcptr/example.go b/Examples/go/funcptr/example.go deleted file mode 100644 index b059bae8d..000000000 --- a/Examples/go/funcptr/example.go +++ /dev/null @@ -1,54 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.1 - * - * This file is not intended to be easily readable and contains a number of - * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. - * ----------------------------------------------------------------------------- */ - -package example - - -type _swig_fnptr *byte -type _swig_memberptr *byte - - -func _swig_allocatememory(int) *byte -func _swig_internal_allocate(len int) *byte { - return _swig_allocatememory(len) -} - -func _swig_allocatestring(*byte, int) string -func _swig_internal_makegostring(p *byte, l int) string { - return _swig_allocatestring(p, l) -} - -func _swig_internal_gopanic(p *byte, l int) { - panic(_swig_allocatestring(p, l)) -} - -func Do_op(int, int, _swig_fnptr) int -func _swig_getADD() _swig_fnptr -var ADD _swig_fnptr = _swig_getADD() -func _swig_getSUB() _swig_fnptr -var SUB _swig_fnptr = _swig_getSUB() -func _swig_getMUL() _swig_fnptr -var MUL _swig_fnptr = _swig_getMUL() -func _swig_wrap_funcvar_set(_swig_fnptr) - -func SetFuncvar(arg1 _swig_fnptr) { - _swig_wrap_funcvar_set(arg1) -} - -func GetFuncvar() _swig_fnptr - -type SwigcptrVoid uintptr -type Void interface { - Swigcptr() uintptr; -} -func (p SwigcptrVoid) Swigcptr() uintptr { - return uintptr(p) -} - diff --git a/Examples/go/multimap/example.go b/Examples/go/multimap/example.go deleted file mode 100644 index 59ed9eaad..000000000 --- a/Examples/go/multimap/example.go +++ /dev/null @@ -1,55 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.1 - * - * This file is not intended to be easily readable and contains a number of - * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. - * ----------------------------------------------------------------------------- */ - -package example - - -type _swig_fnptr *byte -type _swig_memberptr *byte - - -func _swig_allocatememory(int) *byte -func _swig_internal_allocate(len int) *byte { - return _swig_allocatememory(len) -} - -func _swig_allocatestring(*byte, int) string -func _swig_internal_makegostring(p *byte, l int) string { - return _swig_allocatestring(p, l) -} - -func _swig_internal_gopanic(p *byte, l int) { - panic(_swig_allocatestring(p, l)) -} - -func Gcd(int, int) int -func Gcdmain([]string) int -func Count(string, byte) int -func _swig_wrap_capitalize([]string) - -func Capitalize(arg1 []string) { - _swig_wrap_capitalize(arg1) -} - -func _swig_wrap_circle(float64, float64) - -func Circle(arg1 float64, arg2 float64) { - _swig_wrap_circle(arg1, arg2) -} - - -type SwigcptrVoid uintptr -type Void interface { - Swigcptr() uintptr; -} -func (p SwigcptrVoid) Swigcptr() uintptr { - return uintptr(p) -} - diff --git a/Examples/go/pointer/example.go b/Examples/go/pointer/example.go deleted file mode 100644 index 567c41c32..000000000 --- a/Examples/go/pointer/example.go +++ /dev/null @@ -1,68 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.1 - * - * This file is not intended to be easily readable and contains a number of - * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. - * ----------------------------------------------------------------------------- */ - -package example - - -type _swig_fnptr *byte -type _swig_memberptr *byte - - -func _swig_allocatememory(int) *byte -func _swig_internal_allocate(len int) *byte { - return _swig_allocatememory(len) -} - -func _swig_allocatestring(*byte, int) string -func _swig_internal_makegostring(p *byte, l int) string { - return _swig_allocatestring(p, l) -} - -func _swig_internal_gopanic(p *byte, l int) { - panic(_swig_allocatestring(p, l)) -} - -func _swig_wrap_add(*int, *int, *int) - -func Add(arg1 *int, arg2 *int, arg3 *int) { - _swig_wrap_add(arg1, arg2, arg3) -} - -func New_intp() *int -func Copy_intp(int) *int -func _swig_wrap_delete_intp(*int) - -func Delete_intp(arg1 *int) { - _swig_wrap_delete_intp(arg1) -} - -func _swig_wrap_intp_assign(*int, int) - -func Intp_assign(arg1 *int, arg2 int) { - _swig_wrap_intp_assign(arg1, arg2) -} - -func Intp_value(*int) int -func _swig_wrap_sub(int, int, []int) - -func Sub(arg1 int, arg2 int, arg3 []int) { - _swig_wrap_sub(arg1, arg2, arg3) -} - -func Divide(int, int, []int) int - -type SwigcptrVoid uintptr -type Void interface { - Swigcptr() uintptr; -} -func (p SwigcptrVoid) Swigcptr() uintptr { - return uintptr(p) -} - diff --git a/Examples/go/reference/example.go b/Examples/go/reference/example.go deleted file mode 100644 index fb98f8a18..000000000 --- a/Examples/go/reference/example.go +++ /dev/null @@ -1,126 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.1 - * - * This file is not intended to be easily readable and contains a number of - * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. - * ----------------------------------------------------------------------------- */ - -package example - - -type _swig_fnptr *byte -type _swig_memberptr *byte - - -func _swig_allocatememory(int) *byte -func _swig_internal_allocate(len int) *byte { - return _swig_allocatememory(len) -} - -func _swig_allocatestring(*byte, int) string -func _swig_internal_makegostring(p *byte, l int) string { - return _swig_allocatestring(p, l) -} - -func _swig_internal_gopanic(p *byte, l int) { - panic(_swig_allocatestring(p, l)) -} - -type SwigcptrVector uintptr - -func (p SwigcptrVector) Swigcptr() uintptr { - return (uintptr)(p) -} - -func (p SwigcptrVector) SwigIsVector() { -} - -func _swig_wrap_new_Vector(float64, float64, float64) SwigcptrVector - -func NewVector(arg1 float64, arg2 float64, arg3 float64) Vector { - return _swig_wrap_new_Vector(arg1, arg2, arg3) -} - -func _swig_wrap_delete_Vector(uintptr) - -func DeleteVector(arg1 Vector) { - _swig_wrap_delete_Vector(arg1.Swigcptr()) -} - -func _swig_wrap_Vector_print(SwigcptrVector) string - -func (arg1 SwigcptrVector) Print() string { - return _swig_wrap_Vector_print(arg1) -} - -type Vector interface { - Swigcptr() uintptr - SwigIsVector() - Print() string -} - -func _swig_wrap_addv(uintptr, uintptr) SwigcptrVector - -func Addv(arg1 Vector, arg2 Vector) Vector { - return _swig_wrap_addv(arg1.Swigcptr(), arg2.Swigcptr()) -} - -type SwigcptrVectorArray uintptr - -func (p SwigcptrVectorArray) Swigcptr() uintptr { - return (uintptr)(p) -} - -func (p SwigcptrVectorArray) SwigIsVectorArray() { -} - -func _swig_wrap_new_VectorArray(int) SwigcptrVectorArray - -func NewVectorArray(arg1 int) VectorArray { - return _swig_wrap_new_VectorArray(arg1) -} - -func _swig_wrap_delete_VectorArray(uintptr) - -func DeleteVectorArray(arg1 VectorArray) { - _swig_wrap_delete_VectorArray(arg1.Swigcptr()) -} - -func _swig_wrap_VectorArray_size(SwigcptrVectorArray) int - -func (arg1 SwigcptrVectorArray) Size() int { - return _swig_wrap_VectorArray_size(arg1) -} - -func _swig_wrap_VectorArray_get(SwigcptrVectorArray, int) SwigcptrVector - -func (arg1 SwigcptrVectorArray) Get(arg2 int) Vector { - return _swig_wrap_VectorArray_get(arg1, arg2) -} - -func _swig_wrap_VectorArray_set(SwigcptrVectorArray, int, uintptr) - -func (arg1 SwigcptrVectorArray) Set(arg2 int, arg3 Vector) { - _swig_wrap_VectorArray_set(arg1, arg2, arg3.Swigcptr()) -} - -type VectorArray interface { - Swigcptr() uintptr - SwigIsVectorArray() - Size() int - Get(arg2 int) Vector - Set(arg2 int, arg3 Vector) -} - - -type SwigcptrVoid uintptr -type Void interface { - Swigcptr() uintptr; -} -func (p SwigcptrVoid) Swigcptr() uintptr { - return uintptr(p) -} - diff --git a/Examples/go/simple/example.go b/Examples/go/simple/example.go deleted file mode 100644 index df0e70564..000000000 --- a/Examples/go/simple/example.go +++ /dev/null @@ -1,48 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.1 - * - * This file is not intended to be easily readable and contains a number of - * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. - * ----------------------------------------------------------------------------- */ - -package example - - -type _swig_fnptr *byte -type _swig_memberptr *byte - - -func _swig_allocatememory(int) *byte -func _swig_internal_allocate(len int) *byte { - return _swig_allocatememory(len) -} - -func _swig_allocatestring(*byte, int) string -func _swig_internal_makegostring(p *byte, l int) string { - return _swig_allocatestring(p, l) -} - -func _swig_internal_gopanic(p *byte, l int) { - panic(_swig_allocatestring(p, l)) -} - -func Gcd(int, int) int -func _swig_wrap_Foo_set(float64) - -func SetFoo(arg1 float64) { - _swig_wrap_Foo_set(arg1) -} - -func GetFoo() float64 - -type SwigcptrVoid uintptr -type Void interface { - Swigcptr() uintptr; -} -func (p SwigcptrVoid) Swigcptr() uintptr { - return uintptr(p) -} - diff --git a/Examples/go/template/example.go b/Examples/go/template/example.go deleted file mode 100644 index 671b5c2ba..000000000 --- a/Examples/go/template/example.go +++ /dev/null @@ -1,150 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.1 - * - * This file is not intended to be easily readable and contains a number of - * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. - * ----------------------------------------------------------------------------- */ - -package example - - -type _swig_fnptr *byte -type _swig_memberptr *byte - - -func _swig_allocatememory(int) *byte -func _swig_internal_allocate(len int) *byte { - return _swig_allocatememory(len) -} - -func _swig_allocatestring(*byte, int) string -func _swig_internal_makegostring(p *byte, l int) string { - return _swig_allocatestring(p, l) -} - -func _swig_internal_gopanic(p *byte, l int) { - panic(_swig_allocatestring(p, l)) -} - -func Maxint(int, int) int -func Maxdouble(float64, float64) float64 -type SwigcptrVecint uintptr - -func (p SwigcptrVecint) Swigcptr() uintptr { - return (uintptr)(p) -} - -func (p SwigcptrVecint) SwigIsVecint() { -} - -func _swig_wrap_new_vecint(int) SwigcptrVecint - -func NewVecint(arg1 int) Vecint { - return _swig_wrap_new_vecint(arg1) -} - -func _swig_wrap_vecint_get(SwigcptrVecint, int) *int - -func (arg1 SwigcptrVecint) Get(arg2 int) *int { - return _swig_wrap_vecint_get(arg1, arg2) -} - -func _swig_wrap_vecint_set(SwigcptrVecint, int, *int) - -func (arg1 SwigcptrVecint) Set(arg2 int, arg3 *int) { - _swig_wrap_vecint_set(arg1, arg2, arg3) -} - -func _swig_wrap_vecint_getitem(SwigcptrVecint, int) int - -func (arg1 SwigcptrVecint) Getitem(arg2 int) int { - return _swig_wrap_vecint_getitem(arg1, arg2) -} - -func _swig_wrap_vecint_setitem(SwigcptrVecint, int, int) - -func (arg1 SwigcptrVecint) Setitem(arg2 int, arg3 int) { - _swig_wrap_vecint_setitem(arg1, arg2, arg3) -} - -func _swig_wrap_delete_vecint(uintptr) - -func DeleteVecint(arg1 Vecint) { - _swig_wrap_delete_vecint(arg1.Swigcptr()) -} - -type Vecint interface { - Swigcptr() uintptr - SwigIsVecint() - Get(arg2 int) *int - Set(arg2 int, arg3 *int) - Getitem(arg2 int) int - Setitem(arg2 int, arg3 int) -} - -type SwigcptrVecdouble uintptr - -func (p SwigcptrVecdouble) Swigcptr() uintptr { - return (uintptr)(p) -} - -func (p SwigcptrVecdouble) SwigIsVecdouble() { -} - -func _swig_wrap_new_vecdouble(int) SwigcptrVecdouble - -func NewVecdouble(arg1 int) Vecdouble { - return _swig_wrap_new_vecdouble(arg1) -} - -func _swig_wrap_vecdouble_get(SwigcptrVecdouble, int) *float64 - -func (arg1 SwigcptrVecdouble) Get(arg2 int) *float64 { - return _swig_wrap_vecdouble_get(arg1, arg2) -} - -func _swig_wrap_vecdouble_set(SwigcptrVecdouble, int, *float64) - -func (arg1 SwigcptrVecdouble) Set(arg2 int, arg3 *float64) { - _swig_wrap_vecdouble_set(arg1, arg2, arg3) -} - -func _swig_wrap_vecdouble_getitem(SwigcptrVecdouble, int) float64 - -func (arg1 SwigcptrVecdouble) Getitem(arg2 int) float64 { - return _swig_wrap_vecdouble_getitem(arg1, arg2) -} - -func _swig_wrap_vecdouble_setitem(SwigcptrVecdouble, int, float64) - -func (arg1 SwigcptrVecdouble) Setitem(arg2 int, arg3 float64) { - _swig_wrap_vecdouble_setitem(arg1, arg2, arg3) -} - -func _swig_wrap_delete_vecdouble(uintptr) - -func DeleteVecdouble(arg1 Vecdouble) { - _swig_wrap_delete_vecdouble(arg1.Swigcptr()) -} - -type Vecdouble interface { - Swigcptr() uintptr - SwigIsVecdouble() - Get(arg2 int) *float64 - Set(arg2 int, arg3 *float64) - Getitem(arg2 int) float64 - Setitem(arg2 int, arg3 float64) -} - - -type SwigcptrVoid uintptr -type Void interface { - Swigcptr() uintptr; -} -func (p SwigcptrVoid) Swigcptr() uintptr { - return uintptr(p) -} - diff --git a/Examples/go/variables/example.go b/Examples/go/variables/example.go deleted file mode 100644 index f4f299b73..000000000 --- a/Examples/go/variables/example.go +++ /dev/null @@ -1,198 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.1 - * - * This file is not intended to be easily readable and contains a number of - * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. - * ----------------------------------------------------------------------------- */ - -package example - - -type _swig_fnptr *byte -type _swig_memberptr *byte - - -func _swig_allocatememory(int) *byte -func _swig_internal_allocate(len int) *byte { - return _swig_allocatememory(len) -} - -func _swig_allocatestring(*byte, int) string -func _swig_internal_makegostring(p *byte, l int) string { - return _swig_allocatestring(p, l) -} - -func _swig_internal_gopanic(p *byte, l int) { - panic(_swig_allocatestring(p, l)) -} - -func _swig_wrap_ivar_set(int) - -func SetIvar(arg1 int) { - _swig_wrap_ivar_set(arg1) -} - -func GetIvar() int -func _swig_wrap_svar_set(int16) - -func SetSvar(arg1 int16) { - _swig_wrap_svar_set(arg1) -} - -func GetSvar() int16 -func _swig_wrap_lvar_set(int32) - -func SetLvar(arg1 int32) { - _swig_wrap_lvar_set(arg1) -} - -func GetLvar() int32 -func _swig_wrap_uivar_set(uint) - -func SetUivar(arg1 uint) { - _swig_wrap_uivar_set(arg1) -} - -func GetUivar() uint -func _swig_wrap_usvar_set(uint16) - -func SetUsvar(arg1 uint16) { - _swig_wrap_usvar_set(arg1) -} - -func GetUsvar() uint16 -func _swig_wrap_ulvar_set(uint32) - -func SetUlvar(arg1 uint32) { - _swig_wrap_ulvar_set(arg1) -} - -func GetUlvar() uint32 -func _swig_wrap_scvar_set(int8) - -func SetScvar(arg1 int8) { - _swig_wrap_scvar_set(arg1) -} - -func GetScvar() int8 -func _swig_wrap_ucvar_set(byte) - -func SetUcvar(arg1 byte) { - _swig_wrap_ucvar_set(arg1) -} - -func GetUcvar() byte -func _swig_wrap_cvar_set(byte) - -func SetCvar(arg1 byte) { - _swig_wrap_cvar_set(arg1) -} - -func GetCvar() byte -func _swig_wrap_fvar_set(float32) - -func SetFvar(arg1 float32) { - _swig_wrap_fvar_set(arg1) -} - -func GetFvar() float32 -func _swig_wrap_dvar_set(float64) - -func SetDvar(arg1 float64) { - _swig_wrap_dvar_set(arg1) -} - -func GetDvar() float64 -func _swig_wrap_strvar_set(string) - -func SetStrvar(arg1 string) { - _swig_wrap_strvar_set(arg1) -} - -func GetStrvar() string -func GetCstrvar() string -func _swig_wrap_iptrvar_set(*int) - -func SetIptrvar(arg1 *int) { - _swig_wrap_iptrvar_set(arg1) -} - -func GetIptrvar() *int -func _swig_wrap_name_set(string) - -func SetName(arg1 string) { - _swig_wrap_name_set(arg1) -} - -func GetName() string -func _swig_wrap_ptptr_set(uintptr) - -func SetPtptr(arg1 Point) { - _swig_wrap_ptptr_set(arg1.Swigcptr()) -} - -func _swig_wrap_ptptr_get() SwigcptrPoint - -func GetPtptr() Point { - return _swig_wrap_ptptr_get() -} - -func _swig_wrap_pt_set(uintptr) - -func SetPt(arg1 Point) { - _swig_wrap_pt_set(arg1.Swigcptr()) -} - -func _swig_wrap_pt_get() SwigcptrPoint - -func GetPt() Point { - return _swig_wrap_pt_get() -} - -func GetStatus() int -func GetPath() string -func _swig_wrap_print_vars() - -func Print_vars() { - _swig_wrap_print_vars() -} - -func New_int(int) *int -func _swig_wrap_new_Point(int, int) SwigcptrPoint - -func New_Point(arg1 int, arg2 int) Point { - return _swig_wrap_new_Point(arg1, arg2) -} - -func _swig_wrap_Point_print(uintptr) string - -func Point_print(arg1 Point) string { - return _swig_wrap_Point_print(arg1.Swigcptr()) -} - -func _swig_wrap_pt_print() - -func Pt_print() { - _swig_wrap_pt_print() -} - - -type SwigcptrPoint uintptr -type Point interface { - Swigcptr() uintptr; -} -func (p SwigcptrPoint) Swigcptr() uintptr { - return uintptr(p) -} - -type SwigcptrVoid uintptr -type Void interface { - Swigcptr() uintptr; -} -func (p SwigcptrVoid) Swigcptr() uintptr { - return uintptr(p) -} - |