diff options
Diffstat (limited to 'Examples/test-suite/go/minherit.go')
-rw-r--r-- | Examples/test-suite/go/minherit.go | 612 |
1 files changed, 0 insertions, 612 deletions
diff --git a/Examples/test-suite/go/minherit.go b/Examples/test-suite/go/minherit.go deleted file mode 100644 index 7c63cc646..000000000 --- a/Examples/test-suite/go/minherit.go +++ /dev/null @@ -1,612 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 3.0.3 - * - * 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. - * ----------------------------------------------------------------------------- */ - -// source: ./../minherit.i - -package minherit - -import "unsafe" -import _ "runtime/cgo" - -var _cgo_runtime_cgocall func(unsafe.Pointer, uintptr) - - - -type _ unsafe.Pointer - - - -type _swig_fnptr *byte -type _swig_memberptr *byte - -type SwigcptrFoo uintptr - -func (p SwigcptrFoo) Swigcptr() uintptr { - return (uintptr)(p) -} - -func (p SwigcptrFoo) SwigIsFoo() { -} - -var _wrap_new_Foo unsafe.Pointer - -func _swig_wrap_new_Foo() (base SwigcptrFoo) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_new_Foo, _swig_p) - return -} - -func NewFoo() (_swig_ret Foo) { - return _swig_wrap_new_Foo() -} - -var _wrap_delete_Foo unsafe.Pointer - -func _swig_wrap_delete_Foo(base uintptr) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_delete_Foo, _swig_p) - return -} - -func DeleteFoo(arg1 Foo) { - _swig_wrap_delete_Foo(arg1.Swigcptr()) -} - -var _wrap_Foo_xget unsafe.Pointer - -func _swig_wrap_Foo_xget(base SwigcptrFoo) (_ int) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_Foo_xget, _swig_p) - return -} - -func (arg1 SwigcptrFoo) Xget() (_swig_ret int) { - return _swig_wrap_Foo_xget(arg1) -} - -type Foo interface { - Swigcptr() uintptr - SwigIsFoo() - Xget() (_swig_ret int) -} - -var _wrap_toFooPtr unsafe.Pointer - -func _swig_wrap_toFooPtr(base uintptr) (_ SwigcptrFoo) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_toFooPtr, _swig_p) - return -} - -func ToFooPtr(arg1 Foo) (_swig_ret Foo) { - return _swig_wrap_toFooPtr(arg1.Swigcptr()) -} - -type SwigcptrBar uintptr - -func (p SwigcptrBar) Swigcptr() uintptr { - return (uintptr)(p) -} - -func (p SwigcptrBar) SwigIsBar() { -} - -var _wrap_new_Bar unsafe.Pointer - -func _swig_wrap_new_Bar() (base SwigcptrBar) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_new_Bar, _swig_p) - return -} - -func NewBar() (_swig_ret Bar) { - return _swig_wrap_new_Bar() -} - -var _wrap_delete_Bar unsafe.Pointer - -func _swig_wrap_delete_Bar(base uintptr) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_delete_Bar, _swig_p) - return -} - -func DeleteBar(arg1 Bar) { - _swig_wrap_delete_Bar(arg1.Swigcptr()) -} - -var _wrap_Bar_yget unsafe.Pointer - -func _swig_wrap_Bar_yget(base SwigcptrBar) (_ int) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_Bar_yget, _swig_p) - return -} - -func (arg1 SwigcptrBar) Yget() (_swig_ret int) { - return _swig_wrap_Bar_yget(arg1) -} - -type Bar interface { - Swigcptr() uintptr - SwigIsBar() - Yget() (_swig_ret int) -} - -var _wrap_toBarPtr unsafe.Pointer - -func _swig_wrap_toBarPtr(base uintptr) (_ SwigcptrBar) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_toBarPtr, _swig_p) - return -} - -func ToBarPtr(arg1 Bar) (_swig_ret Bar) { - return _swig_wrap_toBarPtr(arg1.Swigcptr()) -} - -type SwigcptrFooBar uintptr - -func (p SwigcptrFooBar) Swigcptr() uintptr { - return (uintptr)(p) -} - -func (p SwigcptrFooBar) SwigIsFooBar() { -} - -var _wrap_new_FooBar unsafe.Pointer - -func _swig_wrap_new_FooBar() (base SwigcptrFooBar) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_new_FooBar, _swig_p) - return -} - -func NewFooBar() (_swig_ret FooBar) { - return _swig_wrap_new_FooBar() -} - -var _wrap_FooBar_zget unsafe.Pointer - -func _swig_wrap_FooBar_zget(base SwigcptrFooBar) (_ int) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_FooBar_zget, _swig_p) - return -} - -func (arg1 SwigcptrFooBar) Zget() (_swig_ret int) { - return _swig_wrap_FooBar_zget(arg1) -} - -var _wrap_delete_FooBar unsafe.Pointer - -func _swig_wrap_delete_FooBar(base uintptr) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_delete_FooBar, _swig_p) - return -} - -func DeleteFooBar(arg1 FooBar) { - _swig_wrap_delete_FooBar(arg1.Swigcptr()) -} - -var _wrap_FooBar_xget unsafe.Pointer - -func _swig_wrap_FooBar_xget(base SwigcptrFooBar) (_ int) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_FooBar_xget, _swig_p) - return -} - -func (_swig_base SwigcptrFooBar) Xget() (_swig_ret int) { - return _swig_wrap_FooBar_xget(_swig_base) -} - -var _wrap_FooBar_yget unsafe.Pointer - -func _swig_wrap_FooBar_yget(base SwigcptrFooBar) (_ int) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_FooBar_yget, _swig_p) - return -} - -func (_swig_base SwigcptrFooBar) Yget() (_swig_ret int) { - return _swig_wrap_FooBar_yget(_swig_base) -} - -func (p SwigcptrFooBar) SwigIsFoo() { -} - -func (p SwigcptrFooBar) SwigGetFoo() Foo { - return SwigcptrFoo(p.Swigcptr()) -} - -var _wrap_FooBar_SwigGetBar unsafe.Pointer - -func _swig_wrap_FooBar_SwigGetBar(base SwigcptrFooBar) (_ SwigcptrBar) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_FooBar_SwigGetBar, _swig_p) - return -} - -func (arg1 SwigcptrFooBar) SwigGetBar() (_swig_ret Bar) { - return _swig_wrap_FooBar_SwigGetBar(arg1) -} - -type FooBar interface { - Swigcptr() uintptr - SwigIsFooBar() - Zget() (_swig_ret int) - Xget() (_swig_ret int) - Yget() (_swig_ret int) - SwigIsFoo() - SwigGetFoo() Foo - SwigGetBar() (_swig_ret Bar) -} - -var _wrap_toFooBarPtr unsafe.Pointer - -func _swig_wrap_toFooBarPtr(base uintptr) (_ SwigcptrFooBar) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_toFooBarPtr, _swig_p) - return -} - -func ToFooBarPtr(arg1 FooBar) (_swig_ret FooBar) { - return _swig_wrap_toFooBarPtr(arg1.Swigcptr()) -} - -type SwigcptrSpam uintptr - -func (p SwigcptrSpam) Swigcptr() uintptr { - return (uintptr)(p) -} - -func (p SwigcptrSpam) SwigIsSpam() { -} - -var _wrap_new_Spam unsafe.Pointer - -func _swig_wrap_new_Spam() (base SwigcptrSpam) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_new_Spam, _swig_p) - return -} - -func NewSpam() (_swig_ret Spam) { - return _swig_wrap_new_Spam() -} - -var _wrap_Spam_wget unsafe.Pointer - -func _swig_wrap_Spam_wget(base SwigcptrSpam) (_ int) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_Spam_wget, _swig_p) - return -} - -func (arg1 SwigcptrSpam) Wget() (_swig_ret int) { - return _swig_wrap_Spam_wget(arg1) -} - -var _wrap_delete_Spam unsafe.Pointer - -func _swig_wrap_delete_Spam(base uintptr) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_delete_Spam, _swig_p) - return -} - -func DeleteSpam(arg1 Spam) { - _swig_wrap_delete_Spam(arg1.Swigcptr()) -} - -var _wrap_Spam_zget unsafe.Pointer - -func _swig_wrap_Spam_zget(base SwigcptrSpam) (_ int) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_Spam_zget, _swig_p) - return -} - -func (_swig_base SwigcptrSpam) Zget() (_swig_ret int) { - return _swig_wrap_Spam_zget(_swig_base) -} - -var _wrap_Spam_xget unsafe.Pointer - -func _swig_wrap_Spam_xget(base SwigcptrSpam) (_ int) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_Spam_xget, _swig_p) - return -} - -func (_swig_base SwigcptrSpam) Xget() (_swig_ret int) { - return _swig_wrap_Spam_xget(_swig_base) -} - -var _wrap_Spam_yget unsafe.Pointer - -func _swig_wrap_Spam_yget(base SwigcptrSpam) (_ int) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_Spam_yget, _swig_p) - return -} - -func (_swig_base SwigcptrSpam) Yget() (_swig_ret int) { - return _swig_wrap_Spam_yget(_swig_base) -} - -func (p SwigcptrSpam) SwigIsFooBar() { -} - -func (p SwigcptrSpam) SwigGetFooBar() FooBar { - return SwigcptrFooBar(p.Swigcptr()) -} - -func (p SwigcptrSpam) SwigIsFoo() { -} - -func (p SwigcptrSpam) SwigGetFoo() Foo { - return SwigcptrFoo(p.Swigcptr()) -} - -func (p SwigcptrSpam) SwigGetBar() Bar { - return p.SwigGetFooBar().SwigGetBar() -} - -type Spam interface { - Swigcptr() uintptr - SwigIsSpam() - Wget() (_swig_ret int) - Zget() (_swig_ret int) - Xget() (_swig_ret int) - Yget() (_swig_ret int) - SwigIsFooBar() - SwigGetFooBar() FooBar - SwigIsFoo() - SwigGetFoo() Foo - SwigGetBar() Bar -} - -var _wrap_toSpamPtr unsafe.Pointer - -func _swig_wrap_toSpamPtr(base uintptr) (_ SwigcptrSpam) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_toSpamPtr, _swig_p) - return -} - -func ToSpamPtr(arg1 Spam) (_swig_ret Spam) { - return _swig_wrap_toSpamPtr(arg1.Swigcptr()) -} - -var _wrap_xget unsafe.Pointer - -func _swig_wrap_xget(base uintptr) (_ int) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_xget, _swig_p) - return -} - -func Xget(arg1 Foo) (_swig_ret int) { - return _swig_wrap_xget(arg1.Swigcptr()) -} - -var _wrap_yget unsafe.Pointer - -func _swig_wrap_yget(base uintptr) (_ int) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_yget, _swig_p) - return -} - -func Yget(arg1 Bar) (_swig_ret int) { - return _swig_wrap_yget(arg1.Swigcptr()) -} - -var _wrap_zget unsafe.Pointer - -func _swig_wrap_zget(base uintptr) (_ int) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_zget, _swig_p) - return -} - -func Zget(arg1 FooBar) (_swig_ret int) { - return _swig_wrap_zget(arg1.Swigcptr()) -} - -var _wrap_wget unsafe.Pointer - -func _swig_wrap_wget(base uintptr) (_ int) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_wget, _swig_p) - return -} - -func Wget(arg1 Spam) (_swig_ret int) { - return _swig_wrap_wget(arg1.Swigcptr()) -} - -type SwigcptrIntVector uintptr - -func (p SwigcptrIntVector) Swigcptr() uintptr { - return (uintptr)(p) -} - -func (p SwigcptrIntVector) SwigIsIntVector() { -} - -var _wrap_new_IntVector__SWIG_0 unsafe.Pointer - -func _swig_wrap_new_IntVector__SWIG_0() (base SwigcptrIntVector) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_new_IntVector__SWIG_0, _swig_p) - return -} - -func NewIntVector__SWIG_0() (_swig_ret IntVector) { - return _swig_wrap_new_IntVector__SWIG_0() -} - -var _wrap_new_IntVector__SWIG_1 unsafe.Pointer - -func _swig_wrap_new_IntVector__SWIG_1(base int64) (_ SwigcptrIntVector) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_new_IntVector__SWIG_1, _swig_p) - return -} - -func NewIntVector__SWIG_1(arg1 int64) (_swig_ret IntVector) { - return _swig_wrap_new_IntVector__SWIG_1(arg1) -} - -func NewIntVector(a ...interface{}) IntVector { - argc := len(a) - if argc == 0 { - return NewIntVector__SWIG_0() - } - if argc == 1 { - return NewIntVector__SWIG_1(a[0].(int64)) - } - panic("No match for overloaded function call") -} - -var _wrap_IntVector_size unsafe.Pointer - -func _swig_wrap_IntVector_size(base SwigcptrIntVector) (_ int64) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_IntVector_size, _swig_p) - return -} - -func (arg1 SwigcptrIntVector) Size() (_swig_ret int64) { - return _swig_wrap_IntVector_size(arg1) -} - -var _wrap_IntVector_capacity unsafe.Pointer - -func _swig_wrap_IntVector_capacity(base SwigcptrIntVector) (_ int64) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_IntVector_capacity, _swig_p) - return -} - -func (arg1 SwigcptrIntVector) Capacity() (_swig_ret int64) { - return _swig_wrap_IntVector_capacity(arg1) -} - -var _wrap_IntVector_reserve unsafe.Pointer - -func _swig_wrap_IntVector_reserve(base SwigcptrIntVector, _ int64) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_IntVector_reserve, _swig_p) - return -} - -func (arg1 SwigcptrIntVector) Reserve(arg2 int64) { - _swig_wrap_IntVector_reserve(arg1, arg2) -} - -var _wrap_IntVector_isEmpty unsafe.Pointer - -func _swig_wrap_IntVector_isEmpty(base SwigcptrIntVector) (_ bool) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_IntVector_isEmpty, _swig_p) - return -} - -func (arg1 SwigcptrIntVector) IsEmpty() (_swig_ret bool) { - return _swig_wrap_IntVector_isEmpty(arg1) -} - -var _wrap_IntVector_clear unsafe.Pointer - -func _swig_wrap_IntVector_clear(base SwigcptrIntVector) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_IntVector_clear, _swig_p) - return -} - -func (arg1 SwigcptrIntVector) Clear() { - _swig_wrap_IntVector_clear(arg1) -} - -var _wrap_IntVector_add unsafe.Pointer - -func _swig_wrap_IntVector_add(base SwigcptrIntVector, _ int) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_IntVector_add, _swig_p) - return -} - -func (arg1 SwigcptrIntVector) Add(arg2 int) { - _swig_wrap_IntVector_add(arg1, arg2) -} - -var _wrap_IntVector_get unsafe.Pointer - -func _swig_wrap_IntVector_get(base SwigcptrIntVector, _ int) (_ int) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_IntVector_get, _swig_p) - return -} - -func (arg1 SwigcptrIntVector) Get(arg2 int) (_swig_ret int) { - return _swig_wrap_IntVector_get(arg1, arg2) -} - -var _wrap_IntVector_set unsafe.Pointer - -func _swig_wrap_IntVector_set(base SwigcptrIntVector, _ int, _ int) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_IntVector_set, _swig_p) - return -} - -func (arg1 SwigcptrIntVector) Set(arg2 int, arg3 int) { - _swig_wrap_IntVector_set(arg1, arg2, arg3) -} - -var _wrap_delete_IntVector unsafe.Pointer - -func _swig_wrap_delete_IntVector(base uintptr) { - _swig_p := uintptr(unsafe.Pointer(&base)) - _cgo_runtime_cgocall(_wrap_delete_IntVector, _swig_p) - return -} - -func DeleteIntVector(arg1 IntVector) { - _swig_wrap_delete_IntVector(arg1.Swigcptr()) -} - -type IntVector interface { - Swigcptr() uintptr - SwigIsIntVector() - Size() (_swig_ret int64) - Capacity() (_swig_ret int64) - Reserve(arg2 int64) - IsEmpty() (_swig_ret bool) - Clear() - Add(arg2 int) - Get(arg2 int) (_swig_ret int) - Set(arg2 int, arg3 int) -} - - -type SwigcptrVoid uintptr -type Void interface { - Swigcptr() uintptr; -} -func (p SwigcptrVoid) Swigcptr() uintptr { - return uintptr(p) -} - |