summaryrefslogtreecommitdiff
path: root/Examples/test-suite/go/typedef_class.go
blob: cb02079bf3191bbd80617efd826f1d86aa3fc6d6 (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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
/* ----------------------------------------------------------------------------
 * 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: ./../typedef_class.i

package typedef_class

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 SwigcptrRealA uintptr

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

func (p SwigcptrRealA) SwigIsRealA() {
}

var _wrap_RealA_a_set unsafe.Pointer

func _swig_wrap_RealA_a_set(base SwigcptrRealA, _ int) {
	_swig_p := uintptr(unsafe.Pointer(&base))
	_cgo_runtime_cgocall(_wrap_RealA_a_set, _swig_p)
	return
}

func (arg1 SwigcptrRealA) SetA(arg2 int) {
	_swig_wrap_RealA_a_set(arg1, arg2)
}

var _wrap_RealA_a_get unsafe.Pointer

func _swig_wrap_RealA_a_get(base SwigcptrRealA) (_ int) {
	_swig_p := uintptr(unsafe.Pointer(&base))
	_cgo_runtime_cgocall(_wrap_RealA_a_get, _swig_p)
	return
}

func (arg1 SwigcptrRealA) GetA() (_swig_ret int) {
	return _swig_wrap_RealA_a_get(arg1)
}

var _wrap_new_RealA unsafe.Pointer

func _swig_wrap_new_RealA() (base SwigcptrRealA) {
	_swig_p := uintptr(unsafe.Pointer(&base))
	_cgo_runtime_cgocall(_wrap_new_RealA, _swig_p)
	return
}

func NewRealA() (_swig_ret RealA) {
	return _swig_wrap_new_RealA()
}

var _wrap_delete_RealA unsafe.Pointer

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

func DeleteRealA(arg1 RealA) {
	_swig_wrap_delete_RealA(arg1.Swigcptr())
}

type RealA interface {
	Swigcptr() uintptr
	SwigIsRealA()
	SetA(arg2 int)
	GetA() (_swig_ret int)
}

type SwigcptrB uintptr

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

func (p SwigcptrB) SwigIsB() {
}

var _wrap_B_testA unsafe.Pointer

func _swig_wrap_B_testA(base SwigcptrB, _ uintptr) (_ int) {
	_swig_p := uintptr(unsafe.Pointer(&base))
	_cgo_runtime_cgocall(_wrap_B_testA, _swig_p)
	return
}

func (arg1 SwigcptrB) TestA(arg2 RealA) (_swig_ret int) {
	return _swig_wrap_B_testA(arg1, arg2.Swigcptr())
}

var _wrap_new_B unsafe.Pointer

func _swig_wrap_new_B() (base SwigcptrB) {
	_swig_p := uintptr(unsafe.Pointer(&base))
	_cgo_runtime_cgocall(_wrap_new_B, _swig_p)
	return
}

func NewB() (_swig_ret B) {
	return _swig_wrap_new_B()
}

var _wrap_delete_B unsafe.Pointer

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

func DeleteB(arg1 B) {
	_swig_wrap_delete_B(arg1.Swigcptr())
}

type B interface {
	Swigcptr() uintptr
	SwigIsB()
	TestA(arg2 RealA) (_swig_ret int)
}

type SwigcptrBBB uintptr

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

func (p SwigcptrBBB) SwigIsBBB() {
}

var _wrap_new_BBB unsafe.Pointer

func _swig_wrap_new_BBB() (base SwigcptrBBB) {
	_swig_p := uintptr(unsafe.Pointer(&base))
	_cgo_runtime_cgocall(_wrap_new_BBB, _swig_p)
	return
}

func NewBBB() (_swig_ret BBB) {
	return _swig_wrap_new_BBB()
}

var _wrap_delete_BBB unsafe.Pointer

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

func DeleteBBB(arg1 BBB) {
	_swig_wrap_delete_BBB(arg1.Swigcptr())
}

type BBB interface {
	Swigcptr() uintptr
	SwigIsBBB()
}

type SwigcptrBB uintptr

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

func (p SwigcptrBB) SwigIsBB() {
}

var _wrap_new_BB__SWIG_0 unsafe.Pointer

func _swig_wrap_new_BB__SWIG_0() (base SwigcptrBB) {
	_swig_p := uintptr(unsafe.Pointer(&base))
	_cgo_runtime_cgocall(_wrap_new_BB__SWIG_0, _swig_p)
	return
}

func NewBB__SWIG_0() (_swig_ret BB) {
	return _swig_wrap_new_BB__SWIG_0()
}

var _wrap_new_BB__SWIG_1 unsafe.Pointer

func _swig_wrap_new_BB__SWIG_1(base int) (_ SwigcptrBB) {
	_swig_p := uintptr(unsafe.Pointer(&base))
	_cgo_runtime_cgocall(_wrap_new_BB__SWIG_1, _swig_p)
	return
}

func NewBB__SWIG_1(arg1 int) (_swig_ret BB) {
	return _swig_wrap_new_BB__SWIG_1(arg1)
}

func NewBB(a ...interface{}) BB {
	argc := len(a)
	if argc == 0 {
		return NewBB__SWIG_0()
	}
	if argc == 1 {
		return NewBB__SWIG_1(a[0].(int))
	}
	panic("No match for overloaded function call")
}

var _wrap_BB_aa_var_set unsafe.Pointer

func _swig_wrap_BB_aa_var_set(base SwigcptrBB, _ int) {
	_swig_p := uintptr(unsafe.Pointer(&base))
	_cgo_runtime_cgocall(_wrap_BB_aa_var_set, _swig_p)
	return
}

func (arg1 SwigcptrBB) SetAa_var(arg2 int) {
	_swig_wrap_BB_aa_var_set(arg1, arg2)
}

var _wrap_BB_aa_var_get unsafe.Pointer

func _swig_wrap_BB_aa_var_get(base SwigcptrBB) (_ int) {
	_swig_p := uintptr(unsafe.Pointer(&base))
	_cgo_runtime_cgocall(_wrap_BB_aa_var_get, _swig_p)
	return
}

func (arg1 SwigcptrBB) GetAa_var() (_swig_ret int) {
	return _swig_wrap_BB_aa_var_get(arg1)
}

var _wrap_BB_aa_method unsafe.Pointer

func _swig_wrap_BB_aa_method(base SwigcptrBB, _ float64) (_ *int) {
	_swig_p := uintptr(unsafe.Pointer(&base))
	_cgo_runtime_cgocall(_wrap_BB_aa_method, _swig_p)
	return
}

func (arg1 SwigcptrBB) Aa_method(arg2 float64) (_swig_ret *int) {
	return _swig_wrap_BB_aa_method(arg1, arg2)
}

var _wrap_BB_aa_static_method unsafe.Pointer

func BBAa_static_method(arg1 bool) (_swig_ret *int) {
	_swig_p := uintptr(unsafe.Pointer(&arg1))
	_cgo_runtime_cgocall(_wrap_BB_aa_static_method, _swig_p)
	return
}
var _wrap_delete_BB unsafe.Pointer

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

func DeleteBB(arg1 BB) {
	_swig_wrap_delete_BB(arg1.Swigcptr())
}

type BB interface {
	Swigcptr() uintptr
	SwigIsBB()
	SetAa_var(arg2 int)
	GetAa_var() (_swig_ret int)
	Aa_method(arg2 float64) (_swig_ret *int)
}


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