summaryrefslogtreecommitdiff
path: root/Examples/test-suite/go/defvalue_constructor.go
blob: 04758e210aefa5150ad94888331533ecaad54122 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
/* ----------------------------------------------------------------------------
 * 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: ./../defvalue_constructor.i

package defvalue_constructor

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 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())
}

type Bar interface {
	Swigcptr() uintptr
	SwigIsBar()
}

type SwigcptrBaz uintptr

func (p SwigcptrBaz) Swigcptr() uintptr {
	return (uintptr)(p)
}

func (p SwigcptrBaz) SwigIsBaz() {
}

var _wrap_new_Baz__SWIG_0 unsafe.Pointer

func _swig_wrap_new_Baz__SWIG_0(base uintptr) (_ SwigcptrBaz) {
	_swig_p := uintptr(unsafe.Pointer(&base))
	_cgo_runtime_cgocall(_wrap_new_Baz__SWIG_0, _swig_p)
	return
}

func NewBaz__SWIG_0(arg1 Bar) (_swig_ret Baz) {
	return _swig_wrap_new_Baz__SWIG_0(arg1.Swigcptr())
}

var _wrap_new_Baz__SWIG_1 unsafe.Pointer

func _swig_wrap_new_Baz__SWIG_1() (base SwigcptrBaz) {
	_swig_p := uintptr(unsafe.Pointer(&base))
	_cgo_runtime_cgocall(_wrap_new_Baz__SWIG_1, _swig_p)
	return
}

func NewBaz__SWIG_1() (_swig_ret Baz) {
	return _swig_wrap_new_Baz__SWIG_1()
}

func NewBaz(a ...interface{}) Baz {
	argc := len(a)
	if argc == 0 {
		return NewBaz__SWIG_1()
	}
	if argc == 1 {
		return NewBaz__SWIG_0(a[0].(Bar))
	}
	panic("No match for overloaded function call")
}

var _wrap_delete_Baz unsafe.Pointer

func _swig_wrap_delete_Baz(base uintptr) {
	_swig_p := uintptr(unsafe.Pointer(&base))
	_cgo_runtime_cgocall(_wrap_delete_Baz, _swig_p)
	return
}

func DeleteBaz(arg1 Baz) {
	_swig_wrap_delete_Baz(arg1.Swigcptr())
}

type Baz interface {
	Swigcptr() uintptr
	SwigIsBaz()
}


type SwigcptrVoid uintptr
type Void interface {
	Swigcptr() uintptr;
}
func (p SwigcptrVoid) Swigcptr() uintptr {
	return uintptr(p)
}