1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## swig.dpatch by Francesco Paolo Lovergine <frankie@debian.org>
4
## All lines beginning with `## DP:' are a description of the patch.
8
diff -urNad grass-6.4.0~rc5+39426~/gui/wxpython/nviz/Makefile grass-6.4.0~rc5+39426/gui/wxpython/nviz/Makefile
9
--- grass-6.4.0~rc5+39426~/gui/wxpython/nviz/Makefile 2009-10-07 10:48:15.000000000 +0200
10
+++ grass-6.4.0~rc5+39426/gui/wxpython/nviz/Makefile 2009-10-08 00:03:54.000000000 +0200
13
$(LIB_NAME).py: $(SHLIB)
15
-$(SHLIB): $(LIB_NAME).i
16
+$(SHLIB): $(LIB_NAME)_wrap.cpp
17
python setup.py build_ext --swig=$(SWIG) --swig-opts=-c++ --build-lib=$(OBJDIR) --build-temp=$(OBJDIR)
19
.NOTPARALLEL: $(LIB_NAME).py $(LIB_NAME)_wrap.cpp
20
diff -urNad grass-6.4.0~rc5+39426~/gui/wxpython/nviz/grass6_wxnviz.i grass-6.4.0~rc5+39426/gui/wxpython/nviz/grass6_wxnviz.i
21
--- grass-6.4.0~rc5+39426~/gui/wxpython/nviz/grass6_wxnviz.i 1970-01-01 01:00:00.000000000 +0100
22
+++ grass-6.4.0~rc5+39426/gui/wxpython/nviz/grass6_wxnviz.i 2009-10-08 00:01:13.000000000 +0200
26
+%module grass6_wxnviz
29
+#include <grass/gsurf.h>
30
+#include <grass/gstypes.h>
34
+%include "std_vector.i"
36
+ %template(IntVector) vector<int>;
37
+ %template(DoubleVector) vector<double>;
41
+ %template(IntVecIntMap) map<int, vector<int> >;
45
+/* extracted from include/vect/dig_defines.h */
47
+#define GV_POINT 0x01
49
+#define GV_BOUNDARY 0x04
50
+#define GV_CENTROID 0x08
52
+#define GV_KERNEL 0x20
54
+#define GV_VOLUME 0x80
56
+#define GV_POINTS (GV_POINT | GV_CENTROID )
57
+#define GV_LINES (GV_LINE | GV_BOUNDARY )
59
+#define PORT_DOUBLE_MAX 1.7976931348623157e+308
61
+/* extracted from gui/wxpython/nviz/nviz.h */
63
+#define VIEW_DEFAULT_POS_X 0.85
64
+#define VIEW_DEFAULT_POS_Y 0.85
65
+#define VIEW_DEFAULT_PERSP 40.0
66
+#define VIEW_DEFAULT_TWIST 0.0
67
+#define VIEW_DEFAULT_ZEXAG 1.0
69
+/* extracted from include/gsurf.h */
70
+#define DM_GOURAUD 0x00000100
71
+#define DM_FLAT 0x00000200
73
+#define DM_FRINGE 0x00000010
75
+#define DM_WIRE 0x00000001
76
+#define DM_COL_WIRE 0x00000002
77
+#define DM_POLY 0x00000004
78
+#define DM_WIRE_POLY 0x00000008
80
+#define DM_GRID_WIRE 0x00000400
81
+#define DM_GRID_SURF 0x00000800
89
+#define ST_DEC_TREE 6
90
+#define ST_CON_TREE 7
93
+#define ST_HISTOGRAM 10
95
+#define MAX_ISOSURFS 12
96
+#define MAX_SLICES 12
98
+/* extracted from include/nviz.h */
99
+/* quick draw mode */
100
+#define DRAW_QUICK_SURFACE 0x01
101
+#define DRAW_QUICK_VLINES 0x02
102
+#define DRAW_QUICK_VPOINTS 0x04
103
+#define DRAW_QUICK_VOLUME 0x08
104
+/* auto-generated swig typedef file */
108
+// For compilers that support precompilation, includes "wx.h".
109
+#include <wx/wxprec.h>
114
+#include <grass/gis.h>
115
+#include <grass/nviz.h>
116
+#include <grass/gsurf.h>
117
+#include <grass/gstypes.h>
126
+// Include your minimal set of headers here, or wx.h
130
+#include <wx/glcanvas.h>
138
+ wxGLCanvas *glCanvas;
141
+ int SetSurfaceAttr(int, int, bool, const char *);
142
+ int UnsetSurfaceAttr(int, int);
145
+ int SetIsosurfaceAttr(int, int, int, bool, const char *);
146
+ int UnsetIsosurfaceAttr(int, int, int);
155
+ /* change_view.cpp */
156
+ int ResizeWindow(int, int);
157
+ std::vector<double> SetViewDefault();
158
+ int SetView(float, float,
159
+ float, float, float);
160
+ int SetZExag(float);
163
+ int SetDisplay(void *);
165
+ void SetBgColor(const char *);
168
+ void SetLightsDefault();
171
+ int LoadSurface(const char*, const char *, const char *);
172
+ int UnloadSurface(int);
173
+ int LoadVector(const char *, bool);
174
+ int UnloadVector(int, bool);
175
+ int LoadVolume(const char*, const char *, const char *);
176
+ int UnloadVolume(int);
179
+ void Draw(bool, int);
183
+ int SetSurfaceTopo(int, bool, const char *);
184
+ int SetSurfaceColor(int, bool, const char *);
185
+ int SetSurfaceMask(int, bool, const char *);
186
+ int SetSurfaceTransp(int, bool, const char *);
187
+ int SetSurfaceShine(int, bool, const char *);
188
+ int SetSurfaceEmit(int, bool, const char *);
189
+ int UnsetSurfaceMask(int);
190
+ int UnsetSurfaceTransp(int);
191
+ int UnsetSurfaceEmit(int);
192
+ int SetSurfaceRes(int, int, int);
193
+ int SetSurfaceStyle(int, int);
194
+ int SetWireColor(int, const char *);
195
+ std::vector<double> GetSurfacePosition(int);
196
+ int SetSurfacePosition(int, float, float, float);
199
+ int SetVectorLineMode(int, const char *, int, int);
200
+ int SetVectorLineHeight(int, float);
201
+ int SetVectorLineSurface(int, int);
202
+ int SetVectorPointMode(int, const char*, int, float, int);
203
+ int SetVectorPointHeight(int, float);
204
+ int SetVectorPointSurface(int, int);
207
+ int AddIsosurface(int, int);
208
+ int DeleteIsosurface(int, int);
209
+ int MoveIsosurface(int, int, bool);
210
+ int SetIsosurfaceColor(int, int, bool, const char *);
211
+ int SetIsosurfaceMask(int, int, bool, const char *);
212
+ int SetIsosurfaceTransp(int, int, bool, const char *);
213
+ int SetIsosurfaceShine(int, int, bool, const char *);
214
+ int SetIsosurfaceEmit(int, int, bool, const char *);
215
+ int UnsetIsosurfaceMask(int, int);
216
+ int UnsetIsosurfaceTransp(int, int);
217
+ int UnsetIsosurfaceEmit(int, int);
218
+ int SetIsosurfaceMode(int, int);
219
+ int SetIsosurfaceRes(int, int);
222
+#endif /* WXNVIZ_H */
223
diff -urNad grass-6.4.0~rc5+39426~/gui/wxpython/nviz/grass6_wxnviz.py grass-6.4.0~rc5+39426/gui/wxpython/nviz/grass6_wxnviz.py
224
--- grass-6.4.0~rc5+39426~/gui/wxpython/nviz/grass6_wxnviz.py 1970-01-01 01:00:00.000000000 +0100
225
+++ grass-6.4.0~rc5+39426/gui/wxpython/nviz/grass6_wxnviz.py 2009-10-08 00:01:13.000000000 +0200
227
+# This file was automatically generated by SWIG (http://www.swig.org).
230
+# Don't modify this file, modify the SWIG interface instead.
231
+# This file is compatible with both classic and new-style classes.
233
+import _grass6_wxnviz
235
+new_instancemethod = new.instancemethod
237
+ _swig_property = property
239
+ pass # Python < 2.2 doesn't have 'property'.
240
+def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
241
+ if (name == "thisown"): return self.this.own(value)
242
+ if (name == "this"):
243
+ if type(value).__name__ == 'PySwigObject':
244
+ self.__dict__[name] = value
246
+ method = class_type.__swig_setmethods__.get(name,None)
247
+ if method: return method(self,value)
248
+ if (not static) or hasattr(self,name):
249
+ self.__dict__[name] = value
251
+ raise AttributeError("You cannot add attributes to %s" % self)
253
+def _swig_setattr(self,class_type,name,value):
254
+ return _swig_setattr_nondynamic(self,class_type,name,value,0)
256
+def _swig_getattr(self,class_type,name):
257
+ if (name == "thisown"): return self.this.own()
258
+ method = class_type.__swig_getmethods__.get(name,None)
259
+ if method: return method(self)
260
+ raise AttributeError,name
262
+def _swig_repr(self):
263
+ try: strthis = "proxy of " + self.this.__repr__()
264
+ except: strthis = ""
265
+ return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
269
+ _object = types.ObjectType
271
+except AttributeError:
272
+ class _object : pass
277
+class PySwigIterator(_object):
278
+ __swig_setmethods__ = {}
279
+ __setattr__ = lambda self, name, value: _swig_setattr(self, PySwigIterator, name, value)
280
+ __swig_getmethods__ = {}
281
+ __getattr__ = lambda self, name: _swig_getattr(self, PySwigIterator, name)
282
+ def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined"
283
+ __repr__ = _swig_repr
284
+ __swig_destroy__ = _grass6_wxnviz.delete_PySwigIterator
285
+ __del__ = lambda self : None;
286
+ def value(*args): return _grass6_wxnviz.PySwigIterator_value(*args)
287
+ def incr(*args): return _grass6_wxnviz.PySwigIterator_incr(*args)
288
+ def decr(*args): return _grass6_wxnviz.PySwigIterator_decr(*args)
289
+ def distance(*args): return _grass6_wxnviz.PySwigIterator_distance(*args)
290
+ def equal(*args): return _grass6_wxnviz.PySwigIterator_equal(*args)
291
+ def copy(*args): return _grass6_wxnviz.PySwigIterator_copy(*args)
292
+ def next(*args): return _grass6_wxnviz.PySwigIterator_next(*args)
293
+ def previous(*args): return _grass6_wxnviz.PySwigIterator_previous(*args)
294
+ def advance(*args): return _grass6_wxnviz.PySwigIterator_advance(*args)
295
+ def __eq__(*args): return _grass6_wxnviz.PySwigIterator___eq__(*args)
296
+ def __ne__(*args): return _grass6_wxnviz.PySwigIterator___ne__(*args)
297
+ def __iadd__(*args): return _grass6_wxnviz.PySwigIterator___iadd__(*args)
298
+ def __isub__(*args): return _grass6_wxnviz.PySwigIterator___isub__(*args)
299
+ def __add__(*args): return _grass6_wxnviz.PySwigIterator___add__(*args)
300
+ def __sub__(*args): return _grass6_wxnviz.PySwigIterator___sub__(*args)
301
+ def __iter__(self): return self
302
+PySwigIterator_swigregister = _grass6_wxnviz.PySwigIterator_swigregister
303
+PySwigIterator_swigregister(PySwigIterator)
305
+class IntVector(_object):
306
+ __swig_setmethods__ = {}
307
+ __setattr__ = lambda self, name, value: _swig_setattr(self, IntVector, name, value)
308
+ __swig_getmethods__ = {}
309
+ __getattr__ = lambda self, name: _swig_getattr(self, IntVector, name)
310
+ __repr__ = _swig_repr
311
+ def iterator(*args): return _grass6_wxnviz.IntVector_iterator(*args)
312
+ def __iter__(self): return self.iterator()
313
+ def __nonzero__(*args): return _grass6_wxnviz.IntVector___nonzero__(*args)
314
+ def __len__(*args): return _grass6_wxnviz.IntVector___len__(*args)
315
+ def pop(*args): return _grass6_wxnviz.IntVector_pop(*args)
316
+ def __getslice__(*args): return _grass6_wxnviz.IntVector___getslice__(*args)
317
+ def __setslice__(*args): return _grass6_wxnviz.IntVector___setslice__(*args)
318
+ def __delslice__(*args): return _grass6_wxnviz.IntVector___delslice__(*args)
319
+ def __delitem__(*args): return _grass6_wxnviz.IntVector___delitem__(*args)
320
+ def __getitem__(*args): return _grass6_wxnviz.IntVector___getitem__(*args)
321
+ def __setitem__(*args): return _grass6_wxnviz.IntVector___setitem__(*args)
322
+ def append(*args): return _grass6_wxnviz.IntVector_append(*args)
323
+ def empty(*args): return _grass6_wxnviz.IntVector_empty(*args)
324
+ def size(*args): return _grass6_wxnviz.IntVector_size(*args)
325
+ def clear(*args): return _grass6_wxnviz.IntVector_clear(*args)
326
+ def swap(*args): return _grass6_wxnviz.IntVector_swap(*args)
327
+ def get_allocator(*args): return _grass6_wxnviz.IntVector_get_allocator(*args)
328
+ def begin(*args): return _grass6_wxnviz.IntVector_begin(*args)
329
+ def end(*args): return _grass6_wxnviz.IntVector_end(*args)
330
+ def rbegin(*args): return _grass6_wxnviz.IntVector_rbegin(*args)
331
+ def rend(*args): return _grass6_wxnviz.IntVector_rend(*args)
332
+ def pop_back(*args): return _grass6_wxnviz.IntVector_pop_back(*args)
333
+ def erase(*args): return _grass6_wxnviz.IntVector_erase(*args)
334
+ def __init__(self, *args):
335
+ this = _grass6_wxnviz.new_IntVector(*args)
336
+ try: self.this.append(this)
337
+ except: self.this = this
338
+ def push_back(*args): return _grass6_wxnviz.IntVector_push_back(*args)
339
+ def front(*args): return _grass6_wxnviz.IntVector_front(*args)
340
+ def back(*args): return _grass6_wxnviz.IntVector_back(*args)
341
+ def assign(*args): return _grass6_wxnviz.IntVector_assign(*args)
342
+ def resize(*args): return _grass6_wxnviz.IntVector_resize(*args)
343
+ def insert(*args): return _grass6_wxnviz.IntVector_insert(*args)
344
+ def reserve(*args): return _grass6_wxnviz.IntVector_reserve(*args)
345
+ def capacity(*args): return _grass6_wxnviz.IntVector_capacity(*args)
346
+ __swig_destroy__ = _grass6_wxnviz.delete_IntVector
347
+ __del__ = lambda self : None;
348
+IntVector_swigregister = _grass6_wxnviz.IntVector_swigregister
349
+IntVector_swigregister(IntVector)
351
+class DoubleVector(_object):
352
+ __swig_setmethods__ = {}
353
+ __setattr__ = lambda self, name, value: _swig_setattr(self, DoubleVector, name, value)
354
+ __swig_getmethods__ = {}
355
+ __getattr__ = lambda self, name: _swig_getattr(self, DoubleVector, name)
356
+ __repr__ = _swig_repr
357
+ def iterator(*args): return _grass6_wxnviz.DoubleVector_iterator(*args)
358
+ def __iter__(self): return self.iterator()
359
+ def __nonzero__(*args): return _grass6_wxnviz.DoubleVector___nonzero__(*args)
360
+ def __len__(*args): return _grass6_wxnviz.DoubleVector___len__(*args)
361
+ def pop(*args): return _grass6_wxnviz.DoubleVector_pop(*args)
362
+ def __getslice__(*args): return _grass6_wxnviz.DoubleVector___getslice__(*args)
363
+ def __setslice__(*args): return _grass6_wxnviz.DoubleVector___setslice__(*args)
364
+ def __delslice__(*args): return _grass6_wxnviz.DoubleVector___delslice__(*args)
365
+ def __delitem__(*args): return _grass6_wxnviz.DoubleVector___delitem__(*args)
366
+ def __getitem__(*args): return _grass6_wxnviz.DoubleVector___getitem__(*args)
367
+ def __setitem__(*args): return _grass6_wxnviz.DoubleVector___setitem__(*args)
368
+ def append(*args): return _grass6_wxnviz.DoubleVector_append(*args)
369
+ def empty(*args): return _grass6_wxnviz.DoubleVector_empty(*args)
370
+ def size(*args): return _grass6_wxnviz.DoubleVector_size(*args)
371
+ def clear(*args): return _grass6_wxnviz.DoubleVector_clear(*args)
372
+ def swap(*args): return _grass6_wxnviz.DoubleVector_swap(*args)
373
+ def get_allocator(*args): return _grass6_wxnviz.DoubleVector_get_allocator(*args)
374
+ def begin(*args): return _grass6_wxnviz.DoubleVector_begin(*args)
375
+ def end(*args): return _grass6_wxnviz.DoubleVector_end(*args)
376
+ def rbegin(*args): return _grass6_wxnviz.DoubleVector_rbegin(*args)
377
+ def rend(*args): return _grass6_wxnviz.DoubleVector_rend(*args)
378
+ def pop_back(*args): return _grass6_wxnviz.DoubleVector_pop_back(*args)
379
+ def erase(*args): return _grass6_wxnviz.DoubleVector_erase(*args)
380
+ def __init__(self, *args):
381
+ this = _grass6_wxnviz.new_DoubleVector(*args)
382
+ try: self.this.append(this)
383
+ except: self.this = this
384
+ def push_back(*args): return _grass6_wxnviz.DoubleVector_push_back(*args)
385
+ def front(*args): return _grass6_wxnviz.DoubleVector_front(*args)
386
+ def back(*args): return _grass6_wxnviz.DoubleVector_back(*args)
387
+ def assign(*args): return _grass6_wxnviz.DoubleVector_assign(*args)
388
+ def resize(*args): return _grass6_wxnviz.DoubleVector_resize(*args)
389
+ def insert(*args): return _grass6_wxnviz.DoubleVector_insert(*args)
390
+ def reserve(*args): return _grass6_wxnviz.DoubleVector_reserve(*args)
391
+ def capacity(*args): return _grass6_wxnviz.DoubleVector_capacity(*args)
392
+ __swig_destroy__ = _grass6_wxnviz.delete_DoubleVector
393
+ __del__ = lambda self : None;
394
+DoubleVector_swigregister = _grass6_wxnviz.DoubleVector_swigregister
395
+DoubleVector_swigregister(DoubleVector)
397
+class IntVecIntMap(_object):
398
+ __swig_setmethods__ = {}
399
+ __setattr__ = lambda self, name, value: _swig_setattr(self, IntVecIntMap, name, value)
400
+ __swig_getmethods__ = {}
401
+ __getattr__ = lambda self, name: _swig_getattr(self, IntVecIntMap, name)
402
+ __repr__ = _swig_repr
403
+ def iterator(*args): return _grass6_wxnviz.IntVecIntMap_iterator(*args)
404
+ def __iter__(self): return self.iterator()
405
+ def __nonzero__(*args): return _grass6_wxnviz.IntVecIntMap___nonzero__(*args)
406
+ def __len__(*args): return _grass6_wxnviz.IntVecIntMap___len__(*args)
407
+ def __getitem__(*args): return _grass6_wxnviz.IntVecIntMap___getitem__(*args)
408
+ def __delitem__(*args): return _grass6_wxnviz.IntVecIntMap___delitem__(*args)
409
+ def has_key(*args): return _grass6_wxnviz.IntVecIntMap_has_key(*args)
410
+ def keys(*args): return _grass6_wxnviz.IntVecIntMap_keys(*args)
411
+ def values(*args): return _grass6_wxnviz.IntVecIntMap_values(*args)
412
+ def items(*args): return _grass6_wxnviz.IntVecIntMap_items(*args)
413
+ def __contains__(*args): return _grass6_wxnviz.IntVecIntMap___contains__(*args)
414
+ def key_iterator(*args): return _grass6_wxnviz.IntVecIntMap_key_iterator(*args)
415
+ def value_iterator(*args): return _grass6_wxnviz.IntVecIntMap_value_iterator(*args)
416
+ def __iter__(self): return self.key_iterator()
417
+ def iterkeys(self): return self.key_iterator()
418
+ def itervalues(self): return self.value_iterator()
419
+ def iteritems(self): return self.iterator()
420
+ def __setitem__(*args): return _grass6_wxnviz.IntVecIntMap___setitem__(*args)
421
+ def __init__(self, *args):
422
+ this = _grass6_wxnviz.new_IntVecIntMap(*args)
423
+ try: self.this.append(this)
424
+ except: self.this = this
425
+ def empty(*args): return _grass6_wxnviz.IntVecIntMap_empty(*args)
426
+ def size(*args): return _grass6_wxnviz.IntVecIntMap_size(*args)
427
+ def clear(*args): return _grass6_wxnviz.IntVecIntMap_clear(*args)
428
+ def swap(*args): return _grass6_wxnviz.IntVecIntMap_swap(*args)
429
+ def get_allocator(*args): return _grass6_wxnviz.IntVecIntMap_get_allocator(*args)
430
+ def begin(*args): return _grass6_wxnviz.IntVecIntMap_begin(*args)
431
+ def end(*args): return _grass6_wxnviz.IntVecIntMap_end(*args)
432
+ def rbegin(*args): return _grass6_wxnviz.IntVecIntMap_rbegin(*args)
433
+ def rend(*args): return _grass6_wxnviz.IntVecIntMap_rend(*args)
434
+ def count(*args): return _grass6_wxnviz.IntVecIntMap_count(*args)
435
+ def erase(*args): return _grass6_wxnviz.IntVecIntMap_erase(*args)
436
+ def find(*args): return _grass6_wxnviz.IntVecIntMap_find(*args)
437
+ def lower_bound(*args): return _grass6_wxnviz.IntVecIntMap_lower_bound(*args)
438
+ def upper_bound(*args): return _grass6_wxnviz.IntVecIntMap_upper_bound(*args)
439
+ __swig_destroy__ = _grass6_wxnviz.delete_IntVecIntMap
440
+ __del__ = lambda self : None;
441
+IntVecIntMap_swigregister = _grass6_wxnviz.IntVecIntMap_swigregister
442
+IntVecIntMap_swigregister(IntVecIntMap)
444
+class Nviz(_object):
445
+ __swig_setmethods__ = {}
446
+ __setattr__ = lambda self, name, value: _swig_setattr(self, Nviz, name, value)
447
+ __swig_getmethods__ = {}
448
+ __getattr__ = lambda self, name: _swig_getattr(self, Nviz, name)
449
+ __repr__ = _swig_repr
450
+ def __init__(self, *args):
451
+ this = _grass6_wxnviz.new_Nviz(*args)
452
+ try: self.this.append(this)
453
+ except: self.this = this
454
+ __swig_destroy__ = _grass6_wxnviz.delete_Nviz
455
+ __del__ = lambda self : None;
456
+ def ResizeWindow(*args): return _grass6_wxnviz.Nviz_ResizeWindow(*args)
457
+ def SetViewDefault(*args): return _grass6_wxnviz.Nviz_SetViewDefault(*args)
458
+ def SetView(*args): return _grass6_wxnviz.Nviz_SetView(*args)
459
+ def SetZExag(*args): return _grass6_wxnviz.Nviz_SetZExag(*args)
460
+ def SetDisplay(*args): return _grass6_wxnviz.Nviz_SetDisplay(*args)
461
+ def InitView(*args): return _grass6_wxnviz.Nviz_InitView(*args)
462
+ def SetBgColor(*args): return _grass6_wxnviz.Nviz_SetBgColor(*args)
463
+ def SetLightsDefault(*args): return _grass6_wxnviz.Nviz_SetLightsDefault(*args)
464
+ def LoadSurface(*args): return _grass6_wxnviz.Nviz_LoadSurface(*args)
465
+ def UnloadSurface(*args): return _grass6_wxnviz.Nviz_UnloadSurface(*args)
466
+ def LoadVector(*args): return _grass6_wxnviz.Nviz_LoadVector(*args)
467
+ def UnloadVector(*args): return _grass6_wxnviz.Nviz_UnloadVector(*args)
468
+ def LoadVolume(*args): return _grass6_wxnviz.Nviz_LoadVolume(*args)
469
+ def UnloadVolume(*args): return _grass6_wxnviz.Nviz_UnloadVolume(*args)
470
+ def Draw(*args): return _grass6_wxnviz.Nviz_Draw(*args)
471
+ def EraseMap(*args): return _grass6_wxnviz.Nviz_EraseMap(*args)
472
+ def SetSurfaceTopo(*args): return _grass6_wxnviz.Nviz_SetSurfaceTopo(*args)
473
+ def SetSurfaceColor(*args): return _grass6_wxnviz.Nviz_SetSurfaceColor(*args)
474
+ def SetSurfaceMask(*args): return _grass6_wxnviz.Nviz_SetSurfaceMask(*args)
475
+ def SetSurfaceTransp(*args): return _grass6_wxnviz.Nviz_SetSurfaceTransp(*args)
476
+ def SetSurfaceShine(*args): return _grass6_wxnviz.Nviz_SetSurfaceShine(*args)
477
+ def SetSurfaceEmit(*args): return _grass6_wxnviz.Nviz_SetSurfaceEmit(*args)
478
+ def UnsetSurfaceMask(*args): return _grass6_wxnviz.Nviz_UnsetSurfaceMask(*args)
479
+ def UnsetSurfaceTransp(*args): return _grass6_wxnviz.Nviz_UnsetSurfaceTransp(*args)
480
+ def UnsetSurfaceEmit(*args): return _grass6_wxnviz.Nviz_UnsetSurfaceEmit(*args)
481
+ def SetSurfaceRes(*args): return _grass6_wxnviz.Nviz_SetSurfaceRes(*args)
482
+ def SetSurfaceStyle(*args): return _grass6_wxnviz.Nviz_SetSurfaceStyle(*args)
483
+ def SetWireColor(*args): return _grass6_wxnviz.Nviz_SetWireColor(*args)
484
+ def GetSurfacePosition(*args): return _grass6_wxnviz.Nviz_GetSurfacePosition(*args)
485
+ def SetSurfacePosition(*args): return _grass6_wxnviz.Nviz_SetSurfacePosition(*args)
486
+ def SetVectorLineMode(*args): return _grass6_wxnviz.Nviz_SetVectorLineMode(*args)
487
+ def SetVectorLineHeight(*args): return _grass6_wxnviz.Nviz_SetVectorLineHeight(*args)
488
+ def SetVectorLineSurface(*args): return _grass6_wxnviz.Nviz_SetVectorLineSurface(*args)
489
+ def SetVectorPointMode(*args): return _grass6_wxnviz.Nviz_SetVectorPointMode(*args)
490
+ def SetVectorPointHeight(*args): return _grass6_wxnviz.Nviz_SetVectorPointHeight(*args)
491
+ def SetVectorPointSurface(*args): return _grass6_wxnviz.Nviz_SetVectorPointSurface(*args)
492
+ def AddIsosurface(*args): return _grass6_wxnviz.Nviz_AddIsosurface(*args)
493
+ def DeleteIsosurface(*args): return _grass6_wxnviz.Nviz_DeleteIsosurface(*args)
494
+ def MoveIsosurface(*args): return _grass6_wxnviz.Nviz_MoveIsosurface(*args)
495
+ def SetIsosurfaceColor(*args): return _grass6_wxnviz.Nviz_SetIsosurfaceColor(*args)
496
+ def SetIsosurfaceMask(*args): return _grass6_wxnviz.Nviz_SetIsosurfaceMask(*args)
497
+ def SetIsosurfaceTransp(*args): return _grass6_wxnviz.Nviz_SetIsosurfaceTransp(*args)
498
+ def SetIsosurfaceShine(*args): return _grass6_wxnviz.Nviz_SetIsosurfaceShine(*args)
499
+ def SetIsosurfaceEmit(*args): return _grass6_wxnviz.Nviz_SetIsosurfaceEmit(*args)
500
+ def UnsetIsosurfaceMask(*args): return _grass6_wxnviz.Nviz_UnsetIsosurfaceMask(*args)
501
+ def UnsetIsosurfaceTransp(*args): return _grass6_wxnviz.Nviz_UnsetIsosurfaceTransp(*args)
502
+ def UnsetIsosurfaceEmit(*args): return _grass6_wxnviz.Nviz_UnsetIsosurfaceEmit(*args)
503
+ def SetIsosurfaceMode(*args): return _grass6_wxnviz.Nviz_SetIsosurfaceMode(*args)
504
+ def SetIsosurfaceRes(*args): return _grass6_wxnviz.Nviz_SetIsosurfaceRes(*args)
505
+Nviz_swigregister = _grass6_wxnviz.Nviz_swigregister
506
+Nviz_swigregister(Nviz)
508
+GV_POINT = _grass6_wxnviz.GV_POINT
509
+GV_LINE = _grass6_wxnviz.GV_LINE
510
+GV_BOUNDARY = _grass6_wxnviz.GV_BOUNDARY
511
+GV_CENTROID = _grass6_wxnviz.GV_CENTROID
512
+GV_FACE = _grass6_wxnviz.GV_FACE
513
+GV_KERNEL = _grass6_wxnviz.GV_KERNEL
514
+GV_AREA = _grass6_wxnviz.GV_AREA
515
+GV_VOLUME = _grass6_wxnviz.GV_VOLUME
516
+GV_POINTS = _grass6_wxnviz.GV_POINTS
517
+GV_LINES = _grass6_wxnviz.GV_LINES
518
+PORT_DOUBLE_MAX = _grass6_wxnviz.PORT_DOUBLE_MAX
519
+VIEW_DEFAULT_POS_X = _grass6_wxnviz.VIEW_DEFAULT_POS_X
520
+VIEW_DEFAULT_POS_Y = _grass6_wxnviz.VIEW_DEFAULT_POS_Y
521
+VIEW_DEFAULT_PERSP = _grass6_wxnviz.VIEW_DEFAULT_PERSP
522
+VIEW_DEFAULT_TWIST = _grass6_wxnviz.VIEW_DEFAULT_TWIST
523
+VIEW_DEFAULT_ZEXAG = _grass6_wxnviz.VIEW_DEFAULT_ZEXAG
524
+DM_GOURAUD = _grass6_wxnviz.DM_GOURAUD
525
+DM_FLAT = _grass6_wxnviz.DM_FLAT
526
+DM_FRINGE = _grass6_wxnviz.DM_FRINGE
527
+DM_WIRE = _grass6_wxnviz.DM_WIRE
528
+DM_COL_WIRE = _grass6_wxnviz.DM_COL_WIRE
529
+DM_POLY = _grass6_wxnviz.DM_POLY
530
+DM_WIRE_POLY = _grass6_wxnviz.DM_WIRE_POLY
531
+DM_GRID_WIRE = _grass6_wxnviz.DM_GRID_WIRE
532
+DM_GRID_SURF = _grass6_wxnviz.DM_GRID_SURF
533
+ST_X = _grass6_wxnviz.ST_X
534
+ST_BOX = _grass6_wxnviz.ST_BOX
535
+ST_SPHERE = _grass6_wxnviz.ST_SPHERE
536
+ST_CUBE = _grass6_wxnviz.ST_CUBE
537
+ST_DIAMOND = _grass6_wxnviz.ST_DIAMOND
538
+ST_DEC_TREE = _grass6_wxnviz.ST_DEC_TREE
539
+ST_CON_TREE = _grass6_wxnviz.ST_CON_TREE
540
+ST_ASTER = _grass6_wxnviz.ST_ASTER
541
+ST_GYRO = _grass6_wxnviz.ST_GYRO
542
+ST_HISTOGRAM = _grass6_wxnviz.ST_HISTOGRAM
543
+MAX_ISOSURFS = _grass6_wxnviz.MAX_ISOSURFS
544
+MAX_SLICES = _grass6_wxnviz.MAX_SLICES
545
+DRAW_QUICK_SURFACE = _grass6_wxnviz.DRAW_QUICK_SURFACE
546
+DRAW_QUICK_VLINES = _grass6_wxnviz.DRAW_QUICK_VLINES
547
+DRAW_QUICK_VPOINTS = _grass6_wxnviz.DRAW_QUICK_VPOINTS
548
+DRAW_QUICK_VOLUME = _grass6_wxnviz.DRAW_QUICK_VOLUME
551
diff -urNad grass-6.4.0~rc5+39426~/gui/wxpython/nviz/grass6_wxnviz_wrap.cpp grass-6.4.0~rc5+39426/gui/wxpython/nviz/grass6_wxnviz_wrap.cpp
552
--- grass-6.4.0~rc5+39426~/gui/wxpython/nviz/grass6_wxnviz_wrap.cpp 1970-01-01 01:00:00.000000000 +0100
553
+++ grass-6.4.0~rc5+39426/gui/wxpython/nviz/grass6_wxnviz_wrap.cpp 2009-10-08 00:01:13.000000000 +0200
555
+/* ----------------------------------------------------------------------------
556
+ * This file was automatically generated by SWIG (http://www.swig.org).
559
+ * This file is not intended to be easily readable and contains a number of
560
+ * coding conventions designed to improve portability and efficiency. Do not make
561
+ * changes to this file unless you know what you are doing--modify the SWIG
562
+ * interface file instead.
563
+ * ----------------------------------------------------------------------------- */
566
+#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
569
+template<typename T> class SwigValueWrapper {
572
+ SwigValueWrapper() : tt(0) { }
573
+ SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
574
+ SwigValueWrapper(const T& t) : tt(new T(t)) { }
575
+ ~SwigValueWrapper() { delete tt; }
576
+ SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
577
+ operator T&() const { return *tt; }
578
+ T *operator&() { return tt; }
580
+ SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
583
+template <typename T> T SwigValueInit() {
588
+/* -----------------------------------------------------------------------------
589
+ * This section contains generic SWIG labels for method/variable
590
+ * declarations/attributes, and other compiler dependent labels.
591
+ * ----------------------------------------------------------------------------- */
593
+/* template workaround for compilers that cannot correctly implement the C++ standard */
594
+#ifndef SWIGTEMPLATEDISAMBIGUATOR
595
+# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
596
+# define SWIGTEMPLATEDISAMBIGUATOR template
597
+# elif defined(__HP_aCC)
598
+/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
599
+/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
600
+# define SWIGTEMPLATEDISAMBIGUATOR template
602
+# define SWIGTEMPLATEDISAMBIGUATOR
606
+/* inline attribute */
608
+# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
609
+# define SWIGINLINE inline
615
+/* attribute recognised by some compilers to avoid 'unused' warnings */
617
+# if defined(__GNUC__)
618
+# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
619
+# define SWIGUNUSED __attribute__ ((__unused__))
623
+# elif defined(__ICC)
624
+# define SWIGUNUSED __attribute__ ((__unused__))
630
+#ifndef SWIG_MSC_UNSUPPRESS_4505
631
+# if defined(_MSC_VER)
632
+# pragma warning(disable : 4505) /* unreferenced local function has been removed */
636
+#ifndef SWIGUNUSEDPARM
638
+# define SWIGUNUSEDPARM(p)
640
+# define SWIGUNUSEDPARM(p) p SWIGUNUSED
644
+/* internal SWIG method */
646
+# define SWIGINTERN static SWIGUNUSED
649
+/* internal inline SWIG method */
650
+#ifndef SWIGINTERNINLINE
651
+# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
654
+/* exporting methods */
655
+#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
656
+# ifndef GCC_HASCLASSVISIBILITY
657
+# define GCC_HASCLASSVISIBILITY
662
+# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
663
+# if defined(STATIC_LINKED)
666
+# define SWIGEXPORT __declspec(dllexport)
669
+# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
670
+# define SWIGEXPORT __attribute__ ((visibility("default")))
677
+/* calling conventions for Windows */
679
+# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
680
+# define SWIGSTDCALL __stdcall
682
+# define SWIGSTDCALL
686
+/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
687
+#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
688
+# define _CRT_SECURE_NO_DEPRECATE
691
+/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
692
+#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
693
+# define _SCL_SECURE_NO_DEPRECATE
698
+/* Python.h has to appear first */
701
+/* -----------------------------------------------------------------------------
704
+ * This file contains generic CAPI SWIG runtime support for pointer
706
+ * ----------------------------------------------------------------------------- */
708
+/* This should only be incremented when either the layout of swig_type_info changes,
709
+ or for whatever reason, the runtime changes incompatibly */
710
+#define SWIG_RUNTIME_VERSION "4"
712
+/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
713
+#ifdef SWIG_TYPE_TABLE
714
+# define SWIG_QUOTE_STRING(x) #x
715
+# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
716
+# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
718
+# define SWIG_TYPE_TABLE_NAME
722
+ You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
723
+ creating a static or dynamic library from the swig runtime code.
724
+ In 99.9% of the cases, swig just needs to declare them as 'static'.
726
+ But only do this if is strictly necessary, ie, if you have problems
727
+ with your compiler or so.
731
+# define SWIGRUNTIME SWIGINTERN
734
+#ifndef SWIGRUNTIMEINLINE
735
+# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
738
+/* Generic buffer size */
739
+#ifndef SWIG_BUFFER_SIZE
740
+# define SWIG_BUFFER_SIZE 1024
743
+/* Flags for pointer conversions */
744
+#define SWIG_POINTER_DISOWN 0x1
745
+#define SWIG_CAST_NEW_MEMORY 0x2
747
+/* Flags for new pointer objects */
748
+#define SWIG_POINTER_OWN 0x1
752
+ Flags/methods for returning states.
754
+ The swig conversion methods, as ConvertPtr, return and integer
755
+ that tells if the conversion was successful or not. And if not,
756
+ an error code can be returned (see swigerrors.swg for the codes).
758
+ Use the following macros/flags to set or process the returning
761
+ In old swig versions, you usually write code as:
763
+ if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
769
+ Now you can be more explicit as:
771
+ int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
772
+ if (SWIG_IsOK(res)) {
778
+ that seems to be the same, but now you can also do
781
+ int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
782
+ if (SWIG_IsOK(res)) {
784
+ if (SWIG_IsNewObj(res) {
794
+ I.e., now SWIG_ConvertPtr can return new objects and you can
795
+ identify the case and take care of the deallocation. Of course that
796
+ requires also to SWIG_ConvertPtr to return new result values, as
798
+ int SWIG_ConvertPtr(obj, ptr,...) {
800
+ if (<need new object>) {
801
+ *ptr = <ptr to new allocated object>;
802
+ return SWIG_NEWOBJ;
804
+ *ptr = <ptr to old object>;
805
+ return SWIG_OLDOBJ;
808
+ return SWIG_BADOBJ;
812
+ Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
813
+ more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
816
+ Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
817
+ allows to return the 'cast rank', for example, if you have this
824
+ food(1) // cast rank '1' (1 -> 1.0)
825
+ fooi(1) // cast rank '0'
827
+ just use the SWIG_AddCast()/SWIG_CheckState()
832
+#define SWIG_ERROR (-1)
833
+#define SWIG_IsOK(r) (r >= 0)
834
+#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
836
+/* The CastRankLimit says how many bits are used for the cast rank */
837
+#define SWIG_CASTRANKLIMIT (1 << 8)
838
+/* The NewMask denotes the object was created (using new/malloc) */
839
+#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
840
+/* The TmpMask is for in/out typemaps that use temporal objects */
841
+#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
842
+/* Simple returning values */
843
+#define SWIG_BADOBJ (SWIG_ERROR)
844
+#define SWIG_OLDOBJ (SWIG_OK)
845
+#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
846
+#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
847
+/* Check, add and del mask methods */
848
+#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
849
+#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
850
+#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
851
+#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
852
+#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
853
+#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
856
+/* Cast-Rank Mode */
857
+#if defined(SWIG_CASTRANK_MODE)
858
+# ifndef SWIG_TypeRank
859
+# define SWIG_TypeRank unsigned long
861
+# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
862
+# define SWIG_MAXCASTRANK (2)
864
+# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
865
+# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
866
+SWIGINTERNINLINE int SWIG_AddCast(int r) {
867
+ return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
869
+SWIGINTERNINLINE int SWIG_CheckState(int r) {
870
+ return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
872
+#else /* no cast-rank mode */
873
+# define SWIG_AddCast
874
+# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
886
+typedef void *(*swig_converter_func)(void *, int *);
887
+typedef struct swig_type_info *(*swig_dycast_func)(void **);
889
+/* Structure to store information on one type */
890
+typedef struct swig_type_info {
891
+ const char *name; /* mangled name of this type */
892
+ const char *str; /* human readable name of this type */
893
+ swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
894
+ struct swig_cast_info *cast; /* linked list of types that can cast into this type */
895
+ void *clientdata; /* language specific type data */
896
+ int owndata; /* flag if the structure owns the clientdata */
899
+/* Structure to store a type and conversion function used for casting */
900
+typedef struct swig_cast_info {
901
+ swig_type_info *type; /* pointer to type that is equivalent to this type */
902
+ swig_converter_func converter; /* function to cast the void pointers */
903
+ struct swig_cast_info *next; /* pointer to next cast in linked list */
904
+ struct swig_cast_info *prev; /* pointer to the previous cast */
907
+/* Structure used to store module information
908
+ * Each module generates one structure like this, and the runtime collects
909
+ * all of these structures and stores them in a circularly linked list.*/
910
+typedef struct swig_module_info {
911
+ swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
912
+ size_t size; /* Number of types in this module */
913
+ struct swig_module_info *next; /* Pointer to next element in circularly linked list */
914
+ swig_type_info **type_initial; /* Array of initially generated type structures */
915
+ swig_cast_info **cast_initial; /* Array of initially generated casting structures */
916
+ void *clientdata; /* Language specific module data */
920
+ Compare two type names skipping the space characters, therefore
921
+ "char*" == "char *" and "Class<int>" == "Class<int >", etc.
923
+ Return 0 when the two name types are equivalent, as in
924
+ strncmp, but skipping ' '.
927
+SWIG_TypeNameComp(const char *f1, const char *l1,
928
+ const char *f2, const char *l2) {
929
+ for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
930
+ while ((*f1 == ' ') && (f1 != l1)) ++f1;
931
+ while ((*f2 == ' ') && (f2 != l2)) ++f2;
932
+ if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
934
+ return (int)((l1 - f1) - (l2 - f2));
938
+ Check type equivalence in a name list like <name1>|<name2>|...
939
+ Return 0 if not equal, 1 if equal
942
+SWIG_TypeEquiv(const char *nb, const char *tb) {
944
+ const char* te = tb + strlen(tb);
945
+ const char* ne = nb;
946
+ while (!equiv && *ne) {
947
+ for (nb = ne; *ne; ++ne) {
948
+ if (*ne == '|') break;
950
+ equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
957
+ Check type equivalence in a name list like <name1>|<name2>|...
958
+ Return 0 if equal, -1 if nb < tb, 1 if nb > tb
961
+SWIG_TypeCompare(const char *nb, const char *tb) {
963
+ const char* te = tb + strlen(tb);
964
+ const char* ne = nb;
965
+ while (!equiv && *ne) {
966
+ for (nb = ne; *ne; ++ne) {
967
+ if (*ne == '|') break;
969
+ equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
976
+/* think of this as a c++ template<> or a scheme macro */
977
+#define SWIG_TypeCheck_Template(comparison, ty) \
979
+ swig_cast_info *iter = ty->cast; \
981
+ if (comparison) { \
982
+ if (iter == ty->cast) return iter; \
983
+ /* Move iter to the top of the linked list */ \
984
+ iter->prev->next = iter->next; \
986
+ iter->next->prev = iter->prev; \
987
+ iter->next = ty->cast; \
989
+ if (ty->cast) ty->cast->prev = iter; \
993
+ iter = iter->next; \
1001
+SWIGRUNTIME swig_cast_info *
1002
+SWIG_TypeCheck(const char *c, swig_type_info *ty) {
1003
+ SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
1006
+/* Same as previous function, except strcmp is replaced with a pointer comparison */
1007
+SWIGRUNTIME swig_cast_info *
1008
+SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
1009
+ SWIG_TypeCheck_Template(iter->type == from, into);
1013
+ Cast a pointer up an inheritance hierarchy
1015
+SWIGRUNTIMEINLINE void *
1016
+SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
1017
+ return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
1021
+ Dynamic pointer casting. Down an inheritance hierarchy
1023
+SWIGRUNTIME swig_type_info *
1024
+SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
1025
+ swig_type_info *lastty = ty;
1026
+ if (!ty || !ty->dcast) return ty;
1027
+ while (ty && (ty->dcast)) {
1028
+ ty = (*ty->dcast)(ptr);
1029
+ if (ty) lastty = ty;
1035
+ Return the name associated with this type
1037
+SWIGRUNTIMEINLINE const char *
1038
+SWIG_TypeName(const swig_type_info *ty) {
1043
+ Return the pretty name associated with this type,
1044
+ that is an unmangled type name in a form presentable to the user.
1046
+SWIGRUNTIME const char *
1047
+SWIG_TypePrettyName(const swig_type_info *type) {
1048
+ /* The "str" field contains the equivalent pretty names of the
1049
+ type, separated by vertical-bar characters. We choose
1050
+ to print the last name, as it is often (?) the most
1052
+ if (!type) return NULL;
1053
+ if (type->str != NULL) {
1054
+ const char *last_name = type->str;
1056
+ for (s = type->str; *s; s++)
1057
+ if (*s == '|') last_name = s+1;
1061
+ return type->name;
1065
+ Set the clientdata field for a type
1068
+SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
1069
+ swig_cast_info *cast = ti->cast;
1070
+ /* if (ti->clientdata == clientdata) return; */
1071
+ ti->clientdata = clientdata;
1074
+ if (!cast->converter) {
1075
+ swig_type_info *tc = cast->type;
1076
+ if (!tc->clientdata) {
1077
+ SWIG_TypeClientData(tc, clientdata);
1080
+ cast = cast->next;
1084
+SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
1085
+ SWIG_TypeClientData(ti, clientdata);
1090
+ Search for a swig_type_info structure only by mangled name
1091
+ Search is a O(log #types)
1093
+ We start searching at module start, and finish searching when start == end.
1094
+ Note: if start == end at the beginning of the function, we go all the way around
1095
+ the circular list.
1097
+SWIGRUNTIME swig_type_info *
1098
+SWIG_MangledTypeQueryModule(swig_module_info *start,
1099
+ swig_module_info *end,
1100
+ const char *name) {
1101
+ swig_module_info *iter = start;
1104
+ register size_t l = 0;
1105
+ register size_t r = iter->size - 1;
1107
+ /* since l+r >= 0, we can (>> 1) instead (/ 2) */
1108
+ register size_t i = (l + r) >> 1;
1109
+ const char *iname = iter->types[i]->name;
1111
+ register int compare = strcmp(name, iname);
1112
+ if (compare == 0) {
1113
+ return iter->types[i];
1114
+ } else if (compare < 0) {
1120
+ } else if (compare > 0) {
1124
+ break; /* should never happen */
1128
+ iter = iter->next;
1129
+ } while (iter != end);
1134
+ Search for a swig_type_info structure for either a mangled name or a human readable name.
1135
+ It first searches the mangled names of the types, which is a O(log #types)
1136
+ If a type is not found it then searches the human readable names, which is O(#types).
1138
+ We start searching at module start, and finish searching when start == end.
1139
+ Note: if start == end at the beginning of the function, we go all the way around
1140
+ the circular list.
1142
+SWIGRUNTIME swig_type_info *
1143
+SWIG_TypeQueryModule(swig_module_info *start,
1144
+ swig_module_info *end,
1145
+ const char *name) {
1146
+ /* STEP 1: Search the name field using binary search */
1147
+ swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
1151
+ /* STEP 2: If the type hasn't been found, do a complete search
1152
+ of the str field (the human readable name) */
1153
+ swig_module_info *iter = start;
1155
+ register size_t i = 0;
1156
+ for (; i < iter->size; ++i) {
1157
+ if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
1158
+ return iter->types[i];
1160
+ iter = iter->next;
1161
+ } while (iter != end);
1164
+ /* neither found a match */
1169
+ Pack binary data into a string
1172
+SWIG_PackData(char *c, void *ptr, size_t sz) {
1173
+ static const char hex[17] = "0123456789abcdef";
1174
+ register const unsigned char *u = (unsigned char *) ptr;
1175
+ register const unsigned char *eu = u + sz;
1176
+ for (; u != eu; ++u) {
1177
+ register unsigned char uu = *u;
1178
+ *(c++) = hex[(uu & 0xf0) >> 4];
1179
+ *(c++) = hex[uu & 0xf];
1185
+ Unpack binary data from a string
1187
+SWIGRUNTIME const char *
1188
+SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
1189
+ register unsigned char *u = (unsigned char *) ptr;
1190
+ register const unsigned char *eu = u + sz;
1191
+ for (; u != eu; ++u) {
1192
+ register char d = *(c++);
1193
+ register unsigned char uu;
1194
+ if ((d >= '0') && (d <= '9'))
1195
+ uu = ((d - '0') << 4);
1196
+ else if ((d >= 'a') && (d <= 'f'))
1197
+ uu = ((d - ('a'-10)) << 4);
1199
+ return (char *) 0;
1201
+ if ((d >= '0') && (d <= '9'))
1203
+ else if ((d >= 'a') && (d <= 'f'))
1204
+ uu |= (d - ('a'-10));
1206
+ return (char *) 0;
1213
+ Pack 'void *' into a string buffer.
1216
+SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
1218
+ if ((2*sizeof(void *) + 2) > bsz) return 0;
1220
+ r = SWIG_PackData(r,&ptr,sizeof(void *));
1221
+ if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
1226
+SWIGRUNTIME const char *
1227
+SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
1229
+ if (strcmp(c,"NULL") == 0) {
1230
+ *ptr = (void *) 0;
1236
+ return SWIG_UnpackData(++c,ptr,sizeof(void *));
1240
+SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
1242
+ size_t lname = (name ? strlen(name) : 0);
1243
+ if ((2*sz + 2 + lname) > bsz) return 0;
1245
+ r = SWIG_PackData(r,ptr,sz);
1247
+ strncpy(r,name,lname+1);
1254
+SWIGRUNTIME const char *
1255
+SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
1257
+ if (strcmp(c,"NULL") == 0) {
1264
+ return SWIG_UnpackData(++c,ptr,sz);
1271
+/* Errors in SWIG */
1272
+#define SWIG_UnknownError -1
1273
+#define SWIG_IOError -2
1274
+#define SWIG_RuntimeError -3
1275
+#define SWIG_IndexError -4
1276
+#define SWIG_TypeError -5
1277
+#define SWIG_DivisionByZero -6
1278
+#define SWIG_OverflowError -7
1279
+#define SWIG_SyntaxError -8
1280
+#define SWIG_ValueError -9
1281
+#define SWIG_SystemError -10
1282
+#define SWIG_AttributeError -11
1283
+#define SWIG_MemoryError -12
1284
+#define SWIG_NullReferenceError -13
1289
+/* Add PyOS_snprintf for old Pythons */
1290
+#if PY_VERSION_HEX < 0x02020000
1291
+# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
1292
+# define PyOS_snprintf _snprintf
1294
+# define PyOS_snprintf snprintf
1298
+/* A crude PyString_FromFormat implementation for old Pythons */
1299
+#if PY_VERSION_HEX < 0x02020000
1301
+#ifndef SWIG_PYBUFFER_SIZE
1302
+# define SWIG_PYBUFFER_SIZE 1024
1306
+PyString_FromFormat(const char *fmt, ...) {
1308
+ char buf[SWIG_PYBUFFER_SIZE * 2];
1310
+ va_start(ap, fmt);
1311
+ res = vsnprintf(buf, sizeof(buf), fmt, ap);
1313
+ return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
1317
+/* Add PyObject_Del for old Pythons */
1318
+#if PY_VERSION_HEX < 0x01060000
1319
+# define PyObject_Del(op) PyMem_DEL((op))
1321
+#ifndef PyObject_DEL
1322
+# define PyObject_DEL PyObject_Del
1325
+/* A crude PyExc_StopIteration exception for old Pythons */
1326
+#if PY_VERSION_HEX < 0x02020000
1327
+# ifndef PyExc_StopIteration
1328
+# define PyExc_StopIteration PyExc_RuntimeError
1330
+# ifndef PyObject_GenericGetAttr
1331
+# define PyObject_GenericGetAttr 0
1334
+/* Py_NotImplemented is defined in 2.1 and up. */
1335
+#if PY_VERSION_HEX < 0x02010000
1336
+# ifndef Py_NotImplemented
1337
+# define Py_NotImplemented PyExc_RuntimeError
1342
+/* A crude PyString_AsStringAndSize implementation for old Pythons */
1343
+#if PY_VERSION_HEX < 0x02010000
1344
+# ifndef PyString_AsStringAndSize
1345
+# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
1349
+/* PySequence_Size for old Pythons */
1350
+#if PY_VERSION_HEX < 0x02000000
1351
+# ifndef PySequence_Size
1352
+# define PySequence_Size PySequence_Length
1357
+/* PyBool_FromLong for old Pythons */
1358
+#if PY_VERSION_HEX < 0x02030000
1360
+PyObject *PyBool_FromLong(long ok)
1362
+ PyObject *result = ok ? Py_True : Py_False;
1363
+ Py_INCREF(result);
1368
+/* Py_ssize_t for old Pythons */
1369
+/* This code is as recommended by: */
1370
+/* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */
1371
+#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
1372
+typedef int Py_ssize_t;
1373
+# define PY_SSIZE_T_MAX INT_MAX
1374
+# define PY_SSIZE_T_MIN INT_MIN
1377
+/* -----------------------------------------------------------------------------
1378
+ * error manipulation
1379
+ * ----------------------------------------------------------------------------- */
1381
+SWIGRUNTIME PyObject*
1382
+SWIG_Python_ErrorType(int code) {
1383
+ PyObject* type = 0;
1385
+ case SWIG_MemoryError:
1386
+ type = PyExc_MemoryError;
1388
+ case SWIG_IOError:
1389
+ type = PyExc_IOError;
1391
+ case SWIG_RuntimeError:
1392
+ type = PyExc_RuntimeError;
1394
+ case SWIG_IndexError:
1395
+ type = PyExc_IndexError;
1397
+ case SWIG_TypeError:
1398
+ type = PyExc_TypeError;
1400
+ case SWIG_DivisionByZero:
1401
+ type = PyExc_ZeroDivisionError;
1403
+ case SWIG_OverflowError:
1404
+ type = PyExc_OverflowError;
1406
+ case SWIG_SyntaxError:
1407
+ type = PyExc_SyntaxError;
1409
+ case SWIG_ValueError:
1410
+ type = PyExc_ValueError;
1412
+ case SWIG_SystemError:
1413
+ type = PyExc_SystemError;
1415
+ case SWIG_AttributeError:
1416
+ type = PyExc_AttributeError;
1419
+ type = PyExc_RuntimeError;
1426
+SWIG_Python_AddErrorMsg(const char* mesg)
1428
+ PyObject *type = 0;
1429
+ PyObject *value = 0;
1430
+ PyObject *traceback = 0;
1432
+ if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
1434
+ PyObject *old_str = PyObject_Str(value);
1437
+ PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
1438
+ Py_DECREF(old_str);
1441
+ PyErr_SetString(PyExc_RuntimeError, mesg);
1447
+#if defined(SWIG_PYTHON_NO_THREADS)
1448
+# if defined(SWIG_PYTHON_THREADS)
1449
+# undef SWIG_PYTHON_THREADS
1452
+#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
1453
+# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
1454
+# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
1455
+# define SWIG_PYTHON_USE_GIL
1458
+# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
1459
+# ifndef SWIG_PYTHON_INITIALIZE_THREADS
1460
+# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
1462
+# ifdef __cplusplus /* C++ code */
1463
+ class SWIG_Python_Thread_Block {
1465
+ PyGILState_STATE state;
1467
+ void end() { if (status) { PyGILState_Release(state); status = false;} }
1468
+ SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
1469
+ ~SWIG_Python_Thread_Block() { end(); }
1471
+ class SWIG_Python_Thread_Allow {
1473
+ PyThreadState *save;
1475
+ void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
1476
+ SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
1477
+ ~SWIG_Python_Thread_Allow() { end(); }
1479
+# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
1480
+# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
1481
+# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
1482
+# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
1483
+# else /* C code */
1484
+# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
1485
+# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
1486
+# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
1487
+# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
1489
+# else /* Old thread way, not implemented, user must provide it */
1490
+# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
1491
+# define SWIG_PYTHON_INITIALIZE_THREADS
1493
+# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
1494
+# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1496
+# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
1497
+# define SWIG_PYTHON_THREAD_END_BLOCK
1499
+# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
1500
+# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1502
+# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
1503
+# define SWIG_PYTHON_THREAD_END_ALLOW
1506
+#else /* No thread support */
1507
+# define SWIG_PYTHON_INITIALIZE_THREADS
1508
+# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1509
+# define SWIG_PYTHON_THREAD_END_BLOCK
1510
+# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1511
+# define SWIG_PYTHON_THREAD_END_ALLOW
1514
+/* -----------------------------------------------------------------------------
1515
+ * Python API portion that goes into the runtime
1516
+ * ----------------------------------------------------------------------------- */
1525
+/* -----------------------------------------------------------------------------
1526
+ * Constant declarations
1527
+ * ----------------------------------------------------------------------------- */
1529
+/* Constant Types */
1530
+#define SWIG_PY_POINTER 4
1531
+#define SWIG_PY_BINARY 5
1533
+/* Constant information structure */
1534
+typedef struct swig_const_info {
1540
+ swig_type_info **ptype;
1551
+/* -----------------------------------------------------------------------------
1552
+ * See the LICENSE file for information on copyright, usage and redistribution
1553
+ * of SWIG, and the README file for authors - http://www.swig.org/release.html.
1557
+ * This file contains the runtime support for Python modules
1558
+ * and includes code for managing global variables and pointer
1561
+ * ----------------------------------------------------------------------------- */
1563
+/* Common SWIG API */
1565
+/* for raw pointers */
1566
+#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1567
+#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
1568
+#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
1569
+#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
1570
+#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
1571
+#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
1572
+#define swig_owntype int
1574
+/* for raw packed data */
1575
+#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1576
+#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1578
+/* for class or struct pointers */
1579
+#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1580
+#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1582
+/* for C or C++ function pointers */
1583
+#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1584
+#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1586
+/* for C++ member pointers, ie, member methods */
1587
+#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1588
+#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1593
+#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1594
+#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1595
+#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1597
+#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1598
+#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1599
+#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1600
+#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1601
+#define SWIG_fail goto fail
1604
+/* Runtime API implementation */
1606
+/* Error manipulation */
1609
+SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1610
+ SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1611
+ PyErr_SetObject(errtype, obj);
1613
+ SWIG_PYTHON_THREAD_END_BLOCK;
1617
+SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1618
+ SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1619
+ PyErr_SetString(errtype, (char *) msg);
1620
+ SWIG_PYTHON_THREAD_END_BLOCK;
1623
+#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1625
+/* Set a constant value */
1628
+SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1629
+ PyDict_SetItemString(d, (char*) name, obj);
1633
+/* Append a value to the result obj */
1635
+SWIGINTERN PyObject*
1636
+SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1637
+#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1640
+ } else if (result == Py_None) {
1641
+ Py_DECREF(result);
1644
+ if (!PyList_Check(result)) {
1645
+ PyObject *o2 = result;
1646
+ result = PyList_New(1);
1647
+ PyList_SetItem(result, 0, o2);
1649
+ PyList_Append(result,obj);
1658
+ } else if (result == Py_None) {
1659
+ Py_DECREF(result);
1662
+ if (!PyTuple_Check(result)) {
1664
+ result = PyTuple_New(1);
1665
+ PyTuple_SET_ITEM(result, 0, o2);
1667
+ o3 = PyTuple_New(1);
1668
+ PyTuple_SET_ITEM(o3, 0, obj);
1670
+ result = PySequence_Concat(o2, o3);
1678
+/* Unpack the argument tuple */
1681
+SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
1684
+ if (!min && !max) {
1687
+ PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1688
+ name, (min == max ? "" : "at least "), (int)min);
1692
+ if (!PyTuple_Check(args)) {
1693
+ PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1696
+ register Py_ssize_t l = PyTuple_GET_SIZE(args);
1698
+ PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1699
+ name, (min == max ? "" : "at least "), (int)min, (int)l);
1701
+ } else if (l > max) {
1702
+ PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1703
+ name, (min == max ? "" : "at most "), (int)max, (int)l);
1707
+ for (i = 0; i < l; ++i) {
1708
+ objs[i] = PyTuple_GET_ITEM(args, i);
1710
+ for (; l < max; ++l) {
1718
+/* A functor is a function object with one single object argument */
1719
+#if PY_VERSION_HEX >= 0x02020000
1720
+#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1722
+#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1726
+ Helper for static pointer initialization for both C and C++ code, for example
1727
+ static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1730
+#define SWIG_STATIC_POINTER(var) var
1732
+#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1735
+/* -----------------------------------------------------------------------------
1736
+ * Pointer declarations
1737
+ * ----------------------------------------------------------------------------- */
1739
+/* Flags for new pointer objects */
1740
+#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1741
+#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1743
+#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1752
+/* How to access Py_None */
1753
+#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1754
+# ifndef SWIG_PYTHON_NO_BUILD_NONE
1755
+# ifndef SWIG_PYTHON_BUILD_NONE
1756
+# define SWIG_PYTHON_BUILD_NONE
1761
+#ifdef SWIG_PYTHON_BUILD_NONE
1764
+# define Py_None SWIG_Py_None()
1766
+SWIGRUNTIMEINLINE PyObject *
1767
+_SWIG_Py_None(void)
1769
+ PyObject *none = Py_BuildValue((char*)"");
1773
+SWIGRUNTIME PyObject *
1776
+ static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1781
+/* The python void return value */
1783
+SWIGRUNTIMEINLINE PyObject *
1786
+ PyObject *none = Py_None;
1791
+/* PySwigClientData */
1796
+ PyObject *newargs;
1797
+ PyObject *destroy;
1800
+} PySwigClientData;
1802
+SWIGRUNTIMEINLINE int
1803
+SWIG_Python_CheckImplicit(swig_type_info *ty)
1805
+ PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1806
+ return data ? data->implicitconv : 0;
1809
+SWIGRUNTIMEINLINE PyObject *
1810
+SWIG_Python_ExceptionType(swig_type_info *desc) {
1811
+ PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1812
+ PyObject *klass = data ? data->klass : 0;
1813
+ return (klass ? klass : PyExc_RuntimeError);
1817
+SWIGRUNTIME PySwigClientData *
1818
+PySwigClientData_New(PyObject* obj)
1823
+ PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1824
+ /* the klass element */
1825
+ data->klass = obj;
1826
+ Py_INCREF(data->klass);
1827
+ /* the newraw method and newargs arguments used to create a new raw instance */
1828
+ if (PyClass_Check(obj)) {
1830
+ data->newargs = obj;
1833
+#if (PY_VERSION_HEX < 0x02020000)
1836
+ data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1838
+ if (data->newraw) {
1839
+ Py_INCREF(data->newraw);
1840
+ data->newargs = PyTuple_New(1);
1841
+ PyTuple_SetItem(data->newargs, 0, obj);
1843
+ data->newargs = obj;
1845
+ Py_INCREF(data->newargs);
1847
+ /* the destroy method, aka as the C++ delete method */
1848
+ data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1849
+ if (PyErr_Occurred()) {
1851
+ data->destroy = 0;
1853
+ if (data->destroy) {
1855
+ Py_INCREF(data->destroy);
1856
+ flags = PyCFunction_GET_FLAGS(data->destroy);
1858
+ data->delargs = !(flags & (METH_O));
1860
+ data->delargs = 0;
1863
+ data->delargs = 0;
1865
+ data->implicitconv = 0;
1871
+PySwigClientData_Del(PySwigClientData* data)
1873
+ Py_XDECREF(data->newraw);
1874
+ Py_XDECREF(data->newargs);
1875
+ Py_XDECREF(data->destroy);
1878
+/* =============== PySwigObject =====================*/
1883
+ swig_type_info *ty;
1888
+SWIGRUNTIME PyObject *
1889
+PySwigObject_long(PySwigObject *v)
1891
+ return PyLong_FromVoidPtr(v->ptr);
1894
+SWIGRUNTIME PyObject *
1895
+PySwigObject_format(const char* fmt, PySwigObject *v)
1897
+ PyObject *res = NULL;
1898
+ PyObject *args = PyTuple_New(1);
1900
+ if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1901
+ PyObject *ofmt = PyString_FromString(fmt);
1903
+ res = PyString_Format(ofmt,args);
1912
+SWIGRUNTIME PyObject *
1913
+PySwigObject_oct(PySwigObject *v)
1915
+ return PySwigObject_format("%o",v);
1918
+SWIGRUNTIME PyObject *
1919
+PySwigObject_hex(PySwigObject *v)
1921
+ return PySwigObject_format("%x",v);
1924
+SWIGRUNTIME PyObject *
1926
+PySwigObject_repr(PySwigObject *v)
1928
+PySwigObject_repr(PySwigObject *v, PyObject *args)
1931
+ const char *name = SWIG_TypePrettyName(v->ty);
1932
+ PyObject *hex = PySwigObject_hex(v);
1933
+ PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1937
+ PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1939
+ PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1941
+ PyString_ConcatAndDel(&repr,nrep);
1947
+PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1950
+ PyObject *repr = PySwigObject_repr(v);
1952
+ PyObject *repr = PySwigObject_repr(v, NULL);
1955
+ fputs(PyString_AsString(repr), fp);
1963
+SWIGRUNTIME PyObject *
1964
+PySwigObject_str(PySwigObject *v)
1966
+ char result[SWIG_BUFFER_SIZE];
1967
+ return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1968
+ PyString_FromString(result) : 0;
1972
+PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1976
+ return (i < j) ? -1 : ((i > j) ? 1 : 0);
1979
+SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1981
+SWIGRUNTIME PyTypeObject*
1982
+PySwigObject_type(void) {
1983
+ static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1987
+SWIGRUNTIMEINLINE int
1988
+PySwigObject_Check(PyObject *op) {
1989
+ return ((op)->ob_type == PySwigObject_type())
1990
+ || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1993
+SWIGRUNTIME PyObject *
1994
+PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1997
+PySwigObject_dealloc(PyObject *v)
1999
+ PySwigObject *sobj = (PySwigObject *) v;
2000
+ PyObject *next = sobj->next;
2001
+ if (sobj->own == SWIG_POINTER_OWN) {
2002
+ swig_type_info *ty = sobj->ty;
2003
+ PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2004
+ PyObject *destroy = data ? data->destroy : 0;
2006
+ /* destroy is always a VARARGS method */
2008
+ if (data->delargs) {
2009
+ /* we need to create a temporal object to carry the destroy operation */
2010
+ PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
2011
+ res = SWIG_Python_CallFunctor(destroy, tmp);
2014
+ PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
2015
+ PyObject *mself = PyCFunction_GET_SELF(destroy);
2016
+ res = ((*meth)(mself, v));
2020
+#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
2022
+ const char *name = SWIG_TypePrettyName(ty);
2023
+ printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown"));
2031
+SWIGRUNTIME PyObject*
2032
+PySwigObject_append(PyObject* v, PyObject* next)
2034
+ PySwigObject *sobj = (PySwigObject *) v;
2036
+ PyObject *tmp = 0;
2037
+ if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
2040
+ if (!PySwigObject_Check(next)) {
2043
+ sobj->next = next;
2045
+ return SWIG_Py_Void();
2048
+SWIGRUNTIME PyObject*
2050
+PySwigObject_next(PyObject* v)
2052
+PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
2055
+ PySwigObject *sobj = (PySwigObject *) v;
2057
+ Py_INCREF(sobj->next);
2058
+ return sobj->next;
2060
+ return SWIG_Py_Void();
2064
+SWIGINTERN PyObject*
2066
+PySwigObject_disown(PyObject *v)
2068
+PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
2071
+ PySwigObject *sobj = (PySwigObject *)v;
2073
+ return SWIG_Py_Void();
2076
+SWIGINTERN PyObject*
2078
+PySwigObject_acquire(PyObject *v)
2080
+PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
2083
+ PySwigObject *sobj = (PySwigObject *)v;
2084
+ sobj->own = SWIG_POINTER_OWN;
2085
+ return SWIG_Py_Void();
2088
+SWIGINTERN PyObject*
2089
+PySwigObject_own(PyObject *v, PyObject *args)
2091
+ PyObject *val = 0;
2092
+#if (PY_VERSION_HEX < 0x02020000)
2093
+ if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
2095
+ if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
2102
+ PySwigObject *sobj = (PySwigObject *)v;
2103
+ PyObject *obj = PyBool_FromLong(sobj->own);
2106
+ if (PyObject_IsTrue(val)) {
2107
+ PySwigObject_acquire(v);
2109
+ PySwigObject_disown(v);
2112
+ if (PyObject_IsTrue(val)) {
2113
+ PySwigObject_acquire(v,args);
2115
+ PySwigObject_disown(v,args);
2125
+swigobject_methods[] = {
2126
+ {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
2127
+ {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
2128
+ {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
2129
+ {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
2130
+ {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
2131
+ {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
2136
+swigobject_methods[] = {
2137
+ {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
2138
+ {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
2139
+ {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
2140
+ {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
2141
+ {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
2142
+ {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
2147
+#if PY_VERSION_HEX < 0x02020000
2148
+SWIGINTERN PyObject *
2149
+PySwigObject_getattr(PySwigObject *sobj,char *name)
2151
+ return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
2155
+SWIGRUNTIME PyTypeObject*
2156
+_PySwigObject_type(void) {
2157
+ static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
2159
+ static PyNumberMethods PySwigObject_as_number = {
2160
+ (binaryfunc)0, /*nb_add*/
2161
+ (binaryfunc)0, /*nb_subtract*/
2162
+ (binaryfunc)0, /*nb_multiply*/
2163
+ (binaryfunc)0, /*nb_divide*/
2164
+ (binaryfunc)0, /*nb_remainder*/
2165
+ (binaryfunc)0, /*nb_divmod*/
2166
+ (ternaryfunc)0,/*nb_power*/
2167
+ (unaryfunc)0, /*nb_negative*/
2168
+ (unaryfunc)0, /*nb_positive*/
2169
+ (unaryfunc)0, /*nb_absolute*/
2170
+ (inquiry)0, /*nb_nonzero*/
2177
+ (coercion)0, /*nb_coerce*/
2178
+ (unaryfunc)PySwigObject_long, /*nb_int*/
2179
+ (unaryfunc)PySwigObject_long, /*nb_long*/
2180
+ (unaryfunc)0, /*nb_float*/
2181
+ (unaryfunc)PySwigObject_oct, /*nb_oct*/
2182
+ (unaryfunc)PySwigObject_hex, /*nb_hex*/
2183
+#if PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */
2184
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */
2185
+#elif PY_VERSION_HEX >= 0x02020000 /* 2.2.0 */
2186
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
2187
+#elif PY_VERSION_HEX >= 0x02000000 /* 2.0.0 */
2188
+ 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
2192
+ static PyTypeObject pyswigobject_type;
2193
+ static int type_init = 0;
2195
+ const PyTypeObject tmp
2197
+ PyObject_HEAD_INIT(NULL)
2199
+ (char *)"PySwigObject", /* tp_name */
2200
+ sizeof(PySwigObject), /* tp_basicsize */
2201
+ 0, /* tp_itemsize */
2202
+ (destructor)PySwigObject_dealloc, /* tp_dealloc */
2203
+ (printfunc)PySwigObject_print, /* tp_print */
2204
+#if PY_VERSION_HEX < 0x02020000
2205
+ (getattrfunc)PySwigObject_getattr, /* tp_getattr */
2207
+ (getattrfunc)0, /* tp_getattr */
2209
+ (setattrfunc)0, /* tp_setattr */
2210
+ (cmpfunc)PySwigObject_compare, /* tp_compare */
2211
+ (reprfunc)PySwigObject_repr, /* tp_repr */
2212
+ &PySwigObject_as_number, /* tp_as_number */
2213
+ 0, /* tp_as_sequence */
2214
+ 0, /* tp_as_mapping */
2215
+ (hashfunc)0, /* tp_hash */
2216
+ (ternaryfunc)0, /* tp_call */
2217
+ (reprfunc)PySwigObject_str, /* tp_str */
2218
+ PyObject_GenericGetAttr, /* tp_getattro */
2219
+ 0, /* tp_setattro */
2220
+ 0, /* tp_as_buffer */
2221
+ Py_TPFLAGS_DEFAULT, /* tp_flags */
2222
+ swigobject_doc, /* tp_doc */
2223
+ 0, /* tp_traverse */
2225
+ 0, /* tp_richcompare */
2226
+ 0, /* tp_weaklistoffset */
2227
+#if PY_VERSION_HEX >= 0x02020000
2229
+ 0, /* tp_iternext */
2230
+ swigobject_methods, /* tp_methods */
2231
+ 0, /* tp_members */
2232
+ 0, /* tp_getset */
2235
+ 0, /* tp_descr_get */
2236
+ 0, /* tp_descr_set */
2237
+ 0, /* tp_dictoffset */
2246
+ 0, /* tp_subclasses */
2247
+ 0, /* tp_weaklist */
2249
+#if PY_VERSION_HEX >= 0x02030000
2252
+#ifdef COUNT_ALLOCS
2253
+ 0,0,0,0 /* tp_alloc -> tp_next */
2256
+ pyswigobject_type = tmp;
2257
+ pyswigobject_type.ob_type = &PyType_Type;
2260
+ return &pyswigobject_type;
2263
+SWIGRUNTIME PyObject *
2264
+PySwigObject_New(void *ptr, swig_type_info *ty, int own)
2266
+ PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
2273
+ return (PyObject *)sobj;
2276
+/* -----------------------------------------------------------------------------
2277
+ * Implements a simple Swig Packed type, and use it instead of string
2278
+ * ----------------------------------------------------------------------------- */
2283
+ swig_type_info *ty;
2288
+PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
2290
+ char result[SWIG_BUFFER_SIZE];
2291
+ fputs("<Swig Packed ", fp);
2292
+ if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
2294
+ fputs(result, fp);
2296
+ fputs(v->ty->name,fp);
2301
+SWIGRUNTIME PyObject *
2302
+PySwigPacked_repr(PySwigPacked *v)
2304
+ char result[SWIG_BUFFER_SIZE];
2305
+ if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
2306
+ return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
2308
+ return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
2312
+SWIGRUNTIME PyObject *
2313
+PySwigPacked_str(PySwigPacked *v)
2315
+ char result[SWIG_BUFFER_SIZE];
2316
+ if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
2317
+ return PyString_FromFormat("%s%s", result, v->ty->name);
2319
+ return PyString_FromString(v->ty->name);
2324
+PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
2326
+ size_t i = v->size;
2327
+ size_t j = w->size;
2328
+ int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
2329
+ return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
2332
+SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
2334
+SWIGRUNTIME PyTypeObject*
2335
+PySwigPacked_type(void) {
2336
+ static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
2340
+SWIGRUNTIMEINLINE int
2341
+PySwigPacked_Check(PyObject *op) {
2342
+ return ((op)->ob_type == _PySwigPacked_type())
2343
+ || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
2347
+PySwigPacked_dealloc(PyObject *v)
2349
+ if (PySwigPacked_Check(v)) {
2350
+ PySwigPacked *sobj = (PySwigPacked *) v;
2356
+SWIGRUNTIME PyTypeObject*
2357
+_PySwigPacked_type(void) {
2358
+ static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
2359
+ static PyTypeObject pyswigpacked_type;
2360
+ static int type_init = 0;
2362
+ const PyTypeObject tmp
2364
+ PyObject_HEAD_INIT(NULL)
2366
+ (char *)"PySwigPacked", /* tp_name */
2367
+ sizeof(PySwigPacked), /* tp_basicsize */
2368
+ 0, /* tp_itemsize */
2369
+ (destructor)PySwigPacked_dealloc, /* tp_dealloc */
2370
+ (printfunc)PySwigPacked_print, /* tp_print */
2371
+ (getattrfunc)0, /* tp_getattr */
2372
+ (setattrfunc)0, /* tp_setattr */
2373
+ (cmpfunc)PySwigPacked_compare, /* tp_compare */
2374
+ (reprfunc)PySwigPacked_repr, /* tp_repr */
2375
+ 0, /* tp_as_number */
2376
+ 0, /* tp_as_sequence */
2377
+ 0, /* tp_as_mapping */
2378
+ (hashfunc)0, /* tp_hash */
2379
+ (ternaryfunc)0, /* tp_call */
2380
+ (reprfunc)PySwigPacked_str, /* tp_str */
2381
+ PyObject_GenericGetAttr, /* tp_getattro */
2382
+ 0, /* tp_setattro */
2383
+ 0, /* tp_as_buffer */
2384
+ Py_TPFLAGS_DEFAULT, /* tp_flags */
2385
+ swigpacked_doc, /* tp_doc */
2386
+ 0, /* tp_traverse */
2388
+ 0, /* tp_richcompare */
2389
+ 0, /* tp_weaklistoffset */
2390
+#if PY_VERSION_HEX >= 0x02020000
2392
+ 0, /* tp_iternext */
2393
+ 0, /* tp_methods */
2394
+ 0, /* tp_members */
2395
+ 0, /* tp_getset */
2398
+ 0, /* tp_descr_get */
2399
+ 0, /* tp_descr_set */
2400
+ 0, /* tp_dictoffset */
2409
+ 0, /* tp_subclasses */
2410
+ 0, /* tp_weaklist */
2412
+#if PY_VERSION_HEX >= 0x02030000
2415
+#ifdef COUNT_ALLOCS
2416
+ 0,0,0,0 /* tp_alloc -> tp_next */
2419
+ pyswigpacked_type = tmp;
2420
+ pyswigpacked_type.ob_type = &PyType_Type;
2423
+ return &pyswigpacked_type;
2426
+SWIGRUNTIME PyObject *
2427
+PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
2429
+ PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
2431
+ void *pack = malloc(size);
2433
+ memcpy(pack, ptr, size);
2434
+ sobj->pack = pack;
2436
+ sobj->size = size;
2438
+ PyObject_DEL((PyObject *) sobj);
2442
+ return (PyObject *) sobj;
2445
+SWIGRUNTIME swig_type_info *
2446
+PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
2448
+ if (PySwigPacked_Check(obj)) {
2449
+ PySwigPacked *sobj = (PySwigPacked *)obj;
2450
+ if (sobj->size != size) return 0;
2451
+ memcpy(ptr, sobj->pack, size);
2458
+/* -----------------------------------------------------------------------------
2459
+ * pointers/data manipulation
2460
+ * ----------------------------------------------------------------------------- */
2462
+SWIGRUNTIMEINLINE PyObject *
2465
+ return PyString_FromString("this");
2468
+SWIGRUNTIME PyObject *
2471
+ static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
2475
+/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
2477
+SWIGRUNTIME PySwigObject *
2478
+SWIG_Python_GetSwigThis(PyObject *pyobj)
2480
+ if (PySwigObject_Check(pyobj)) {
2481
+ return (PySwigObject *) pyobj;
2483
+ PyObject *obj = 0;
2484
+#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
2485
+ if (PyInstance_Check(pyobj)) {
2486
+ obj = _PyInstance_Lookup(pyobj, SWIG_This());
2488
+ PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
2489
+ if (dictptr != NULL) {
2490
+ PyObject *dict = *dictptr;
2491
+ obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
2493
+#ifdef PyWeakref_CheckProxy
2494
+ if (PyWeakref_CheckProxy(pyobj)) {
2495
+ PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
2496
+ return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
2499
+ obj = PyObject_GetAttr(pyobj,SWIG_This());
2503
+ if (PyErr_Occurred()) PyErr_Clear();
2509
+ obj = PyObject_GetAttr(pyobj,SWIG_This());
2513
+ if (PyErr_Occurred()) PyErr_Clear();
2517
+ if (obj && !PySwigObject_Check(obj)) {
2518
+ /* a PyObject is called 'this', try to get the 'real this'
2519
+ PySwigObject from it */
2520
+ return SWIG_Python_GetSwigThis(obj);
2522
+ return (PySwigObject *)obj;
2526
+/* Acquire a pointer value */
2529
+SWIG_Python_AcquirePtr(PyObject *obj, int own) {
2530
+ if (own == SWIG_POINTER_OWN) {
2531
+ PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
2533
+ int oldown = sobj->own;
2541
+/* Convert a pointer value */
2544
+SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
2545
+ if (!obj) return SWIG_ERROR;
2546
+ if (obj == Py_None) {
2547
+ if (ptr) *ptr = 0;
2550
+ PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
2554
+ void *vptr = sobj->ptr;
2556
+ swig_type_info *to = sobj->ty;
2558
+ /* no type cast needed */
2559
+ if (ptr) *ptr = vptr;
2562
+ swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2564
+ sobj = (PySwigObject *)sobj->next;
2567
+ int newmemory = 0;
2568
+ *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2569
+ if (newmemory == SWIG_CAST_NEW_MEMORY) {
2572
+ *own = *own | SWIG_CAST_NEW_MEMORY;
2579
+ if (ptr) *ptr = vptr;
2585
+ *own = *own | sobj->own;
2586
+ if (flags & SWIG_POINTER_DISOWN) {
2591
+ int res = SWIG_ERROR;
2592
+ if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2593
+ PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2594
+ if (data && !data->implicitconv) {
2595
+ PyObject *klass = data->klass;
2597
+ PyObject *impconv;
2598
+ data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2599
+ impconv = SWIG_Python_CallFunctor(klass, obj);
2600
+ data->implicitconv = 0;
2601
+ if (PyErr_Occurred()) {
2606
+ PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2609
+ res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2610
+ if (SWIG_IsOK(res)) {
2613
+ /* transfer the ownership to 'ptr' */
2615
+ res = SWIG_AddCast(res);
2616
+ res = SWIG_AddNewMask(res);
2618
+ res = SWIG_AddCast(res);
2622
+ Py_DECREF(impconv);
2632
+/* Convert a function ptr value */
2635
+SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2636
+ if (!PyCFunction_Check(obj)) {
2637
+ return SWIG_ConvertPtr(obj, ptr, ty, 0);
2641
+ /* here we get the method pointer for callbacks */
2642
+ const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2643
+ const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2645
+ desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2646
+ if (!desc) return SWIG_ERROR;
2649
+ swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2651
+ int newmemory = 0;
2652
+ *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2653
+ assert(!newmemory); /* newmemory handling not yet implemented */
2655
+ return SWIG_ERROR;
2664
+/* Convert a packed value value */
2667
+SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2668
+ swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2669
+ if (!to) return SWIG_ERROR;
2672
+ /* check type cast? */
2673
+ swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2674
+ if (!tc) return SWIG_ERROR;
2680
+/* -----------------------------------------------------------------------------
2681
+ * Create a new pointer object
2682
+ * ----------------------------------------------------------------------------- */
2685
+ Create a new instance object, whitout calling __init__, and set the
2689
+SWIGRUNTIME PyObject*
2690
+SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2692
+#if (PY_VERSION_HEX >= 0x02020000)
2693
+ PyObject *inst = 0;
2694
+ PyObject *newraw = data->newraw;
2696
+ inst = PyObject_Call(newraw, data->newargs, NULL);
2698
+#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2699
+ PyObject **dictptr = _PyObject_GetDictPtr(inst);
2700
+ if (dictptr != NULL) {
2701
+ PyObject *dict = *dictptr;
2702
+ if (dict == NULL) {
2703
+ dict = PyDict_New();
2705
+ PyDict_SetItem(dict, SWIG_This(), swig_this);
2709
+ PyObject *key = SWIG_This();
2710
+ PyObject_SetAttr(inst, key, swig_this);
2714
+ PyObject *dict = PyDict_New();
2715
+ PyDict_SetItem(dict, SWIG_This(), swig_this);
2716
+ inst = PyInstance_NewRaw(data->newargs, dict);
2721
+#if (PY_VERSION_HEX >= 0x02010000)
2723
+ PyObject *dict = PyDict_New();
2724
+ PyDict_SetItem(dict, SWIG_This(), swig_this);
2725
+ inst = PyInstance_NewRaw(data->newargs, dict);
2727
+ return (PyObject *) inst;
2729
+ PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2730
+ if (inst == NULL) {
2733
+ inst->in_class = (PyClassObject *)data->newargs;
2734
+ Py_INCREF(inst->in_class);
2735
+ inst->in_dict = PyDict_New();
2736
+ if (inst->in_dict == NULL) {
2740
+#ifdef Py_TPFLAGS_HAVE_WEAKREFS
2741
+ inst->in_weakreflist = NULL;
2743
+#ifdef Py_TPFLAGS_GC
2744
+ PyObject_GC_Init(inst);
2746
+ PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2747
+ return (PyObject *) inst;
2753
+SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2756
+#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2757
+ PyObject **dictptr = _PyObject_GetDictPtr(inst);
2758
+ if (dictptr != NULL) {
2760
+ if (dict == NULL) {
2761
+ dict = PyDict_New();
2764
+ PyDict_SetItem(dict, SWIG_This(), swig_this);
2768
+ dict = PyObject_GetAttrString(inst, (char*)"__dict__");
2769
+ PyDict_SetItem(dict, SWIG_This(), swig_this);
2774
+SWIGINTERN PyObject *
2775
+SWIG_Python_InitShadowInstance(PyObject *args) {
2777
+ if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2780
+ PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2782
+ PySwigObject_append((PyObject*) sthis, obj[1]);
2784
+ SWIG_Python_SetSwigThis(obj[0], obj[1]);
2786
+ return SWIG_Py_Void();
2790
+/* Create a new pointer object */
2792
+SWIGRUNTIME PyObject *
2793
+SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2795
+ return SWIG_Py_Void();
2797
+ int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2798
+ PyObject *robj = PySwigObject_New(ptr, type, own);
2799
+ PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2800
+ if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2801
+ PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2811
+/* Create a new packed object */
2813
+SWIGRUNTIMEINLINE PyObject *
2814
+SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2815
+ return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2818
+/* -----------------------------------------------------------------------------*
2820
+ * -----------------------------------------------------------------------------*/
2822
+#ifdef SWIG_LINK_RUNTIME
2823
+void *SWIG_ReturnGlobalTypeList(void *);
2826
+SWIGRUNTIME swig_module_info *
2827
+SWIG_Python_GetModule(void) {
2828
+ static void *type_pointer = (void *)0;
2829
+ /* first check if module already created */
2830
+ if (!type_pointer) {
2831
+#ifdef SWIG_LINK_RUNTIME
2832
+ type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2834
+ type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2835
+ (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2836
+ if (PyErr_Occurred()) {
2838
+ type_pointer = (void *)0;
2842
+ return (swig_module_info *) type_pointer;
2845
+#if PY_MAJOR_VERSION < 2
2846
+/* PyModule_AddObject function was introduced in Python 2.0. The following function
2847
+ is copied out of Python/modsupport.c in python version 2.3.4 */
2849
+PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2852
+ if (!PyModule_Check(m)) {
2853
+ PyErr_SetString(PyExc_TypeError,
2854
+ "PyModule_AddObject() needs module as first arg");
2855
+ return SWIG_ERROR;
2858
+ PyErr_SetString(PyExc_TypeError,
2859
+ "PyModule_AddObject() needs non-NULL value");
2860
+ return SWIG_ERROR;
2863
+ dict = PyModule_GetDict(m);
2864
+ if (dict == NULL) {
2865
+ /* Internal error -- modules must have a dict! */
2866
+ PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2867
+ PyModule_GetName(m));
2868
+ return SWIG_ERROR;
2870
+ if (PyDict_SetItemString(dict, name, o))
2871
+ return SWIG_ERROR;
2878
+SWIG_Python_DestroyModule(void *vptr)
2880
+ swig_module_info *swig_module = (swig_module_info *) vptr;
2881
+ swig_type_info **types = swig_module->types;
2883
+ for (i =0; i < swig_module->size; ++i) {
2884
+ swig_type_info *ty = types[i];
2885
+ if (ty->owndata) {
2886
+ PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2887
+ if (data) PySwigClientData_Del(data);
2890
+ Py_DECREF(SWIG_This());
2894
+SWIG_Python_SetModule(swig_module_info *swig_module) {
2895
+ static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2897
+ PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2898
+ swig_empty_runtime_method_table);
2899
+ PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2900
+ if (pointer && module) {
2901
+ PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2903
+ Py_XDECREF(pointer);
2907
+/* The python cached type query */
2908
+SWIGRUNTIME PyObject *
2909
+SWIG_Python_TypeCache(void) {
2910
+ static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2914
+SWIGRUNTIME swig_type_info *
2915
+SWIG_Python_TypeQuery(const char *type)
2917
+ PyObject *cache = SWIG_Python_TypeCache();
2918
+ PyObject *key = PyString_FromString(type);
2919
+ PyObject *obj = PyDict_GetItem(cache, key);
2920
+ swig_type_info *descriptor;
2922
+ descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2924
+ swig_module_info *swig_module = SWIG_Python_GetModule();
2925
+ descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2927
+ obj = PyCObject_FromVoidPtr(descriptor, NULL);
2928
+ PyDict_SetItem(cache, key, obj);
2933
+ return descriptor;
2937
+ For backward compatibility only
2939
+#define SWIG_POINTER_EXCEPTION 0
2940
+#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2941
+#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2944
+SWIG_Python_AddErrMesg(const char* mesg, int infront)
2946
+ if (PyErr_Occurred()) {
2947
+ PyObject *type = 0;
2948
+ PyObject *value = 0;
2949
+ PyObject *traceback = 0;
2950
+ PyErr_Fetch(&type, &value, &traceback);
2952
+ PyObject *old_str = PyObject_Str(value);
2956
+ PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2958
+ PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2960
+ Py_DECREF(old_str);
2969
+SWIG_Python_ArgFail(int argnum)
2971
+ if (PyErr_Occurred()) {
2972
+ /* add information about failing argument */
2974
+ PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2975
+ return SWIG_Python_AddErrMesg(mesg, 1);
2981
+SWIGRUNTIMEINLINE const char *
2982
+PySwigObject_GetDesc(PyObject *self)
2984
+ PySwigObject *v = (PySwigObject *)self;
2985
+ swig_type_info *ty = v ? v->ty : 0;
2986
+ return ty ? ty->str : (char*)"";
2990
+SWIG_Python_TypeError(const char *type, PyObject *obj)
2993
+#if defined(SWIG_COBJECT_TYPES)
2994
+ if (obj && PySwigObject_Check(obj)) {
2995
+ const char *otype = (const char *) PySwigObject_GetDesc(obj);
2997
+ PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
3004
+ const char *otype = (obj ? obj->ob_type->tp_name : 0);
3006
+ PyObject *str = PyObject_Str(obj);
3007
+ const char *cstr = str ? PyString_AsString(str) : 0;
3009
+ PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
3010
+ type, otype, cstr);
3012
+ PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
3019
+ PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
3021
+ PyErr_Format(PyExc_TypeError, "unexpected type is received");
3026
+/* Convert a pointer value, signal an exception on a type mismatch */
3028
+SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
3030
+ if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
3032
+ if (flags & SWIG_POINTER_EXCEPTION) {
3033
+ SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
3034
+ SWIG_Python_ArgFail(argnum);
3050
+#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
3052
+#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
3056
+ #define SWIG_exception(code, msg) do { SWIG_Error(code, msg); SWIG_fail;; } while(0)
3059
+/* -------- TYPES TABLE (BEGIN) -------- */
3061
+#define SWIGTYPE_p_Nviz swig_types[0]
3062
+#define SWIGTYPE_p_allocator_type swig_types[1]
3063
+#define SWIGTYPE_p_char swig_types[2]
3064
+#define SWIGTYPE_p_difference_type swig_types[3]
3065
+#define SWIGTYPE_p_key_type swig_types[4]
3066
+#define SWIGTYPE_p_mapped_type swig_types[5]
3067
+#define SWIGTYPE_p_p_PyObject swig_types[6]
3068
+#define SWIGTYPE_p_size_type swig_types[7]
3069
+#define SWIGTYPE_p_std__invalid_argument swig_types[8]
3070
+#define SWIGTYPE_p_std__lessT_int_t swig_types[9]
3071
+#define SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t swig_types[10]
3072
+#define SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t__allocator_type swig_types[11]
3073
+#define SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t swig_types[12]
3074
+#define SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t__allocator_type swig_types[13]
3075
+#define SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t swig_types[14]
3076
+#define SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t__allocator_type swig_types[15]
3077
+#define SWIGTYPE_p_swig__PySwigIterator swig_types[16]
3078
+#define SWIGTYPE_p_value_type swig_types[17]
3079
+static swig_type_info *swig_types[19];
3080
+static swig_module_info swig_module = {swig_types, 18, 0, 0, 0, 0};
3081
+#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
3082
+#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
3084
+/* -------- TYPES TABLE (END) -------- */
3086
+#if (PY_VERSION_HEX <= 0x02000000)
3087
+# if !defined(SWIG_PYTHON_CLASSIC)
3088
+# error "This python version requires swig to be run with the '-classic' option"
3092
+/*-----------------------------------------------
3093
+ @(target):= _grass6_wxnviz.so
3094
+ ------------------------------------------------*/
3095
+#define SWIG_init init_grass6_wxnviz
3097
+#define SWIG_name "_grass6_wxnviz"
3099
+#define SWIGVERSION 0x010336
3100
+#define SWIG_VERSION SWIGVERSION
3103
+#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
3104
+#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
3107
+#include <stdexcept>
3111
+ class PyObject_ptr {
3116
+ PyObject_ptr() :_obj(0)
3120
+ PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
3125
+ PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
3127
+ if (initial_ref) {
3132
+ PyObject_ptr & operator=(const PyObject_ptr& item)
3134
+ Py_XINCREF(item._obj);
3145
+ operator PyObject *() const
3150
+ PyObject *operator->() const
3159
+ struct PyObject_var : PyObject_ptr {
3160
+ PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
3162
+ PyObject_var & operator = (PyObject* obj)
3173
+#include <grass/gsurf.h>
3174
+#include <grass/gstypes.h>
3178
+#include <iostream>
3181
+#include <stdexcept>
3184
+#if defined(__GNUC__)
3185
+# if __GNUC__ == 2 && __GNUC_MINOR <= 96
3186
+# define SWIG_STD_NOMODERN_STL
3192
+#include <stdexcept>
3196
+ struct stop_iteration {
3199
+ struct PySwigIterator {
3201
+ PyObject_ptr _seq;
3204
+ PySwigIterator(PyObject *seq) : _seq(seq)
3209
+ virtual ~PySwigIterator() {}
3211
+ // Access iterator method, required by Python
3212
+ virtual PyObject *value() const = 0;
3214
+ // Forward iterator method, required by Python
3215
+ virtual PySwigIterator *incr(size_t n = 1) = 0;
3217
+ // Backward iterator method, very common in C++, but not required in Python
3218
+ virtual PySwigIterator *decr(size_t /*n*/ = 1)
3220
+ throw stop_iteration();
3223
+ // Random access iterator methods, but not required in Python
3224
+ virtual ptrdiff_t distance(const PySwigIterator &/*x*/) const
3226
+ throw std::invalid_argument("operation not supported");
3229
+ virtual bool equal (const PySwigIterator &/*x*/) const
3231
+ throw std::invalid_argument("operation not supported");
3234
+ // C++ common/needed methods
3235
+ virtual PySwigIterator *copy() const = 0;
3239
+ SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads
3240
+ PyObject *obj = value();
3242
+ SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads
3246
+ PyObject *previous()
3248
+ SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads
3250
+ PyObject *obj = value();
3251
+ SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads
3255
+ PySwigIterator *advance(ptrdiff_t n)
3257
+ return (n > 0) ? incr(n) : decr(-n);
3260
+ bool operator == (const PySwigIterator& x) const
3265
+ bool operator != (const PySwigIterator& x) const
3267
+ return ! operator==(x);
3270
+ PySwigIterator& operator += (ptrdiff_t n)
3272
+ return *advance(n);
3275
+ PySwigIterator& operator -= (ptrdiff_t n)
3277
+ return *advance(-n);
3280
+ PySwigIterator* operator + (ptrdiff_t n) const
3282
+ return copy()->advance(n);
3285
+ PySwigIterator* operator - (ptrdiff_t n) const
3287
+ return copy()->advance(-n);
3290
+ ptrdiff_t operator - (const PySwigIterator& x) const
3292
+ return x.distance(*this);
3295
+ static swig_type_info* descriptor() {
3296
+ static int init = 0;
3297
+ static swig_type_info* desc = 0;
3299
+ desc = SWIG_TypeQuery("swig::PySwigIterator *");
3309
+SWIG_AsVal_double (PyObject *obj, double *val)
3311
+ int res = SWIG_TypeError;
3312
+ if (PyFloat_Check(obj)) {
3313
+ if (val) *val = PyFloat_AsDouble(obj);
3315
+ } else if (PyInt_Check(obj)) {
3316
+ if (val) *val = PyInt_AsLong(obj);
3318
+ } else if (PyLong_Check(obj)) {
3319
+ double v = PyLong_AsDouble(obj);
3320
+ if (!PyErr_Occurred()) {
3321
+ if (val) *val = v;
3327
+#ifdef SWIG_PYTHON_CAST_MODE
3330
+ double d = PyFloat_AsDouble(obj);
3331
+ if (!PyErr_Occurred()) {
3332
+ if (val) *val = d;
3333
+ return SWIG_AddCast(SWIG_OK);
3338
+ long v = PyLong_AsLong(obj);
3339
+ if (!PyErr_Occurred()) {
3340
+ if (val) *val = v;
3341
+ return SWIG_AddCast(SWIG_AddCast(SWIG_OK));
3358
+SWIGINTERNINLINE int
3359
+SWIG_CanCastAsInteger(double *d, double min, double max) {
3361
+ if ((min <= x && x <= max)) {
3362
+ double fx = floor(x);
3363
+ double cx = ceil(x);
3364
+ double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */
3365
+ if ((errno == EDOM) || (errno == ERANGE)) {
3368
+ double summ, reps, diff;
3371
+ } else if (rd > x) {
3378
+ if (reps < 8*DBL_EPSILON) {
3389
+SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val)
3391
+ if (PyInt_Check(obj)) {
3392
+ long v = PyInt_AsLong(obj);
3394
+ if (val) *val = v;
3397
+ return SWIG_OverflowError;
3399
+ } else if (PyLong_Check(obj)) {
3400
+ unsigned long v = PyLong_AsUnsignedLong(obj);
3401
+ if (!PyErr_Occurred()) {
3402
+ if (val) *val = v;
3408
+#ifdef SWIG_PYTHON_CAST_MODE
3411
+ unsigned long v = PyLong_AsUnsignedLong(obj);
3412
+ if (!PyErr_Occurred()) {
3413
+ if (val) *val = v;
3414
+ return SWIG_AddCast(SWIG_OK);
3420
+ int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
3421
+ if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) {
3422
+ if (val) *val = (unsigned long)(d);
3428
+ return SWIG_TypeError;
3432
+SWIGINTERNINLINE int
3433
+SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3436
+ int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3437
+ if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3442
+ #define SWIG_From_long PyInt_FromLong
3445
+SWIGINTERNINLINE PyObject *
3446
+SWIG_From_ptrdiff_t (ptrdiff_t value)
3448
+ return SWIG_From_long (static_cast< long >(value));
3452
+SWIGINTERNINLINE PyObject*
3453
+ SWIG_From_bool (bool value)
3455
+ return PyBool_FromLong(value ? 1 : 0);
3460
+SWIG_AsVal_long (PyObject *obj, long* val)
3462
+ if (PyInt_Check(obj)) {
3463
+ if (val) *val = PyInt_AsLong(obj);
3465
+ } else if (PyLong_Check(obj)) {
3466
+ long v = PyLong_AsLong(obj);
3467
+ if (!PyErr_Occurred()) {
3468
+ if (val) *val = v;
3474
+#ifdef SWIG_PYTHON_CAST_MODE
3477
+ long v = PyInt_AsLong(obj);
3478
+ if (!PyErr_Occurred()) {
3479
+ if (val) *val = v;
3480
+ return SWIG_AddCast(SWIG_OK);
3486
+ int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
3487
+ if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) {
3488
+ if (val) *val = (long)(d);
3494
+ return SWIG_TypeError;
3498
+SWIGINTERNINLINE int
3499
+SWIG_AsVal_ptrdiff_t (PyObject * obj, ptrdiff_t *val)
3502
+ int res = SWIG_AsVal_long (obj, val ? &v : 0);
3503
+ if (SWIG_IsOK(res) && val) *val = static_cast< ptrdiff_t >(v);
3508
+#include <stdexcept>
3511
+#include <algorithm>
3518
+ template <class Type>
3519
+ struct noconst_traits {
3520
+ typedef Type noconst_type;
3523
+ template <class Type>
3524
+ struct noconst_traits<const Type> {
3525
+ typedef Type noconst_type;
3531
+ struct pointer_category { };
3532
+ struct value_category { };
3535
+ General traits that provides type_name and type_info
3537
+ template <class Type> struct traits { };
3539
+ template <class Type>
3540
+ inline const char* type_name() {
3541
+ return traits<typename noconst_traits<Type >::noconst_type >::type_name();
3544
+ template <class Type>
3545
+ struct traits_info {
3546
+ static swig_type_info *type_query(std::string name) {
3548
+ return SWIG_TypeQuery(name.c_str());
3550
+ static swig_type_info *type_info() {
3551
+ static swig_type_info *info = type_query(type_name<Type>());
3556
+ template <class Type>
3557
+ inline swig_type_info *type_info() {
3558
+ return traits_info<Type>::type_info();
3562
+ Partial specialization for pointers
3564
+ template <class Type> struct traits <Type *> {
3565
+ typedef pointer_category category;
3566
+ static std::string make_ptr_name(const char* name) {
3567
+ std::string ptrname = name;
3571
+ static const char* type_name() {
3572
+ static std::string name = make_ptr_name(swig::type_name<Type>());
3573
+ return name.c_str();
3577
+ template <class Type, class Category>
3578
+ struct traits_as { };
3580
+ template <class Type, class Category>
3581
+ struct traits_check { };
3588
+ Traits that provides the from method
3590
+ template <class Type> struct traits_from_ptr {
3591
+ static PyObject *from(Type *val, int owner = 0) {
3592
+ return SWIG_NewPointerObj(val, type_info<Type>(), owner);
3596
+ template <class Type> struct traits_from {
3597
+ static PyObject *from(const Type& val) {
3598
+ return traits_from_ptr<Type>::from(new Type(val), 1);
3602
+ template <class Type> struct traits_from<Type *> {
3603
+ static PyObject *from(Type* val) {
3604
+ return traits_from_ptr<Type>::from(val, 0);
3608
+ template <class Type> struct traits_from<const Type *> {
3609
+ static PyObject *from(const Type* val) {
3610
+ return traits_from_ptr<Type>::from(const_cast<Type*>(val), 0);
3615
+ template <class Type>
3616
+ inline PyObject *from(const Type& val) {
3617
+ return traits_from<Type>::from(val);
3620
+ template <class Type>
3621
+ inline PyObject *from_ptr(Type* val, int owner) {
3622
+ return traits_from_ptr<Type>::from(val, owner);
3626
+ Traits that provides the asval/as/check method
3628
+ template <class Type>
3629
+ struct traits_asptr {
3630
+ static int asptr(PyObject *obj, Type **val) {
3632
+ int res = (SWIG_ConvertPtr(obj, (void**)&p, type_info<Type>(), 0) == SWIG_OK) ? SWIG_OLDOBJ : 0;
3633
+ if (SWIG_IsOK(res)) {
3634
+ if (val) *val = p;
3640
+ template <class Type>
3641
+ inline int asptr(PyObject *obj, Type **vptr) {
3642
+ return traits_asptr<Type>::asptr(obj, vptr);
3645
+ template <class Type>
3646
+ struct traits_asval {
3647
+ static int asval(PyObject *obj, Type *val) {
3650
+ int res = traits_asptr<Type>::asptr(obj, &p);
3651
+ if (!SWIG_IsOK(res)) return res;
3653
+ typedef typename noconst_traits<Type>::noconst_type noconst_type;
3654
+ *(const_cast<noconst_type*>(val)) = *p;
3655
+ if (SWIG_IsNewObj(res)){
3657
+ res = SWIG_DelNewMask(res);
3661
+ return SWIG_ERROR;
3664
+ return traits_asptr<Type>::asptr(obj, (Type **)(0));
3669
+ template <class Type> struct traits_asval<Type*> {
3670
+ static int asval(PyObject *obj, Type **val) {
3672
+ typedef typename noconst_traits<Type>::noconst_type noconst_type;
3673
+ noconst_type *p = 0;
3674
+ int res = traits_asptr<noconst_type>::asptr(obj, &p);
3675
+ if (SWIG_IsOK(res)) {
3676
+ *(const_cast<noconst_type**>(val)) = p;
3680
+ return traits_asptr<Type>::asptr(obj, (Type **)(0));
3685
+ template <class Type>
3686
+ inline int asval(PyObject *obj, Type *val) {
3687
+ return traits_asval<Type>::asval(obj, val);
3690
+ template <class Type>
3691
+ struct traits_as<Type, value_category> {
3692
+ static Type as(PyObject *obj, bool throw_error) {
3694
+ int res = asval(obj, &v);
3695
+ if (!obj || !SWIG_IsOK(res)) {
3696
+ if (!PyErr_Occurred()) {
3697
+ ::SWIG_Error(SWIG_TypeError, swig::type_name<Type>());
3699
+ if (throw_error) throw std::invalid_argument("bad type");
3705
+ template <class Type>
3706
+ struct traits_as<Type, pointer_category> {
3707
+ static Type as(PyObject *obj, bool throw_error) {
3709
+ int res = (obj ? traits_asptr<Type>::asptr(obj, &v) : SWIG_ERROR);
3710
+ if (SWIG_IsOK(res) && v) {
3711
+ if (SWIG_IsNewObj(res)) {
3719
+ // Uninitialized return value, no Type() constructor required.
3720
+ static Type *v_def = (Type*) malloc(sizeof(Type));
3721
+ if (!PyErr_Occurred()) {
3722
+ SWIG_Error(SWIG_TypeError, swig::type_name<Type>());
3724
+ if (throw_error) throw std::invalid_argument("bad type");
3725
+ memset(v_def,0,sizeof(Type));
3731
+ template <class Type>
3732
+ struct traits_as<Type*, pointer_category> {
3733
+ static Type* as(PyObject *obj, bool throw_error) {
3735
+ int res = (obj ? traits_asptr<Type>::asptr(obj, &v) : SWIG_ERROR);
3736
+ if (SWIG_IsOK(res)) {
3739
+ if (!PyErr_Occurred()) {
3740
+ SWIG_Error(SWIG_TypeError, swig::type_name<Type>());
3742
+ if (throw_error) throw std::invalid_argument("bad type");
3748
+ template <class Type>
3749
+ inline Type as(PyObject *obj, bool te = false) {
3750
+ return traits_as<Type, typename traits<Type>::category>::as(obj, te);
3753
+ template <class Type>
3754
+ struct traits_check<Type, value_category> {
3755
+ static bool check(PyObject *obj) {
3756
+ int res = obj ? asval(obj, (Type *)(0)) : SWIG_ERROR;
3757
+ return SWIG_IsOK(res) ? true : false;
3761
+ template <class Type>
3762
+ struct traits_check<Type, pointer_category> {
3763
+ static bool check(PyObject *obj) {
3764
+ int res = obj ? asptr(obj, (Type **)(0)) : SWIG_ERROR;
3765
+ return SWIG_IsOK(res) ? true : false;
3769
+ template <class Type>
3770
+ inline bool check(PyObject *obj) {
3771
+ return traits_check<Type, typename traits<Type>::category>::check(obj);
3776
+#include <functional>
3780
+ struct less <PyObject *>: public binary_function<PyObject *, PyObject *, bool>
3783
+ operator()(PyObject * v, PyObject *w) const
3786
+ SWIG_PYTHON_THREAD_BEGIN_BLOCK;
3787
+ res = PyObject_Compare(v, w) < 0;
3788
+ SWIG_PYTHON_THREAD_END_BLOCK;
3794
+ struct less <swig::PyObject_ptr>: public binary_function<swig::PyObject_ptr, swig::PyObject_ptr, bool>
3797
+ operator()(const swig::PyObject_ptr& v, const swig::PyObject_ptr& w) const
3799
+ return std::less<PyObject *>()(v, w);
3804
+ struct less <swig::PyObject_var>: public binary_function<swig::PyObject_var, swig::PyObject_var, bool>
3807
+ operator()(const swig::PyObject_var& v, const swig::PyObject_var& w) const
3809
+ return std::less<PyObject *>()(v, w);
3816
+ template <> struct traits<PyObject *> {
3817
+ typedef value_category category;
3818
+ static const char* type_name() { return "PyObject *"; }
3821
+ template <> struct traits_asval<PyObject * > {
3822
+ typedef PyObject * value_type;
3823
+ static int asval(PyObject *obj, value_type *val) {
3824
+ if (val) *val = obj;
3830
+ struct traits_check<PyObject *, value_category> {
3831
+ static bool check(PyObject *) {
3836
+ template <> struct traits_from<PyObject *> {
3837
+ typedef PyObject * value_type;
3838
+ static PyObject *from(const value_type& val) {
3848
+ check_index(ptrdiff_t i, size_t size, bool insert = false) {
3850
+ if ((size_t) (-i) <= size)
3851
+ return (size_t) (i + size);
3852
+ } else if ( (size_t) i < size ) {
3853
+ return (size_t) i;
3854
+ } else if (insert && ((size_t) i == size)) {
3858
+ throw std::out_of_range("index out of range");
3862
+ slice_index(ptrdiff_t i, size_t size) {
3864
+ if ((size_t) (-i) <= size) {
3865
+ return (size_t) (i + size);
3867
+ throw std::out_of_range("index out of range");
3870
+ return ( (size_t) i < size ) ? ((size_t) i) : size;
3874
+ template <class Sequence, class Difference>
3875
+ inline typename Sequence::iterator
3876
+ getpos(Sequence* self, Difference i) {
3877
+ typename Sequence::iterator pos = self->begin();
3878
+ std::advance(pos, check_index(i,self->size()));
3882
+ template <class Sequence, class Difference>
3883
+ inline typename Sequence::const_iterator
3884
+ cgetpos(const Sequence* self, Difference i) {
3885
+ typename Sequence::const_iterator pos = self->begin();
3886
+ std::advance(pos, check_index(i,self->size()));
3890
+ template <class Sequence, class Difference>
3892
+ getslice(const Sequence* self, Difference i, Difference j) {
3893
+ typename Sequence::size_type size = self->size();
3894
+ typename Sequence::size_type ii = swig::check_index(i, size);
3895
+ typename Sequence::size_type jj = swig::slice_index(j, size);
3898
+ typename Sequence::const_iterator vb = self->begin();
3899
+ typename Sequence::const_iterator ve = self->begin();
3900
+ std::advance(vb,ii);
3901
+ std::advance(ve,jj);
3902
+ return new Sequence(vb, ve);
3904
+ return new Sequence();
3908
+ template <class Sequence, class Difference, class InputSeq>
3910
+ setslice(Sequence* self, Difference i, Difference j, const InputSeq& v) {
3911
+ typename Sequence::size_type size = self->size();
3912
+ typename Sequence::size_type ii = swig::check_index(i, size, true);
3913
+ typename Sequence::size_type jj = swig::slice_index(j, size);
3914
+ if (jj < ii) jj = ii;
3915
+ size_t ssize = jj - ii;
3916
+ if (ssize <= v.size()) {
3917
+ typename Sequence::iterator sb = self->begin();
3918
+ typename InputSeq::const_iterator vmid = v.begin();
3919
+ std::advance(sb,ii);
3920
+ std::advance(vmid, jj - ii);
3921
+ self->insert(std::copy(v.begin(), vmid, sb), vmid, v.end());
3923
+ typename Sequence::iterator sb = self->begin();
3924
+ typename Sequence::iterator se = self->begin();
3925
+ std::advance(sb,ii);
3926
+ std::advance(se,jj);
3927
+ self->erase(sb,se);
3928
+ self->insert(sb, v.begin(), v.end());
3932
+ template <class Sequence, class Difference>
3934
+ delslice(Sequence* self, Difference i, Difference j) {
3935
+ typename Sequence::size_type size = self->size();
3936
+ typename Sequence::size_type ii = swig::check_index(i, size, true);
3937
+ typename Sequence::size_type jj = swig::slice_index(j, size);
3939
+ typename Sequence::iterator sb = self->begin();
3940
+ typename Sequence::iterator se = self->begin();
3941
+ std::advance(sb,ii);
3942
+ std::advance(se,jj);
3943
+ self->erase(sb,se);
3949
+#if defined(__SUNPRO_CC) && defined(_RWSTD_VER)
3950
+# if !defined(SWIG_NO_STD_NOITERATOR_TRAITS_STL)
3951
+# define SWIG_STD_NOITERATOR_TRAITS_STL
3955
+#if !defined(SWIG_STD_NOITERATOR_TRAITS_STL)
3956
+#include <iterator>
3959
+ template <class Iterator>
3960
+ struct iterator_traits {
3961
+ typedef ptrdiff_t difference_type;
3962
+ typedef typename Iterator::value_type value_type;
3965
+ template <class Iterator, class Category,class T, class Reference, class Pointer, class Distance>
3966
+ struct iterator_traits<__reverse_bi_iterator<Iterator,Category,T,Reference,Pointer,Distance> > {
3967
+ typedef Distance difference_type;
3968
+ typedef T value_type;
3971
+ template <class T>
3972
+ struct iterator_traits<T*> {
3973
+ typedef T value_type;
3974
+ typedef ptrdiff_t difference_type;
3977
+ template<typename _InputIterator>
3978
+ inline typename iterator_traits<_InputIterator>::difference_type
3979
+ distance(_InputIterator __first, _InputIterator __last)
3981
+ typename iterator_traits<_InputIterator>::difference_type __n = 0;
3982
+ while (__first != __last) {
3992
+ template<typename OutIterator>
3993
+ class PySwigIterator_T : public PySwigIterator
3996
+ typedef OutIterator out_iterator;
3997
+ typedef typename std::iterator_traits<out_iterator>::value_type value_type;
3998
+ typedef PySwigIterator_T<out_iterator> self_type;
4000
+ PySwigIterator_T(out_iterator curr, PyObject *seq)
4001
+ : PySwigIterator(seq), current(curr)
4005
+ const out_iterator& get_current() const
4011
+ bool equal (const PySwigIterator &iter) const
4013
+ const self_type *iters = dynamic_cast<const self_type *>(&iter);
4015
+ return (current == iters->get_current());
4017
+ throw std::invalid_argument("bad iterator type");
4021
+ ptrdiff_t distance(const PySwigIterator &iter) const
4023
+ const self_type *iters = dynamic_cast<const self_type *>(&iter);
4025
+ return std::distance(current, iters->get_current());
4027
+ throw std::invalid_argument("bad iterator type");
4032
+ out_iterator current;
4035
+ template <class ValueType>
4038
+ typedef const ValueType& argument_type;
4039
+ typedef PyObject *result_type;
4040
+ result_type operator()(argument_type v) const
4042
+ return swig::from(v);
4046
+ template<typename OutIterator,
4047
+ typename ValueType = typename std::iterator_traits<OutIterator>::value_type,
4048
+ typename FromOper = from_oper<ValueType> >
4049
+ class PySwigIteratorOpen_T : public PySwigIterator_T<OutIterator>
4053
+ typedef OutIterator out_iterator;
4054
+ typedef ValueType value_type;
4055
+ typedef PySwigIterator_T<out_iterator> base;
4056
+ typedef PySwigIteratorOpen_T<OutIterator, ValueType, FromOper> self_type;
4058
+ PySwigIteratorOpen_T(out_iterator curr, PyObject *seq)
4059
+ : PySwigIterator_T<OutIterator>(curr, seq)
4063
+ PyObject *value() const {
4064
+ return from(static_cast<const value_type&>(*(base::current)));
4067
+ PySwigIterator *copy() const
4069
+ return new self_type(*this);
4072
+ PySwigIterator *incr(size_t n = 1)
4080
+ PySwigIterator *decr(size_t n = 1)
4089
+ template<typename OutIterator,
4090
+ typename ValueType = typename std::iterator_traits<OutIterator>::value_type,
4091
+ typename FromOper = from_oper<ValueType> >
4092
+ class PySwigIteratorClosed_T : public PySwigIterator_T<OutIterator>
4096
+ typedef OutIterator out_iterator;
4097
+ typedef ValueType value_type;
4098
+ typedef PySwigIterator_T<out_iterator> base;
4099
+ typedef PySwigIteratorClosed_T<OutIterator, ValueType, FromOper> self_type;
4101
+ PySwigIteratorClosed_T(out_iterator curr, out_iterator first, out_iterator last, PyObject *seq)
4102
+ : PySwigIterator_T<OutIterator>(curr, seq), begin(first), end(last)
4106
+ PyObject *value() const {
4107
+ if (base::current == end) {
4108
+ throw stop_iteration();
4110
+ return from(static_cast<const value_type&>(*(base::current)));
4114
+ PySwigIterator *copy() const
4116
+ return new self_type(*this);
4119
+ PySwigIterator *incr(size_t n = 1)
4122
+ if (base::current == end) {
4123
+ throw stop_iteration();
4131
+ PySwigIterator *decr(size_t n = 1)
4134
+ if (base::current == begin) {
4135
+ throw stop_iteration();
4144
+ out_iterator begin;
4148
+ template<typename OutIter>
4149
+ inline PySwigIterator*
4150
+ make_output_iterator(const OutIter& current, const OutIter& begin,const OutIter& end, PyObject *seq = 0)
4152
+ return new PySwigIteratorClosed_T<OutIter>(current, begin, end, seq);
4155
+ template<typename OutIter>
4156
+ inline PySwigIterator*
4157
+ make_output_iterator(const OutIter& current, PyObject *seq = 0)
4159
+ return new PySwigIteratorOpen_T<OutIter>(current, seq);
4166
+ template <class T>
4167
+ struct PySequence_Ref
4169
+ PySequence_Ref(PyObject* seq, int index)
4170
+ : _seq(seq), _index(index)
4174
+ operator T () const
4176
+ swig::PyObject_var item = PySequence_GetItem(_seq, _index);
4178
+ return swig::as<T>(item, true);
4179
+ } catch (std::exception& e) {
4181
+ sprintf(msg, "in sequence element %d ", _index);
4182
+ if (!PyErr_Occurred()) {
4183
+ ::SWIG_Error(SWIG_TypeError, swig::type_name<T>());
4185
+ SWIG_Python_AddErrorMsg(msg);
4186
+ SWIG_Python_AddErrorMsg(e.what());
4191
+ PySequence_Ref& operator=(const T& v)
4193
+ PySequence_SetItem(_seq, _index, swig::from<T>(v));
4202
+ template <class T>
4203
+ struct PySequence_ArrowProxy
4205
+ PySequence_ArrowProxy(const T& x): m_value(x) {}
4206
+ const T* operator->() const { return &m_value; }
4207
+ operator const T*() const { return &m_value; }
4211
+ template <class T, class Reference >
4212
+ struct PySequence_InputIterator
4214
+ typedef PySequence_InputIterator<T, Reference > self;
4216
+ typedef std::random_access_iterator_tag iterator_category;
4217
+ typedef Reference reference;
4218
+ typedef T value_type;
4219
+ typedef T* pointer;
4220
+ typedef int difference_type;
4222
+ PySequence_InputIterator()
4226
+ PySequence_InputIterator(PyObject* seq, int index)
4227
+ : _seq(seq), _index(index)
4231
+ reference operator*() const
4233
+ return reference(_seq, _index);
4236
+ PySequence_ArrowProxy<T>
4237
+ operator->() const {
4238
+ return PySequence_ArrowProxy<T>(operator*());
4241
+ bool operator==(const self& ri) const
4243
+ return (_index == ri._index) && (_seq == ri._seq);
4246
+ bool operator!=(const self& ri) const
4248
+ return !(operator==(ri));
4251
+ self& operator ++ ()
4257
+ self& operator -- ()
4263
+ self& operator += (difference_type n)
4269
+ self operator +(difference_type n) const
4271
+ return self(_seq, _index + n);
4274
+ self& operator -= (difference_type n)
4280
+ self operator -(difference_type n) const
4282
+ return self(_seq, _index - n);
4285
+ difference_type operator - (const self& ri) const
4287
+ return _index - ri._index;
4290
+ bool operator < (const self& ri) const
4292
+ return _index < ri._index;
4296
+ operator[](difference_type n) const
4298
+ return reference(_seq, _index + n);
4303
+ difference_type _index;
4306
+ template <class T>
4307
+ struct PySequence_Cont
4309
+ typedef PySequence_Ref<T> reference;
4310
+ typedef const PySequence_Ref<T> const_reference;
4311
+ typedef T value_type;
4312
+ typedef T* pointer;
4313
+ typedef int difference_type;
4314
+ typedef int size_type;
4315
+ typedef const pointer const_pointer;
4316
+ typedef PySequence_InputIterator<T, reference> iterator;
4317
+ typedef PySequence_InputIterator<T, const_reference> const_iterator;
4319
+ PySequence_Cont(PyObject* seq) : _seq(0)
4321
+ if (!PySequence_Check(seq)) {
4322
+ throw std::invalid_argument("a sequence is expected");
4328
+ ~PySequence_Cont()
4333
+ size_type size() const
4335
+ return static_cast<size_type>(PySequence_Size(_seq));
4338
+ bool empty() const
4340
+ return size() == 0;
4345
+ return iterator(_seq, 0);
4348
+ const_iterator begin() const
4350
+ return const_iterator(_seq, 0);
4355
+ return iterator(_seq, size());
4358
+ const_iterator end() const
4360
+ return const_iterator(_seq, size());
4363
+ reference operator[](difference_type n)
4365
+ return reference(_seq, n);
4368
+ const_reference operator[](difference_type n) const
4370
+ return const_reference(_seq, n);
4373
+ bool check(bool set_err = true) const
4376
+ for (int i = 0; i < s; ++i) {
4377
+ swig::PyObject_var item = PySequence_GetItem(_seq, i);
4378
+ if (!swig::check<value_type>(item)) {
4381
+ sprintf(msg, "in sequence element %d", i);
4382
+ SWIG_Error(SWIG_RuntimeError, msg);
4397
+#include <limits.h>
4398
+#if !defined(SWIG_NO_LLONG_MAX)
4399
+# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
4400
+# define LLONG_MAX __LONG_LONG_MAX__
4401
+# define LLONG_MIN (-LLONG_MAX - 1LL)
4402
+# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
4408
+SWIG_AsVal_int (PyObject * obj, int *val)
4411
+ int res = SWIG_AsVal_long (obj, &v);
4412
+ if (SWIG_IsOK(res)) {
4413
+ if ((v < INT_MIN || v > INT_MAX)) {
4414
+ return SWIG_OverflowError;
4416
+ if (val) *val = static_cast< int >(v);
4423
+SWIGINTERNINLINE PyObject *
4424
+SWIG_From_int (int value)
4426
+ return SWIG_From_long (value);
4431
+ template <> struct traits<int > {
4432
+ typedef value_category category;
4433
+ static const char* type_name() { return"int"; }
4435
+ template <> struct traits_asval<int > {
4436
+ typedef int value_type;
4437
+ static int asval(PyObject *obj, value_type *val) {
4438
+ return SWIG_AsVal_int (obj, val);
4441
+ template <> struct traits_from<int > {
4442
+ typedef int value_type;
4443
+ static PyObject *from(const value_type& val) {
4444
+ return SWIG_From_int (val);
4451
+ template <class PySeq, class Seq>
4453
+ assign(const PySeq& pyseq, Seq* seq) {
4454
+ // seq->assign(pyseq.begin(), pyseq.end()); // not used as not always implemented
4455
+ typedef typename PySeq::value_type value_type;
4456
+ typename PySeq::const_iterator it = pyseq.begin();
4457
+ for (;it != pyseq.end(); ++it) {
4458
+ seq->insert(seq->end(),(value_type)(*it));
4462
+ template <class Seq, class T = typename Seq::value_type >
4463
+ struct traits_asptr_stdseq {
4464
+ typedef Seq sequence;
4465
+ typedef T value_type;
4467
+ static int asptr(PyObject *obj, sequence **seq) {
4468
+ if (obj == Py_None || SWIG_Python_GetSwigThis(obj)) {
4470
+ if (::SWIG_ConvertPtr(obj,(void**)&p,
4471
+ swig::type_info<sequence>(),0) == SWIG_OK) {
4472
+ if (seq) *seq = p;
4473
+ return SWIG_OLDOBJ;
4475
+ } else if (PySequence_Check(obj)) {
4477
+ PySequence_Cont<value_type> pyseq(obj);
4479
+ sequence *pseq = new sequence();
4480
+ assign(pyseq, pseq);
4482
+ return SWIG_NEWOBJ;
4484
+ return pyseq.check() ? SWIG_OK : SWIG_ERROR;
4486
+ } catch (std::exception& e) {
4488
+ if (!PyErr_Occurred()) {
4489
+ PyErr_SetString(PyExc_TypeError, e.what());
4492
+ return SWIG_ERROR;
4495
+ return SWIG_ERROR;
4499
+ template <class Seq, class T = typename Seq::value_type >
4500
+ struct traits_from_stdseq {
4501
+ typedef Seq sequence;
4502
+ typedef T value_type;
4503
+ typedef typename Seq::size_type size_type;
4504
+ typedef typename sequence::const_iterator const_iterator;
4506
+ static PyObject *from(const sequence& seq) {
4507
+#ifdef SWIG_PYTHON_EXTRA_NATIVE_CONTAINERS
4508
+ swig_type_info *desc = swig::type_info<sequence>();
4509
+ if (desc && desc->clientdata) {
4510
+ return SWIG_NewPointerObj(new sequence(seq), desc, SWIG_POINTER_OWN);
4513
+ size_type size = seq.size();
4514
+ if (size <= (size_type)INT_MAX) {
4515
+ PyObject *obj = PyTuple_New((int)size);
4517
+ for (const_iterator it = seq.begin();
4518
+ it != seq.end(); ++it, ++i) {
4519
+ PyTuple_SetItem(obj,i,swig::from<value_type>(*it));
4523
+ PyErr_SetString(PyExc_OverflowError,"sequence size not valid in python");
4532
+ template <class T>
4533
+ struct traits_asptr<std::vector<T> > {
4534
+ static int asptr(PyObject *obj, std::vector<T> **vec) {
4535
+ return traits_asptr_stdseq<std::vector<T> >::asptr(obj, vec);
4539
+ template <class T>
4540
+ struct traits_from<std::vector<T> > {
4541
+ static PyObject *from(const std::vector<T>& vec) {
4542
+ return traits_from_stdseq<std::vector<T> >::from(vec);
4549
+ template <> struct traits<std::vector<int, std::allocator< int > > > {
4550
+ typedef pointer_category category;
4551
+ static const char* type_name() {
4552
+ return "std::vector<" "int" "," "std::allocator< int >" " >";
4557
+SWIGINTERN swig::PySwigIterator *std_vector_Sl_int_Sg__iterator(std::vector< int > *self,PyObject **PYTHON_SELF){
4558
+ return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
4560
+SWIGINTERN bool std_vector_Sl_int_Sg____nonzero__(std::vector< int > const *self){
4561
+ return !(self->empty());
4563
+SWIGINTERN std::vector< int >::size_type std_vector_Sl_int_Sg____len__(std::vector< int > const *self){
4564
+ return self->size();
4567
+SWIGINTERNINLINE PyObject*
4568
+SWIG_From_unsigned_SS_long (unsigned long value)
4570
+ return (value > LONG_MAX) ?
4571
+ PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
4575
+SWIGINTERNINLINE PyObject *
4576
+SWIG_From_size_t (size_t value)
4578
+ return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
4581
+SWIGINTERN std::vector< int >::value_type std_vector_Sl_int_Sg__pop(std::vector< int > *self){
4582
+ if (self->size() == 0)
4583
+ throw std::out_of_range("pop from empty container");
4584
+ std::vector<int,std::allocator< int > >::value_type x = self->back();
4588
+SWIGINTERN std::vector< int,std::allocator< int > > *std_vector_Sl_int_Sg____getslice__(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::difference_type j){
4589
+ return swig::getslice(self, i, j);
4591
+SWIGINTERN void std_vector_Sl_int_Sg____setslice__(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::difference_type j,std::vector< int,std::allocator< int > > const &v){
4592
+ swig::setslice(self, i, j, v);
4594
+SWIGINTERN void std_vector_Sl_int_Sg____delslice__(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::difference_type j){
4595
+ swig::delslice(self, i, j);
4597
+SWIGINTERN void std_vector_Sl_int_Sg____delitem__(std::vector< int > *self,std::vector< int >::difference_type i){
4598
+ self->erase(swig::getpos(self,i));
4600
+SWIGINTERN std::vector< int >::value_type const &std_vector_Sl_int_Sg____getitem__(std::vector< int > const *self,std::vector< int >::difference_type i){
4601
+ return *(swig::cgetpos(self, i));
4603
+SWIGINTERN void std_vector_Sl_int_Sg____setitem__(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::value_type const &x){
4604
+ *(swig::getpos(self,i)) = x;
4606
+SWIGINTERN void std_vector_Sl_int_Sg__append(std::vector< int > *self,std::vector< int >::value_type const &x){
4607
+ self->push_back(x);
4610
+ #define SWIG_From_double PyFloat_FromDouble
4614
+ template <> struct traits<double > {
4615
+ typedef value_category category;
4616
+ static const char* type_name() { return"double"; }
4618
+ template <> struct traits_asval<double > {
4619
+ typedef double value_type;
4620
+ static int asval(PyObject *obj, value_type *val) {
4621
+ return SWIG_AsVal_double (obj, val);
4624
+ template <> struct traits_from<double > {
4625
+ typedef double value_type;
4626
+ static PyObject *from(const value_type& val) {
4627
+ return SWIG_From_double (val);
4634
+ template <> struct traits<std::vector<double, std::allocator< double > > > {
4635
+ typedef pointer_category category;
4636
+ static const char* type_name() {
4637
+ return "std::vector<" "double" "," "std::allocator< double >" " >";
4642
+SWIGINTERN swig::PySwigIterator *std_vector_Sl_double_Sg__iterator(std::vector< double > *self,PyObject **PYTHON_SELF){
4643
+ return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
4645
+SWIGINTERN bool std_vector_Sl_double_Sg____nonzero__(std::vector< double > const *self){
4646
+ return !(self->empty());
4648
+SWIGINTERN std::vector< double >::size_type std_vector_Sl_double_Sg____len__(std::vector< double > const *self){
4649
+ return self->size();
4651
+SWIGINTERN std::vector< double >::value_type std_vector_Sl_double_Sg__pop(std::vector< double > *self){
4652
+ if (self->size() == 0)
4653
+ throw std::out_of_range("pop from empty container");
4654
+ std::vector<double,std::allocator< double > >::value_type x = self->back();
4658
+SWIGINTERN std::vector< double,std::allocator< double > > *std_vector_Sl_double_Sg____getslice__(std::vector< double > *self,std::vector< double >::difference_type i,std::vector< double >::difference_type j){
4659
+ return swig::getslice(self, i, j);
4661
+SWIGINTERN void std_vector_Sl_double_Sg____setslice__(std::vector< double > *self,std::vector< double >::difference_type i,std::vector< double >::difference_type j,std::vector< double,std::allocator< double > > const &v){
4662
+ swig::setslice(self, i, j, v);
4664
+SWIGINTERN void std_vector_Sl_double_Sg____delslice__(std::vector< double > *self,std::vector< double >::difference_type i,std::vector< double >::difference_type j){
4665
+ swig::delslice(self, i, j);
4667
+SWIGINTERN void std_vector_Sl_double_Sg____delitem__(std::vector< double > *self,std::vector< double >::difference_type i){
4668
+ self->erase(swig::getpos(self,i));
4670
+SWIGINTERN std::vector< double >::value_type const &std_vector_Sl_double_Sg____getitem__(std::vector< double > const *self,std::vector< double >::difference_type i){
4671
+ return *(swig::cgetpos(self, i));
4673
+SWIGINTERN void std_vector_Sl_double_Sg____setitem__(std::vector< double > *self,std::vector< double >::difference_type i,std::vector< double >::value_type const &x){
4674
+ *(swig::getpos(self,i)) = x;
4676
+SWIGINTERN void std_vector_Sl_double_Sg__append(std::vector< double > *self,std::vector< double >::value_type const &x){
4677
+ self->push_back(x);
4684
+#include <algorithm>
4685
+#include <stdexcept>
4738
+ template <class T, class U >
4739
+ struct traits_asptr<std::pair<T,U> > {
4740
+ typedef std::pair<T,U> value_type;
4742
+ static int get_pair(PyObject* first, PyObject* second,
4743
+ std::pair<T,U> **val)
4746
+ value_type *vp = (new std::pair<T,U>);
4747
+ T *pfirst = &(vp->first);
4748
+ int res1 = swig::asval((PyObject*)first, pfirst);
4749
+ if (!SWIG_IsOK(res1)) return res1;
4750
+ U *psecond = &(vp->second);
4751
+ int res2 = swig::asval((PyObject*)second, psecond);
4752
+ if (!SWIG_IsOK(res2)) return res2;
4754
+ return SWIG_AddNewMask(res1 > res2 ? res1 : res2);
4757
+ int res1 = swig::asval((PyObject*)first, pfirst);
4758
+ if (!SWIG_IsOK(res1)) return res1;
4760
+ int res2 = swig::asval((PyObject*)second, psecond);
4761
+ if (!SWIG_IsOK(res2)) return res2;
4762
+ return res1 > res2 ? res1 : res2;
4766
+ static int asptr(PyObject *obj, std::pair<T,U> **val) {
4767
+ int res = SWIG_ERROR;
4768
+ if (PyTuple_Check(obj)) {
4769
+ if (PyTuple_GET_SIZE(obj) == 2) {
4770
+ res = get_pair(PyTuple_GET_ITEM(obj,0),PyTuple_GET_ITEM(obj,1), val);
4772
+ } else if (PySequence_Check(obj)) {
4773
+ if (PySequence_Size(obj) == 2) {
4774
+ swig::PyObject_var first = PySequence_GetItem(obj,0);
4775
+ swig::PyObject_var second = PySequence_GetItem(obj,1);
4776
+ res = get_pair(first, second, val);
4780
+ res = SWIG_ConvertPtr(obj,(void**)&p,swig::type_info<value_type>(),0);
4781
+ if (SWIG_IsOK(res) && val) *val = p;
4788
+ template <class T, class U >
4789
+ struct traits_from<std::pair<T,U> > {
4790
+ static PyObject *from(const std::pair<T,U>& val) {
4791
+ PyObject* obj = PyTuple_New(2);
4792
+ PyTuple_SetItem(obj,0,swig::from(val.first));
4793
+ PyTuple_SetItem(obj,1,swig::from(val.second));
4801
+ template <> struct traits<std::pair< int, std::vector< int,std::allocator< int > > > > {
4802
+ typedef pointer_category category;
4803
+ static const char* type_name() {
4804
+ return "std::pair<" "int" "," "std::vector< int,std::allocator< int > >" " >";
4811
+ template <class PySeq, class K, class T >
4813
+ assign(const PySeq& pyseq, std::map<K,T > *map) {
4814
+ typedef typename std::map<K,T>::value_type value_type;
4815
+ typename PySeq::const_iterator it = pyseq.begin();
4816
+ for (;it != pyseq.end(); ++it) {
4817
+ map->insert(value_type(it->first, it->second));
4821
+ template <class K, class T>
4822
+ struct traits_asptr<std::map<K,T> > {
4823
+ typedef std::map<K,T> map_type;
4824
+ static int asptr(PyObject *obj, map_type **val) {
4825
+ int res = SWIG_ERROR;
4826
+ if (PyDict_Check(obj)) {
4827
+ PyObject_var items = PyObject_CallMethod(obj,(char *)"items",NULL);
4828
+ res = traits_asptr_stdseq<std::map<K,T>, std::pair<K, T> >::asptr(items, val);
4831
+ res = SWIG_ConvertPtr(obj,(void**)&p,swig::type_info<map_type>(),0);
4832
+ if (SWIG_IsOK(res) && val) *val = p;
4838
+ template <class K, class T >
4839
+ struct traits_from<std::map<K,T> > {
4840
+ typedef std::map<K,T> map_type;
4841
+ typedef typename map_type::const_iterator const_iterator;
4842
+ typedef typename map_type::size_type size_type;
4844
+ static PyObject *from(const map_type& map) {
4845
+ swig_type_info *desc = swig::type_info<map_type>();
4846
+ if (desc && desc->clientdata) {
4847
+ return SWIG_NewPointerObj(new map_type(map), desc, SWIG_POINTER_OWN);
4849
+ size_type size = map.size();
4850
+ int pysize = (size <= (size_type) INT_MAX) ? (int) size : -1;
4852
+ SWIG_PYTHON_THREAD_BEGIN_BLOCK;
4853
+ PyErr_SetString(PyExc_OverflowError,
4854
+ "map size not valid in python");
4855
+ SWIG_PYTHON_THREAD_END_BLOCK;
4858
+ PyObject *obj = PyDict_New();
4859
+ for (const_iterator i= map.begin(); i!= map.end(); ++i) {
4860
+ swig::PyObject_var key = swig::from(i->first);
4861
+ swig::PyObject_var val = swig::from(i->second);
4862
+ PyDict_SetItem(obj, key, val);
4869
+ template <class ValueType>
4870
+ struct from_key_oper
4872
+ typedef const ValueType& argument_type;
4873
+ typedef PyObject *result_type;
4874
+ result_type operator()(argument_type v) const
4876
+ return swig::from(v.first);
4880
+ template <class ValueType>
4881
+ struct from_value_oper
4883
+ typedef const ValueType& argument_type;
4884
+ typedef PyObject *result_type;
4885
+ result_type operator()(argument_type v) const
4887
+ return swig::from(v.second);
4891
+ template<class OutIterator, class FromOper, class ValueType = typename OutIterator::value_type>
4892
+ struct PyMapIterator_T : PySwigIteratorClosed_T<OutIterator, ValueType, FromOper>
4894
+ PyMapIterator_T(OutIterator curr, OutIterator first, OutIterator last, PyObject *seq)
4895
+ : PySwigIteratorClosed_T<OutIterator,ValueType,FromOper>(curr, first, last, seq)
4901
+ template<class OutIterator,
4902
+ class FromOper = from_key_oper<typename OutIterator::value_type> >
4903
+ struct PyMapKeyIterator_T : PyMapIterator_T<OutIterator, FromOper>
4905
+ PyMapKeyIterator_T(OutIterator curr, OutIterator first, OutIterator last, PyObject *seq)
4906
+ : PyMapIterator_T<OutIterator, FromOper>(curr, first, last, seq)
4911
+ template<typename OutIter>
4912
+ inline PySwigIterator*
4913
+ make_output_key_iterator(const OutIter& current, const OutIter& begin, const OutIter& end, PyObject *seq = 0)
4915
+ return new PyMapKeyIterator_T<OutIter>(current, begin, end, seq);
4918
+ template<class OutIterator,
4919
+ class FromOper = from_value_oper<typename OutIterator::value_type> >
4920
+ struct PyMapValueIterator_T : PyMapIterator_T<OutIterator, FromOper>
4922
+ PyMapValueIterator_T(OutIterator curr, OutIterator first, OutIterator last, PyObject *seq)
4923
+ : PyMapIterator_T<OutIterator, FromOper>(curr, first, last, seq)
4929
+ template<typename OutIter>
4930
+ inline PySwigIterator*
4931
+ make_output_value_iterator(const OutIter& current, const OutIter& begin, const OutIter& end, PyObject *seq = 0)
4933
+ return new PyMapValueIterator_T<OutIter>(current, begin, end, seq);
4939
+ template <> struct traits<std::map<int, std::vector< int,std::allocator< int > >, std::less< int >, std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > > > {
4940
+ typedef pointer_category category;
4941
+ static const char* type_name() {
4942
+ return "std::map<" "int" "," "std::vector< int,std::allocator< int > >" "," "std::less< int >" "," "std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > >" " >";
4947
+SWIGINTERN swig::PySwigIterator *std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg__iterator(std::map< int,std::vector< int > > *self,PyObject **PYTHON_SELF){
4948
+ return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
4950
+SWIGINTERN bool std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg____nonzero__(std::map< int,std::vector< int > > const *self){
4951
+ return !(self->empty());
4953
+SWIGINTERN std::map< int,std::vector< int > >::size_type std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg____len__(std::map< int,std::vector< int > > const *self){
4954
+ return self->size();
4956
+SWIGINTERN std::map< int,std::vector< int > >::mapped_type std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg____getitem__(std::map< int,std::vector< int > > const *self,std::map< int,std::vector< int > >::key_type const &key){
4957
+ std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > >::const_iterator i = self->find(key);
4958
+ if (i != self->end())
4961
+ throw std::out_of_range("key not found");
4963
+SWIGINTERN void std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg____delitem__(std::map< int,std::vector< int > > *self,std::map< int,std::vector< int > >::key_type const &key){
4964
+ std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > >::iterator i = self->find(key);
4965
+ if (i != self->end())
4968
+ throw std::out_of_range("key not found");
4970
+SWIGINTERN bool std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg__has_key(std::map< int,std::vector< int > > const *self,std::map< int,std::vector< int > >::key_type const &key){
4971
+ std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > >::const_iterator i = self->find(key);
4972
+ return i != self->end();
4974
+SWIGINTERN PyObject *std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg__keys(std::map< int,std::vector< int > > *self){
4975
+ std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > >::size_type size = self->size();
4976
+ int pysize = (size <= (std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > >::size_type) INT_MAX) ? (int) size : -1;
4978
+ SWIG_PYTHON_THREAD_BEGIN_BLOCK;
4979
+ PyErr_SetString(PyExc_OverflowError,
4980
+ "map size not valid in python");
4981
+ SWIG_PYTHON_THREAD_END_BLOCK;
4984
+ PyObject* keyList = PyList_New(pysize);
4985
+ std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > >::const_iterator i = self->begin();
4986
+ for (int j = 0; j < pysize; ++i, ++j) {
4987
+ PyList_SET_ITEM(keyList, j, swig::from(i->first));
4991
+SWIGINTERN PyObject *std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg__values(std::map< int,std::vector< int > > *self){
4992
+ std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > >::size_type size = self->size();
4993
+ int pysize = (size <= (std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > >::size_type) INT_MAX) ? (int) size : -1;
4995
+ SWIG_PYTHON_THREAD_BEGIN_BLOCK;
4996
+ PyErr_SetString(PyExc_OverflowError,
4997
+ "map size not valid in python");
4998
+ SWIG_PYTHON_THREAD_END_BLOCK;
5001
+ PyObject* valList = PyList_New(pysize);
5002
+ std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > >::const_iterator i = self->begin();
5003
+ for (int j = 0; j < pysize; ++i, ++j) {
5004
+ PyList_SET_ITEM(valList, j, swig::from(i->second));
5008
+SWIGINTERN PyObject *std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg__items(std::map< int,std::vector< int > > *self){
5009
+ std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > >::size_type size = self->size();
5010
+ int pysize = (size <= (std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > >::size_type) INT_MAX) ? (int) size : -1;
5012
+ SWIG_PYTHON_THREAD_BEGIN_BLOCK;
5013
+ PyErr_SetString(PyExc_OverflowError,
5014
+ "map size not valid in python");
5015
+ SWIG_PYTHON_THREAD_END_BLOCK;
5018
+ PyObject* itemList = PyList_New(pysize);
5019
+ std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > >::const_iterator i = self->begin();
5020
+ for (int j = 0; j < pysize; ++i, ++j) {
5021
+ PyList_SET_ITEM(itemList, j, swig::from(*i));
5025
+SWIGINTERN bool std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg____contains__(std::map< int,std::vector< int > > *self,std::map< int,std::vector< int > >::key_type const &key){
5026
+ return self->find(key) != self->end();
5028
+SWIGINTERN swig::PySwigIterator *std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg__key_iterator(std::map< int,std::vector< int > > *self,PyObject **PYTHON_SELF){
5029
+ return swig::make_output_key_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
5031
+SWIGINTERN swig::PySwigIterator *std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg__value_iterator(std::map< int,std::vector< int > > *self,PyObject **PYTHON_SELF){
5032
+ return swig::make_output_value_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
5034
+SWIGINTERN void std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg____setitem__(std::map< int,std::vector< int > > *self,std::map< int,std::vector< int > >::key_type const &key,std::map< int,std::vector< int > >::mapped_type const &x){
5039
+SWIG_AsVal_float (PyObject * obj, float *val)
5042
+ int res = SWIG_AsVal_double (obj, &v);
5043
+ if (SWIG_IsOK(res)) {
5044
+ if ((v < -FLT_MAX || v > FLT_MAX)) {
5045
+ return SWIG_OverflowError;
5047
+ if (val) *val = static_cast< float >(v);
5054
+SWIGINTERN swig_type_info*
5055
+SWIG_pchar_descriptor(void)
5057
+ static int init = 0;
5058
+ static swig_type_info* info = 0;
5060
+ info = SWIG_TypeQuery("_p_char");
5068
+SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
5070
+ if (PyString_Check(obj)) {
5071
+ char *cstr; Py_ssize_t len;
5072
+ PyString_AsStringAndSize(obj, &cstr, &len);
5076
+ In python the user should not be able to modify the inner
5077
+ string representation. To warranty that, if you define
5078
+ SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string
5079
+ buffer is always returned.
5081
+ The default behavior is just to return the pointer value,
5084
+#if defined(SWIG_PYTHON_SAFE_CSTRINGS)
5085
+ if (*alloc != SWIG_OLDOBJ)
5087
+ if (*alloc == SWIG_NEWOBJ)
5090
+ *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1)));
5091
+ *alloc = SWIG_NEWOBJ;
5095
+ *alloc = SWIG_OLDOBJ;
5098
+ *cptr = PyString_AsString(obj);
5101
+ if (psize) *psize = len + 1;
5104
+ swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
5105
+ if (pchar_descriptor) {
5107
+ if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
5108
+ if (cptr) *cptr = (char *) vptr;
5109
+ if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
5110
+ if (alloc) *alloc = SWIG_OLDOBJ;
5115
+ return SWIG_TypeError;
5123
+SWIG_AsVal_bool (PyObject *obj, bool *val)
5125
+ int r = PyObject_IsTrue(obj);
5127
+ return SWIG_ERROR;
5128
+ if (val) *val = r ? true : false;
5135
+SWIGINTERN PyObject *_wrap_delete_PySwigIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5136
+ PyObject *resultobj = 0;
5137
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
5140
+ PyObject * obj0 = 0 ;
5142
+ if (!PyArg_ParseTuple(args,(char *)"O:delete_PySwigIterator",&obj0)) SWIG_fail;
5143
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_DISOWN | 0 );
5144
+ if (!SWIG_IsOK(res1)) {
5145
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PySwigIterator" "', argument " "1"" of type '" "swig::PySwigIterator *""'");
5147
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
5149
+ resultobj = SWIG_Py_Void();
5156
+SWIGINTERN PyObject *_wrap_PySwigIterator_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5157
+ PyObject *resultobj = 0;
5158
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
5161
+ PyObject * obj0 = 0 ;
5162
+ PyObject *result = 0 ;
5164
+ if (!PyArg_ParseTuple(args,(char *)"O:PySwigIterator_value",&obj0)) SWIG_fail;
5165
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
5166
+ if (!SWIG_IsOK(res1)) {
5167
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator_value" "', argument " "1"" of type '" "swig::PySwigIterator const *""'");
5169
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
5171
+ result = (PyObject *)((swig::PySwigIterator const *)arg1)->value();
5173
+ catch(swig::stop_iteration &_e) {
5176
+ SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
5181
+ resultobj = result;
5188
+SWIGINTERN PyObject *_wrap_PySwigIterator_incr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5189
+ PyObject *resultobj = 0;
5190
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
5196
+ PyObject * obj0 = 0 ;
5197
+ PyObject * obj1 = 0 ;
5198
+ swig::PySwigIterator *result = 0 ;
5200
+ if (!PyArg_ParseTuple(args,(char *)"OO:PySwigIterator_incr",&obj0,&obj1)) SWIG_fail;
5201
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
5202
+ if (!SWIG_IsOK(res1)) {
5203
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator_incr" "', argument " "1"" of type '" "swig::PySwigIterator *""'");
5205
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
5206
+ ecode2 = SWIG_AsVal_size_t(obj1, &val2);
5207
+ if (!SWIG_IsOK(ecode2)) {
5208
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PySwigIterator_incr" "', argument " "2"" of type '" "size_t""'");
5210
+ arg2 = static_cast< size_t >(val2);
5212
+ result = (swig::PySwigIterator *)(arg1)->incr(arg2);
5214
+ catch(swig::stop_iteration &_e) {
5217
+ SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
5222
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
5229
+SWIGINTERN PyObject *_wrap_PySwigIterator_incr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5230
+ PyObject *resultobj = 0;
5231
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
5234
+ PyObject * obj0 = 0 ;
5235
+ swig::PySwigIterator *result = 0 ;
5237
+ if (!PyArg_ParseTuple(args,(char *)"O:PySwigIterator_incr",&obj0)) SWIG_fail;
5238
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
5239
+ if (!SWIG_IsOK(res1)) {
5240
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator_incr" "', argument " "1"" of type '" "swig::PySwigIterator *""'");
5242
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
5244
+ result = (swig::PySwigIterator *)(arg1)->incr();
5246
+ catch(swig::stop_iteration &_e) {
5249
+ SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
5254
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
5261
+SWIGINTERN PyObject *_wrap_PySwigIterator_incr(PyObject *self, PyObject *args) {
5263
+ PyObject *argv[3];
5266
+ if (!PyTuple_Check(args)) SWIG_fail;
5267
+ argc = (int)PyObject_Length(args);
5268
+ for (ii = 0; (ii < argc) && (ii < 2); ii++) {
5269
+ argv[ii] = PyTuple_GET_ITEM(args,ii);
5274
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__PySwigIterator, 0);
5275
+ _v = SWIG_CheckState(res);
5277
+ return _wrap_PySwigIterator_incr__SWIG_1(self, args);
5283
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__PySwigIterator, 0);
5284
+ _v = SWIG_CheckState(res);
5287
+ int res = SWIG_AsVal_size_t(argv[1], NULL);
5288
+ _v = SWIG_CheckState(res);
5291
+ return _wrap_PySwigIterator_incr__SWIG_0(self, args);
5297
+ SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'PySwigIterator_incr'.\n"
5298
+ " Possible C/C++ prototypes are:\n"
5299
+ " incr(swig::PySwigIterator *,size_t)\n"
5300
+ " incr(swig::PySwigIterator *)\n");
5305
+SWIGINTERN PyObject *_wrap_PySwigIterator_decr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5306
+ PyObject *resultobj = 0;
5307
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
5313
+ PyObject * obj0 = 0 ;
5314
+ PyObject * obj1 = 0 ;
5315
+ swig::PySwigIterator *result = 0 ;
5317
+ if (!PyArg_ParseTuple(args,(char *)"OO:PySwigIterator_decr",&obj0,&obj1)) SWIG_fail;
5318
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
5319
+ if (!SWIG_IsOK(res1)) {
5320
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator_decr" "', argument " "1"" of type '" "swig::PySwigIterator *""'");
5322
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
5323
+ ecode2 = SWIG_AsVal_size_t(obj1, &val2);
5324
+ if (!SWIG_IsOK(ecode2)) {
5325
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PySwigIterator_decr" "', argument " "2"" of type '" "size_t""'");
5327
+ arg2 = static_cast< size_t >(val2);
5329
+ result = (swig::PySwigIterator *)(arg1)->decr(arg2);
5331
+ catch(swig::stop_iteration &_e) {
5334
+ SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
5339
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
5346
+SWIGINTERN PyObject *_wrap_PySwigIterator_decr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5347
+ PyObject *resultobj = 0;
5348
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
5351
+ PyObject * obj0 = 0 ;
5352
+ swig::PySwigIterator *result = 0 ;
5354
+ if (!PyArg_ParseTuple(args,(char *)"O:PySwigIterator_decr",&obj0)) SWIG_fail;
5355
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
5356
+ if (!SWIG_IsOK(res1)) {
5357
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator_decr" "', argument " "1"" of type '" "swig::PySwigIterator *""'");
5359
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
5361
+ result = (swig::PySwigIterator *)(arg1)->decr();
5363
+ catch(swig::stop_iteration &_e) {
5366
+ SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
5371
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
5378
+SWIGINTERN PyObject *_wrap_PySwigIterator_decr(PyObject *self, PyObject *args) {
5380
+ PyObject *argv[3];
5383
+ if (!PyTuple_Check(args)) SWIG_fail;
5384
+ argc = (int)PyObject_Length(args);
5385
+ for (ii = 0; (ii < argc) && (ii < 2); ii++) {
5386
+ argv[ii] = PyTuple_GET_ITEM(args,ii);
5391
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__PySwigIterator, 0);
5392
+ _v = SWIG_CheckState(res);
5394
+ return _wrap_PySwigIterator_decr__SWIG_1(self, args);
5400
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__PySwigIterator, 0);
5401
+ _v = SWIG_CheckState(res);
5404
+ int res = SWIG_AsVal_size_t(argv[1], NULL);
5405
+ _v = SWIG_CheckState(res);
5408
+ return _wrap_PySwigIterator_decr__SWIG_0(self, args);
5414
+ SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'PySwigIterator_decr'.\n"
5415
+ " Possible C/C++ prototypes are:\n"
5416
+ " decr(swig::PySwigIterator *,size_t)\n"
5417
+ " decr(swig::PySwigIterator *)\n");
5422
+SWIGINTERN PyObject *_wrap_PySwigIterator_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5423
+ PyObject *resultobj = 0;
5424
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
5425
+ swig::PySwigIterator *arg2 = 0 ;
5430
+ PyObject * obj0 = 0 ;
5431
+ PyObject * obj1 = 0 ;
5434
+ if (!PyArg_ParseTuple(args,(char *)"OO:PySwigIterator_distance",&obj0,&obj1)) SWIG_fail;
5435
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
5436
+ if (!SWIG_IsOK(res1)) {
5437
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator_distance" "', argument " "1"" of type '" "swig::PySwigIterator const *""'");
5439
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
5440
+ res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__PySwigIterator, 0 | 0);
5441
+ if (!SWIG_IsOK(res2)) {
5442
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PySwigIterator_distance" "', argument " "2"" of type '" "swig::PySwigIterator const &""'");
5445
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PySwigIterator_distance" "', argument " "2"" of type '" "swig::PySwigIterator const &""'");
5447
+ arg2 = reinterpret_cast< swig::PySwigIterator * >(argp2);
5449
+ result = ((swig::PySwigIterator const *)arg1)->distance((swig::PySwigIterator const &)*arg2);
5451
+ catch(std::invalid_argument &_e) {
5452
+ SWIG_Python_Raise(SWIG_NewPointerObj((new std::invalid_argument(static_cast< const std::invalid_argument& >(_e))),SWIGTYPE_p_std__invalid_argument,SWIG_POINTER_OWN), "std::invalid_argument", SWIGTYPE_p_std__invalid_argument); SWIG_fail;
5455
+ resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
5462
+SWIGINTERN PyObject *_wrap_PySwigIterator_equal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5463
+ PyObject *resultobj = 0;
5464
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
5465
+ swig::PySwigIterator *arg2 = 0 ;
5470
+ PyObject * obj0 = 0 ;
5471
+ PyObject * obj1 = 0 ;
5474
+ if (!PyArg_ParseTuple(args,(char *)"OO:PySwigIterator_equal",&obj0,&obj1)) SWIG_fail;
5475
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
5476
+ if (!SWIG_IsOK(res1)) {
5477
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator_equal" "', argument " "1"" of type '" "swig::PySwigIterator const *""'");
5479
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
5480
+ res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__PySwigIterator, 0 | 0);
5481
+ if (!SWIG_IsOK(res2)) {
5482
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PySwigIterator_equal" "', argument " "2"" of type '" "swig::PySwigIterator const &""'");
5485
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PySwigIterator_equal" "', argument " "2"" of type '" "swig::PySwigIterator const &""'");
5487
+ arg2 = reinterpret_cast< swig::PySwigIterator * >(argp2);
5489
+ result = (bool)((swig::PySwigIterator const *)arg1)->equal((swig::PySwigIterator const &)*arg2);
5491
+ catch(std::invalid_argument &_e) {
5492
+ SWIG_Python_Raise(SWIG_NewPointerObj((new std::invalid_argument(static_cast< const std::invalid_argument& >(_e))),SWIGTYPE_p_std__invalid_argument,SWIG_POINTER_OWN), "std::invalid_argument", SWIGTYPE_p_std__invalid_argument); SWIG_fail;
5495
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
5502
+SWIGINTERN PyObject *_wrap_PySwigIterator_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5503
+ PyObject *resultobj = 0;
5504
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
5507
+ PyObject * obj0 = 0 ;
5508
+ swig::PySwigIterator *result = 0 ;
5510
+ if (!PyArg_ParseTuple(args,(char *)"O:PySwigIterator_copy",&obj0)) SWIG_fail;
5511
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
5512
+ if (!SWIG_IsOK(res1)) {
5513
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator_copy" "', argument " "1"" of type '" "swig::PySwigIterator const *""'");
5515
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
5516
+ result = (swig::PySwigIterator *)((swig::PySwigIterator const *)arg1)->copy();
5517
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_OWN | 0 );
5524
+SWIGINTERN PyObject *_wrap_PySwigIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5525
+ PyObject *resultobj = 0;
5526
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
5529
+ PyObject * obj0 = 0 ;
5530
+ PyObject *result = 0 ;
5532
+ if (!PyArg_ParseTuple(args,(char *)"O:PySwigIterator_next",&obj0)) SWIG_fail;
5533
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
5534
+ if (!SWIG_IsOK(res1)) {
5535
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator_next" "', argument " "1"" of type '" "swig::PySwigIterator *""'");
5537
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
5539
+ result = (PyObject *)(arg1)->next();
5541
+ catch(swig::stop_iteration &_e) {
5544
+ SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
5549
+ resultobj = result;
5556
+SWIGINTERN PyObject *_wrap_PySwigIterator_previous(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5557
+ PyObject *resultobj = 0;
5558
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
5561
+ PyObject * obj0 = 0 ;
5562
+ PyObject *result = 0 ;
5564
+ if (!PyArg_ParseTuple(args,(char *)"O:PySwigIterator_previous",&obj0)) SWIG_fail;
5565
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
5566
+ if (!SWIG_IsOK(res1)) {
5567
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator_previous" "', argument " "1"" of type '" "swig::PySwigIterator *""'");
5569
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
5571
+ result = (PyObject *)(arg1)->previous();
5573
+ catch(swig::stop_iteration &_e) {
5576
+ SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
5581
+ resultobj = result;
5588
+SWIGINTERN PyObject *_wrap_PySwigIterator_advance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5589
+ PyObject *resultobj = 0;
5590
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
5596
+ PyObject * obj0 = 0 ;
5597
+ PyObject * obj1 = 0 ;
5598
+ swig::PySwigIterator *result = 0 ;
5600
+ if (!PyArg_ParseTuple(args,(char *)"OO:PySwigIterator_advance",&obj0,&obj1)) SWIG_fail;
5601
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
5602
+ if (!SWIG_IsOK(res1)) {
5603
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator_advance" "', argument " "1"" of type '" "swig::PySwigIterator *""'");
5605
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
5606
+ ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
5607
+ if (!SWIG_IsOK(ecode2)) {
5608
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PySwigIterator_advance" "', argument " "2"" of type '" "ptrdiff_t""'");
5610
+ arg2 = static_cast< ptrdiff_t >(val2);
5612
+ result = (swig::PySwigIterator *)(arg1)->advance(arg2);
5614
+ catch(swig::stop_iteration &_e) {
5617
+ SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
5622
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
5629
+SWIGINTERN PyObject *_wrap_PySwigIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5630
+ PyObject *resultobj = 0;
5631
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
5632
+ swig::PySwigIterator *arg2 = 0 ;
5637
+ PyObject * obj0 = 0 ;
5638
+ PyObject * obj1 = 0 ;
5641
+ if (!PyArg_ParseTuple(args,(char *)"OO:PySwigIterator___eq__",&obj0,&obj1)) SWIG_fail;
5642
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
5643
+ if (!SWIG_IsOK(res1)) {
5644
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator___eq__" "', argument " "1"" of type '" "swig::PySwigIterator const *""'");
5646
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
5647
+ res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__PySwigIterator, 0 | 0);
5648
+ if (!SWIG_IsOK(res2)) {
5649
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PySwigIterator___eq__" "', argument " "2"" of type '" "swig::PySwigIterator const &""'");
5652
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PySwigIterator___eq__" "', argument " "2"" of type '" "swig::PySwigIterator const &""'");
5654
+ arg2 = reinterpret_cast< swig::PySwigIterator * >(argp2);
5655
+ result = (bool)((swig::PySwigIterator const *)arg1)->operator ==((swig::PySwigIterator const &)*arg2);
5656
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
5663
+SWIGINTERN PyObject *_wrap_PySwigIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5664
+ PyObject *resultobj = 0;
5665
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
5666
+ swig::PySwigIterator *arg2 = 0 ;
5671
+ PyObject * obj0 = 0 ;
5672
+ PyObject * obj1 = 0 ;
5675
+ if (!PyArg_ParseTuple(args,(char *)"OO:PySwigIterator___ne__",&obj0,&obj1)) SWIG_fail;
5676
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
5677
+ if (!SWIG_IsOK(res1)) {
5678
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator___ne__" "', argument " "1"" of type '" "swig::PySwigIterator const *""'");
5680
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
5681
+ res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__PySwigIterator, 0 | 0);
5682
+ if (!SWIG_IsOK(res2)) {
5683
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PySwigIterator___ne__" "', argument " "2"" of type '" "swig::PySwigIterator const &""'");
5686
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PySwigIterator___ne__" "', argument " "2"" of type '" "swig::PySwigIterator const &""'");
5688
+ arg2 = reinterpret_cast< swig::PySwigIterator * >(argp2);
5689
+ result = (bool)((swig::PySwigIterator const *)arg1)->operator !=((swig::PySwigIterator const &)*arg2);
5690
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
5697
+SWIGINTERN PyObject *_wrap_PySwigIterator___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5698
+ PyObject *resultobj = 0;
5699
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
5705
+ PyObject * obj0 = 0 ;
5706
+ PyObject * obj1 = 0 ;
5707
+ swig::PySwigIterator *result = 0 ;
5709
+ if (!PyArg_ParseTuple(args,(char *)"OO:PySwigIterator___iadd__",&obj0,&obj1)) SWIG_fail;
5710
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_DISOWN | 0 );
5711
+ if (!SWIG_IsOK(res1)) {
5712
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator___iadd__" "', argument " "1"" of type '" "swig::PySwigIterator *""'");
5714
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
5715
+ ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
5716
+ if (!SWIG_IsOK(ecode2)) {
5717
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PySwigIterator___iadd__" "', argument " "2"" of type '" "ptrdiff_t""'");
5719
+ arg2 = static_cast< ptrdiff_t >(val2);
5722
+ swig::PySwigIterator &_result_ref = (arg1)->operator +=(arg2);
5723
+ result = (swig::PySwigIterator *) &_result_ref;
5726
+ catch(swig::stop_iteration &_e) {
5729
+ SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
5734
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_OWN | 0 );
5741
+SWIGINTERN PyObject *_wrap_PySwigIterator___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5742
+ PyObject *resultobj = 0;
5743
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
5749
+ PyObject * obj0 = 0 ;
5750
+ PyObject * obj1 = 0 ;
5751
+ swig::PySwigIterator *result = 0 ;
5753
+ if (!PyArg_ParseTuple(args,(char *)"OO:PySwigIterator___isub__",&obj0,&obj1)) SWIG_fail;
5754
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_DISOWN | 0 );
5755
+ if (!SWIG_IsOK(res1)) {
5756
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator___isub__" "', argument " "1"" of type '" "swig::PySwigIterator *""'");
5758
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
5759
+ ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
5760
+ if (!SWIG_IsOK(ecode2)) {
5761
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PySwigIterator___isub__" "', argument " "2"" of type '" "ptrdiff_t""'");
5763
+ arg2 = static_cast< ptrdiff_t >(val2);
5766
+ swig::PySwigIterator &_result_ref = (arg1)->operator -=(arg2);
5767
+ result = (swig::PySwigIterator *) &_result_ref;
5770
+ catch(swig::stop_iteration &_e) {
5773
+ SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
5778
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_OWN | 0 );
5785
+SWIGINTERN PyObject *_wrap_PySwigIterator___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5786
+ PyObject *resultobj = 0;
5787
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
5793
+ PyObject * obj0 = 0 ;
5794
+ PyObject * obj1 = 0 ;
5795
+ swig::PySwigIterator *result = 0 ;
5797
+ if (!PyArg_ParseTuple(args,(char *)"OO:PySwigIterator___add__",&obj0,&obj1)) SWIG_fail;
5798
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
5799
+ if (!SWIG_IsOK(res1)) {
5800
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator___add__" "', argument " "1"" of type '" "swig::PySwigIterator const *""'");
5802
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
5803
+ ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
5804
+ if (!SWIG_IsOK(ecode2)) {
5805
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PySwigIterator___add__" "', argument " "2"" of type '" "ptrdiff_t""'");
5807
+ arg2 = static_cast< ptrdiff_t >(val2);
5809
+ result = (swig::PySwigIterator *)((swig::PySwigIterator const *)arg1)->operator +(arg2);
5811
+ catch(swig::stop_iteration &_e) {
5814
+ SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
5819
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_OWN | 0 );
5826
+SWIGINTERN PyObject *_wrap_PySwigIterator___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5827
+ PyObject *resultobj = 0;
5828
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
5834
+ PyObject * obj0 = 0 ;
5835
+ PyObject * obj1 = 0 ;
5836
+ swig::PySwigIterator *result = 0 ;
5838
+ if (!PyArg_ParseTuple(args,(char *)"OO:PySwigIterator___sub__",&obj0,&obj1)) SWIG_fail;
5839
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
5840
+ if (!SWIG_IsOK(res1)) {
5841
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator___sub__" "', argument " "1"" of type '" "swig::PySwigIterator const *""'");
5843
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
5844
+ ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
5845
+ if (!SWIG_IsOK(ecode2)) {
5846
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PySwigIterator___sub__" "', argument " "2"" of type '" "ptrdiff_t""'");
5848
+ arg2 = static_cast< ptrdiff_t >(val2);
5850
+ result = (swig::PySwigIterator *)((swig::PySwigIterator const *)arg1)->operator -(arg2);
5852
+ catch(swig::stop_iteration &_e) {
5855
+ SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
5860
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_OWN | 0 );
5867
+SWIGINTERN PyObject *_wrap_PySwigIterator___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5868
+ PyObject *resultobj = 0;
5869
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
5870
+ swig::PySwigIterator *arg2 = 0 ;
5875
+ PyObject * obj0 = 0 ;
5876
+ PyObject * obj1 = 0 ;
5879
+ if (!PyArg_ParseTuple(args,(char *)"OO:PySwigIterator___sub__",&obj0,&obj1)) SWIG_fail;
5880
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
5881
+ if (!SWIG_IsOK(res1)) {
5882
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator___sub__" "', argument " "1"" of type '" "swig::PySwigIterator const *""'");
5884
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
5885
+ res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__PySwigIterator, 0 | 0);
5886
+ if (!SWIG_IsOK(res2)) {
5887
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PySwigIterator___sub__" "', argument " "2"" of type '" "swig::PySwigIterator const &""'");
5890
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PySwigIterator___sub__" "', argument " "2"" of type '" "swig::PySwigIterator const &""'");
5892
+ arg2 = reinterpret_cast< swig::PySwigIterator * >(argp2);
5893
+ result = ((swig::PySwigIterator const *)arg1)->operator -((swig::PySwigIterator const &)*arg2);
5894
+ resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
5901
+SWIGINTERN PyObject *_wrap_PySwigIterator___sub__(PyObject *self, PyObject *args) {
5903
+ PyObject *argv[3];
5906
+ if (!PyTuple_Check(args)) SWIG_fail;
5907
+ argc = (int)PyObject_Length(args);
5908
+ for (ii = 0; (ii < argc) && (ii < 2); ii++) {
5909
+ argv[ii] = PyTuple_GET_ITEM(args,ii);
5914
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__PySwigIterator, 0);
5915
+ _v = SWIG_CheckState(res);
5917
+ int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_swig__PySwigIterator, 0);
5918
+ _v = SWIG_CheckState(res);
5920
+ return _wrap_PySwigIterator___sub____SWIG_1(self, args);
5927
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__PySwigIterator, 0);
5928
+ _v = SWIG_CheckState(res);
5931
+ int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
5932
+ _v = SWIG_CheckState(res);
5935
+ return _wrap_PySwigIterator___sub____SWIG_0(self, args);
5941
+ Py_INCREF(Py_NotImplemented);
5942
+ return Py_NotImplemented;
5946
+SWIGINTERN PyObject *PySwigIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5948
+ if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
5949
+ SWIG_TypeNewClientData(SWIGTYPE_p_swig__PySwigIterator, SWIG_NewClientData(obj));
5950
+ return SWIG_Py_Void();
5953
+SWIGINTERN PyObject *_wrap_IntVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5954
+ PyObject *resultobj = 0;
5955
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
5956
+ PyObject **arg2 = (PyObject **) 0 ;
5959
+ PyObject * obj0 = 0 ;
5960
+ swig::PySwigIterator *result = 0 ;
5963
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVector_iterator",&obj0)) SWIG_fail;
5964
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
5965
+ if (!SWIG_IsOK(res1)) {
5966
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_iterator" "', argument " "1"" of type '" "std::vector< int > *""'");
5968
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
5969
+ result = (swig::PySwigIterator *)std_vector_Sl_int_Sg__iterator(arg1,arg2);
5970
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_OWN | 0 );
5977
+SWIGINTERN PyObject *_wrap_IntVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5978
+ PyObject *resultobj = 0;
5979
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
5982
+ PyObject * obj0 = 0 ;
5985
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVector___nonzero__",&obj0)) SWIG_fail;
5986
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
5987
+ if (!SWIG_IsOK(res1)) {
5988
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___nonzero__" "', argument " "1"" of type '" "std::vector< int > const *""'");
5990
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
5991
+ result = (bool)std_vector_Sl_int_Sg____nonzero__((std::vector< int > const *)arg1);
5992
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
5999
+SWIGINTERN PyObject *_wrap_IntVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6000
+ PyObject *resultobj = 0;
6001
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
6004
+ PyObject * obj0 = 0 ;
6005
+ std::vector< int >::size_type result;
6007
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVector___len__",&obj0)) SWIG_fail;
6008
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
6009
+ if (!SWIG_IsOK(res1)) {
6010
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___len__" "', argument " "1"" of type '" "std::vector< int > const *""'");
6012
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
6013
+ result = std_vector_Sl_int_Sg____len__((std::vector< int > const *)arg1);
6014
+ resultobj = SWIG_From_size_t(static_cast< size_t >(result));
6021
+SWIGINTERN PyObject *_wrap_IntVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6022
+ PyObject *resultobj = 0;
6023
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
6026
+ PyObject * obj0 = 0 ;
6027
+ std::vector< int >::value_type result;
6029
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVector_pop",&obj0)) SWIG_fail;
6030
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
6031
+ if (!SWIG_IsOK(res1)) {
6032
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_pop" "', argument " "1"" of type '" "std::vector< int > *""'");
6034
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
6036
+ result = (std::vector< int >::value_type)std_vector_Sl_int_Sg__pop(arg1);
6038
+ catch(std::out_of_range &_e) {
6039
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
6042
+ resultobj = SWIG_From_int(static_cast< int >(result));
6049
+SWIGINTERN PyObject *_wrap_IntVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6050
+ PyObject *resultobj = 0;
6051
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
6052
+ std::vector< int >::difference_type arg2 ;
6053
+ std::vector< int >::difference_type arg3 ;
6060
+ PyObject * obj0 = 0 ;
6061
+ PyObject * obj1 = 0 ;
6062
+ PyObject * obj2 = 0 ;
6063
+ std::vector< int,std::allocator< int > > *result = 0 ;
6065
+ if (!PyArg_ParseTuple(args,(char *)"OOO:IntVector___getslice__",&obj0,&obj1,&obj2)) SWIG_fail;
6066
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
6067
+ if (!SWIG_IsOK(res1)) {
6068
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___getslice__" "', argument " "1"" of type '" "std::vector< int > *""'");
6070
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
6071
+ ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
6072
+ if (!SWIG_IsOK(ecode2)) {
6073
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___getslice__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'");
6075
+ arg2 = static_cast< std::vector< int >::difference_type >(val2);
6076
+ ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
6077
+ if (!SWIG_IsOK(ecode3)) {
6078
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector___getslice__" "', argument " "3"" of type '" "std::vector< int >::difference_type""'");
6080
+ arg3 = static_cast< std::vector< int >::difference_type >(val3);
6082
+ result = (std::vector< int,std::allocator< int > > *)std_vector_Sl_int_Sg____getslice__(arg1,arg2,arg3);
6084
+ catch(std::out_of_range &_e) {
6085
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
6088
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_OWN | 0 );
6095
+SWIGINTERN PyObject *_wrap_IntVector___setslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6096
+ PyObject *resultobj = 0;
6097
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
6098
+ std::vector< int >::difference_type arg2 ;
6099
+ std::vector< int >::difference_type arg3 ;
6100
+ std::vector< int,std::allocator< int > > *arg4 = 0 ;
6107
+ int res4 = SWIG_OLDOBJ ;
6108
+ PyObject * obj0 = 0 ;
6109
+ PyObject * obj1 = 0 ;
6110
+ PyObject * obj2 = 0 ;
6111
+ PyObject * obj3 = 0 ;
6113
+ if (!PyArg_ParseTuple(args,(char *)"OOOO:IntVector___setslice__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6114
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
6115
+ if (!SWIG_IsOK(res1)) {
6116
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___setslice__" "', argument " "1"" of type '" "std::vector< int > *""'");
6118
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
6119
+ ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
6120
+ if (!SWIG_IsOK(ecode2)) {
6121
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___setslice__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'");
6123
+ arg2 = static_cast< std::vector< int >::difference_type >(val2);
6124
+ ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
6125
+ if (!SWIG_IsOK(ecode3)) {
6126
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector___setslice__" "', argument " "3"" of type '" "std::vector< int >::difference_type""'");
6128
+ arg3 = static_cast< std::vector< int >::difference_type >(val3);
6130
+ std::vector<int,std::allocator< int > > *ptr = (std::vector<int,std::allocator< int > > *)0;
6131
+ res4 = swig::asptr(obj3, &ptr);
6132
+ if (!SWIG_IsOK(res4)) {
6133
+ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "IntVector___setslice__" "', argument " "4"" of type '" "std::vector< int,std::allocator< int > > const &""'");
6136
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntVector___setslice__" "', argument " "4"" of type '" "std::vector< int,std::allocator< int > > const &""'");
6141
+ std_vector_Sl_int_Sg____setslice__(arg1,arg2,arg3,(std::vector< int,std::allocator< int > > const &)*arg4);
6143
+ catch(std::out_of_range &_e) {
6144
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
6146
+ catch(std::invalid_argument &_e) {
6147
+ SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
6150
+ resultobj = SWIG_Py_Void();
6151
+ if (SWIG_IsNewObj(res4)) delete arg4;
6154
+ if (SWIG_IsNewObj(res4)) delete arg4;
6159
+SWIGINTERN PyObject *_wrap_IntVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6160
+ PyObject *resultobj = 0;
6161
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
6162
+ std::vector< int >::difference_type arg2 ;
6163
+ std::vector< int >::difference_type arg3 ;
6170
+ PyObject * obj0 = 0 ;
6171
+ PyObject * obj1 = 0 ;
6172
+ PyObject * obj2 = 0 ;
6174
+ if (!PyArg_ParseTuple(args,(char *)"OOO:IntVector___delslice__",&obj0,&obj1,&obj2)) SWIG_fail;
6175
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
6176
+ if (!SWIG_IsOK(res1)) {
6177
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___delslice__" "', argument " "1"" of type '" "std::vector< int > *""'");
6179
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
6180
+ ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
6181
+ if (!SWIG_IsOK(ecode2)) {
6182
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___delslice__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'");
6184
+ arg2 = static_cast< std::vector< int >::difference_type >(val2);
6185
+ ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
6186
+ if (!SWIG_IsOK(ecode3)) {
6187
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector___delslice__" "', argument " "3"" of type '" "std::vector< int >::difference_type""'");
6189
+ arg3 = static_cast< std::vector< int >::difference_type >(val3);
6191
+ std_vector_Sl_int_Sg____delslice__(arg1,arg2,arg3);
6193
+ catch(std::out_of_range &_e) {
6194
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
6197
+ resultobj = SWIG_Py_Void();
6204
+SWIGINTERN PyObject *_wrap_IntVector___delitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6205
+ PyObject *resultobj = 0;
6206
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
6207
+ std::vector< int >::difference_type arg2 ;
6212
+ PyObject * obj0 = 0 ;
6213
+ PyObject * obj1 = 0 ;
6215
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVector___delitem__",&obj0,&obj1)) SWIG_fail;
6216
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
6217
+ if (!SWIG_IsOK(res1)) {
6218
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___delitem__" "', argument " "1"" of type '" "std::vector< int > *""'");
6220
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
6221
+ ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
6222
+ if (!SWIG_IsOK(ecode2)) {
6223
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___delitem__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'");
6225
+ arg2 = static_cast< std::vector< int >::difference_type >(val2);
6227
+ std_vector_Sl_int_Sg____delitem__(arg1,arg2);
6229
+ catch(std::out_of_range &_e) {
6230
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
6233
+ resultobj = SWIG_Py_Void();
6240
+SWIGINTERN PyObject *_wrap_IntVector___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6241
+ PyObject *resultobj = 0;
6242
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
6243
+ std::vector< int >::difference_type arg2 ;
6248
+ PyObject * obj0 = 0 ;
6249
+ PyObject * obj1 = 0 ;
6250
+ std::vector< int >::value_type *result = 0 ;
6252
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVector___getitem__",&obj0,&obj1)) SWIG_fail;
6253
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
6254
+ if (!SWIG_IsOK(res1)) {
6255
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___getitem__" "', argument " "1"" of type '" "std::vector< int > const *""'");
6257
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
6258
+ ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
6259
+ if (!SWIG_IsOK(ecode2)) {
6260
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___getitem__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'");
6262
+ arg2 = static_cast< std::vector< int >::difference_type >(val2);
6265
+ std::vector< int >::value_type const &_result_ref = std_vector_Sl_int_Sg____getitem__((std::vector< int > const *)arg1,arg2);
6266
+ result = (std::vector< int >::value_type *) &_result_ref;
6269
+ catch(std::out_of_range &_e) {
6270
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
6273
+ resultobj = SWIG_From_int(static_cast< int >(*result));
6280
+SWIGINTERN PyObject *_wrap_IntVector___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6281
+ PyObject *resultobj = 0;
6282
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
6283
+ std::vector< int >::difference_type arg2 ;
6284
+ std::vector< int >::value_type *arg3 = 0 ;
6289
+ std::vector< int >::value_type temp3 ;
6292
+ PyObject * obj0 = 0 ;
6293
+ PyObject * obj1 = 0 ;
6294
+ PyObject * obj2 = 0 ;
6296
+ if (!PyArg_ParseTuple(args,(char *)"OOO:IntVector___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
6297
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
6298
+ if (!SWIG_IsOK(res1)) {
6299
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___setitem__" "', argument " "1"" of type '" "std::vector< int > *""'");
6301
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
6302
+ ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
6303
+ if (!SWIG_IsOK(ecode2)) {
6304
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___setitem__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'");
6306
+ arg2 = static_cast< std::vector< int >::difference_type >(val2);
6307
+ ecode3 = SWIG_AsVal_int(obj2, &val3);
6308
+ if (!SWIG_IsOK(ecode3)) {
6309
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector___setitem__" "', argument " "3"" of type '" "std::vector< int >::value_type""'");
6311
+ temp3 = static_cast< std::vector< int >::value_type >(val3);
6314
+ std_vector_Sl_int_Sg____setitem__(arg1,arg2,(int const &)*arg3);
6316
+ catch(std::out_of_range &_e) {
6317
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
6320
+ resultobj = SWIG_Py_Void();
6327
+SWIGINTERN PyObject *_wrap_IntVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6328
+ PyObject *resultobj = 0;
6329
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
6330
+ std::vector< int >::value_type *arg2 = 0 ;
6333
+ std::vector< int >::value_type temp2 ;
6336
+ PyObject * obj0 = 0 ;
6337
+ PyObject * obj1 = 0 ;
6339
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVector_append",&obj0,&obj1)) SWIG_fail;
6340
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
6341
+ if (!SWIG_IsOK(res1)) {
6342
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_append" "', argument " "1"" of type '" "std::vector< int > *""'");
6344
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
6345
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
6346
+ if (!SWIG_IsOK(ecode2)) {
6347
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector_append" "', argument " "2"" of type '" "std::vector< int >::value_type""'");
6349
+ temp2 = static_cast< std::vector< int >::value_type >(val2);
6351
+ std_vector_Sl_int_Sg__append(arg1,(int const &)*arg2);
6352
+ resultobj = SWIG_Py_Void();
6359
+SWIGINTERN PyObject *_wrap_new_IntVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6360
+ PyObject *resultobj = 0;
6361
+ std::vector< int > *result = 0 ;
6363
+ if (!PyArg_ParseTuple(args,(char *)":new_IntVector")) SWIG_fail;
6364
+ result = (std::vector< int > *)new std::vector< int >();
6365
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_NEW | 0 );
6372
+SWIGINTERN PyObject *_wrap_new_IntVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6373
+ PyObject *resultobj = 0;
6374
+ std::vector< int > *arg1 = 0 ;
6375
+ int res1 = SWIG_OLDOBJ ;
6376
+ PyObject * obj0 = 0 ;
6377
+ std::vector< int > *result = 0 ;
6379
+ if (!PyArg_ParseTuple(args,(char *)"O:new_IntVector",&obj0)) SWIG_fail;
6381
+ std::vector<int,std::allocator< int > > *ptr = (std::vector<int,std::allocator< int > > *)0;
6382
+ res1 = swig::asptr(obj0, &ptr);
6383
+ if (!SWIG_IsOK(res1)) {
6384
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IntVector" "', argument " "1"" of type '" "std::vector< int > const &""'");
6387
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IntVector" "', argument " "1"" of type '" "std::vector< int > const &""'");
6391
+ result = (std::vector< int > *)new std::vector< int >((std::vector< int > const &)*arg1);
6392
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_NEW | 0 );
6393
+ if (SWIG_IsNewObj(res1)) delete arg1;
6396
+ if (SWIG_IsNewObj(res1)) delete arg1;
6401
+SWIGINTERN PyObject *_wrap_IntVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6402
+ PyObject *resultobj = 0;
6403
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
6406
+ PyObject * obj0 = 0 ;
6409
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVector_empty",&obj0)) SWIG_fail;
6410
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
6411
+ if (!SWIG_IsOK(res1)) {
6412
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_empty" "', argument " "1"" of type '" "std::vector< int > const *""'");
6414
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
6415
+ result = (bool)((std::vector< int > const *)arg1)->empty();
6416
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
6423
+SWIGINTERN PyObject *_wrap_IntVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6424
+ PyObject *resultobj = 0;
6425
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
6428
+ PyObject * obj0 = 0 ;
6429
+ std::vector< int >::size_type result;
6431
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVector_size",&obj0)) SWIG_fail;
6432
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
6433
+ if (!SWIG_IsOK(res1)) {
6434
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_size" "', argument " "1"" of type '" "std::vector< int > const *""'");
6436
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
6437
+ result = ((std::vector< int > const *)arg1)->size();
6438
+ resultobj = SWIG_From_size_t(static_cast< size_t >(result));
6445
+SWIGINTERN PyObject *_wrap_IntVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6446
+ PyObject *resultobj = 0;
6447
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
6450
+ PyObject * obj0 = 0 ;
6452
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVector_clear",&obj0)) SWIG_fail;
6453
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
6454
+ if (!SWIG_IsOK(res1)) {
6455
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_clear" "', argument " "1"" of type '" "std::vector< int > *""'");
6457
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
6459
+ resultobj = SWIG_Py_Void();
6466
+SWIGINTERN PyObject *_wrap_IntVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6467
+ PyObject *resultobj = 0;
6468
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
6469
+ std::vector< int > *arg2 = 0 ;
6474
+ PyObject * obj0 = 0 ;
6475
+ PyObject * obj1 = 0 ;
6477
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVector_swap",&obj0,&obj1)) SWIG_fail;
6478
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
6479
+ if (!SWIG_IsOK(res1)) {
6480
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_swap" "', argument " "1"" of type '" "std::vector< int > *""'");
6482
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
6483
+ res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 );
6484
+ if (!SWIG_IsOK(res2)) {
6485
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntVector_swap" "', argument " "2"" of type '" "std::vector< int > &""'");
6488
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntVector_swap" "', argument " "2"" of type '" "std::vector< int > &""'");
6490
+ arg2 = reinterpret_cast< std::vector< int > * >(argp2);
6491
+ (arg1)->swap(*arg2);
6492
+ resultobj = SWIG_Py_Void();
6499
+SWIGINTERN PyObject *_wrap_IntVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6500
+ PyObject *resultobj = 0;
6501
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
6504
+ PyObject * obj0 = 0 ;
6505
+ SwigValueWrapper< std::allocator< int > > result;
6507
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVector_get_allocator",&obj0)) SWIG_fail;
6508
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
6509
+ if (!SWIG_IsOK(res1)) {
6510
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_get_allocator" "', argument " "1"" of type '" "std::vector< int > const *""'");
6512
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
6513
+ result = ((std::vector< int > const *)arg1)->get_allocator();
6514
+ resultobj = SWIG_NewPointerObj((new std::vector< int >::allocator_type(static_cast< const std::vector< int >::allocator_type& >(result))), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t__allocator_type, SWIG_POINTER_OWN | 0 );
6521
+SWIGINTERN PyObject *_wrap_IntVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6522
+ PyObject *resultobj = 0;
6523
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
6526
+ PyObject * obj0 = 0 ;
6527
+ std::vector< int >::const_iterator result;
6529
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVector_begin",&obj0)) SWIG_fail;
6530
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
6531
+ if (!SWIG_IsOK(res1)) {
6532
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_begin" "', argument " "1"" of type '" "std::vector< int > const *""'");
6534
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
6535
+ result = ((std::vector< int > const *)arg1)->begin();
6536
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::const_iterator & >(result)),
6537
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
6544
+SWIGINTERN PyObject *_wrap_IntVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6545
+ PyObject *resultobj = 0;
6546
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
6549
+ PyObject * obj0 = 0 ;
6550
+ std::vector< int >::const_iterator result;
6552
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVector_end",&obj0)) SWIG_fail;
6553
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
6554
+ if (!SWIG_IsOK(res1)) {
6555
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_end" "', argument " "1"" of type '" "std::vector< int > const *""'");
6557
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
6558
+ result = ((std::vector< int > const *)arg1)->end();
6559
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::const_iterator & >(result)),
6560
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
6567
+SWIGINTERN PyObject *_wrap_IntVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6568
+ PyObject *resultobj = 0;
6569
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
6572
+ PyObject * obj0 = 0 ;
6573
+ std::vector< int >::const_reverse_iterator result;
6575
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVector_rbegin",&obj0)) SWIG_fail;
6576
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
6577
+ if (!SWIG_IsOK(res1)) {
6578
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_rbegin" "', argument " "1"" of type '" "std::vector< int > const *""'");
6580
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
6581
+ result = ((std::vector< int > const *)arg1)->rbegin();
6582
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::const_reverse_iterator & >(result)),
6583
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
6590
+SWIGINTERN PyObject *_wrap_IntVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6591
+ PyObject *resultobj = 0;
6592
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
6595
+ PyObject * obj0 = 0 ;
6596
+ std::vector< int >::const_reverse_iterator result;
6598
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVector_rend",&obj0)) SWIG_fail;
6599
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
6600
+ if (!SWIG_IsOK(res1)) {
6601
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_rend" "', argument " "1"" of type '" "std::vector< int > const *""'");
6603
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
6604
+ result = ((std::vector< int > const *)arg1)->rend();
6605
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::const_reverse_iterator & >(result)),
6606
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
6613
+SWIGINTERN PyObject *_wrap_new_IntVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6614
+ PyObject *resultobj = 0;
6615
+ std::vector< int >::size_type arg1 ;
6618
+ PyObject * obj0 = 0 ;
6619
+ std::vector< int > *result = 0 ;
6621
+ if (!PyArg_ParseTuple(args,(char *)"O:new_IntVector",&obj0)) SWIG_fail;
6622
+ ecode1 = SWIG_AsVal_size_t(obj0, &val1);
6623
+ if (!SWIG_IsOK(ecode1)) {
6624
+ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_IntVector" "', argument " "1"" of type '" "std::vector< int >::size_type""'");
6626
+ arg1 = static_cast< std::vector< int >::size_type >(val1);
6627
+ result = (std::vector< int > *)new std::vector< int >(arg1);
6628
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_NEW | 0 );
6635
+SWIGINTERN PyObject *_wrap_IntVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6636
+ PyObject *resultobj = 0;
6637
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
6640
+ PyObject * obj0 = 0 ;
6642
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVector_pop_back",&obj0)) SWIG_fail;
6643
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
6644
+ if (!SWIG_IsOK(res1)) {
6645
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_pop_back" "', argument " "1"" of type '" "std::vector< int > *""'");
6647
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
6648
+ (arg1)->pop_back();
6649
+ resultobj = SWIG_Py_Void();
6656
+SWIGINTERN PyObject *_wrap_IntVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6657
+ PyObject *resultobj = 0;
6658
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
6659
+ std::vector< int >::size_type arg2 ;
6664
+ PyObject * obj0 = 0 ;
6665
+ PyObject * obj1 = 0 ;
6667
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVector_resize",&obj0,&obj1)) SWIG_fail;
6668
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
6669
+ if (!SWIG_IsOK(res1)) {
6670
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_resize" "', argument " "1"" of type '" "std::vector< int > *""'");
6672
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
6673
+ ecode2 = SWIG_AsVal_size_t(obj1, &val2);
6674
+ if (!SWIG_IsOK(ecode2)) {
6675
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector_resize" "', argument " "2"" of type '" "std::vector< int >::size_type""'");
6677
+ arg2 = static_cast< std::vector< int >::size_type >(val2);
6678
+ (arg1)->resize(arg2);
6679
+ resultobj = SWIG_Py_Void();
6686
+SWIGINTERN PyObject *_wrap_IntVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6687
+ PyObject *resultobj = 0;
6688
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
6689
+ std::vector< int >::iterator arg2 ;
6692
+ swig::PySwigIterator *iter2 = 0 ;
6694
+ PyObject * obj0 = 0 ;
6695
+ PyObject * obj1 = 0 ;
6696
+ std::vector< int >::iterator result;
6698
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVector_erase",&obj0,&obj1)) SWIG_fail;
6699
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
6700
+ if (!SWIG_IsOK(res1)) {
6701
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_erase" "', argument " "1"" of type '" "std::vector< int > *""'");
6703
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
6704
+ res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::PySwigIterator::descriptor(), 0);
6705
+ if (!SWIG_IsOK(res2) || !iter2) {
6706
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_erase" "', argument " "2"" of type '" "std::vector< int >::iterator""'");
6708
+ swig::PySwigIterator_T<std::vector< int >::iterator > *iter_t = dynamic_cast<swig::PySwigIterator_T<std::vector< int >::iterator > *>(iter2);
6710
+ arg2 = iter_t->get_current();
6712
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_erase" "', argument " "2"" of type '" "std::vector< int >::iterator""'");
6715
+ result = (arg1)->erase(arg2);
6716
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::iterator & >(result)),
6717
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
6724
+SWIGINTERN PyObject *_wrap_IntVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6725
+ PyObject *resultobj = 0;
6726
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
6727
+ std::vector< int >::iterator arg2 ;
6728
+ std::vector< int >::iterator arg3 ;
6731
+ swig::PySwigIterator *iter2 = 0 ;
6733
+ swig::PySwigIterator *iter3 = 0 ;
6735
+ PyObject * obj0 = 0 ;
6736
+ PyObject * obj1 = 0 ;
6737
+ PyObject * obj2 = 0 ;
6738
+ std::vector< int >::iterator result;
6740
+ if (!PyArg_ParseTuple(args,(char *)"OOO:IntVector_erase",&obj0,&obj1,&obj2)) SWIG_fail;
6741
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
6742
+ if (!SWIG_IsOK(res1)) {
6743
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_erase" "', argument " "1"" of type '" "std::vector< int > *""'");
6745
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
6746
+ res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::PySwigIterator::descriptor(), 0);
6747
+ if (!SWIG_IsOK(res2) || !iter2) {
6748
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_erase" "', argument " "2"" of type '" "std::vector< int >::iterator""'");
6750
+ swig::PySwigIterator_T<std::vector< int >::iterator > *iter_t = dynamic_cast<swig::PySwigIterator_T<std::vector< int >::iterator > *>(iter2);
6752
+ arg2 = iter_t->get_current();
6754
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_erase" "', argument " "2"" of type '" "std::vector< int >::iterator""'");
6757
+ res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::PySwigIterator::descriptor(), 0);
6758
+ if (!SWIG_IsOK(res3) || !iter3) {
6759
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_erase" "', argument " "3"" of type '" "std::vector< int >::iterator""'");
6761
+ swig::PySwigIterator_T<std::vector< int >::iterator > *iter_t = dynamic_cast<swig::PySwigIterator_T<std::vector< int >::iterator > *>(iter3);
6763
+ arg3 = iter_t->get_current();
6765
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_erase" "', argument " "3"" of type '" "std::vector< int >::iterator""'");
6768
+ result = (arg1)->erase(arg2,arg3);
6769
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::iterator & >(result)),
6770
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
6777
+SWIGINTERN PyObject *_wrap_IntVector_erase(PyObject *self, PyObject *args) {
6779
+ PyObject *argv[4];
6782
+ if (!PyTuple_Check(args)) SWIG_fail;
6783
+ argc = (int)PyObject_Length(args);
6784
+ for (ii = 0; (ii < argc) && (ii < 3); ii++) {
6785
+ argv[ii] = PyTuple_GET_ITEM(args,ii);
6789
+ int res = swig::asptr(argv[0], (std::vector<int,std::allocator< int > >**)(0));
6790
+ _v = SWIG_CheckState(res);
6792
+ swig::PySwigIterator *iter = 0;
6793
+ int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::PySwigIterator::descriptor(), 0);
6794
+ _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::PySwigIterator_T<std::vector< int >::iterator > *>(iter) != 0));
6796
+ return _wrap_IntVector_erase__SWIG_0(self, args);
6802
+ int res = swig::asptr(argv[0], (std::vector<int,std::allocator< int > >**)(0));
6803
+ _v = SWIG_CheckState(res);
6805
+ swig::PySwigIterator *iter = 0;
6806
+ int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::PySwigIterator::descriptor(), 0);
6807
+ _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::PySwigIterator_T<std::vector< int >::iterator > *>(iter) != 0));
6809
+ swig::PySwigIterator *iter = 0;
6810
+ int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::PySwigIterator::descriptor(), 0);
6811
+ _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::PySwigIterator_T<std::vector< int >::iterator > *>(iter) != 0));
6813
+ return _wrap_IntVector_erase__SWIG_1(self, args);
6820
+ SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IntVector_erase'.\n"
6821
+ " Possible C/C++ prototypes are:\n"
6822
+ " erase(std::vector< int > *,std::vector< int >::iterator)\n"
6823
+ " erase(std::vector< int > *,std::vector< int >::iterator,std::vector< int >::iterator)\n");
6828
+SWIGINTERN PyObject *_wrap_new_IntVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6829
+ PyObject *resultobj = 0;
6830
+ std::vector< int >::size_type arg1 ;
6831
+ std::vector< int >::value_type *arg2 = 0 ;
6834
+ std::vector< int >::value_type temp2 ;
6837
+ PyObject * obj0 = 0 ;
6838
+ PyObject * obj1 = 0 ;
6839
+ std::vector< int > *result = 0 ;
6841
+ if (!PyArg_ParseTuple(args,(char *)"OO:new_IntVector",&obj0,&obj1)) SWIG_fail;
6842
+ ecode1 = SWIG_AsVal_size_t(obj0, &val1);
6843
+ if (!SWIG_IsOK(ecode1)) {
6844
+ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_IntVector" "', argument " "1"" of type '" "std::vector< int >::size_type""'");
6846
+ arg1 = static_cast< std::vector< int >::size_type >(val1);
6847
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
6848
+ if (!SWIG_IsOK(ecode2)) {
6849
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IntVector" "', argument " "2"" of type '" "std::vector< int >::value_type""'");
6851
+ temp2 = static_cast< std::vector< int >::value_type >(val2);
6853
+ result = (std::vector< int > *)new std::vector< int >(arg1,(std::vector< int >::value_type const &)*arg2);
6854
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_NEW | 0 );
6861
+SWIGINTERN PyObject *_wrap_new_IntVector(PyObject *self, PyObject *args) {
6863
+ PyObject *argv[3];
6866
+ if (!PyTuple_Check(args)) SWIG_fail;
6867
+ argc = (int)PyObject_Length(args);
6868
+ for (ii = 0; (ii < argc) && (ii < 2); ii++) {
6869
+ argv[ii] = PyTuple_GET_ITEM(args,ii);
6872
+ return _wrap_new_IntVector__SWIG_0(self, args);
6877
+ int res = SWIG_AsVal_size_t(argv[0], NULL);
6878
+ _v = SWIG_CheckState(res);
6881
+ return _wrap_new_IntVector__SWIG_2(self, args);
6886
+ int res = swig::asptr(argv[0], (std::vector<int,std::allocator< int > >**)(0));
6887
+ _v = SWIG_CheckState(res);
6889
+ return _wrap_new_IntVector__SWIG_1(self, args);
6895
+ int res = SWIG_AsVal_size_t(argv[0], NULL);
6896
+ _v = SWIG_CheckState(res);
6900
+ int res = SWIG_AsVal_int(argv[1], NULL);
6901
+ _v = SWIG_CheckState(res);
6904
+ return _wrap_new_IntVector__SWIG_3(self, args);
6910
+ SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_IntVector'.\n"
6911
+ " Possible C/C++ prototypes are:\n"
6912
+ " std::vector< int >()\n"
6913
+ " std::vector< int >(std::vector< int > const &)\n"
6914
+ " std::vector< int >(std::vector< int >::size_type)\n"
6915
+ " std::vector< int >(std::vector< int >::size_type,std::vector< int >::value_type const &)\n");
6920
+SWIGINTERN PyObject *_wrap_IntVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6921
+ PyObject *resultobj = 0;
6922
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
6923
+ std::vector< int >::value_type *arg2 = 0 ;
6926
+ std::vector< int >::value_type temp2 ;
6929
+ PyObject * obj0 = 0 ;
6930
+ PyObject * obj1 = 0 ;
6932
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVector_push_back",&obj0,&obj1)) SWIG_fail;
6933
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
6934
+ if (!SWIG_IsOK(res1)) {
6935
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_push_back" "', argument " "1"" of type '" "std::vector< int > *""'");
6937
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
6938
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
6939
+ if (!SWIG_IsOK(ecode2)) {
6940
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector_push_back" "', argument " "2"" of type '" "std::vector< int >::value_type""'");
6942
+ temp2 = static_cast< std::vector< int >::value_type >(val2);
6944
+ (arg1)->push_back((std::vector< int >::value_type const &)*arg2);
6945
+ resultobj = SWIG_Py_Void();
6952
+SWIGINTERN PyObject *_wrap_IntVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6953
+ PyObject *resultobj = 0;
6954
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
6957
+ PyObject * obj0 = 0 ;
6958
+ std::vector< int >::value_type *result = 0 ;
6960
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVector_front",&obj0)) SWIG_fail;
6961
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
6962
+ if (!SWIG_IsOK(res1)) {
6963
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_front" "', argument " "1"" of type '" "std::vector< int > const *""'");
6965
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
6967
+ std::vector< int >::value_type const &_result_ref = ((std::vector< int > const *)arg1)->front();
6968
+ result = (std::vector< int >::value_type *) &_result_ref;
6970
+ resultobj = SWIG_From_int(static_cast< int >(*result));
6977
+SWIGINTERN PyObject *_wrap_IntVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6978
+ PyObject *resultobj = 0;
6979
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
6982
+ PyObject * obj0 = 0 ;
6983
+ std::vector< int >::value_type *result = 0 ;
6985
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVector_back",&obj0)) SWIG_fail;
6986
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
6987
+ if (!SWIG_IsOK(res1)) {
6988
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_back" "', argument " "1"" of type '" "std::vector< int > const *""'");
6990
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
6992
+ std::vector< int >::value_type const &_result_ref = ((std::vector< int > const *)arg1)->back();
6993
+ result = (std::vector< int >::value_type *) &_result_ref;
6995
+ resultobj = SWIG_From_int(static_cast< int >(*result));
7002
+SWIGINTERN PyObject *_wrap_IntVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7003
+ PyObject *resultobj = 0;
7004
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
7005
+ std::vector< int >::size_type arg2 ;
7006
+ std::vector< int >::value_type *arg3 = 0 ;
7011
+ std::vector< int >::value_type temp3 ;
7014
+ PyObject * obj0 = 0 ;
7015
+ PyObject * obj1 = 0 ;
7016
+ PyObject * obj2 = 0 ;
7018
+ if (!PyArg_ParseTuple(args,(char *)"OOO:IntVector_assign",&obj0,&obj1,&obj2)) SWIG_fail;
7019
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
7020
+ if (!SWIG_IsOK(res1)) {
7021
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_assign" "', argument " "1"" of type '" "std::vector< int > *""'");
7023
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
7024
+ ecode2 = SWIG_AsVal_size_t(obj1, &val2);
7025
+ if (!SWIG_IsOK(ecode2)) {
7026
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector_assign" "', argument " "2"" of type '" "std::vector< int >::size_type""'");
7028
+ arg2 = static_cast< std::vector< int >::size_type >(val2);
7029
+ ecode3 = SWIG_AsVal_int(obj2, &val3);
7030
+ if (!SWIG_IsOK(ecode3)) {
7031
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector_assign" "', argument " "3"" of type '" "std::vector< int >::value_type""'");
7033
+ temp3 = static_cast< std::vector< int >::value_type >(val3);
7035
+ (arg1)->assign(arg2,(std::vector< int >::value_type const &)*arg3);
7036
+ resultobj = SWIG_Py_Void();
7043
+SWIGINTERN PyObject *_wrap_IntVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7044
+ PyObject *resultobj = 0;
7045
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
7046
+ std::vector< int >::size_type arg2 ;
7047
+ std::vector< int >::value_type *arg3 = 0 ;
7052
+ std::vector< int >::value_type temp3 ;
7055
+ PyObject * obj0 = 0 ;
7056
+ PyObject * obj1 = 0 ;
7057
+ PyObject * obj2 = 0 ;
7059
+ if (!PyArg_ParseTuple(args,(char *)"OOO:IntVector_resize",&obj0,&obj1,&obj2)) SWIG_fail;
7060
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
7061
+ if (!SWIG_IsOK(res1)) {
7062
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_resize" "', argument " "1"" of type '" "std::vector< int > *""'");
7064
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
7065
+ ecode2 = SWIG_AsVal_size_t(obj1, &val2);
7066
+ if (!SWIG_IsOK(ecode2)) {
7067
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector_resize" "', argument " "2"" of type '" "std::vector< int >::size_type""'");
7069
+ arg2 = static_cast< std::vector< int >::size_type >(val2);
7070
+ ecode3 = SWIG_AsVal_int(obj2, &val3);
7071
+ if (!SWIG_IsOK(ecode3)) {
7072
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector_resize" "', argument " "3"" of type '" "std::vector< int >::value_type""'");
7074
+ temp3 = static_cast< std::vector< int >::value_type >(val3);
7076
+ (arg1)->resize(arg2,(std::vector< int >::value_type const &)*arg3);
7077
+ resultobj = SWIG_Py_Void();
7084
+SWIGINTERN PyObject *_wrap_IntVector_resize(PyObject *self, PyObject *args) {
7086
+ PyObject *argv[4];
7089
+ if (!PyTuple_Check(args)) SWIG_fail;
7090
+ argc = (int)PyObject_Length(args);
7091
+ for (ii = 0; (ii < argc) && (ii < 3); ii++) {
7092
+ argv[ii] = PyTuple_GET_ITEM(args,ii);
7096
+ int res = swig::asptr(argv[0], (std::vector<int,std::allocator< int > >**)(0));
7097
+ _v = SWIG_CheckState(res);
7100
+ int res = SWIG_AsVal_size_t(argv[1], NULL);
7101
+ _v = SWIG_CheckState(res);
7104
+ return _wrap_IntVector_resize__SWIG_0(self, args);
7110
+ int res = swig::asptr(argv[0], (std::vector<int,std::allocator< int > >**)(0));
7111
+ _v = SWIG_CheckState(res);
7114
+ int res = SWIG_AsVal_size_t(argv[1], NULL);
7115
+ _v = SWIG_CheckState(res);
7119
+ int res = SWIG_AsVal_int(argv[2], NULL);
7120
+ _v = SWIG_CheckState(res);
7123
+ return _wrap_IntVector_resize__SWIG_1(self, args);
7130
+ SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IntVector_resize'.\n"
7131
+ " Possible C/C++ prototypes are:\n"
7132
+ " resize(std::vector< int > *,std::vector< int >::size_type)\n"
7133
+ " resize(std::vector< int > *,std::vector< int >::size_type,std::vector< int >::value_type const &)\n");
7138
+SWIGINTERN PyObject *_wrap_IntVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7139
+ PyObject *resultobj = 0;
7140
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
7141
+ std::vector< int >::iterator arg2 ;
7142
+ std::vector< int >::value_type *arg3 = 0 ;
7145
+ swig::PySwigIterator *iter2 = 0 ;
7147
+ std::vector< int >::value_type temp3 ;
7150
+ PyObject * obj0 = 0 ;
7151
+ PyObject * obj1 = 0 ;
7152
+ PyObject * obj2 = 0 ;
7153
+ std::vector< int >::iterator result;
7155
+ if (!PyArg_ParseTuple(args,(char *)"OOO:IntVector_insert",&obj0,&obj1,&obj2)) SWIG_fail;
7156
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
7157
+ if (!SWIG_IsOK(res1)) {
7158
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_insert" "', argument " "1"" of type '" "std::vector< int > *""'");
7160
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
7161
+ res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::PySwigIterator::descriptor(), 0);
7162
+ if (!SWIG_IsOK(res2) || !iter2) {
7163
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_insert" "', argument " "2"" of type '" "std::vector< int >::iterator""'");
7165
+ swig::PySwigIterator_T<std::vector< int >::iterator > *iter_t = dynamic_cast<swig::PySwigIterator_T<std::vector< int >::iterator > *>(iter2);
7167
+ arg2 = iter_t->get_current();
7169
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_insert" "', argument " "2"" of type '" "std::vector< int >::iterator""'");
7172
+ ecode3 = SWIG_AsVal_int(obj2, &val3);
7173
+ if (!SWIG_IsOK(ecode3)) {
7174
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector_insert" "', argument " "3"" of type '" "std::vector< int >::value_type""'");
7176
+ temp3 = static_cast< std::vector< int >::value_type >(val3);
7178
+ result = (arg1)->insert(arg2,(std::vector< int >::value_type const &)*arg3);
7179
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::iterator & >(result)),
7180
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
7187
+SWIGINTERN PyObject *_wrap_IntVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7188
+ PyObject *resultobj = 0;
7189
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
7190
+ std::vector< int >::iterator arg2 ;
7191
+ std::vector< int >::size_type arg3 ;
7192
+ std::vector< int >::value_type *arg4 = 0 ;
7195
+ swig::PySwigIterator *iter2 = 0 ;
7199
+ std::vector< int >::value_type temp4 ;
7202
+ PyObject * obj0 = 0 ;
7203
+ PyObject * obj1 = 0 ;
7204
+ PyObject * obj2 = 0 ;
7205
+ PyObject * obj3 = 0 ;
7207
+ if (!PyArg_ParseTuple(args,(char *)"OOOO:IntVector_insert",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7208
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
7209
+ if (!SWIG_IsOK(res1)) {
7210
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_insert" "', argument " "1"" of type '" "std::vector< int > *""'");
7212
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
7213
+ res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::PySwigIterator::descriptor(), 0);
7214
+ if (!SWIG_IsOK(res2) || !iter2) {
7215
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_insert" "', argument " "2"" of type '" "std::vector< int >::iterator""'");
7217
+ swig::PySwigIterator_T<std::vector< int >::iterator > *iter_t = dynamic_cast<swig::PySwigIterator_T<std::vector< int >::iterator > *>(iter2);
7219
+ arg2 = iter_t->get_current();
7221
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_insert" "', argument " "2"" of type '" "std::vector< int >::iterator""'");
7224
+ ecode3 = SWIG_AsVal_size_t(obj2, &val3);
7225
+ if (!SWIG_IsOK(ecode3)) {
7226
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector_insert" "', argument " "3"" of type '" "std::vector< int >::size_type""'");
7228
+ arg3 = static_cast< std::vector< int >::size_type >(val3);
7229
+ ecode4 = SWIG_AsVal_int(obj3, &val4);
7230
+ if (!SWIG_IsOK(ecode4)) {
7231
+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "IntVector_insert" "', argument " "4"" of type '" "std::vector< int >::value_type""'");
7233
+ temp4 = static_cast< std::vector< int >::value_type >(val4);
7235
+ (arg1)->insert(arg2,arg3,(std::vector< int >::value_type const &)*arg4);
7236
+ resultobj = SWIG_Py_Void();
7243
+SWIGINTERN PyObject *_wrap_IntVector_insert(PyObject *self, PyObject *args) {
7245
+ PyObject *argv[5];
7248
+ if (!PyTuple_Check(args)) SWIG_fail;
7249
+ argc = (int)PyObject_Length(args);
7250
+ for (ii = 0; (ii < argc) && (ii < 4); ii++) {
7251
+ argv[ii] = PyTuple_GET_ITEM(args,ii);
7255
+ int res = swig::asptr(argv[0], (std::vector<int,std::allocator< int > >**)(0));
7256
+ _v = SWIG_CheckState(res);
7258
+ swig::PySwigIterator *iter = 0;
7259
+ int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::PySwigIterator::descriptor(), 0);
7260
+ _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::PySwigIterator_T<std::vector< int >::iterator > *>(iter) != 0));
7263
+ int res = SWIG_AsVal_int(argv[2], NULL);
7264
+ _v = SWIG_CheckState(res);
7267
+ return _wrap_IntVector_insert__SWIG_0(self, args);
7274
+ int res = swig::asptr(argv[0], (std::vector<int,std::allocator< int > >**)(0));
7275
+ _v = SWIG_CheckState(res);
7277
+ swig::PySwigIterator *iter = 0;
7278
+ int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::PySwigIterator::descriptor(), 0);
7279
+ _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::PySwigIterator_T<std::vector< int >::iterator > *>(iter) != 0));
7282
+ int res = SWIG_AsVal_size_t(argv[2], NULL);
7283
+ _v = SWIG_CheckState(res);
7287
+ int res = SWIG_AsVal_int(argv[3], NULL);
7288
+ _v = SWIG_CheckState(res);
7291
+ return _wrap_IntVector_insert__SWIG_1(self, args);
7299
+ SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IntVector_insert'.\n"
7300
+ " Possible C/C++ prototypes are:\n"
7301
+ " insert(std::vector< int > *,std::vector< int >::iterator,std::vector< int >::value_type const &)\n"
7302
+ " insert(std::vector< int > *,std::vector< int >::iterator,std::vector< int >::size_type,std::vector< int >::value_type const &)\n");
7307
+SWIGINTERN PyObject *_wrap_IntVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7308
+ PyObject *resultobj = 0;
7309
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
7310
+ std::vector< int >::size_type arg2 ;
7315
+ PyObject * obj0 = 0 ;
7316
+ PyObject * obj1 = 0 ;
7318
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVector_reserve",&obj0,&obj1)) SWIG_fail;
7319
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
7320
+ if (!SWIG_IsOK(res1)) {
7321
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_reserve" "', argument " "1"" of type '" "std::vector< int > *""'");
7323
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
7324
+ ecode2 = SWIG_AsVal_size_t(obj1, &val2);
7325
+ if (!SWIG_IsOK(ecode2)) {
7326
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector_reserve" "', argument " "2"" of type '" "std::vector< int >::size_type""'");
7328
+ arg2 = static_cast< std::vector< int >::size_type >(val2);
7329
+ (arg1)->reserve(arg2);
7330
+ resultobj = SWIG_Py_Void();
7337
+SWIGINTERN PyObject *_wrap_IntVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7338
+ PyObject *resultobj = 0;
7339
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
7342
+ PyObject * obj0 = 0 ;
7343
+ std::vector< int >::size_type result;
7345
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVector_capacity",&obj0)) SWIG_fail;
7346
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
7347
+ if (!SWIG_IsOK(res1)) {
7348
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_capacity" "', argument " "1"" of type '" "std::vector< int > const *""'");
7350
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
7351
+ result = ((std::vector< int > const *)arg1)->capacity();
7352
+ resultobj = SWIG_From_size_t(static_cast< size_t >(result));
7359
+SWIGINTERN PyObject *_wrap_delete_IntVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7360
+ PyObject *resultobj = 0;
7361
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
7364
+ PyObject * obj0 = 0 ;
7366
+ if (!PyArg_ParseTuple(args,(char *)"O:delete_IntVector",&obj0)) SWIG_fail;
7367
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_DISOWN | 0 );
7368
+ if (!SWIG_IsOK(res1)) {
7369
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IntVector" "', argument " "1"" of type '" "std::vector< int > *""'");
7371
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
7373
+ resultobj = SWIG_Py_Void();
7380
+SWIGINTERN PyObject *IntVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7382
+ if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
7383
+ SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_NewClientData(obj));
7384
+ return SWIG_Py_Void();
7387
+SWIGINTERN PyObject *_wrap_DoubleVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7388
+ PyObject *resultobj = 0;
7389
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
7390
+ PyObject **arg2 = (PyObject **) 0 ;
7393
+ PyObject * obj0 = 0 ;
7394
+ swig::PySwigIterator *result = 0 ;
7397
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVector_iterator",&obj0)) SWIG_fail;
7398
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
7399
+ if (!SWIG_IsOK(res1)) {
7400
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_iterator" "', argument " "1"" of type '" "std::vector< double > *""'");
7402
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
7403
+ result = (swig::PySwigIterator *)std_vector_Sl_double_Sg__iterator(arg1,arg2);
7404
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_OWN | 0 );
7411
+SWIGINTERN PyObject *_wrap_DoubleVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7412
+ PyObject *resultobj = 0;
7413
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
7416
+ PyObject * obj0 = 0 ;
7419
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVector___nonzero__",&obj0)) SWIG_fail;
7420
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
7421
+ if (!SWIG_IsOK(res1)) {
7422
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___nonzero__" "', argument " "1"" of type '" "std::vector< double > const *""'");
7424
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
7425
+ result = (bool)std_vector_Sl_double_Sg____nonzero__((std::vector< double > const *)arg1);
7426
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
7433
+SWIGINTERN PyObject *_wrap_DoubleVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7434
+ PyObject *resultobj = 0;
7435
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
7438
+ PyObject * obj0 = 0 ;
7439
+ std::vector< double >::size_type result;
7441
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVector___len__",&obj0)) SWIG_fail;
7442
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
7443
+ if (!SWIG_IsOK(res1)) {
7444
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___len__" "', argument " "1"" of type '" "std::vector< double > const *""'");
7446
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
7447
+ result = std_vector_Sl_double_Sg____len__((std::vector< double > const *)arg1);
7448
+ resultobj = SWIG_From_size_t(static_cast< size_t >(result));
7455
+SWIGINTERN PyObject *_wrap_DoubleVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7456
+ PyObject *resultobj = 0;
7457
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
7460
+ PyObject * obj0 = 0 ;
7461
+ std::vector< double >::value_type result;
7463
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVector_pop",&obj0)) SWIG_fail;
7464
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
7465
+ if (!SWIG_IsOK(res1)) {
7466
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_pop" "', argument " "1"" of type '" "std::vector< double > *""'");
7468
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
7470
+ result = (std::vector< double >::value_type)std_vector_Sl_double_Sg__pop(arg1);
7472
+ catch(std::out_of_range &_e) {
7473
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
7476
+ resultobj = SWIG_From_double(static_cast< double >(result));
7483
+SWIGINTERN PyObject *_wrap_DoubleVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7484
+ PyObject *resultobj = 0;
7485
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
7486
+ std::vector< double >::difference_type arg2 ;
7487
+ std::vector< double >::difference_type arg3 ;
7494
+ PyObject * obj0 = 0 ;
7495
+ PyObject * obj1 = 0 ;
7496
+ PyObject * obj2 = 0 ;
7497
+ std::vector< double,std::allocator< double > > *result = 0 ;
7499
+ if (!PyArg_ParseTuple(args,(char *)"OOO:DoubleVector___getslice__",&obj0,&obj1,&obj2)) SWIG_fail;
7500
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
7501
+ if (!SWIG_IsOK(res1)) {
7502
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___getslice__" "', argument " "1"" of type '" "std::vector< double > *""'");
7504
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
7505
+ ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
7506
+ if (!SWIG_IsOK(ecode2)) {
7507
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector___getslice__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'");
7509
+ arg2 = static_cast< std::vector< double >::difference_type >(val2);
7510
+ ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
7511
+ if (!SWIG_IsOK(ecode3)) {
7512
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleVector___getslice__" "', argument " "3"" of type '" "std::vector< double >::difference_type""'");
7514
+ arg3 = static_cast< std::vector< double >::difference_type >(val3);
7516
+ result = (std::vector< double,std::allocator< double > > *)std_vector_Sl_double_Sg____getslice__(arg1,arg2,arg3);
7518
+ catch(std::out_of_range &_e) {
7519
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
7522
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_POINTER_OWN | 0 );
7529
+SWIGINTERN PyObject *_wrap_DoubleVector___setslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7530
+ PyObject *resultobj = 0;
7531
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
7532
+ std::vector< double >::difference_type arg2 ;
7533
+ std::vector< double >::difference_type arg3 ;
7534
+ std::vector< double,std::allocator< double > > *arg4 = 0 ;
7541
+ int res4 = SWIG_OLDOBJ ;
7542
+ PyObject * obj0 = 0 ;
7543
+ PyObject * obj1 = 0 ;
7544
+ PyObject * obj2 = 0 ;
7545
+ PyObject * obj3 = 0 ;
7547
+ if (!PyArg_ParseTuple(args,(char *)"OOOO:DoubleVector___setslice__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7548
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
7549
+ if (!SWIG_IsOK(res1)) {
7550
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___setslice__" "', argument " "1"" of type '" "std::vector< double > *""'");
7552
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
7553
+ ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
7554
+ if (!SWIG_IsOK(ecode2)) {
7555
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector___setslice__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'");
7557
+ arg2 = static_cast< std::vector< double >::difference_type >(val2);
7558
+ ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
7559
+ if (!SWIG_IsOK(ecode3)) {
7560
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleVector___setslice__" "', argument " "3"" of type '" "std::vector< double >::difference_type""'");
7562
+ arg3 = static_cast< std::vector< double >::difference_type >(val3);
7564
+ std::vector<double,std::allocator< double > > *ptr = (std::vector<double,std::allocator< double > > *)0;
7565
+ res4 = swig::asptr(obj3, &ptr);
7566
+ if (!SWIG_IsOK(res4)) {
7567
+ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DoubleVector___setslice__" "', argument " "4"" of type '" "std::vector< double,std::allocator< double > > const &""'");
7570
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DoubleVector___setslice__" "', argument " "4"" of type '" "std::vector< double,std::allocator< double > > const &""'");
7575
+ std_vector_Sl_double_Sg____setslice__(arg1,arg2,arg3,(std::vector< double,std::allocator< double > > const &)*arg4);
7577
+ catch(std::out_of_range &_e) {
7578
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
7580
+ catch(std::invalid_argument &_e) {
7581
+ SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
7584
+ resultobj = SWIG_Py_Void();
7585
+ if (SWIG_IsNewObj(res4)) delete arg4;
7588
+ if (SWIG_IsNewObj(res4)) delete arg4;
7593
+SWIGINTERN PyObject *_wrap_DoubleVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7594
+ PyObject *resultobj = 0;
7595
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
7596
+ std::vector< double >::difference_type arg2 ;
7597
+ std::vector< double >::difference_type arg3 ;
7604
+ PyObject * obj0 = 0 ;
7605
+ PyObject * obj1 = 0 ;
7606
+ PyObject * obj2 = 0 ;
7608
+ if (!PyArg_ParseTuple(args,(char *)"OOO:DoubleVector___delslice__",&obj0,&obj1,&obj2)) SWIG_fail;
7609
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
7610
+ if (!SWIG_IsOK(res1)) {
7611
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___delslice__" "', argument " "1"" of type '" "std::vector< double > *""'");
7613
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
7614
+ ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
7615
+ if (!SWIG_IsOK(ecode2)) {
7616
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector___delslice__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'");
7618
+ arg2 = static_cast< std::vector< double >::difference_type >(val2);
7619
+ ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
7620
+ if (!SWIG_IsOK(ecode3)) {
7621
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleVector___delslice__" "', argument " "3"" of type '" "std::vector< double >::difference_type""'");
7623
+ arg3 = static_cast< std::vector< double >::difference_type >(val3);
7625
+ std_vector_Sl_double_Sg____delslice__(arg1,arg2,arg3);
7627
+ catch(std::out_of_range &_e) {
7628
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
7631
+ resultobj = SWIG_Py_Void();
7638
+SWIGINTERN PyObject *_wrap_DoubleVector___delitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7639
+ PyObject *resultobj = 0;
7640
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
7641
+ std::vector< double >::difference_type arg2 ;
7646
+ PyObject * obj0 = 0 ;
7647
+ PyObject * obj1 = 0 ;
7649
+ if (!PyArg_ParseTuple(args,(char *)"OO:DoubleVector___delitem__",&obj0,&obj1)) SWIG_fail;
7650
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
7651
+ if (!SWIG_IsOK(res1)) {
7652
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___delitem__" "', argument " "1"" of type '" "std::vector< double > *""'");
7654
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
7655
+ ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
7656
+ if (!SWIG_IsOK(ecode2)) {
7657
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector___delitem__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'");
7659
+ arg2 = static_cast< std::vector< double >::difference_type >(val2);
7661
+ std_vector_Sl_double_Sg____delitem__(arg1,arg2);
7663
+ catch(std::out_of_range &_e) {
7664
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
7667
+ resultobj = SWIG_Py_Void();
7674
+SWIGINTERN PyObject *_wrap_DoubleVector___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7675
+ PyObject *resultobj = 0;
7676
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
7677
+ std::vector< double >::difference_type arg2 ;
7682
+ PyObject * obj0 = 0 ;
7683
+ PyObject * obj1 = 0 ;
7684
+ std::vector< double >::value_type *result = 0 ;
7686
+ if (!PyArg_ParseTuple(args,(char *)"OO:DoubleVector___getitem__",&obj0,&obj1)) SWIG_fail;
7687
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
7688
+ if (!SWIG_IsOK(res1)) {
7689
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___getitem__" "', argument " "1"" of type '" "std::vector< double > const *""'");
7691
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
7692
+ ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
7693
+ if (!SWIG_IsOK(ecode2)) {
7694
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector___getitem__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'");
7696
+ arg2 = static_cast< std::vector< double >::difference_type >(val2);
7699
+ std::vector< double >::value_type const &_result_ref = std_vector_Sl_double_Sg____getitem__((std::vector< double > const *)arg1,arg2);
7700
+ result = (std::vector< double >::value_type *) &_result_ref;
7703
+ catch(std::out_of_range &_e) {
7704
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
7707
+ resultobj = SWIG_From_double(static_cast< double >(*result));
7714
+SWIGINTERN PyObject *_wrap_DoubleVector___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7715
+ PyObject *resultobj = 0;
7716
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
7717
+ std::vector< double >::difference_type arg2 ;
7718
+ std::vector< double >::value_type *arg3 = 0 ;
7723
+ std::vector< double >::value_type temp3 ;
7726
+ PyObject * obj0 = 0 ;
7727
+ PyObject * obj1 = 0 ;
7728
+ PyObject * obj2 = 0 ;
7730
+ if (!PyArg_ParseTuple(args,(char *)"OOO:DoubleVector___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
7731
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
7732
+ if (!SWIG_IsOK(res1)) {
7733
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___setitem__" "', argument " "1"" of type '" "std::vector< double > *""'");
7735
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
7736
+ ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
7737
+ if (!SWIG_IsOK(ecode2)) {
7738
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector___setitem__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'");
7740
+ arg2 = static_cast< std::vector< double >::difference_type >(val2);
7741
+ ecode3 = SWIG_AsVal_double(obj2, &val3);
7742
+ if (!SWIG_IsOK(ecode3)) {
7743
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleVector___setitem__" "', argument " "3"" of type '" "std::vector< double >::value_type""'");
7745
+ temp3 = static_cast< std::vector< double >::value_type >(val3);
7748
+ std_vector_Sl_double_Sg____setitem__(arg1,arg2,(double const &)*arg3);
7750
+ catch(std::out_of_range &_e) {
7751
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
7754
+ resultobj = SWIG_Py_Void();
7761
+SWIGINTERN PyObject *_wrap_DoubleVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7762
+ PyObject *resultobj = 0;
7763
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
7764
+ std::vector< double >::value_type *arg2 = 0 ;
7767
+ std::vector< double >::value_type temp2 ;
7770
+ PyObject * obj0 = 0 ;
7771
+ PyObject * obj1 = 0 ;
7773
+ if (!PyArg_ParseTuple(args,(char *)"OO:DoubleVector_append",&obj0,&obj1)) SWIG_fail;
7774
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
7775
+ if (!SWIG_IsOK(res1)) {
7776
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_append" "', argument " "1"" of type '" "std::vector< double > *""'");
7778
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
7779
+ ecode2 = SWIG_AsVal_double(obj1, &val2);
7780
+ if (!SWIG_IsOK(ecode2)) {
7781
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector_append" "', argument " "2"" of type '" "std::vector< double >::value_type""'");
7783
+ temp2 = static_cast< std::vector< double >::value_type >(val2);
7785
+ std_vector_Sl_double_Sg__append(arg1,(double const &)*arg2);
7786
+ resultobj = SWIG_Py_Void();
7793
+SWIGINTERN PyObject *_wrap_new_DoubleVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7794
+ PyObject *resultobj = 0;
7795
+ std::vector< double > *result = 0 ;
7797
+ if (!PyArg_ParseTuple(args,(char *)":new_DoubleVector")) SWIG_fail;
7798
+ result = (std::vector< double > *)new std::vector< double >();
7799
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_POINTER_NEW | 0 );
7806
+SWIGINTERN PyObject *_wrap_new_DoubleVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7807
+ PyObject *resultobj = 0;
7808
+ std::vector< double > *arg1 = 0 ;
7809
+ int res1 = SWIG_OLDOBJ ;
7810
+ PyObject * obj0 = 0 ;
7811
+ std::vector< double > *result = 0 ;
7813
+ if (!PyArg_ParseTuple(args,(char *)"O:new_DoubleVector",&obj0)) SWIG_fail;
7815
+ std::vector<double,std::allocator< double > > *ptr = (std::vector<double,std::allocator< double > > *)0;
7816
+ res1 = swig::asptr(obj0, &ptr);
7817
+ if (!SWIG_IsOK(res1)) {
7818
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DoubleVector" "', argument " "1"" of type '" "std::vector< double > const &""'");
7821
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DoubleVector" "', argument " "1"" of type '" "std::vector< double > const &""'");
7825
+ result = (std::vector< double > *)new std::vector< double >((std::vector< double > const &)*arg1);
7826
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_POINTER_NEW | 0 );
7827
+ if (SWIG_IsNewObj(res1)) delete arg1;
7830
+ if (SWIG_IsNewObj(res1)) delete arg1;
7835
+SWIGINTERN PyObject *_wrap_DoubleVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7836
+ PyObject *resultobj = 0;
7837
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
7840
+ PyObject * obj0 = 0 ;
7843
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVector_empty",&obj0)) SWIG_fail;
7844
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
7845
+ if (!SWIG_IsOK(res1)) {
7846
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_empty" "', argument " "1"" of type '" "std::vector< double > const *""'");
7848
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
7849
+ result = (bool)((std::vector< double > const *)arg1)->empty();
7850
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
7857
+SWIGINTERN PyObject *_wrap_DoubleVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7858
+ PyObject *resultobj = 0;
7859
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
7862
+ PyObject * obj0 = 0 ;
7863
+ std::vector< double >::size_type result;
7865
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVector_size",&obj0)) SWIG_fail;
7866
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
7867
+ if (!SWIG_IsOK(res1)) {
7868
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_size" "', argument " "1"" of type '" "std::vector< double > const *""'");
7870
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
7871
+ result = ((std::vector< double > const *)arg1)->size();
7872
+ resultobj = SWIG_From_size_t(static_cast< size_t >(result));
7879
+SWIGINTERN PyObject *_wrap_DoubleVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7880
+ PyObject *resultobj = 0;
7881
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
7884
+ PyObject * obj0 = 0 ;
7886
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVector_clear",&obj0)) SWIG_fail;
7887
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
7888
+ if (!SWIG_IsOK(res1)) {
7889
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_clear" "', argument " "1"" of type '" "std::vector< double > *""'");
7891
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
7893
+ resultobj = SWIG_Py_Void();
7900
+SWIGINTERN PyObject *_wrap_DoubleVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7901
+ PyObject *resultobj = 0;
7902
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
7903
+ std::vector< double > *arg2 = 0 ;
7908
+ PyObject * obj0 = 0 ;
7909
+ PyObject * obj1 = 0 ;
7911
+ if (!PyArg_ParseTuple(args,(char *)"OO:DoubleVector_swap",&obj0,&obj1)) SWIG_fail;
7912
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
7913
+ if (!SWIG_IsOK(res1)) {
7914
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_swap" "', argument " "1"" of type '" "std::vector< double > *""'");
7916
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
7917
+ res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 );
7918
+ if (!SWIG_IsOK(res2)) {
7919
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DoubleVector_swap" "', argument " "2"" of type '" "std::vector< double > &""'");
7922
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DoubleVector_swap" "', argument " "2"" of type '" "std::vector< double > &""'");
7924
+ arg2 = reinterpret_cast< std::vector< double > * >(argp2);
7925
+ (arg1)->swap(*arg2);
7926
+ resultobj = SWIG_Py_Void();
7933
+SWIGINTERN PyObject *_wrap_DoubleVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7934
+ PyObject *resultobj = 0;
7935
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
7938
+ PyObject * obj0 = 0 ;
7939
+ SwigValueWrapper< std::allocator< double > > result;
7941
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVector_get_allocator",&obj0)) SWIG_fail;
7942
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
7943
+ if (!SWIG_IsOK(res1)) {
7944
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_get_allocator" "', argument " "1"" of type '" "std::vector< double > const *""'");
7946
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
7947
+ result = ((std::vector< double > const *)arg1)->get_allocator();
7948
+ resultobj = SWIG_NewPointerObj((new std::vector< double >::allocator_type(static_cast< const std::vector< double >::allocator_type& >(result))), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t__allocator_type, SWIG_POINTER_OWN | 0 );
7955
+SWIGINTERN PyObject *_wrap_DoubleVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7956
+ PyObject *resultobj = 0;
7957
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
7960
+ PyObject * obj0 = 0 ;
7961
+ std::vector< double >::const_iterator result;
7963
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVector_begin",&obj0)) SWIG_fail;
7964
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
7965
+ if (!SWIG_IsOK(res1)) {
7966
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_begin" "', argument " "1"" of type '" "std::vector< double > const *""'");
7968
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
7969
+ result = ((std::vector< double > const *)arg1)->begin();
7970
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::const_iterator & >(result)),
7971
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
7978
+SWIGINTERN PyObject *_wrap_DoubleVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7979
+ PyObject *resultobj = 0;
7980
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
7983
+ PyObject * obj0 = 0 ;
7984
+ std::vector< double >::const_iterator result;
7986
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVector_end",&obj0)) SWIG_fail;
7987
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
7988
+ if (!SWIG_IsOK(res1)) {
7989
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_end" "', argument " "1"" of type '" "std::vector< double > const *""'");
7991
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
7992
+ result = ((std::vector< double > const *)arg1)->end();
7993
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::const_iterator & >(result)),
7994
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
8001
+SWIGINTERN PyObject *_wrap_DoubleVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8002
+ PyObject *resultobj = 0;
8003
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
8006
+ PyObject * obj0 = 0 ;
8007
+ std::vector< double >::const_reverse_iterator result;
8009
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVector_rbegin",&obj0)) SWIG_fail;
8010
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
8011
+ if (!SWIG_IsOK(res1)) {
8012
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_rbegin" "', argument " "1"" of type '" "std::vector< double > const *""'");
8014
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
8015
+ result = ((std::vector< double > const *)arg1)->rbegin();
8016
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::const_reverse_iterator & >(result)),
8017
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
8024
+SWIGINTERN PyObject *_wrap_DoubleVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8025
+ PyObject *resultobj = 0;
8026
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
8029
+ PyObject * obj0 = 0 ;
8030
+ std::vector< double >::const_reverse_iterator result;
8032
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVector_rend",&obj0)) SWIG_fail;
8033
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
8034
+ if (!SWIG_IsOK(res1)) {
8035
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_rend" "', argument " "1"" of type '" "std::vector< double > const *""'");
8037
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
8038
+ result = ((std::vector< double > const *)arg1)->rend();
8039
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::const_reverse_iterator & >(result)),
8040
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
8047
+SWIGINTERN PyObject *_wrap_new_DoubleVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8048
+ PyObject *resultobj = 0;
8049
+ std::vector< double >::size_type arg1 ;
8052
+ PyObject * obj0 = 0 ;
8053
+ std::vector< double > *result = 0 ;
8055
+ if (!PyArg_ParseTuple(args,(char *)"O:new_DoubleVector",&obj0)) SWIG_fail;
8056
+ ecode1 = SWIG_AsVal_size_t(obj0, &val1);
8057
+ if (!SWIG_IsOK(ecode1)) {
8058
+ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DoubleVector" "', argument " "1"" of type '" "std::vector< double >::size_type""'");
8060
+ arg1 = static_cast< std::vector< double >::size_type >(val1);
8061
+ result = (std::vector< double > *)new std::vector< double >(arg1);
8062
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_POINTER_NEW | 0 );
8069
+SWIGINTERN PyObject *_wrap_DoubleVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8070
+ PyObject *resultobj = 0;
8071
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
8074
+ PyObject * obj0 = 0 ;
8076
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVector_pop_back",&obj0)) SWIG_fail;
8077
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
8078
+ if (!SWIG_IsOK(res1)) {
8079
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_pop_back" "', argument " "1"" of type '" "std::vector< double > *""'");
8081
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
8082
+ (arg1)->pop_back();
8083
+ resultobj = SWIG_Py_Void();
8090
+SWIGINTERN PyObject *_wrap_DoubleVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8091
+ PyObject *resultobj = 0;
8092
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
8093
+ std::vector< double >::size_type arg2 ;
8098
+ PyObject * obj0 = 0 ;
8099
+ PyObject * obj1 = 0 ;
8101
+ if (!PyArg_ParseTuple(args,(char *)"OO:DoubleVector_resize",&obj0,&obj1)) SWIG_fail;
8102
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
8103
+ if (!SWIG_IsOK(res1)) {
8104
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_resize" "', argument " "1"" of type '" "std::vector< double > *""'");
8106
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
8107
+ ecode2 = SWIG_AsVal_size_t(obj1, &val2);
8108
+ if (!SWIG_IsOK(ecode2)) {
8109
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector_resize" "', argument " "2"" of type '" "std::vector< double >::size_type""'");
8111
+ arg2 = static_cast< std::vector< double >::size_type >(val2);
8112
+ (arg1)->resize(arg2);
8113
+ resultobj = SWIG_Py_Void();
8120
+SWIGINTERN PyObject *_wrap_DoubleVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8121
+ PyObject *resultobj = 0;
8122
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
8123
+ std::vector< double >::iterator arg2 ;
8126
+ swig::PySwigIterator *iter2 = 0 ;
8128
+ PyObject * obj0 = 0 ;
8129
+ PyObject * obj1 = 0 ;
8130
+ std::vector< double >::iterator result;
8132
+ if (!PyArg_ParseTuple(args,(char *)"OO:DoubleVector_erase",&obj0,&obj1)) SWIG_fail;
8133
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
8134
+ if (!SWIG_IsOK(res1)) {
8135
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_erase" "', argument " "1"" of type '" "std::vector< double > *""'");
8137
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
8138
+ res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::PySwigIterator::descriptor(), 0);
8139
+ if (!SWIG_IsOK(res2) || !iter2) {
8140
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_erase" "', argument " "2"" of type '" "std::vector< double >::iterator""'");
8142
+ swig::PySwigIterator_T<std::vector< double >::iterator > *iter_t = dynamic_cast<swig::PySwigIterator_T<std::vector< double >::iterator > *>(iter2);
8144
+ arg2 = iter_t->get_current();
8146
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_erase" "', argument " "2"" of type '" "std::vector< double >::iterator""'");
8149
+ result = (arg1)->erase(arg2);
8150
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::iterator & >(result)),
8151
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
8158
+SWIGINTERN PyObject *_wrap_DoubleVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8159
+ PyObject *resultobj = 0;
8160
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
8161
+ std::vector< double >::iterator arg2 ;
8162
+ std::vector< double >::iterator arg3 ;
8165
+ swig::PySwigIterator *iter2 = 0 ;
8167
+ swig::PySwigIterator *iter3 = 0 ;
8169
+ PyObject * obj0 = 0 ;
8170
+ PyObject * obj1 = 0 ;
8171
+ PyObject * obj2 = 0 ;
8172
+ std::vector< double >::iterator result;
8174
+ if (!PyArg_ParseTuple(args,(char *)"OOO:DoubleVector_erase",&obj0,&obj1,&obj2)) SWIG_fail;
8175
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
8176
+ if (!SWIG_IsOK(res1)) {
8177
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_erase" "', argument " "1"" of type '" "std::vector< double > *""'");
8179
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
8180
+ res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::PySwigIterator::descriptor(), 0);
8181
+ if (!SWIG_IsOK(res2) || !iter2) {
8182
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_erase" "', argument " "2"" of type '" "std::vector< double >::iterator""'");
8184
+ swig::PySwigIterator_T<std::vector< double >::iterator > *iter_t = dynamic_cast<swig::PySwigIterator_T<std::vector< double >::iterator > *>(iter2);
8186
+ arg2 = iter_t->get_current();
8188
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_erase" "', argument " "2"" of type '" "std::vector< double >::iterator""'");
8191
+ res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::PySwigIterator::descriptor(), 0);
8192
+ if (!SWIG_IsOK(res3) || !iter3) {
8193
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_erase" "', argument " "3"" of type '" "std::vector< double >::iterator""'");
8195
+ swig::PySwigIterator_T<std::vector< double >::iterator > *iter_t = dynamic_cast<swig::PySwigIterator_T<std::vector< double >::iterator > *>(iter3);
8197
+ arg3 = iter_t->get_current();
8199
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_erase" "', argument " "3"" of type '" "std::vector< double >::iterator""'");
8202
+ result = (arg1)->erase(arg2,arg3);
8203
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::iterator & >(result)),
8204
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
8211
+SWIGINTERN PyObject *_wrap_DoubleVector_erase(PyObject *self, PyObject *args) {
8213
+ PyObject *argv[4];
8216
+ if (!PyTuple_Check(args)) SWIG_fail;
8217
+ argc = (int)PyObject_Length(args);
8218
+ for (ii = 0; (ii < argc) && (ii < 3); ii++) {
8219
+ argv[ii] = PyTuple_GET_ITEM(args,ii);
8223
+ int res = swig::asptr(argv[0], (std::vector<double,std::allocator< double > >**)(0));
8224
+ _v = SWIG_CheckState(res);
8226
+ swig::PySwigIterator *iter = 0;
8227
+ int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::PySwigIterator::descriptor(), 0);
8228
+ _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::PySwigIterator_T<std::vector< double >::iterator > *>(iter) != 0));
8230
+ return _wrap_DoubleVector_erase__SWIG_0(self, args);
8236
+ int res = swig::asptr(argv[0], (std::vector<double,std::allocator< double > >**)(0));
8237
+ _v = SWIG_CheckState(res);
8239
+ swig::PySwigIterator *iter = 0;
8240
+ int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::PySwigIterator::descriptor(), 0);
8241
+ _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::PySwigIterator_T<std::vector< double >::iterator > *>(iter) != 0));
8243
+ swig::PySwigIterator *iter = 0;
8244
+ int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::PySwigIterator::descriptor(), 0);
8245
+ _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::PySwigIterator_T<std::vector< double >::iterator > *>(iter) != 0));
8247
+ return _wrap_DoubleVector_erase__SWIG_1(self, args);
8254
+ SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'DoubleVector_erase'.\n"
8255
+ " Possible C/C++ prototypes are:\n"
8256
+ " erase(std::vector< double > *,std::vector< double >::iterator)\n"
8257
+ " erase(std::vector< double > *,std::vector< double >::iterator,std::vector< double >::iterator)\n");
8262
+SWIGINTERN PyObject *_wrap_new_DoubleVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8263
+ PyObject *resultobj = 0;
8264
+ std::vector< double >::size_type arg1 ;
8265
+ std::vector< double >::value_type *arg2 = 0 ;
8268
+ std::vector< double >::value_type temp2 ;
8271
+ PyObject * obj0 = 0 ;
8272
+ PyObject * obj1 = 0 ;
8273
+ std::vector< double > *result = 0 ;
8275
+ if (!PyArg_ParseTuple(args,(char *)"OO:new_DoubleVector",&obj0,&obj1)) SWIG_fail;
8276
+ ecode1 = SWIG_AsVal_size_t(obj0, &val1);
8277
+ if (!SWIG_IsOK(ecode1)) {
8278
+ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DoubleVector" "', argument " "1"" of type '" "std::vector< double >::size_type""'");
8280
+ arg1 = static_cast< std::vector< double >::size_type >(val1);
8281
+ ecode2 = SWIG_AsVal_double(obj1, &val2);
8282
+ if (!SWIG_IsOK(ecode2)) {
8283
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DoubleVector" "', argument " "2"" of type '" "std::vector< double >::value_type""'");
8285
+ temp2 = static_cast< std::vector< double >::value_type >(val2);
8287
+ result = (std::vector< double > *)new std::vector< double >(arg1,(std::vector< double >::value_type const &)*arg2);
8288
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_POINTER_NEW | 0 );
8295
+SWIGINTERN PyObject *_wrap_new_DoubleVector(PyObject *self, PyObject *args) {
8297
+ PyObject *argv[3];
8300
+ if (!PyTuple_Check(args)) SWIG_fail;
8301
+ argc = (int)PyObject_Length(args);
8302
+ for (ii = 0; (ii < argc) && (ii < 2); ii++) {
8303
+ argv[ii] = PyTuple_GET_ITEM(args,ii);
8306
+ return _wrap_new_DoubleVector__SWIG_0(self, args);
8311
+ int res = SWIG_AsVal_size_t(argv[0], NULL);
8312
+ _v = SWIG_CheckState(res);
8315
+ return _wrap_new_DoubleVector__SWIG_2(self, args);
8320
+ int res = swig::asptr(argv[0], (std::vector<double,std::allocator< double > >**)(0));
8321
+ _v = SWIG_CheckState(res);
8323
+ return _wrap_new_DoubleVector__SWIG_1(self, args);
8329
+ int res = SWIG_AsVal_size_t(argv[0], NULL);
8330
+ _v = SWIG_CheckState(res);
8334
+ int res = SWIG_AsVal_double(argv[1], NULL);
8335
+ _v = SWIG_CheckState(res);
8338
+ return _wrap_new_DoubleVector__SWIG_3(self, args);
8344
+ SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_DoubleVector'.\n"
8345
+ " Possible C/C++ prototypes are:\n"
8346
+ " std::vector< double >()\n"
8347
+ " std::vector< double >(std::vector< double > const &)\n"
8348
+ " std::vector< double >(std::vector< double >::size_type)\n"
8349
+ " std::vector< double >(std::vector< double >::size_type,std::vector< double >::value_type const &)\n");
8354
+SWIGINTERN PyObject *_wrap_DoubleVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8355
+ PyObject *resultobj = 0;
8356
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
8357
+ std::vector< double >::value_type *arg2 = 0 ;
8360
+ std::vector< double >::value_type temp2 ;
8363
+ PyObject * obj0 = 0 ;
8364
+ PyObject * obj1 = 0 ;
8366
+ if (!PyArg_ParseTuple(args,(char *)"OO:DoubleVector_push_back",&obj0,&obj1)) SWIG_fail;
8367
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
8368
+ if (!SWIG_IsOK(res1)) {
8369
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_push_back" "', argument " "1"" of type '" "std::vector< double > *""'");
8371
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
8372
+ ecode2 = SWIG_AsVal_double(obj1, &val2);
8373
+ if (!SWIG_IsOK(ecode2)) {
8374
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector_push_back" "', argument " "2"" of type '" "std::vector< double >::value_type""'");
8376
+ temp2 = static_cast< std::vector< double >::value_type >(val2);
8378
+ (arg1)->push_back((std::vector< double >::value_type const &)*arg2);
8379
+ resultobj = SWIG_Py_Void();
8386
+SWIGINTERN PyObject *_wrap_DoubleVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8387
+ PyObject *resultobj = 0;
8388
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
8391
+ PyObject * obj0 = 0 ;
8392
+ std::vector< double >::value_type *result = 0 ;
8394
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVector_front",&obj0)) SWIG_fail;
8395
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
8396
+ if (!SWIG_IsOK(res1)) {
8397
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_front" "', argument " "1"" of type '" "std::vector< double > const *""'");
8399
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
8401
+ std::vector< double >::value_type const &_result_ref = ((std::vector< double > const *)arg1)->front();
8402
+ result = (std::vector< double >::value_type *) &_result_ref;
8404
+ resultobj = SWIG_From_double(static_cast< double >(*result));
8411
+SWIGINTERN PyObject *_wrap_DoubleVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8412
+ PyObject *resultobj = 0;
8413
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
8416
+ PyObject * obj0 = 0 ;
8417
+ std::vector< double >::value_type *result = 0 ;
8419
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVector_back",&obj0)) SWIG_fail;
8420
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
8421
+ if (!SWIG_IsOK(res1)) {
8422
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_back" "', argument " "1"" of type '" "std::vector< double > const *""'");
8424
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
8426
+ std::vector< double >::value_type const &_result_ref = ((std::vector< double > const *)arg1)->back();
8427
+ result = (std::vector< double >::value_type *) &_result_ref;
8429
+ resultobj = SWIG_From_double(static_cast< double >(*result));
8436
+SWIGINTERN PyObject *_wrap_DoubleVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8437
+ PyObject *resultobj = 0;
8438
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
8439
+ std::vector< double >::size_type arg2 ;
8440
+ std::vector< double >::value_type *arg3 = 0 ;
8445
+ std::vector< double >::value_type temp3 ;
8448
+ PyObject * obj0 = 0 ;
8449
+ PyObject * obj1 = 0 ;
8450
+ PyObject * obj2 = 0 ;
8452
+ if (!PyArg_ParseTuple(args,(char *)"OOO:DoubleVector_assign",&obj0,&obj1,&obj2)) SWIG_fail;
8453
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
8454
+ if (!SWIG_IsOK(res1)) {
8455
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_assign" "', argument " "1"" of type '" "std::vector< double > *""'");
8457
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
8458
+ ecode2 = SWIG_AsVal_size_t(obj1, &val2);
8459
+ if (!SWIG_IsOK(ecode2)) {
8460
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector_assign" "', argument " "2"" of type '" "std::vector< double >::size_type""'");
8462
+ arg2 = static_cast< std::vector< double >::size_type >(val2);
8463
+ ecode3 = SWIG_AsVal_double(obj2, &val3);
8464
+ if (!SWIG_IsOK(ecode3)) {
8465
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleVector_assign" "', argument " "3"" of type '" "std::vector< double >::value_type""'");
8467
+ temp3 = static_cast< std::vector< double >::value_type >(val3);
8469
+ (arg1)->assign(arg2,(std::vector< double >::value_type const &)*arg3);
8470
+ resultobj = SWIG_Py_Void();
8477
+SWIGINTERN PyObject *_wrap_DoubleVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8478
+ PyObject *resultobj = 0;
8479
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
8480
+ std::vector< double >::size_type arg2 ;
8481
+ std::vector< double >::value_type *arg3 = 0 ;
8486
+ std::vector< double >::value_type temp3 ;
8489
+ PyObject * obj0 = 0 ;
8490
+ PyObject * obj1 = 0 ;
8491
+ PyObject * obj2 = 0 ;
8493
+ if (!PyArg_ParseTuple(args,(char *)"OOO:DoubleVector_resize",&obj0,&obj1,&obj2)) SWIG_fail;
8494
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
8495
+ if (!SWIG_IsOK(res1)) {
8496
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_resize" "', argument " "1"" of type '" "std::vector< double > *""'");
8498
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
8499
+ ecode2 = SWIG_AsVal_size_t(obj1, &val2);
8500
+ if (!SWIG_IsOK(ecode2)) {
8501
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector_resize" "', argument " "2"" of type '" "std::vector< double >::size_type""'");
8503
+ arg2 = static_cast< std::vector< double >::size_type >(val2);
8504
+ ecode3 = SWIG_AsVal_double(obj2, &val3);
8505
+ if (!SWIG_IsOK(ecode3)) {
8506
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleVector_resize" "', argument " "3"" of type '" "std::vector< double >::value_type""'");
8508
+ temp3 = static_cast< std::vector< double >::value_type >(val3);
8510
+ (arg1)->resize(arg2,(std::vector< double >::value_type const &)*arg3);
8511
+ resultobj = SWIG_Py_Void();
8518
+SWIGINTERN PyObject *_wrap_DoubleVector_resize(PyObject *self, PyObject *args) {
8520
+ PyObject *argv[4];
8523
+ if (!PyTuple_Check(args)) SWIG_fail;
8524
+ argc = (int)PyObject_Length(args);
8525
+ for (ii = 0; (ii < argc) && (ii < 3); ii++) {
8526
+ argv[ii] = PyTuple_GET_ITEM(args,ii);
8530
+ int res = swig::asptr(argv[0], (std::vector<double,std::allocator< double > >**)(0));
8531
+ _v = SWIG_CheckState(res);
8534
+ int res = SWIG_AsVal_size_t(argv[1], NULL);
8535
+ _v = SWIG_CheckState(res);
8538
+ return _wrap_DoubleVector_resize__SWIG_0(self, args);
8544
+ int res = swig::asptr(argv[0], (std::vector<double,std::allocator< double > >**)(0));
8545
+ _v = SWIG_CheckState(res);
8548
+ int res = SWIG_AsVal_size_t(argv[1], NULL);
8549
+ _v = SWIG_CheckState(res);
8553
+ int res = SWIG_AsVal_double(argv[2], NULL);
8554
+ _v = SWIG_CheckState(res);
8557
+ return _wrap_DoubleVector_resize__SWIG_1(self, args);
8564
+ SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'DoubleVector_resize'.\n"
8565
+ " Possible C/C++ prototypes are:\n"
8566
+ " resize(std::vector< double > *,std::vector< double >::size_type)\n"
8567
+ " resize(std::vector< double > *,std::vector< double >::size_type,std::vector< double >::value_type const &)\n");
8572
+SWIGINTERN PyObject *_wrap_DoubleVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8573
+ PyObject *resultobj = 0;
8574
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
8575
+ std::vector< double >::iterator arg2 ;
8576
+ std::vector< double >::value_type *arg3 = 0 ;
8579
+ swig::PySwigIterator *iter2 = 0 ;
8581
+ std::vector< double >::value_type temp3 ;
8584
+ PyObject * obj0 = 0 ;
8585
+ PyObject * obj1 = 0 ;
8586
+ PyObject * obj2 = 0 ;
8587
+ std::vector< double >::iterator result;
8589
+ if (!PyArg_ParseTuple(args,(char *)"OOO:DoubleVector_insert",&obj0,&obj1,&obj2)) SWIG_fail;
8590
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
8591
+ if (!SWIG_IsOK(res1)) {
8592
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_insert" "', argument " "1"" of type '" "std::vector< double > *""'");
8594
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
8595
+ res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::PySwigIterator::descriptor(), 0);
8596
+ if (!SWIG_IsOK(res2) || !iter2) {
8597
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_insert" "', argument " "2"" of type '" "std::vector< double >::iterator""'");
8599
+ swig::PySwigIterator_T<std::vector< double >::iterator > *iter_t = dynamic_cast<swig::PySwigIterator_T<std::vector< double >::iterator > *>(iter2);
8601
+ arg2 = iter_t->get_current();
8603
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_insert" "', argument " "2"" of type '" "std::vector< double >::iterator""'");
8606
+ ecode3 = SWIG_AsVal_double(obj2, &val3);
8607
+ if (!SWIG_IsOK(ecode3)) {
8608
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleVector_insert" "', argument " "3"" of type '" "std::vector< double >::value_type""'");
8610
+ temp3 = static_cast< std::vector< double >::value_type >(val3);
8612
+ result = (arg1)->insert(arg2,(std::vector< double >::value_type const &)*arg3);
8613
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::iterator & >(result)),
8614
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
8621
+SWIGINTERN PyObject *_wrap_DoubleVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8622
+ PyObject *resultobj = 0;
8623
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
8624
+ std::vector< double >::iterator arg2 ;
8625
+ std::vector< double >::size_type arg3 ;
8626
+ std::vector< double >::value_type *arg4 = 0 ;
8629
+ swig::PySwigIterator *iter2 = 0 ;
8633
+ std::vector< double >::value_type temp4 ;
8636
+ PyObject * obj0 = 0 ;
8637
+ PyObject * obj1 = 0 ;
8638
+ PyObject * obj2 = 0 ;
8639
+ PyObject * obj3 = 0 ;
8641
+ if (!PyArg_ParseTuple(args,(char *)"OOOO:DoubleVector_insert",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8642
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
8643
+ if (!SWIG_IsOK(res1)) {
8644
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_insert" "', argument " "1"" of type '" "std::vector< double > *""'");
8646
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
8647
+ res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::PySwigIterator::descriptor(), 0);
8648
+ if (!SWIG_IsOK(res2) || !iter2) {
8649
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_insert" "', argument " "2"" of type '" "std::vector< double >::iterator""'");
8651
+ swig::PySwigIterator_T<std::vector< double >::iterator > *iter_t = dynamic_cast<swig::PySwigIterator_T<std::vector< double >::iterator > *>(iter2);
8653
+ arg2 = iter_t->get_current();
8655
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_insert" "', argument " "2"" of type '" "std::vector< double >::iterator""'");
8658
+ ecode3 = SWIG_AsVal_size_t(obj2, &val3);
8659
+ if (!SWIG_IsOK(ecode3)) {
8660
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleVector_insert" "', argument " "3"" of type '" "std::vector< double >::size_type""'");
8662
+ arg3 = static_cast< std::vector< double >::size_type >(val3);
8663
+ ecode4 = SWIG_AsVal_double(obj3, &val4);
8664
+ if (!SWIG_IsOK(ecode4)) {
8665
+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DoubleVector_insert" "', argument " "4"" of type '" "std::vector< double >::value_type""'");
8667
+ temp4 = static_cast< std::vector< double >::value_type >(val4);
8669
+ (arg1)->insert(arg2,arg3,(std::vector< double >::value_type const &)*arg4);
8670
+ resultobj = SWIG_Py_Void();
8677
+SWIGINTERN PyObject *_wrap_DoubleVector_insert(PyObject *self, PyObject *args) {
8679
+ PyObject *argv[5];
8682
+ if (!PyTuple_Check(args)) SWIG_fail;
8683
+ argc = (int)PyObject_Length(args);
8684
+ for (ii = 0; (ii < argc) && (ii < 4); ii++) {
8685
+ argv[ii] = PyTuple_GET_ITEM(args,ii);
8689
+ int res = swig::asptr(argv[0], (std::vector<double,std::allocator< double > >**)(0));
8690
+ _v = SWIG_CheckState(res);
8692
+ swig::PySwigIterator *iter = 0;
8693
+ int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::PySwigIterator::descriptor(), 0);
8694
+ _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::PySwigIterator_T<std::vector< double >::iterator > *>(iter) != 0));
8697
+ int res = SWIG_AsVal_double(argv[2], NULL);
8698
+ _v = SWIG_CheckState(res);
8701
+ return _wrap_DoubleVector_insert__SWIG_0(self, args);
8708
+ int res = swig::asptr(argv[0], (std::vector<double,std::allocator< double > >**)(0));
8709
+ _v = SWIG_CheckState(res);
8711
+ swig::PySwigIterator *iter = 0;
8712
+ int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::PySwigIterator::descriptor(), 0);
8713
+ _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::PySwigIterator_T<std::vector< double >::iterator > *>(iter) != 0));
8716
+ int res = SWIG_AsVal_size_t(argv[2], NULL);
8717
+ _v = SWIG_CheckState(res);
8721
+ int res = SWIG_AsVal_double(argv[3], NULL);
8722
+ _v = SWIG_CheckState(res);
8725
+ return _wrap_DoubleVector_insert__SWIG_1(self, args);
8733
+ SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'DoubleVector_insert'.\n"
8734
+ " Possible C/C++ prototypes are:\n"
8735
+ " insert(std::vector< double > *,std::vector< double >::iterator,std::vector< double >::value_type const &)\n"
8736
+ " insert(std::vector< double > *,std::vector< double >::iterator,std::vector< double >::size_type,std::vector< double >::value_type const &)\n");
8741
+SWIGINTERN PyObject *_wrap_DoubleVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8742
+ PyObject *resultobj = 0;
8743
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
8744
+ std::vector< double >::size_type arg2 ;
8749
+ PyObject * obj0 = 0 ;
8750
+ PyObject * obj1 = 0 ;
8752
+ if (!PyArg_ParseTuple(args,(char *)"OO:DoubleVector_reserve",&obj0,&obj1)) SWIG_fail;
8753
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
8754
+ if (!SWIG_IsOK(res1)) {
8755
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_reserve" "', argument " "1"" of type '" "std::vector< double > *""'");
8757
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
8758
+ ecode2 = SWIG_AsVal_size_t(obj1, &val2);
8759
+ if (!SWIG_IsOK(ecode2)) {
8760
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector_reserve" "', argument " "2"" of type '" "std::vector< double >::size_type""'");
8762
+ arg2 = static_cast< std::vector< double >::size_type >(val2);
8763
+ (arg1)->reserve(arg2);
8764
+ resultobj = SWIG_Py_Void();
8771
+SWIGINTERN PyObject *_wrap_DoubleVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8772
+ PyObject *resultobj = 0;
8773
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
8776
+ PyObject * obj0 = 0 ;
8777
+ std::vector< double >::size_type result;
8779
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVector_capacity",&obj0)) SWIG_fail;
8780
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
8781
+ if (!SWIG_IsOK(res1)) {
8782
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_capacity" "', argument " "1"" of type '" "std::vector< double > const *""'");
8784
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
8785
+ result = ((std::vector< double > const *)arg1)->capacity();
8786
+ resultobj = SWIG_From_size_t(static_cast< size_t >(result));
8793
+SWIGINTERN PyObject *_wrap_delete_DoubleVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8794
+ PyObject *resultobj = 0;
8795
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
8798
+ PyObject * obj0 = 0 ;
8800
+ if (!PyArg_ParseTuple(args,(char *)"O:delete_DoubleVector",&obj0)) SWIG_fail;
8801
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_POINTER_DISOWN | 0 );
8802
+ if (!SWIG_IsOK(res1)) {
8803
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DoubleVector" "', argument " "1"" of type '" "std::vector< double > *""'");
8805
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
8807
+ resultobj = SWIG_Py_Void();
8814
+SWIGINTERN PyObject *DoubleVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8816
+ if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
8817
+ SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_NewClientData(obj));
8818
+ return SWIG_Py_Void();
8821
+SWIGINTERN PyObject *_wrap_new_IntVecIntMap__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8822
+ PyObject *resultobj = 0;
8823
+ std::less< int > *arg1 = 0 ;
8826
+ PyObject * obj0 = 0 ;
8827
+ std::map< int,std::vector< int > > *result = 0 ;
8829
+ if (!PyArg_ParseTuple(args,(char *)"O:new_IntVecIntMap",&obj0)) SWIG_fail;
8830
+ res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__lessT_int_t, 0 | 0);
8831
+ if (!SWIG_IsOK(res1)) {
8832
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IntVecIntMap" "', argument " "1"" of type '" "std::less< int > const &""'");
8835
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IntVecIntMap" "', argument " "1"" of type '" "std::less< int > const &""'");
8837
+ arg1 = reinterpret_cast< std::less< int > * >(argp1);
8838
+ result = (std::map< int,std::vector< int > > *)new std::map< int,std::vector< int > >((std::less< int > const &)*arg1);
8839
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, SWIG_POINTER_NEW | 0 );
8846
+SWIGINTERN PyObject *_wrap_IntVecIntMap_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8847
+ PyObject *resultobj = 0;
8848
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
8849
+ PyObject **arg2 = (PyObject **) 0 ;
8852
+ PyObject * obj0 = 0 ;
8853
+ swig::PySwigIterator *result = 0 ;
8856
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVecIntMap_iterator",&obj0)) SWIG_fail;
8857
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
8858
+ if (!SWIG_IsOK(res1)) {
8859
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_iterator" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
8861
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
8862
+ result = (swig::PySwigIterator *)std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg__iterator(arg1,arg2);
8863
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_OWN | 0 );
8870
+SWIGINTERN PyObject *_wrap_IntVecIntMap___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8871
+ PyObject *resultobj = 0;
8872
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
8875
+ PyObject * obj0 = 0 ;
8878
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVecIntMap___nonzero__",&obj0)) SWIG_fail;
8879
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
8880
+ if (!SWIG_IsOK(res1)) {
8881
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap___nonzero__" "', argument " "1"" of type '" "std::map< int,std::vector< int > > const *""'");
8883
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
8884
+ result = (bool)std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg____nonzero__((std::map< int,std::vector< int > > const *)arg1);
8885
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
8892
+SWIGINTERN PyObject *_wrap_IntVecIntMap___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8893
+ PyObject *resultobj = 0;
8894
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
8897
+ PyObject * obj0 = 0 ;
8898
+ std::map< int,std::vector< int > >::size_type result;
8900
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVecIntMap___len__",&obj0)) SWIG_fail;
8901
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
8902
+ if (!SWIG_IsOK(res1)) {
8903
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap___len__" "', argument " "1"" of type '" "std::map< int,std::vector< int > > const *""'");
8905
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
8906
+ result = std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg____len__((std::map< int,std::vector< int > > const *)arg1);
8907
+ resultobj = SWIG_From_size_t(static_cast< size_t >(result));
8914
+SWIGINTERN PyObject *_wrap_IntVecIntMap___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8915
+ PyObject *resultobj = 0;
8916
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
8917
+ std::map< int,std::vector< int > >::key_type *arg2 = 0 ;
8920
+ std::map< int,std::vector< int > >::key_type temp2 ;
8923
+ PyObject * obj0 = 0 ;
8924
+ PyObject * obj1 = 0 ;
8925
+ std::map< int,std::vector< int > >::mapped_type result;
8927
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVecIntMap___getitem__",&obj0,&obj1)) SWIG_fail;
8928
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
8929
+ if (!SWIG_IsOK(res1)) {
8930
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap___getitem__" "', argument " "1"" of type '" "std::map< int,std::vector< int > > const *""'");
8932
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
8933
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
8934
+ if (!SWIG_IsOK(ecode2)) {
8935
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVecIntMap___getitem__" "', argument " "2"" of type '" "std::map< int,std::vector< int > >::key_type""'");
8937
+ temp2 = static_cast< std::map< int,std::vector< int > >::key_type >(val2);
8940
+ result = std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg____getitem__((std::map< int,std::vector< int > > const *)arg1,(int const &)*arg2);
8942
+ catch(std::out_of_range &_e) {
8943
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
8946
+ resultobj = swig::from(static_cast< std::vector<int,std::allocator< int > > >(result));
8953
+SWIGINTERN PyObject *_wrap_IntVecIntMap___delitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8954
+ PyObject *resultobj = 0;
8955
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
8956
+ std::map< int,std::vector< int > >::key_type *arg2 = 0 ;
8959
+ std::map< int,std::vector< int > >::key_type temp2 ;
8962
+ PyObject * obj0 = 0 ;
8963
+ PyObject * obj1 = 0 ;
8965
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVecIntMap___delitem__",&obj0,&obj1)) SWIG_fail;
8966
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
8967
+ if (!SWIG_IsOK(res1)) {
8968
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap___delitem__" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
8970
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
8971
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
8972
+ if (!SWIG_IsOK(ecode2)) {
8973
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVecIntMap___delitem__" "', argument " "2"" of type '" "std::map< int,std::vector< int > >::key_type""'");
8975
+ temp2 = static_cast< std::map< int,std::vector< int > >::key_type >(val2);
8978
+ std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg____delitem__(arg1,(int const &)*arg2);
8980
+ catch(std::out_of_range &_e) {
8981
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
8984
+ resultobj = SWIG_Py_Void();
8991
+SWIGINTERN PyObject *_wrap_IntVecIntMap_has_key(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8992
+ PyObject *resultobj = 0;
8993
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
8994
+ std::map< int,std::vector< int > >::key_type *arg2 = 0 ;
8997
+ std::map< int,std::vector< int > >::key_type temp2 ;
9000
+ PyObject * obj0 = 0 ;
9001
+ PyObject * obj1 = 0 ;
9004
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVecIntMap_has_key",&obj0,&obj1)) SWIG_fail;
9005
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
9006
+ if (!SWIG_IsOK(res1)) {
9007
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_has_key" "', argument " "1"" of type '" "std::map< int,std::vector< int > > const *""'");
9009
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
9010
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
9011
+ if (!SWIG_IsOK(ecode2)) {
9012
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVecIntMap_has_key" "', argument " "2"" of type '" "std::map< int,std::vector< int > >::key_type""'");
9014
+ temp2 = static_cast< std::map< int,std::vector< int > >::key_type >(val2);
9016
+ result = (bool)std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg__has_key((std::map< int,std::vector< int > > const *)arg1,(int const &)*arg2);
9017
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
9024
+SWIGINTERN PyObject *_wrap_IntVecIntMap_keys(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9025
+ PyObject *resultobj = 0;
9026
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
9029
+ PyObject * obj0 = 0 ;
9030
+ PyObject *result = 0 ;
9032
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVecIntMap_keys",&obj0)) SWIG_fail;
9033
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
9034
+ if (!SWIG_IsOK(res1)) {
9035
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_keys" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
9037
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
9038
+ result = (PyObject *)std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg__keys(arg1);
9039
+ resultobj = result;
9046
+SWIGINTERN PyObject *_wrap_IntVecIntMap_values(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9047
+ PyObject *resultobj = 0;
9048
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
9051
+ PyObject * obj0 = 0 ;
9052
+ PyObject *result = 0 ;
9054
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVecIntMap_values",&obj0)) SWIG_fail;
9055
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
9056
+ if (!SWIG_IsOK(res1)) {
9057
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_values" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
9059
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
9060
+ result = (PyObject *)std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg__values(arg1);
9061
+ resultobj = result;
9068
+SWIGINTERN PyObject *_wrap_IntVecIntMap_items(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9069
+ PyObject *resultobj = 0;
9070
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
9073
+ PyObject * obj0 = 0 ;
9074
+ PyObject *result = 0 ;
9076
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVecIntMap_items",&obj0)) SWIG_fail;
9077
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
9078
+ if (!SWIG_IsOK(res1)) {
9079
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_items" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
9081
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
9082
+ result = (PyObject *)std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg__items(arg1);
9083
+ resultobj = result;
9090
+SWIGINTERN PyObject *_wrap_IntVecIntMap___contains__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9091
+ PyObject *resultobj = 0;
9092
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
9093
+ std::map< int,std::vector< int > >::key_type *arg2 = 0 ;
9096
+ std::map< int,std::vector< int > >::key_type temp2 ;
9099
+ PyObject * obj0 = 0 ;
9100
+ PyObject * obj1 = 0 ;
9103
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVecIntMap___contains__",&obj0,&obj1)) SWIG_fail;
9104
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
9105
+ if (!SWIG_IsOK(res1)) {
9106
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap___contains__" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
9108
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
9109
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
9110
+ if (!SWIG_IsOK(ecode2)) {
9111
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVecIntMap___contains__" "', argument " "2"" of type '" "std::map< int,std::vector< int > >::key_type""'");
9113
+ temp2 = static_cast< std::map< int,std::vector< int > >::key_type >(val2);
9115
+ result = (bool)std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg____contains__(arg1,(int const &)*arg2);
9116
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
9123
+SWIGINTERN PyObject *_wrap_IntVecIntMap_key_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9124
+ PyObject *resultobj = 0;
9125
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
9126
+ PyObject **arg2 = (PyObject **) 0 ;
9129
+ PyObject * obj0 = 0 ;
9130
+ swig::PySwigIterator *result = 0 ;
9133
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVecIntMap_key_iterator",&obj0)) SWIG_fail;
9134
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
9135
+ if (!SWIG_IsOK(res1)) {
9136
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_key_iterator" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
9138
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
9139
+ result = (swig::PySwigIterator *)std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg__key_iterator(arg1,arg2);
9140
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_OWN | 0 );
9147
+SWIGINTERN PyObject *_wrap_IntVecIntMap_value_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9148
+ PyObject *resultobj = 0;
9149
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
9150
+ PyObject **arg2 = (PyObject **) 0 ;
9153
+ PyObject * obj0 = 0 ;
9154
+ swig::PySwigIterator *result = 0 ;
9157
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVecIntMap_value_iterator",&obj0)) SWIG_fail;
9158
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
9159
+ if (!SWIG_IsOK(res1)) {
9160
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_value_iterator" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
9162
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
9163
+ result = (swig::PySwigIterator *)std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg__value_iterator(arg1,arg2);
9164
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_OWN | 0 );
9171
+SWIGINTERN PyObject *_wrap_IntVecIntMap___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9172
+ PyObject *resultobj = 0;
9173
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
9174
+ std::map< int,std::vector< int > >::key_type *arg2 = 0 ;
9175
+ std::map< int,std::vector< int > >::mapped_type *arg3 = 0 ;
9178
+ std::map< int,std::vector< int > >::key_type temp2 ;
9181
+ int res3 = SWIG_OLDOBJ ;
9182
+ PyObject * obj0 = 0 ;
9183
+ PyObject * obj1 = 0 ;
9184
+ PyObject * obj2 = 0 ;
9186
+ if (!PyArg_ParseTuple(args,(char *)"OOO:IntVecIntMap___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
9187
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
9188
+ if (!SWIG_IsOK(res1)) {
9189
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap___setitem__" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
9191
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
9192
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
9193
+ if (!SWIG_IsOK(ecode2)) {
9194
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVecIntMap___setitem__" "', argument " "2"" of type '" "std::map< int,std::vector< int > >::key_type""'");
9196
+ temp2 = static_cast< std::map< int,std::vector< int > >::key_type >(val2);
9199
+ std::vector<int,std::allocator< int > > *ptr = (std::vector<int,std::allocator< int > > *)0;
9200
+ res3 = swig::asptr(obj2, &ptr);
9201
+ if (!SWIG_IsOK(res3)) {
9202
+ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IntVecIntMap___setitem__" "', argument " "3"" of type '" "std::map< int,std::vector< int > >::mapped_type const &""'");
9205
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntVecIntMap___setitem__" "', argument " "3"" of type '" "std::map< int,std::vector< int > >::mapped_type const &""'");
9210
+ std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg____setitem__(arg1,(int const &)*arg2,(std::vector< int,std::allocator< int > > const &)*arg3);
9212
+ catch(std::out_of_range &_e) {
9213
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
9216
+ resultobj = SWIG_Py_Void();
9217
+ if (SWIG_IsNewObj(res3)) delete arg3;
9220
+ if (SWIG_IsNewObj(res3)) delete arg3;
9225
+SWIGINTERN PyObject *_wrap_new_IntVecIntMap__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9226
+ PyObject *resultobj = 0;
9227
+ std::map< int,std::vector< int > > *result = 0 ;
9229
+ if (!PyArg_ParseTuple(args,(char *)":new_IntVecIntMap")) SWIG_fail;
9230
+ result = (std::map< int,std::vector< int > > *)new std::map< int,std::vector< int > >();
9231
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, SWIG_POINTER_NEW | 0 );
9238
+SWIGINTERN PyObject *_wrap_new_IntVecIntMap__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9239
+ PyObject *resultobj = 0;
9240
+ std::map< int,std::vector< int,std::allocator< int > > > *arg1 = 0 ;
9241
+ int res1 = SWIG_OLDOBJ ;
9242
+ PyObject * obj0 = 0 ;
9243
+ std::map< int,std::vector< int > > *result = 0 ;
9245
+ if (!PyArg_ParseTuple(args,(char *)"O:new_IntVecIntMap",&obj0)) SWIG_fail;
9247
+ std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > > *ptr = (std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > > *)0;
9248
+ res1 = swig::asptr(obj0, &ptr);
9249
+ if (!SWIG_IsOK(res1)) {
9250
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IntVecIntMap" "', argument " "1"" of type '" "std::map< int,std::vector< int,std::allocator< int > > > const &""'");
9253
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IntVecIntMap" "', argument " "1"" of type '" "std::map< int,std::vector< int,std::allocator< int > > > const &""'");
9257
+ result = (std::map< int,std::vector< int > > *)new std::map< int,std::vector< int > >((std::map< int,std::vector< int,std::allocator< int > > > const &)*arg1);
9258
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, SWIG_POINTER_NEW | 0 );
9259
+ if (SWIG_IsNewObj(res1)) delete arg1;
9262
+ if (SWIG_IsNewObj(res1)) delete arg1;
9267
+SWIGINTERN PyObject *_wrap_new_IntVecIntMap(PyObject *self, PyObject *args) {
9269
+ PyObject *argv[2];
9272
+ if (!PyTuple_Check(args)) SWIG_fail;
9273
+ argc = (int)PyObject_Length(args);
9274
+ for (ii = 0; (ii < argc) && (ii < 1); ii++) {
9275
+ argv[ii] = PyTuple_GET_ITEM(args,ii);
9278
+ return _wrap_new_IntVecIntMap__SWIG_1(self, args);
9282
+ int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__lessT_int_t, 0);
9283
+ _v = SWIG_CheckState(res);
9285
+ return _wrap_new_IntVecIntMap__SWIG_0(self, args);
9290
+ int res = swig::asptr(argv[0], (std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > >**)(0));
9291
+ _v = SWIG_CheckState(res);
9293
+ return _wrap_new_IntVecIntMap__SWIG_2(self, args);
9298
+ SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_IntVecIntMap'.\n"
9299
+ " Possible C/C++ prototypes are:\n"
9300
+ " std::map< int,std::vector< int > >(std::less< int > const &)\n"
9301
+ " std::map< int,std::vector< int > >()\n"
9302
+ " std::map< int,std::vector< int > >(std::map< int,std::vector< int,std::allocator< int > > > const &)\n");
9307
+SWIGINTERN PyObject *_wrap_IntVecIntMap_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9308
+ PyObject *resultobj = 0;
9309
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
9312
+ PyObject * obj0 = 0 ;
9315
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVecIntMap_empty",&obj0)) SWIG_fail;
9316
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
9317
+ if (!SWIG_IsOK(res1)) {
9318
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_empty" "', argument " "1"" of type '" "std::map< int,std::vector< int > > const *""'");
9320
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
9321
+ result = (bool)((std::map< int,std::vector< int > > const *)arg1)->empty();
9322
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
9329
+SWIGINTERN PyObject *_wrap_IntVecIntMap_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9330
+ PyObject *resultobj = 0;
9331
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
9334
+ PyObject * obj0 = 0 ;
9335
+ std::map< int,std::vector< int > >::size_type result;
9337
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVecIntMap_size",&obj0)) SWIG_fail;
9338
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
9339
+ if (!SWIG_IsOK(res1)) {
9340
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_size" "', argument " "1"" of type '" "std::map< int,std::vector< int > > const *""'");
9342
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
9343
+ result = ((std::map< int,std::vector< int > > const *)arg1)->size();
9344
+ resultobj = SWIG_From_size_t(static_cast< size_t >(result));
9351
+SWIGINTERN PyObject *_wrap_IntVecIntMap_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9352
+ PyObject *resultobj = 0;
9353
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
9356
+ PyObject * obj0 = 0 ;
9358
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVecIntMap_clear",&obj0)) SWIG_fail;
9359
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
9360
+ if (!SWIG_IsOK(res1)) {
9361
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_clear" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
9363
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
9365
+ resultobj = SWIG_Py_Void();
9372
+SWIGINTERN PyObject *_wrap_IntVecIntMap_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9373
+ PyObject *resultobj = 0;
9374
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
9375
+ std::map< int,std::vector< int,std::allocator< int > > > *arg2 = 0 ;
9380
+ PyObject * obj0 = 0 ;
9381
+ PyObject * obj1 = 0 ;
9383
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVecIntMap_swap",&obj0,&obj1)) SWIG_fail;
9384
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
9385
+ if (!SWIG_IsOK(res1)) {
9386
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_swap" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
9388
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
9389
+ res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 );
9390
+ if (!SWIG_IsOK(res2)) {
9391
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntVecIntMap_swap" "', argument " "2"" of type '" "std::map< int,std::vector< int,std::allocator< int > > > &""'");
9394
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntVecIntMap_swap" "', argument " "2"" of type '" "std::map< int,std::vector< int,std::allocator< int > > > &""'");
9396
+ arg2 = reinterpret_cast< std::map< int,std::vector< int,std::allocator< int > > > * >(argp2);
9397
+ (arg1)->swap(*arg2);
9398
+ resultobj = SWIG_Py_Void();
9405
+SWIGINTERN PyObject *_wrap_IntVecIntMap_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9406
+ PyObject *resultobj = 0;
9407
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
9410
+ PyObject * obj0 = 0 ;
9411
+ SwigValueWrapper< std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > > result;
9413
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVecIntMap_get_allocator",&obj0)) SWIG_fail;
9414
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
9415
+ if (!SWIG_IsOK(res1)) {
9416
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_get_allocator" "', argument " "1"" of type '" "std::map< int,std::vector< int > > const *""'");
9418
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
9419
+ result = ((std::map< int,std::vector< int > > const *)arg1)->get_allocator();
9420
+ resultobj = SWIG_NewPointerObj((new std::map< int,std::vector< int > >::allocator_type(static_cast< const std::map< int,std::vector< int > >::allocator_type& >(result))), SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t__allocator_type, SWIG_POINTER_OWN | 0 );
9427
+SWIGINTERN PyObject *_wrap_IntVecIntMap_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9428
+ PyObject *resultobj = 0;
9429
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
9432
+ PyObject * obj0 = 0 ;
9433
+ std::map< int,std::vector< int > >::const_iterator result;
9435
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVecIntMap_begin",&obj0)) SWIG_fail;
9436
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
9437
+ if (!SWIG_IsOK(res1)) {
9438
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_begin" "', argument " "1"" of type '" "std::map< int,std::vector< int > > const *""'");
9440
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
9441
+ result = ((std::map< int,std::vector< int > > const *)arg1)->begin();
9442
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< int,std::vector< int > >::const_iterator & >(result)),
9443
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
9450
+SWIGINTERN PyObject *_wrap_IntVecIntMap_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9451
+ PyObject *resultobj = 0;
9452
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
9455
+ PyObject * obj0 = 0 ;
9456
+ std::map< int,std::vector< int > >::const_iterator result;
9458
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVecIntMap_end",&obj0)) SWIG_fail;
9459
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
9460
+ if (!SWIG_IsOK(res1)) {
9461
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_end" "', argument " "1"" of type '" "std::map< int,std::vector< int > > const *""'");
9463
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
9464
+ result = ((std::map< int,std::vector< int > > const *)arg1)->end();
9465
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< int,std::vector< int > >::const_iterator & >(result)),
9466
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
9473
+SWIGINTERN PyObject *_wrap_IntVecIntMap_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9474
+ PyObject *resultobj = 0;
9475
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
9478
+ PyObject * obj0 = 0 ;
9479
+ std::map< int,std::vector< int > >::const_reverse_iterator result;
9481
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVecIntMap_rbegin",&obj0)) SWIG_fail;
9482
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
9483
+ if (!SWIG_IsOK(res1)) {
9484
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_rbegin" "', argument " "1"" of type '" "std::map< int,std::vector< int > > const *""'");
9486
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
9487
+ result = ((std::map< int,std::vector< int > > const *)arg1)->rbegin();
9488
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< int,std::vector< int > >::const_reverse_iterator & >(result)),
9489
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
9496
+SWIGINTERN PyObject *_wrap_IntVecIntMap_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9497
+ PyObject *resultobj = 0;
9498
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
9501
+ PyObject * obj0 = 0 ;
9502
+ std::map< int,std::vector< int > >::const_reverse_iterator result;
9504
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVecIntMap_rend",&obj0)) SWIG_fail;
9505
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
9506
+ if (!SWIG_IsOK(res1)) {
9507
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_rend" "', argument " "1"" of type '" "std::map< int,std::vector< int > > const *""'");
9509
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
9510
+ result = ((std::map< int,std::vector< int > > const *)arg1)->rend();
9511
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< int,std::vector< int > >::const_reverse_iterator & >(result)),
9512
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
9519
+SWIGINTERN PyObject *_wrap_IntVecIntMap_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9520
+ PyObject *resultobj = 0;
9521
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
9522
+ std::map< int,std::vector< int > >::key_type *arg2 = 0 ;
9525
+ std::map< int,std::vector< int > >::key_type temp2 ;
9528
+ PyObject * obj0 = 0 ;
9529
+ PyObject * obj1 = 0 ;
9530
+ std::map< int,std::vector< int > >::size_type result;
9532
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVecIntMap_erase",&obj0,&obj1)) SWIG_fail;
9533
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
9534
+ if (!SWIG_IsOK(res1)) {
9535
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_erase" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
9537
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
9538
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
9539
+ if (!SWIG_IsOK(ecode2)) {
9540
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVecIntMap_erase" "', argument " "2"" of type '" "std::map< int,std::vector< int > >::key_type""'");
9542
+ temp2 = static_cast< std::map< int,std::vector< int > >::key_type >(val2);
9544
+ result = (arg1)->erase((std::map< int,std::vector< int > >::key_type const &)*arg2);
9545
+ resultobj = SWIG_From_size_t(static_cast< size_t >(result));
9552
+SWIGINTERN PyObject *_wrap_IntVecIntMap_count(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9553
+ PyObject *resultobj = 0;
9554
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
9555
+ std::map< int,std::vector< int > >::key_type *arg2 = 0 ;
9558
+ std::map< int,std::vector< int > >::key_type temp2 ;
9561
+ PyObject * obj0 = 0 ;
9562
+ PyObject * obj1 = 0 ;
9563
+ std::map< int,std::vector< int > >::size_type result;
9565
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVecIntMap_count",&obj0,&obj1)) SWIG_fail;
9566
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
9567
+ if (!SWIG_IsOK(res1)) {
9568
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_count" "', argument " "1"" of type '" "std::map< int,std::vector< int > > const *""'");
9570
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
9571
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
9572
+ if (!SWIG_IsOK(ecode2)) {
9573
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVecIntMap_count" "', argument " "2"" of type '" "std::map< int,std::vector< int > >::key_type""'");
9575
+ temp2 = static_cast< std::map< int,std::vector< int > >::key_type >(val2);
9577
+ result = ((std::map< int,std::vector< int > > const *)arg1)->count((std::map< int,std::vector< int > >::key_type const &)*arg2);
9578
+ resultobj = SWIG_From_size_t(static_cast< size_t >(result));
9585
+SWIGINTERN PyObject *_wrap_IntVecIntMap_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9586
+ PyObject *resultobj = 0;
9587
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
9588
+ std::map< int,std::vector< int > >::iterator arg2 ;
9591
+ swig::PySwigIterator *iter2 = 0 ;
9593
+ PyObject * obj0 = 0 ;
9594
+ PyObject * obj1 = 0 ;
9596
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVecIntMap_erase",&obj0,&obj1)) SWIG_fail;
9597
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
9598
+ if (!SWIG_IsOK(res1)) {
9599
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_erase" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
9601
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
9602
+ res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::PySwigIterator::descriptor(), 0);
9603
+ if (!SWIG_IsOK(res2) || !iter2) {
9604
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVecIntMap_erase" "', argument " "2"" of type '" "std::map< int,std::vector< int > >::iterator""'");
9606
+ swig::PySwigIterator_T<std::map< int,std::vector< int > >::iterator > *iter_t = dynamic_cast<swig::PySwigIterator_T<std::map< int,std::vector< int > >::iterator > *>(iter2);
9608
+ arg2 = iter_t->get_current();
9610
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVecIntMap_erase" "', argument " "2"" of type '" "std::map< int,std::vector< int > >::iterator""'");
9613
+ (arg1)->erase(arg2);
9614
+ resultobj = SWIG_Py_Void();
9621
+SWIGINTERN PyObject *_wrap_IntVecIntMap_erase__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9622
+ PyObject *resultobj = 0;
9623
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
9624
+ std::map< int,std::vector< int > >::iterator arg2 ;
9625
+ std::map< int,std::vector< int > >::iterator arg3 ;
9628
+ swig::PySwigIterator *iter2 = 0 ;
9630
+ swig::PySwigIterator *iter3 = 0 ;
9632
+ PyObject * obj0 = 0 ;
9633
+ PyObject * obj1 = 0 ;
9634
+ PyObject * obj2 = 0 ;
9636
+ if (!PyArg_ParseTuple(args,(char *)"OOO:IntVecIntMap_erase",&obj0,&obj1,&obj2)) SWIG_fail;
9637
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
9638
+ if (!SWIG_IsOK(res1)) {
9639
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_erase" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
9641
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
9642
+ res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::PySwigIterator::descriptor(), 0);
9643
+ if (!SWIG_IsOK(res2) || !iter2) {
9644
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVecIntMap_erase" "', argument " "2"" of type '" "std::map< int,std::vector< int > >::iterator""'");
9646
+ swig::PySwigIterator_T<std::map< int,std::vector< int > >::iterator > *iter_t = dynamic_cast<swig::PySwigIterator_T<std::map< int,std::vector< int > >::iterator > *>(iter2);
9648
+ arg2 = iter_t->get_current();
9650
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVecIntMap_erase" "', argument " "2"" of type '" "std::map< int,std::vector< int > >::iterator""'");
9653
+ res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::PySwigIterator::descriptor(), 0);
9654
+ if (!SWIG_IsOK(res3) || !iter3) {
9655
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVecIntMap_erase" "', argument " "3"" of type '" "std::map< int,std::vector< int > >::iterator""'");
9657
+ swig::PySwigIterator_T<std::map< int,std::vector< int > >::iterator > *iter_t = dynamic_cast<swig::PySwigIterator_T<std::map< int,std::vector< int > >::iterator > *>(iter3);
9659
+ arg3 = iter_t->get_current();
9661
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVecIntMap_erase" "', argument " "3"" of type '" "std::map< int,std::vector< int > >::iterator""'");
9664
+ (arg1)->erase(arg2,arg3);
9665
+ resultobj = SWIG_Py_Void();
9672
+SWIGINTERN PyObject *_wrap_IntVecIntMap_erase(PyObject *self, PyObject *args) {
9674
+ PyObject *argv[4];
9677
+ if (!PyTuple_Check(args)) SWIG_fail;
9678
+ argc = (int)PyObject_Length(args);
9679
+ for (ii = 0; (ii < argc) && (ii < 3); ii++) {
9680
+ argv[ii] = PyTuple_GET_ITEM(args,ii);
9684
+ int res = swig::asptr(argv[0], (std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > >**)(0));
9685
+ _v = SWIG_CheckState(res);
9687
+ swig::PySwigIterator *iter = 0;
9688
+ int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::PySwigIterator::descriptor(), 0);
9689
+ _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::PySwigIterator_T<std::map< int,std::vector< int > >::iterator > *>(iter) != 0));
9691
+ return _wrap_IntVecIntMap_erase__SWIG_1(self, args);
9697
+ int res = swig::asptr(argv[0], (std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > >**)(0));
9698
+ _v = SWIG_CheckState(res);
9701
+ int res = SWIG_AsVal_int(argv[1], NULL);
9702
+ _v = SWIG_CheckState(res);
9705
+ return _wrap_IntVecIntMap_erase__SWIG_0(self, args);
9711
+ int res = swig::asptr(argv[0], (std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > >**)(0));
9712
+ _v = SWIG_CheckState(res);
9714
+ swig::PySwigIterator *iter = 0;
9715
+ int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::PySwigIterator::descriptor(), 0);
9716
+ _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::PySwigIterator_T<std::map< int,std::vector< int > >::iterator > *>(iter) != 0));
9718
+ swig::PySwigIterator *iter = 0;
9719
+ int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::PySwigIterator::descriptor(), 0);
9720
+ _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::PySwigIterator_T<std::map< int,std::vector< int > >::iterator > *>(iter) != 0));
9722
+ return _wrap_IntVecIntMap_erase__SWIG_2(self, args);
9729
+ SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IntVecIntMap_erase'.\n"
9730
+ " Possible C/C++ prototypes are:\n"
9731
+ " erase(std::map< int,std::vector< int > > *,std::map< int,std::vector< int > >::key_type const &)\n"
9732
+ " erase(std::map< int,std::vector< int > > *,std::map< int,std::vector< int > >::iterator)\n"
9733
+ " erase(std::map< int,std::vector< int > > *,std::map< int,std::vector< int > >::iterator,std::map< int,std::vector< int > >::iterator)\n");
9738
+SWIGINTERN PyObject *_wrap_IntVecIntMap_find(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9739
+ PyObject *resultobj = 0;
9740
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
9741
+ std::map< int,std::vector< int > >::key_type *arg2 = 0 ;
9744
+ std::map< int,std::vector< int > >::key_type temp2 ;
9747
+ PyObject * obj0 = 0 ;
9748
+ PyObject * obj1 = 0 ;
9749
+ std::map< int,std::vector< int > >::iterator result;
9751
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVecIntMap_find",&obj0,&obj1)) SWIG_fail;
9752
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
9753
+ if (!SWIG_IsOK(res1)) {
9754
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_find" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
9756
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
9757
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
9758
+ if (!SWIG_IsOK(ecode2)) {
9759
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVecIntMap_find" "', argument " "2"" of type '" "std::map< int,std::vector< int > >::key_type""'");
9761
+ temp2 = static_cast< std::map< int,std::vector< int > >::key_type >(val2);
9763
+ result = (arg1)->find((std::map< int,std::vector< int > >::key_type const &)*arg2);
9764
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< int,std::vector< int > >::iterator & >(result)),
9765
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
9772
+SWIGINTERN PyObject *_wrap_IntVecIntMap_lower_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9773
+ PyObject *resultobj = 0;
9774
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
9775
+ std::map< int,std::vector< int > >::key_type *arg2 = 0 ;
9778
+ std::map< int,std::vector< int > >::key_type temp2 ;
9781
+ PyObject * obj0 = 0 ;
9782
+ PyObject * obj1 = 0 ;
9783
+ std::map< int,std::vector< int > >::iterator result;
9785
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVecIntMap_lower_bound",&obj0,&obj1)) SWIG_fail;
9786
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
9787
+ if (!SWIG_IsOK(res1)) {
9788
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_lower_bound" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
9790
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
9791
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
9792
+ if (!SWIG_IsOK(ecode2)) {
9793
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVecIntMap_lower_bound" "', argument " "2"" of type '" "std::map< int,std::vector< int > >::key_type""'");
9795
+ temp2 = static_cast< std::map< int,std::vector< int > >::key_type >(val2);
9797
+ result = (arg1)->lower_bound((std::map< int,std::vector< int > >::key_type const &)*arg2);
9798
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< int,std::vector< int > >::iterator & >(result)),
9799
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
9806
+SWIGINTERN PyObject *_wrap_IntVecIntMap_upper_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9807
+ PyObject *resultobj = 0;
9808
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
9809
+ std::map< int,std::vector< int > >::key_type *arg2 = 0 ;
9812
+ std::map< int,std::vector< int > >::key_type temp2 ;
9815
+ PyObject * obj0 = 0 ;
9816
+ PyObject * obj1 = 0 ;
9817
+ std::map< int,std::vector< int > >::iterator result;
9819
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVecIntMap_upper_bound",&obj0,&obj1)) SWIG_fail;
9820
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
9821
+ if (!SWIG_IsOK(res1)) {
9822
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_upper_bound" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
9824
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
9825
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
9826
+ if (!SWIG_IsOK(ecode2)) {
9827
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVecIntMap_upper_bound" "', argument " "2"" of type '" "std::map< int,std::vector< int > >::key_type""'");
9829
+ temp2 = static_cast< std::map< int,std::vector< int > >::key_type >(val2);
9831
+ result = (arg1)->upper_bound((std::map< int,std::vector< int > >::key_type const &)*arg2);
9832
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< int,std::vector< int > >::iterator & >(result)),
9833
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
9840
+SWIGINTERN PyObject *_wrap_delete_IntVecIntMap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9841
+ PyObject *resultobj = 0;
9842
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
9845
+ PyObject * obj0 = 0 ;
9847
+ if (!PyArg_ParseTuple(args,(char *)"O:delete_IntVecIntMap",&obj0)) SWIG_fail;
9848
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, SWIG_POINTER_DISOWN | 0 );
9849
+ if (!SWIG_IsOK(res1)) {
9850
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IntVecIntMap" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
9852
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
9854
+ resultobj = SWIG_Py_Void();
9861
+SWIGINTERN PyObject *IntVecIntMap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9863
+ if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
9864
+ SWIG_TypeNewClientData(SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, SWIG_NewClientData(obj));
9865
+ return SWIG_Py_Void();
9868
+SWIGINTERN PyObject *_wrap_new_Nviz(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9869
+ PyObject *resultobj = 0;
9870
+ PyObject *arg1 = (PyObject *) 0 ;
9871
+ PyObject * obj0 = 0 ;
9872
+ Nviz *result = 0 ;
9874
+ if (!PyArg_ParseTuple(args,(char *)"O:new_Nviz",&obj0)) SWIG_fail;
9876
+ result = (Nviz *)new Nviz(arg1);
9877
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Nviz, SWIG_POINTER_NEW | 0 );
9884
+SWIGINTERN PyObject *_wrap_delete_Nviz(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9885
+ PyObject *resultobj = 0;
9886
+ Nviz *arg1 = (Nviz *) 0 ;
9889
+ PyObject * obj0 = 0 ;
9891
+ if (!PyArg_ParseTuple(args,(char *)"O:delete_Nviz",&obj0)) SWIG_fail;
9892
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, SWIG_POINTER_DISOWN | 0 );
9893
+ if (!SWIG_IsOK(res1)) {
9894
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Nviz" "', argument " "1"" of type '" "Nviz *""'");
9896
+ arg1 = reinterpret_cast< Nviz * >(argp1);
9898
+ resultobj = SWIG_Py_Void();
9905
+SWIGINTERN PyObject *_wrap_Nviz_ResizeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9906
+ PyObject *resultobj = 0;
9907
+ Nviz *arg1 = (Nviz *) 0 ;
9916
+ PyObject * obj0 = 0 ;
9917
+ PyObject * obj1 = 0 ;
9918
+ PyObject * obj2 = 0 ;
9921
+ if (!PyArg_ParseTuple(args,(char *)"OOO:Nviz_ResizeWindow",&obj0,&obj1,&obj2)) SWIG_fail;
9922
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
9923
+ if (!SWIG_IsOK(res1)) {
9924
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_ResizeWindow" "', argument " "1"" of type '" "Nviz *""'");
9926
+ arg1 = reinterpret_cast< Nviz * >(argp1);
9927
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
9928
+ if (!SWIG_IsOK(ecode2)) {
9929
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_ResizeWindow" "', argument " "2"" of type '" "int""'");
9931
+ arg2 = static_cast< int >(val2);
9932
+ ecode3 = SWIG_AsVal_int(obj2, &val3);
9933
+ if (!SWIG_IsOK(ecode3)) {
9934
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Nviz_ResizeWindow" "', argument " "3"" of type '" "int""'");
9936
+ arg3 = static_cast< int >(val3);
9937
+ result = (int)(arg1)->ResizeWindow(arg2,arg3);
9938
+ resultobj = SWIG_From_int(static_cast< int >(result));
9945
+SWIGINTERN PyObject *_wrap_Nviz_SetViewDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9946
+ PyObject *resultobj = 0;
9947
+ Nviz *arg1 = (Nviz *) 0 ;
9950
+ PyObject * obj0 = 0 ;
9951
+ std::vector< double,std::allocator< double > > result;
9953
+ if (!PyArg_ParseTuple(args,(char *)"O:Nviz_SetViewDefault",&obj0)) SWIG_fail;
9954
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
9955
+ if (!SWIG_IsOK(res1)) {
9956
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_SetViewDefault" "', argument " "1"" of type '" "Nviz *""'");
9958
+ arg1 = reinterpret_cast< Nviz * >(argp1);
9959
+ result = (arg1)->SetViewDefault();
9960
+ resultobj = swig::from(static_cast< std::vector<double,std::allocator< double > > >(result));
9967
+SWIGINTERN PyObject *_wrap_Nviz_SetView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9968
+ PyObject *resultobj = 0;
9969
+ Nviz *arg1 = (Nviz *) 0 ;
9987
+ PyObject * obj0 = 0 ;
9988
+ PyObject * obj1 = 0 ;
9989
+ PyObject * obj2 = 0 ;
9990
+ PyObject * obj3 = 0 ;
9991
+ PyObject * obj4 = 0 ;
9992
+ PyObject * obj5 = 0 ;
9995
+ if (!PyArg_ParseTuple(args,(char *)"OOOOOO:Nviz_SetView",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
9996
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
9997
+ if (!SWIG_IsOK(res1)) {
9998
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_SetView" "', argument " "1"" of type '" "Nviz *""'");
10000
+ arg1 = reinterpret_cast< Nviz * >(argp1);
10001
+ ecode2 = SWIG_AsVal_float(obj1, &val2);
10002
+ if (!SWIG_IsOK(ecode2)) {
10003
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_SetView" "', argument " "2"" of type '" "float""'");
10005
+ arg2 = static_cast< float >(val2);
10006
+ ecode3 = SWIG_AsVal_float(obj2, &val3);
10007
+ if (!SWIG_IsOK(ecode3)) {
10008
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Nviz_SetView" "', argument " "3"" of type '" "float""'");
10010
+ arg3 = static_cast< float >(val3);
10011
+ ecode4 = SWIG_AsVal_float(obj3, &val4);
10012
+ if (!SWIG_IsOK(ecode4)) {
10013
+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Nviz_SetView" "', argument " "4"" of type '" "float""'");
10015
+ arg4 = static_cast< float >(val4);
10016
+ ecode5 = SWIG_AsVal_float(obj4, &val5);
10017
+ if (!SWIG_IsOK(ecode5)) {
10018
+ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Nviz_SetView" "', argument " "5"" of type '" "float""'");
10020
+ arg5 = static_cast< float >(val5);
10021
+ ecode6 = SWIG_AsVal_float(obj5, &val6);
10022
+ if (!SWIG_IsOK(ecode6)) {
10023
+ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Nviz_SetView" "', argument " "6"" of type '" "float""'");
10025
+ arg6 = static_cast< float >(val6);
10026
+ result = (int)(arg1)->SetView(arg2,arg3,arg4,arg5,arg6);
10027
+ resultobj = SWIG_From_int(static_cast< int >(result));
10028
+ return resultobj;
10034
+SWIGINTERN PyObject *_wrap_Nviz_SetZExag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10035
+ PyObject *resultobj = 0;
10036
+ Nviz *arg1 = (Nviz *) 0 ;
10038
+ void *argp1 = 0 ;
10042
+ PyObject * obj0 = 0 ;
10043
+ PyObject * obj1 = 0 ;
10046
+ if (!PyArg_ParseTuple(args,(char *)"OO:Nviz_SetZExag",&obj0,&obj1)) SWIG_fail;
10047
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
10048
+ if (!SWIG_IsOK(res1)) {
10049
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_SetZExag" "', argument " "1"" of type '" "Nviz *""'");
10051
+ arg1 = reinterpret_cast< Nviz * >(argp1);
10052
+ ecode2 = SWIG_AsVal_float(obj1, &val2);
10053
+ if (!SWIG_IsOK(ecode2)) {
10054
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_SetZExag" "', argument " "2"" of type '" "float""'");
10056
+ arg2 = static_cast< float >(val2);
10057
+ result = (int)(arg1)->SetZExag(arg2);
10058
+ resultobj = SWIG_From_int(static_cast< int >(result));
10059
+ return resultobj;
10065
+SWIGINTERN PyObject *_wrap_Nviz_SetDisplay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10066
+ PyObject *resultobj = 0;
10067
+ Nviz *arg1 = (Nviz *) 0 ;
10068
+ void *arg2 = (void *) 0 ;
10069
+ void *argp1 = 0 ;
10072
+ PyObject * obj0 = 0 ;
10073
+ PyObject * obj1 = 0 ;
10076
+ if (!PyArg_ParseTuple(args,(char *)"OO:Nviz_SetDisplay",&obj0,&obj1)) SWIG_fail;
10077
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
10078
+ if (!SWIG_IsOK(res1)) {
10079
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_SetDisplay" "', argument " "1"" of type '" "Nviz *""'");
10081
+ arg1 = reinterpret_cast< Nviz * >(argp1);
10082
+ res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
10083
+ if (!SWIG_IsOK(res2)) {
10084
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Nviz_SetDisplay" "', argument " "2"" of type '" "void *""'");
10086
+ result = (int)(arg1)->SetDisplay(arg2);
10087
+ resultobj = SWIG_From_int(static_cast< int >(result));
10088
+ return resultobj;
10094
+SWIGINTERN PyObject *_wrap_Nviz_InitView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10095
+ PyObject *resultobj = 0;
10096
+ Nviz *arg1 = (Nviz *) 0 ;
10097
+ void *argp1 = 0 ;
10099
+ PyObject * obj0 = 0 ;
10101
+ if (!PyArg_ParseTuple(args,(char *)"O:Nviz_InitView",&obj0)) SWIG_fail;
10102
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
10103
+ if (!SWIG_IsOK(res1)) {
10104
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_InitView" "', argument " "1"" of type '" "Nviz *""'");
10106
+ arg1 = reinterpret_cast< Nviz * >(argp1);
10107
+ (arg1)->InitView();
10108
+ resultobj = SWIG_Py_Void();
10109
+ return resultobj;
10115
+SWIGINTERN PyObject *_wrap_Nviz_SetBgColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10116
+ PyObject *resultobj = 0;
10117
+ Nviz *arg1 = (Nviz *) 0 ;
10118
+ char *arg2 = (char *) 0 ;
10119
+ void *argp1 = 0 ;
10124
+ PyObject * obj0 = 0 ;
10125
+ PyObject * obj1 = 0 ;
10127
+ if (!PyArg_ParseTuple(args,(char *)"OO:Nviz_SetBgColor",&obj0,&obj1)) SWIG_fail;
10128
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
10129
+ if (!SWIG_IsOK(res1)) {
10130
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_SetBgColor" "', argument " "1"" of type '" "Nviz *""'");
10132
+ arg1 = reinterpret_cast< Nviz * >(argp1);
10133
+ res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
10134
+ if (!SWIG_IsOK(res2)) {
10135
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Nviz_SetBgColor" "', argument " "2"" of type '" "char const *""'");
10137
+ arg2 = reinterpret_cast< char * >(buf2);
10138
+ (arg1)->SetBgColor((char const *)arg2);
10139
+ resultobj = SWIG_Py_Void();
10140
+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
10141
+ return resultobj;
10143
+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
10148
+SWIGINTERN PyObject *_wrap_Nviz_SetLightsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10149
+ PyObject *resultobj = 0;
10150
+ Nviz *arg1 = (Nviz *) 0 ;
10151
+ void *argp1 = 0 ;
10153
+ PyObject * obj0 = 0 ;
10155
+ if (!PyArg_ParseTuple(args,(char *)"O:Nviz_SetLightsDefault",&obj0)) SWIG_fail;
10156
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
10157
+ if (!SWIG_IsOK(res1)) {
10158
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_SetLightsDefault" "', argument " "1"" of type '" "Nviz *""'");
10160
+ arg1 = reinterpret_cast< Nviz * >(argp1);
10161
+ (arg1)->SetLightsDefault();
10162
+ resultobj = SWIG_Py_Void();
10163
+ return resultobj;
10169
+SWIGINTERN PyObject *_wrap_Nviz_LoadSurface(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10170
+ PyObject *resultobj = 0;
10171
+ Nviz *arg1 = (Nviz *) 0 ;
10172
+ char *arg2 = (char *) 0 ;
10173
+ char *arg3 = (char *) 0 ;
10174
+ char *arg4 = (char *) 0 ;
10175
+ void *argp1 = 0 ;
10186
+ PyObject * obj0 = 0 ;
10187
+ PyObject * obj1 = 0 ;
10188
+ PyObject * obj2 = 0 ;
10189
+ PyObject * obj3 = 0 ;
10192
+ if (!PyArg_ParseTuple(args,(char *)"OOOO:Nviz_LoadSurface",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10193
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
10194
+ if (!SWIG_IsOK(res1)) {
10195
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_LoadSurface" "', argument " "1"" of type '" "Nviz *""'");
10197
+ arg1 = reinterpret_cast< Nviz * >(argp1);
10198
+ res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
10199
+ if (!SWIG_IsOK(res2)) {
10200
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Nviz_LoadSurface" "', argument " "2"" of type '" "char const *""'");
10202
+ arg2 = reinterpret_cast< char * >(buf2);
10203
+ res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
10204
+ if (!SWIG_IsOK(res3)) {
10205
+ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Nviz_LoadSurface" "', argument " "3"" of type '" "char const *""'");
10207
+ arg3 = reinterpret_cast< char * >(buf3);
10208
+ res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
10209
+ if (!SWIG_IsOK(res4)) {
10210
+ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Nviz_LoadSurface" "', argument " "4"" of type '" "char const *""'");
10212
+ arg4 = reinterpret_cast< char * >(buf4);
10213
+ result = (int)(arg1)->LoadSurface((char const *)arg2,(char const *)arg3,(char const *)arg4);
10214
+ resultobj = SWIG_From_int(static_cast< int >(result));
10215
+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
10216
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
10217
+ if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
10218
+ return resultobj;
10220
+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
10221
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
10222
+ if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
10227
+SWIGINTERN PyObject *_wrap_Nviz_UnloadSurface(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10228
+ PyObject *resultobj = 0;
10229
+ Nviz *arg1 = (Nviz *) 0 ;
10231
+ void *argp1 = 0 ;
10235
+ PyObject * obj0 = 0 ;
10236
+ PyObject * obj1 = 0 ;
10239
+ if (!PyArg_ParseTuple(args,(char *)"OO:Nviz_UnloadSurface",&obj0,&obj1)) SWIG_fail;
10240
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
10241
+ if (!SWIG_IsOK(res1)) {
10242
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_UnloadSurface" "', argument " "1"" of type '" "Nviz *""'");
10244
+ arg1 = reinterpret_cast< Nviz * >(argp1);
10245
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
10246
+ if (!SWIG_IsOK(ecode2)) {
10247
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_UnloadSurface" "', argument " "2"" of type '" "int""'");
10249
+ arg2 = static_cast< int >(val2);
10250
+ result = (int)(arg1)->UnloadSurface(arg2);
10251
+ resultobj = SWIG_From_int(static_cast< int >(result));
10252
+ return resultobj;
10258
+SWIGINTERN PyObject *_wrap_Nviz_LoadVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10259
+ PyObject *resultobj = 0;
10260
+ Nviz *arg1 = (Nviz *) 0 ;
10261
+ char *arg2 = (char *) 0 ;
10263
+ void *argp1 = 0 ;
10270
+ PyObject * obj0 = 0 ;
10271
+ PyObject * obj1 = 0 ;
10272
+ PyObject * obj2 = 0 ;
10275
+ if (!PyArg_ParseTuple(args,(char *)"OOO:Nviz_LoadVector",&obj0,&obj1,&obj2)) SWIG_fail;
10276
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
10277
+ if (!SWIG_IsOK(res1)) {
10278
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_LoadVector" "', argument " "1"" of type '" "Nviz *""'");
10280
+ arg1 = reinterpret_cast< Nviz * >(argp1);
10281
+ res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
10282
+ if (!SWIG_IsOK(res2)) {
10283
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Nviz_LoadVector" "', argument " "2"" of type '" "char const *""'");
10285
+ arg2 = reinterpret_cast< char * >(buf2);
10286
+ ecode3 = SWIG_AsVal_bool(obj2, &val3);
10287
+ if (!SWIG_IsOK(ecode3)) {
10288
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Nviz_LoadVector" "', argument " "3"" of type '" "bool""'");
10290
+ arg3 = static_cast< bool >(val3);
10291
+ result = (int)(arg1)->LoadVector((char const *)arg2,arg3);
10292
+ resultobj = SWIG_From_int(static_cast< int >(result));
10293
+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
10294
+ return resultobj;
10296
+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
10301
+SWIGINTERN PyObject *_wrap_Nviz_UnloadVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10302
+ PyObject *resultobj = 0;
10303
+ Nviz *arg1 = (Nviz *) 0 ;
10306
+ void *argp1 = 0 ;
10312
+ PyObject * obj0 = 0 ;
10313
+ PyObject * obj1 = 0 ;
10314
+ PyObject * obj2 = 0 ;
10317
+ if (!PyArg_ParseTuple(args,(char *)"OOO:Nviz_UnloadVector",&obj0,&obj1,&obj2)) SWIG_fail;
10318
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
10319
+ if (!SWIG_IsOK(res1)) {
10320
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_UnloadVector" "', argument " "1"" of type '" "Nviz *""'");
10322
+ arg1 = reinterpret_cast< Nviz * >(argp1);
10323
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
10324
+ if (!SWIG_IsOK(ecode2)) {
10325
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_UnloadVector" "', argument " "2"" of type '" "int""'");
10327
+ arg2 = static_cast< int >(val2);
10328
+ ecode3 = SWIG_AsVal_bool(obj2, &val3);
10329
+ if (!SWIG_IsOK(ecode3)) {
10330
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Nviz_UnloadVector" "', argument " "3"" of type '" "bool""'");
10332
+ arg3 = static_cast< bool >(val3);
10333
+ result = (int)(arg1)->UnloadVector(arg2,arg3);
10334
+ resultobj = SWIG_From_int(static_cast< int >(result));
10335
+ return resultobj;
10341
+SWIGINTERN PyObject *_wrap_Nviz_LoadVolume(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10342
+ PyObject *resultobj = 0;
10343
+ Nviz *arg1 = (Nviz *) 0 ;
10344
+ char *arg2 = (char *) 0 ;
10345
+ char *arg3 = (char *) 0 ;
10346
+ char *arg4 = (char *) 0 ;
10347
+ void *argp1 = 0 ;
10358
+ PyObject * obj0 = 0 ;
10359
+ PyObject * obj1 = 0 ;
10360
+ PyObject * obj2 = 0 ;
10361
+ PyObject * obj3 = 0 ;
10364
+ if (!PyArg_ParseTuple(args,(char *)"OOOO:Nviz_LoadVolume",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10365
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
10366
+ if (!SWIG_IsOK(res1)) {
10367
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_LoadVolume" "', argument " "1"" of type '" "Nviz *""'");
10369
+ arg1 = reinterpret_cast< Nviz * >(argp1);
10370
+ res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
10371
+ if (!SWIG_IsOK(res2)) {
10372
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Nviz_LoadVolume" "', argument " "2"" of type '" "char const *""'");
10374
+ arg2 = reinterpret_cast< char * >(buf2);
10375
+ res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
10376
+ if (!SWIG_IsOK(res3)) {
10377
+ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Nviz_LoadVolume" "', argument " "3"" of type '" "char const *""'");
10379
+ arg3 = reinterpret_cast< char * >(buf3);
10380
+ res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
10381
+ if (!SWIG_IsOK(res4)) {
10382
+ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Nviz_LoadVolume" "', argument " "4"" of type '" "char const *""'");
10384
+ arg4 = reinterpret_cast< char * >(buf4);
10385
+ result = (int)(arg1)->LoadVolume((char const *)arg2,(char const *)arg3,(char const *)arg4);
10386
+ resultobj = SWIG_From_int(static_cast< int >(result));
10387
+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
10388
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
10389
+ if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
10390
+ return resultobj;
10392
+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
10393
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
10394
+ if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
10399
+SWIGINTERN PyObject *_wrap_Nviz_UnloadVolume(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10400
+ PyObject *resultobj = 0;
10401
+ Nviz *arg1 = (Nviz *) 0 ;
10403
+ void *argp1 = 0 ;
10407
+ PyObject * obj0 = 0 ;
10408
+ PyObject * obj1 = 0 ;
10411
+ if (!PyArg_ParseTuple(args,(char *)"OO:Nviz_UnloadVolume",&obj0,&obj1)) SWIG_fail;
10412
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
10413
+ if (!SWIG_IsOK(res1)) {
10414
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_UnloadVolume" "', argument " "1"" of type '" "Nviz *""'");
10416
+ arg1 = reinterpret_cast< Nviz * >(argp1);
10417
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
10418
+ if (!SWIG_IsOK(ecode2)) {
10419
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_UnloadVolume" "', argument " "2"" of type '" "int""'");
10421
+ arg2 = static_cast< int >(val2);
10422
+ result = (int)(arg1)->UnloadVolume(arg2);
10423
+ resultobj = SWIG_From_int(static_cast< int >(result));
10424
+ return resultobj;
10430
+SWIGINTERN PyObject *_wrap_Nviz_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10431
+ PyObject *resultobj = 0;
10432
+ Nviz *arg1 = (Nviz *) 0 ;
10435
+ void *argp1 = 0 ;
10441
+ PyObject * obj0 = 0 ;
10442
+ PyObject * obj1 = 0 ;
10443
+ PyObject * obj2 = 0 ;
10445
+ if (!PyArg_ParseTuple(args,(char *)"OOO:Nviz_Draw",&obj0,&obj1,&obj2)) SWIG_fail;
10446
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
10447
+ if (!SWIG_IsOK(res1)) {
10448
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_Draw" "', argument " "1"" of type '" "Nviz *""'");
10450
+ arg1 = reinterpret_cast< Nviz * >(argp1);
10451
+ ecode2 = SWIG_AsVal_bool(obj1, &val2);
10452
+ if (!SWIG_IsOK(ecode2)) {
10453
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_Draw" "', argument " "2"" of type '" "bool""'");
10455
+ arg2 = static_cast< bool >(val2);
10456
+ ecode3 = SWIG_AsVal_int(obj2, &val3);
10457
+ if (!SWIG_IsOK(ecode3)) {
10458
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Nviz_Draw" "', argument " "3"" of type '" "int""'");
10460
+ arg3 = static_cast< int >(val3);
10461
+ (arg1)->Draw(arg2,arg3);
10462
+ resultobj = SWIG_Py_Void();
10463
+ return resultobj;
10469
+SWIGINTERN PyObject *_wrap_Nviz_EraseMap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10470
+ PyObject *resultobj = 0;
10471
+ Nviz *arg1 = (Nviz *) 0 ;
10472
+ void *argp1 = 0 ;
10474
+ PyObject * obj0 = 0 ;
10476
+ if (!PyArg_ParseTuple(args,(char *)"O:Nviz_EraseMap",&obj0)) SWIG_fail;
10477
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
10478
+ if (!SWIG_IsOK(res1)) {
10479
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_EraseMap" "', argument " "1"" of type '" "Nviz *""'");
10481
+ arg1 = reinterpret_cast< Nviz * >(argp1);
10482
+ (arg1)->EraseMap();
10483
+ resultobj = SWIG_Py_Void();
10484
+ return resultobj;
10490
+SWIGINTERN PyObject *_wrap_Nviz_SetSurfaceTopo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10491
+ PyObject *resultobj = 0;
10492
+ Nviz *arg1 = (Nviz *) 0 ;
10495
+ char *arg4 = (char *) 0 ;
10496
+ void *argp1 = 0 ;
10505
+ PyObject * obj0 = 0 ;
10506
+ PyObject * obj1 = 0 ;
10507
+ PyObject * obj2 = 0 ;
10508
+ PyObject * obj3 = 0 ;
10511
+ if (!PyArg_ParseTuple(args,(char *)"OOOO:Nviz_SetSurfaceTopo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10512
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
10513
+ if (!SWIG_IsOK(res1)) {
10514
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_SetSurfaceTopo" "', argument " "1"" of type '" "Nviz *""'");
10516
+ arg1 = reinterpret_cast< Nviz * >(argp1);
10517
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
10518
+ if (!SWIG_IsOK(ecode2)) {
10519
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_SetSurfaceTopo" "', argument " "2"" of type '" "int""'");
10521
+ arg2 = static_cast< int >(val2);
10522
+ ecode3 = SWIG_AsVal_bool(obj2, &val3);
10523
+ if (!SWIG_IsOK(ecode3)) {
10524
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Nviz_SetSurfaceTopo" "', argument " "3"" of type '" "bool""'");
10526
+ arg3 = static_cast< bool >(val3);
10527
+ res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
10528
+ if (!SWIG_IsOK(res4)) {
10529
+ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Nviz_SetSurfaceTopo" "', argument " "4"" of type '" "char const *""'");
10531
+ arg4 = reinterpret_cast< char * >(buf4);
10532
+ result = (int)(arg1)->SetSurfaceTopo(arg2,arg3,(char const *)arg4);
10533
+ resultobj = SWIG_From_int(static_cast< int >(result));
10534
+ if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
10535
+ return resultobj;
10537
+ if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
10542
+SWIGINTERN PyObject *_wrap_Nviz_SetSurfaceColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10543
+ PyObject *resultobj = 0;
10544
+ Nviz *arg1 = (Nviz *) 0 ;
10547
+ char *arg4 = (char *) 0 ;
10548
+ void *argp1 = 0 ;
10557
+ PyObject * obj0 = 0 ;
10558
+ PyObject * obj1 = 0 ;
10559
+ PyObject * obj2 = 0 ;
10560
+ PyObject * obj3 = 0 ;
10563
+ if (!PyArg_ParseTuple(args,(char *)"OOOO:Nviz_SetSurfaceColor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10564
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
10565
+ if (!SWIG_IsOK(res1)) {
10566
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_SetSurfaceColor" "', argument " "1"" of type '" "Nviz *""'");
10568
+ arg1 = reinterpret_cast< Nviz * >(argp1);
10569
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
10570
+ if (!SWIG_IsOK(ecode2)) {
10571
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_SetSurfaceColor" "', argument " "2"" of type '" "int""'");
10573
+ arg2 = static_cast< int >(val2);
10574
+ ecode3 = SWIG_AsVal_bool(obj2, &val3);
10575
+ if (!SWIG_IsOK(ecode3)) {
10576
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Nviz_SetSurfaceColor" "', argument " "3"" of type '" "bool""'");
10578
+ arg3 = static_cast< bool >(val3);
10579
+ res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
10580
+ if (!SWIG_IsOK(res4)) {
10581
+ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Nviz_SetSurfaceColor" "', argument " "4"" of type '" "char const *""'");
10583
+ arg4 = reinterpret_cast< char * >(buf4);
10584
+ result = (int)(arg1)->SetSurfaceColor(arg2,arg3,(char const *)arg4);
10585
+ resultobj = SWIG_From_int(static_cast< int >(result));
10586
+ if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
10587
+ return resultobj;
10589
+ if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
10594
+SWIGINTERN PyObject *_wrap_Nviz_SetSurfaceMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10595
+ PyObject *resultobj = 0;
10596
+ Nviz *arg1 = (Nviz *) 0 ;
10599
+ char *arg4 = (char *) 0 ;
10600
+ void *argp1 = 0 ;
10609
+ PyObject * obj0 = 0 ;
10610
+ PyObject * obj1 = 0 ;
10611
+ PyObject * obj2 = 0 ;
10612
+ PyObject * obj3 = 0 ;
10615
+ if (!PyArg_ParseTuple(args,(char *)"OOOO:Nviz_SetSurfaceMask",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10616
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
10617
+ if (!SWIG_IsOK(res1)) {
10618
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_SetSurfaceMask" "', argument " "1"" of type '" "Nviz *""'");
10620
+ arg1 = reinterpret_cast< Nviz * >(argp1);
10621
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
10622
+ if (!SWIG_IsOK(ecode2)) {
10623
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_SetSurfaceMask" "', argument " "2"" of type '" "int""'");
10625
+ arg2 = static_cast< int >(val2);
10626
+ ecode3 = SWIG_AsVal_bool(obj2, &val3);
10627
+ if (!SWIG_IsOK(ecode3)) {
10628
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Nviz_SetSurfaceMask" "', argument " "3"" of type '" "bool""'");
10630
+ arg3 = static_cast< bool >(val3);
10631
+ res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
10632
+ if (!SWIG_IsOK(res4)) {
10633
+ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Nviz_SetSurfaceMask" "', argument " "4"" of type '" "char const *""'");
10635
+ arg4 = reinterpret_cast< char * >(buf4);
10636
+ result = (int)(arg1)->SetSurfaceMask(arg2,arg3,(char const *)arg4);
10637
+ resultobj = SWIG_From_int(static_cast< int >(result));
10638
+ if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
10639
+ return resultobj;
10641
+ if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
10646
+SWIGINTERN PyObject *_wrap_Nviz_SetSurfaceTransp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10647
+ PyObject *resultobj = 0;
10648
+ Nviz *arg1 = (Nviz *) 0 ;
10651
+ char *arg4 = (char *) 0 ;
10652
+ void *argp1 = 0 ;
10661
+ PyObject * obj0 = 0 ;
10662
+ PyObject * obj1 = 0 ;
10663
+ PyObject * obj2 = 0 ;
10664
+ PyObject * obj3 = 0 ;
10667
+ if (!PyArg_ParseTuple(args,(char *)"OOOO:Nviz_SetSurfaceTransp",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10668
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
10669
+ if (!SWIG_IsOK(res1)) {
10670
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_SetSurfaceTransp" "', argument " "1"" of type '" "Nviz *""'");
10672
+ arg1 = reinterpret_cast< Nviz * >(argp1);
10673
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
10674
+ if (!SWIG_IsOK(ecode2)) {
10675
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_SetSurfaceTransp" "', argument " "2"" of type '" "int""'");
10677
+ arg2 = static_cast< int >(val2);
10678
+ ecode3 = SWIG_AsVal_bool(obj2, &val3);
10679
+ if (!SWIG_IsOK(ecode3)) {
10680
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Nviz_SetSurfaceTransp" "', argument " "3"" of type '" "bool""'");
10682
+ arg3 = static_cast< bool >(val3);
10683
+ res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
10684
+ if (!SWIG_IsOK(res4)) {
10685
+ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Nviz_SetSurfaceTransp" "', argument " "4"" of type '" "char const *""'");
10687
+ arg4 = reinterpret_cast< char * >(buf4);
10688
+ result = (int)(arg1)->SetSurfaceTransp(arg2,arg3,(char const *)arg4);
10689
+ resultobj = SWIG_From_int(static_cast< int >(result));
10690
+ if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
10691
+ return resultobj;
10693
+ if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
10698
+SWIGINTERN PyObject *_wrap_Nviz_SetSurfaceShine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10699
+ PyObject *resultobj = 0;
10700
+ Nviz *arg1 = (Nviz *) 0 ;
10703
+ char *arg4 = (char *) 0 ;
10704
+ void *argp1 = 0 ;
10713
+ PyObject * obj0 = 0 ;
10714
+ PyObject * obj1 = 0 ;
10715
+ PyObject * obj2 = 0 ;
10716
+ PyObject * obj3 = 0 ;
10719
+ if (!PyArg_ParseTuple(args,(char *)"OOOO:Nviz_SetSurfaceShine",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10720
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
10721
+ if (!SWIG_IsOK(res1)) {
10722
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_SetSurfaceShine" "', argument " "1"" of type '" "Nviz *""'");
10724
+ arg1 = reinterpret_cast< Nviz * >(argp1);
10725
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
10726
+ if (!SWIG_IsOK(ecode2)) {
10727
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_SetSurfaceShine" "', argument " "2"" of type '" "int""'");
10729
+ arg2 = static_cast< int >(val2);
10730
+ ecode3 = SWIG_AsVal_bool(obj2, &val3);
10731
+ if (!SWIG_IsOK(ecode3)) {
10732
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Nviz_SetSurfaceShine" "', argument " "3"" of type '" "bool""'");
10734
+ arg3 = static_cast< bool >(val3);
10735
+ res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
10736
+ if (!SWIG_IsOK(res4)) {
10737
+ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Nviz_SetSurfaceShine" "', argument " "4"" of type '" "char const *""'");
10739
+ arg4 = reinterpret_cast< char * >(buf4);
10740
+ result = (int)(arg1)->SetSurfaceShine(arg2,arg3,(char const *)arg4);
10741
+ resultobj = SWIG_From_int(static_cast< int >(result));
10742
+ if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
10743
+ return resultobj;
10745
+ if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
10750
+SWIGINTERN PyObject *_wrap_Nviz_SetSurfaceEmit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10751
+ PyObject *resultobj = 0;
10752
+ Nviz *arg1 = (Nviz *) 0 ;
10755
+ char *arg4 = (char *) 0 ;
10756
+ void *argp1 = 0 ;
10765
+ PyObject * obj0 = 0 ;
10766
+ PyObject * obj1 = 0 ;
10767
+ PyObject * obj2 = 0 ;
10768
+ PyObject * obj3 = 0 ;
10771
+ if (!PyArg_ParseTuple(args,(char *)"OOOO:Nviz_SetSurfaceEmit",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10772
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
10773
+ if (!SWIG_IsOK(res1)) {
10774
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_SetSurfaceEmit" "', argument " "1"" of type '" "Nviz *""'");
10776
+ arg1 = reinterpret_cast< Nviz * >(argp1);
10777
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
10778
+ if (!SWIG_IsOK(ecode2)) {
10779
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_SetSurfaceEmit" "', argument " "2"" of type '" "int""'");
10781
+ arg2 = static_cast< int >(val2);
10782
+ ecode3 = SWIG_AsVal_bool(obj2, &val3);
10783
+ if (!SWIG_IsOK(ecode3)) {
10784
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Nviz_SetSurfaceEmit" "', argument " "3"" of type '" "bool""'");
10786
+ arg3 = static_cast< bool >(val3);
10787
+ res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
10788
+ if (!SWIG_IsOK(res4)) {
10789
+ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Nviz_SetSurfaceEmit" "', argument " "4"" of type '" "char const *""'");
10791
+ arg4 = reinterpret_cast< char * >(buf4);
10792
+ result = (int)(arg1)->SetSurfaceEmit(arg2,arg3,(char const *)arg4);
10793
+ resultobj = SWIG_From_int(static_cast< int >(result));
10794
+ if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
10795
+ return resultobj;
10797
+ if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
10802
+SWIGINTERN PyObject *_wrap_Nviz_UnsetSurfaceMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10803
+ PyObject *resultobj = 0;
10804
+ Nviz *arg1 = (Nviz *) 0 ;
10806
+ void *argp1 = 0 ;
10810
+ PyObject * obj0 = 0 ;
10811
+ PyObject * obj1 = 0 ;
10814
+ if (!PyArg_ParseTuple(args,(char *)"OO:Nviz_UnsetSurfaceMask",&obj0,&obj1)) SWIG_fail;
10815
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
10816
+ if (!SWIG_IsOK(res1)) {
10817
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_UnsetSurfaceMask" "', argument " "1"" of type '" "Nviz *""'");
10819
+ arg1 = reinterpret_cast< Nviz * >(argp1);
10820
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
10821
+ if (!SWIG_IsOK(ecode2)) {
10822
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_UnsetSurfaceMask" "', argument " "2"" of type '" "int""'");
10824
+ arg2 = static_cast< int >(val2);
10825
+ result = (int)(arg1)->UnsetSurfaceMask(arg2);
10826
+ resultobj = SWIG_From_int(static_cast< int >(result));
10827
+ return resultobj;
10833
+SWIGINTERN PyObject *_wrap_Nviz_UnsetSurfaceTransp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10834
+ PyObject *resultobj = 0;
10835
+ Nviz *arg1 = (Nviz *) 0 ;
10837
+ void *argp1 = 0 ;
10841
+ PyObject * obj0 = 0 ;
10842
+ PyObject * obj1 = 0 ;
10845
+ if (!PyArg_ParseTuple(args,(char *)"OO:Nviz_UnsetSurfaceTransp",&obj0,&obj1)) SWIG_fail;
10846
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
10847
+ if (!SWIG_IsOK(res1)) {
10848
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_UnsetSurfaceTransp" "', argument " "1"" of type '" "Nviz *""'");
10850
+ arg1 = reinterpret_cast< Nviz * >(argp1);
10851
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
10852
+ if (!SWIG_IsOK(ecode2)) {
10853
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_UnsetSurfaceTransp" "', argument " "2"" of type '" "int""'");
10855
+ arg2 = static_cast< int >(val2);
10856
+ result = (int)(arg1)->UnsetSurfaceTransp(arg2);
10857
+ resultobj = SWIG_From_int(static_cast< int >(result));
10858
+ return resultobj;
10864
+SWIGINTERN PyObject *_wrap_Nviz_UnsetSurfaceEmit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10865
+ PyObject *resultobj = 0;
10866
+ Nviz *arg1 = (Nviz *) 0 ;
10868
+ void *argp1 = 0 ;
10872
+ PyObject * obj0 = 0 ;
10873
+ PyObject * obj1 = 0 ;
10876
+ if (!PyArg_ParseTuple(args,(char *)"OO:Nviz_UnsetSurfaceEmit",&obj0,&obj1)) SWIG_fail;
10877
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
10878
+ if (!SWIG_IsOK(res1)) {
10879
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_UnsetSurfaceEmit" "', argument " "1"" of type '" "Nviz *""'");
10881
+ arg1 = reinterpret_cast< Nviz * >(argp1);
10882
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
10883
+ if (!SWIG_IsOK(ecode2)) {
10884
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_UnsetSurfaceEmit" "', argument " "2"" of type '" "int""'");
10886
+ arg2 = static_cast< int >(val2);
10887
+ result = (int)(arg1)->UnsetSurfaceEmit(arg2);
10888
+ resultobj = SWIG_From_int(static_cast< int >(result));
10889
+ return resultobj;
10895
+SWIGINTERN PyObject *_wrap_Nviz_SetSurfaceRes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10896
+ PyObject *resultobj = 0;
10897
+ Nviz *arg1 = (Nviz *) 0 ;
10901
+ void *argp1 = 0 ;
10909
+ PyObject * obj0 = 0 ;
10910
+ PyObject * obj1 = 0 ;
10911
+ PyObject * obj2 = 0 ;
10912
+ PyObject * obj3 = 0 ;
10915
+ if (!PyArg_ParseTuple(args,(char *)"OOOO:Nviz_SetSurfaceRes",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10916
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
10917
+ if (!SWIG_IsOK(res1)) {
10918
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_SetSurfaceRes" "', argument " "1"" of type '" "Nviz *""'");
10920
+ arg1 = reinterpret_cast< Nviz * >(argp1);
10921
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
10922
+ if (!SWIG_IsOK(ecode2)) {
10923
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_SetSurfaceRes" "', argument " "2"" of type '" "int""'");
10925
+ arg2 = static_cast< int >(val2);
10926
+ ecode3 = SWIG_AsVal_int(obj2, &val3);
10927
+ if (!SWIG_IsOK(ecode3)) {
10928
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Nviz_SetSurfaceRes" "', argument " "3"" of type '" "int""'");
10930
+ arg3 = static_cast< int >(val3);
10931
+ ecode4 = SWIG_AsVal_int(obj3, &val4);
10932
+ if (!SWIG_IsOK(ecode4)) {
10933
+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Nviz_SetSurfaceRes" "', argument " "4"" of type '" "int""'");
10935
+ arg4 = static_cast< int >(val4);
10936
+ result = (int)(arg1)->SetSurfaceRes(arg2,arg3,arg4);
10937
+ resultobj = SWIG_From_int(static_cast< int >(result));
10938
+ return resultobj;
10944
+SWIGINTERN PyObject *_wrap_Nviz_SetSurfaceStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10945
+ PyObject *resultobj = 0;
10946
+ Nviz *arg1 = (Nviz *) 0 ;
10949
+ void *argp1 = 0 ;
10955
+ PyObject * obj0 = 0 ;
10956
+ PyObject * obj1 = 0 ;
10957
+ PyObject * obj2 = 0 ;
10960
+ if (!PyArg_ParseTuple(args,(char *)"OOO:Nviz_SetSurfaceStyle",&obj0,&obj1,&obj2)) SWIG_fail;
10961
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
10962
+ if (!SWIG_IsOK(res1)) {
10963
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_SetSurfaceStyle" "', argument " "1"" of type '" "Nviz *""'");
10965
+ arg1 = reinterpret_cast< Nviz * >(argp1);
10966
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
10967
+ if (!SWIG_IsOK(ecode2)) {
10968
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_SetSurfaceStyle" "', argument " "2"" of type '" "int""'");
10970
+ arg2 = static_cast< int >(val2);
10971
+ ecode3 = SWIG_AsVal_int(obj2, &val3);
10972
+ if (!SWIG_IsOK(ecode3)) {
10973
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Nviz_SetSurfaceStyle" "', argument " "3"" of type '" "int""'");
10975
+ arg3 = static_cast< int >(val3);
10976
+ result = (int)(arg1)->SetSurfaceStyle(arg2,arg3);
10977
+ resultobj = SWIG_From_int(static_cast< int >(result));
10978
+ return resultobj;
10984
+SWIGINTERN PyObject *_wrap_Nviz_SetWireColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10985
+ PyObject *resultobj = 0;
10986
+ Nviz *arg1 = (Nviz *) 0 ;
10988
+ char *arg3 = (char *) 0 ;
10989
+ void *argp1 = 0 ;
10996
+ PyObject * obj0 = 0 ;
10997
+ PyObject * obj1 = 0 ;
10998
+ PyObject * obj2 = 0 ;
11001
+ if (!PyArg_ParseTuple(args,(char *)"OOO:Nviz_SetWireColor",&obj0,&obj1,&obj2)) SWIG_fail;
11002
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
11003
+ if (!SWIG_IsOK(res1)) {
11004
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_SetWireColor" "', argument " "1"" of type '" "Nviz *""'");
11006
+ arg1 = reinterpret_cast< Nviz * >(argp1);
11007
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
11008
+ if (!SWIG_IsOK(ecode2)) {
11009
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_SetWireColor" "', argument " "2"" of type '" "int""'");
11011
+ arg2 = static_cast< int >(val2);
11012
+ res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
11013
+ if (!SWIG_IsOK(res3)) {
11014
+ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Nviz_SetWireColor" "', argument " "3"" of type '" "char const *""'");
11016
+ arg3 = reinterpret_cast< char * >(buf3);
11017
+ result = (int)(arg1)->SetWireColor(arg2,(char const *)arg3);
11018
+ resultobj = SWIG_From_int(static_cast< int >(result));
11019
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
11020
+ return resultobj;
11022
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
11027
+SWIGINTERN PyObject *_wrap_Nviz_GetSurfacePosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11028
+ PyObject *resultobj = 0;
11029
+ Nviz *arg1 = (Nviz *) 0 ;
11031
+ void *argp1 = 0 ;
11035
+ PyObject * obj0 = 0 ;
11036
+ PyObject * obj1 = 0 ;
11037
+ std::vector< double,std::allocator< double > > result;
11039
+ if (!PyArg_ParseTuple(args,(char *)"OO:Nviz_GetSurfacePosition",&obj0,&obj1)) SWIG_fail;
11040
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
11041
+ if (!SWIG_IsOK(res1)) {
11042
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_GetSurfacePosition" "', argument " "1"" of type '" "Nviz *""'");
11044
+ arg1 = reinterpret_cast< Nviz * >(argp1);
11045
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
11046
+ if (!SWIG_IsOK(ecode2)) {
11047
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_GetSurfacePosition" "', argument " "2"" of type '" "int""'");
11049
+ arg2 = static_cast< int >(val2);
11050
+ result = (arg1)->GetSurfacePosition(arg2);
11051
+ resultobj = swig::from(static_cast< std::vector<double,std::allocator< double > > >(result));
11052
+ return resultobj;
11058
+SWIGINTERN PyObject *_wrap_Nviz_SetSurfacePosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11059
+ PyObject *resultobj = 0;
11060
+ Nviz *arg1 = (Nviz *) 0 ;
11065
+ void *argp1 = 0 ;
11075
+ PyObject * obj0 = 0 ;
11076
+ PyObject * obj1 = 0 ;
11077
+ PyObject * obj2 = 0 ;
11078
+ PyObject * obj3 = 0 ;
11079
+ PyObject * obj4 = 0 ;
11082
+ if (!PyArg_ParseTuple(args,(char *)"OOOOO:Nviz_SetSurfacePosition",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11083
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
11084
+ if (!SWIG_IsOK(res1)) {
11085
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_SetSurfacePosition" "', argument " "1"" of type '" "Nviz *""'");
11087
+ arg1 = reinterpret_cast< Nviz * >(argp1);
11088
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
11089
+ if (!SWIG_IsOK(ecode2)) {
11090
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_SetSurfacePosition" "', argument " "2"" of type '" "int""'");
11092
+ arg2 = static_cast< int >(val2);
11093
+ ecode3 = SWIG_AsVal_float(obj2, &val3);
11094
+ if (!SWIG_IsOK(ecode3)) {
11095
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Nviz_SetSurfacePosition" "', argument " "3"" of type '" "float""'");
11097
+ arg3 = static_cast< float >(val3);
11098
+ ecode4 = SWIG_AsVal_float(obj3, &val4);
11099
+ if (!SWIG_IsOK(ecode4)) {
11100
+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Nviz_SetSurfacePosition" "', argument " "4"" of type '" "float""'");
11102
+ arg4 = static_cast< float >(val4);
11103
+ ecode5 = SWIG_AsVal_float(obj4, &val5);
11104
+ if (!SWIG_IsOK(ecode5)) {
11105
+ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Nviz_SetSurfacePosition" "', argument " "5"" of type '" "float""'");
11107
+ arg5 = static_cast< float >(val5);
11108
+ result = (int)(arg1)->SetSurfacePosition(arg2,arg3,arg4,arg5);
11109
+ resultobj = SWIG_From_int(static_cast< int >(result));
11110
+ return resultobj;
11116
+SWIGINTERN PyObject *_wrap_Nviz_SetVectorLineMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11117
+ PyObject *resultobj = 0;
11118
+ Nviz *arg1 = (Nviz *) 0 ;
11120
+ char *arg3 = (char *) 0 ;
11123
+ void *argp1 = 0 ;
11134
+ PyObject * obj0 = 0 ;
11135
+ PyObject * obj1 = 0 ;
11136
+ PyObject * obj2 = 0 ;
11137
+ PyObject * obj3 = 0 ;
11138
+ PyObject * obj4 = 0 ;
11141
+ if (!PyArg_ParseTuple(args,(char *)"OOOOO:Nviz_SetVectorLineMode",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11142
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
11143
+ if (!SWIG_IsOK(res1)) {
11144
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_SetVectorLineMode" "', argument " "1"" of type '" "Nviz *""'");
11146
+ arg1 = reinterpret_cast< Nviz * >(argp1);
11147
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
11148
+ if (!SWIG_IsOK(ecode2)) {
11149
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_SetVectorLineMode" "', argument " "2"" of type '" "int""'");
11151
+ arg2 = static_cast< int >(val2);
11152
+ res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
11153
+ if (!SWIG_IsOK(res3)) {
11154
+ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Nviz_SetVectorLineMode" "', argument " "3"" of type '" "char const *""'");
11156
+ arg3 = reinterpret_cast< char * >(buf3);
11157
+ ecode4 = SWIG_AsVal_int(obj3, &val4);
11158
+ if (!SWIG_IsOK(ecode4)) {
11159
+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Nviz_SetVectorLineMode" "', argument " "4"" of type '" "int""'");
11161
+ arg4 = static_cast< int >(val4);
11162
+ ecode5 = SWIG_AsVal_int(obj4, &val5);
11163
+ if (!SWIG_IsOK(ecode5)) {
11164
+ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Nviz_SetVectorLineMode" "', argument " "5"" of type '" "int""'");
11166
+ arg5 = static_cast< int >(val5);
11167
+ result = (int)(arg1)->SetVectorLineMode(arg2,(char const *)arg3,arg4,arg5);
11168
+ resultobj = SWIG_From_int(static_cast< int >(result));
11169
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
11170
+ return resultobj;
11172
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
11177
+SWIGINTERN PyObject *_wrap_Nviz_SetVectorLineHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11178
+ PyObject *resultobj = 0;
11179
+ Nviz *arg1 = (Nviz *) 0 ;
11182
+ void *argp1 = 0 ;
11188
+ PyObject * obj0 = 0 ;
11189
+ PyObject * obj1 = 0 ;
11190
+ PyObject * obj2 = 0 ;
11193
+ if (!PyArg_ParseTuple(args,(char *)"OOO:Nviz_SetVectorLineHeight",&obj0,&obj1,&obj2)) SWIG_fail;
11194
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
11195
+ if (!SWIG_IsOK(res1)) {
11196
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_SetVectorLineHeight" "', argument " "1"" of type '" "Nviz *""'");
11198
+ arg1 = reinterpret_cast< Nviz * >(argp1);
11199
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
11200
+ if (!SWIG_IsOK(ecode2)) {
11201
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_SetVectorLineHeight" "', argument " "2"" of type '" "int""'");
11203
+ arg2 = static_cast< int >(val2);
11204
+ ecode3 = SWIG_AsVal_float(obj2, &val3);
11205
+ if (!SWIG_IsOK(ecode3)) {
11206
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Nviz_SetVectorLineHeight" "', argument " "3"" of type '" "float""'");
11208
+ arg3 = static_cast< float >(val3);
11209
+ result = (int)(arg1)->SetVectorLineHeight(arg2,arg3);
11210
+ resultobj = SWIG_From_int(static_cast< int >(result));
11211
+ return resultobj;
11217
+SWIGINTERN PyObject *_wrap_Nviz_SetVectorLineSurface(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11218
+ PyObject *resultobj = 0;
11219
+ Nviz *arg1 = (Nviz *) 0 ;
11222
+ void *argp1 = 0 ;
11228
+ PyObject * obj0 = 0 ;
11229
+ PyObject * obj1 = 0 ;
11230
+ PyObject * obj2 = 0 ;
11233
+ if (!PyArg_ParseTuple(args,(char *)"OOO:Nviz_SetVectorLineSurface",&obj0,&obj1,&obj2)) SWIG_fail;
11234
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
11235
+ if (!SWIG_IsOK(res1)) {
11236
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_SetVectorLineSurface" "', argument " "1"" of type '" "Nviz *""'");
11238
+ arg1 = reinterpret_cast< Nviz * >(argp1);
11239
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
11240
+ if (!SWIG_IsOK(ecode2)) {
11241
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_SetVectorLineSurface" "', argument " "2"" of type '" "int""'");
11243
+ arg2 = static_cast< int >(val2);
11244
+ ecode3 = SWIG_AsVal_int(obj2, &val3);
11245
+ if (!SWIG_IsOK(ecode3)) {
11246
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Nviz_SetVectorLineSurface" "', argument " "3"" of type '" "int""'");
11248
+ arg3 = static_cast< int >(val3);
11249
+ result = (int)(arg1)->SetVectorLineSurface(arg2,arg3);
11250
+ resultobj = SWIG_From_int(static_cast< int >(result));
11251
+ return resultobj;
11257
+SWIGINTERN PyObject *_wrap_Nviz_SetVectorPointMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11258
+ PyObject *resultobj = 0;
11259
+ Nviz *arg1 = (Nviz *) 0 ;
11261
+ char *arg3 = (char *) 0 ;
11265
+ void *argp1 = 0 ;
11278
+ PyObject * obj0 = 0 ;
11279
+ PyObject * obj1 = 0 ;
11280
+ PyObject * obj2 = 0 ;
11281
+ PyObject * obj3 = 0 ;
11282
+ PyObject * obj4 = 0 ;
11283
+ PyObject * obj5 = 0 ;
11286
+ if (!PyArg_ParseTuple(args,(char *)"OOOOOO:Nviz_SetVectorPointMode",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
11287
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
11288
+ if (!SWIG_IsOK(res1)) {
11289
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_SetVectorPointMode" "', argument " "1"" of type '" "Nviz *""'");
11291
+ arg1 = reinterpret_cast< Nviz * >(argp1);
11292
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
11293
+ if (!SWIG_IsOK(ecode2)) {
11294
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_SetVectorPointMode" "', argument " "2"" of type '" "int""'");
11296
+ arg2 = static_cast< int >(val2);
11297
+ res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
11298
+ if (!SWIG_IsOK(res3)) {
11299
+ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Nviz_SetVectorPointMode" "', argument " "3"" of type '" "char const *""'");
11301
+ arg3 = reinterpret_cast< char * >(buf3);
11302
+ ecode4 = SWIG_AsVal_int(obj3, &val4);
11303
+ if (!SWIG_IsOK(ecode4)) {
11304
+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Nviz_SetVectorPointMode" "', argument " "4"" of type '" "int""'");
11306
+ arg4 = static_cast< int >(val4);
11307
+ ecode5 = SWIG_AsVal_float(obj4, &val5);
11308
+ if (!SWIG_IsOK(ecode5)) {
11309
+ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Nviz_SetVectorPointMode" "', argument " "5"" of type '" "float""'");
11311
+ arg5 = static_cast< float >(val5);
11312
+ ecode6 = SWIG_AsVal_int(obj5, &val6);
11313
+ if (!SWIG_IsOK(ecode6)) {
11314
+ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Nviz_SetVectorPointMode" "', argument " "6"" of type '" "int""'");
11316
+ arg6 = static_cast< int >(val6);
11317
+ result = (int)(arg1)->SetVectorPointMode(arg2,(char const *)arg3,arg4,arg5,arg6);
11318
+ resultobj = SWIG_From_int(static_cast< int >(result));
11319
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
11320
+ return resultobj;
11322
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
11327
+SWIGINTERN PyObject *_wrap_Nviz_SetVectorPointHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11328
+ PyObject *resultobj = 0;
11329
+ Nviz *arg1 = (Nviz *) 0 ;
11332
+ void *argp1 = 0 ;
11338
+ PyObject * obj0 = 0 ;
11339
+ PyObject * obj1 = 0 ;
11340
+ PyObject * obj2 = 0 ;
11343
+ if (!PyArg_ParseTuple(args,(char *)"OOO:Nviz_SetVectorPointHeight",&obj0,&obj1,&obj2)) SWIG_fail;
11344
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
11345
+ if (!SWIG_IsOK(res1)) {
11346
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_SetVectorPointHeight" "', argument " "1"" of type '" "Nviz *""'");
11348
+ arg1 = reinterpret_cast< Nviz * >(argp1);
11349
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
11350
+ if (!SWIG_IsOK(ecode2)) {
11351
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_SetVectorPointHeight" "', argument " "2"" of type '" "int""'");
11353
+ arg2 = static_cast< int >(val2);
11354
+ ecode3 = SWIG_AsVal_float(obj2, &val3);
11355
+ if (!SWIG_IsOK(ecode3)) {
11356
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Nviz_SetVectorPointHeight" "', argument " "3"" of type '" "float""'");
11358
+ arg3 = static_cast< float >(val3);
11359
+ result = (int)(arg1)->SetVectorPointHeight(arg2,arg3);
11360
+ resultobj = SWIG_From_int(static_cast< int >(result));
11361
+ return resultobj;
11367
+SWIGINTERN PyObject *_wrap_Nviz_SetVectorPointSurface(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11368
+ PyObject *resultobj = 0;
11369
+ Nviz *arg1 = (Nviz *) 0 ;
11372
+ void *argp1 = 0 ;
11378
+ PyObject * obj0 = 0 ;
11379
+ PyObject * obj1 = 0 ;
11380
+ PyObject * obj2 = 0 ;
11383
+ if (!PyArg_ParseTuple(args,(char *)"OOO:Nviz_SetVectorPointSurface",&obj0,&obj1,&obj2)) SWIG_fail;
11384
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
11385
+ if (!SWIG_IsOK(res1)) {
11386
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_SetVectorPointSurface" "', argument " "1"" of type '" "Nviz *""'");
11388
+ arg1 = reinterpret_cast< Nviz * >(argp1);
11389
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
11390
+ if (!SWIG_IsOK(ecode2)) {
11391
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_SetVectorPointSurface" "', argument " "2"" of type '" "int""'");
11393
+ arg2 = static_cast< int >(val2);
11394
+ ecode3 = SWIG_AsVal_int(obj2, &val3);
11395
+ if (!SWIG_IsOK(ecode3)) {
11396
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Nviz_SetVectorPointSurface" "', argument " "3"" of type '" "int""'");
11398
+ arg3 = static_cast< int >(val3);
11399
+ result = (int)(arg1)->SetVectorPointSurface(arg2,arg3);
11400
+ resultobj = SWIG_From_int(static_cast< int >(result));
11401
+ return resultobj;
11407
+SWIGINTERN PyObject *_wrap_Nviz_AddIsosurface(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11408
+ PyObject *resultobj = 0;
11409
+ Nviz *arg1 = (Nviz *) 0 ;
11412
+ void *argp1 = 0 ;
11418
+ PyObject * obj0 = 0 ;
11419
+ PyObject * obj1 = 0 ;
11420
+ PyObject * obj2 = 0 ;
11423
+ if (!PyArg_ParseTuple(args,(char *)"OOO:Nviz_AddIsosurface",&obj0,&obj1,&obj2)) SWIG_fail;
11424
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
11425
+ if (!SWIG_IsOK(res1)) {
11426
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_AddIsosurface" "', argument " "1"" of type '" "Nviz *""'");
11428
+ arg1 = reinterpret_cast< Nviz * >(argp1);
11429
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
11430
+ if (!SWIG_IsOK(ecode2)) {
11431
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_AddIsosurface" "', argument " "2"" of type '" "int""'");
11433
+ arg2 = static_cast< int >(val2);
11434
+ ecode3 = SWIG_AsVal_int(obj2, &val3);
11435
+ if (!SWIG_IsOK(ecode3)) {
11436
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Nviz_AddIsosurface" "', argument " "3"" of type '" "int""'");
11438
+ arg3 = static_cast< int >(val3);
11439
+ result = (int)(arg1)->AddIsosurface(arg2,arg3);
11440
+ resultobj = SWIG_From_int(static_cast< int >(result));
11441
+ return resultobj;
11447
+SWIGINTERN PyObject *_wrap_Nviz_DeleteIsosurface(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11448
+ PyObject *resultobj = 0;
11449
+ Nviz *arg1 = (Nviz *) 0 ;
11452
+ void *argp1 = 0 ;
11458
+ PyObject * obj0 = 0 ;
11459
+ PyObject * obj1 = 0 ;
11460
+ PyObject * obj2 = 0 ;
11463
+ if (!PyArg_ParseTuple(args,(char *)"OOO:Nviz_DeleteIsosurface",&obj0,&obj1,&obj2)) SWIG_fail;
11464
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
11465
+ if (!SWIG_IsOK(res1)) {
11466
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_DeleteIsosurface" "', argument " "1"" of type '" "Nviz *""'");
11468
+ arg1 = reinterpret_cast< Nviz * >(argp1);
11469
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
11470
+ if (!SWIG_IsOK(ecode2)) {
11471
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_DeleteIsosurface" "', argument " "2"" of type '" "int""'");
11473
+ arg2 = static_cast< int >(val2);
11474
+ ecode3 = SWIG_AsVal_int(obj2, &val3);
11475
+ if (!SWIG_IsOK(ecode3)) {
11476
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Nviz_DeleteIsosurface" "', argument " "3"" of type '" "int""'");
11478
+ arg3 = static_cast< int >(val3);
11479
+ result = (int)(arg1)->DeleteIsosurface(arg2,arg3);
11480
+ resultobj = SWIG_From_int(static_cast< int >(result));
11481
+ return resultobj;
11487
+SWIGINTERN PyObject *_wrap_Nviz_MoveIsosurface(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11488
+ PyObject *resultobj = 0;
11489
+ Nviz *arg1 = (Nviz *) 0 ;
11493
+ void *argp1 = 0 ;
11501
+ PyObject * obj0 = 0 ;
11502
+ PyObject * obj1 = 0 ;
11503
+ PyObject * obj2 = 0 ;
11504
+ PyObject * obj3 = 0 ;
11507
+ if (!PyArg_ParseTuple(args,(char *)"OOOO:Nviz_MoveIsosurface",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11508
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
11509
+ if (!SWIG_IsOK(res1)) {
11510
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_MoveIsosurface" "', argument " "1"" of type '" "Nviz *""'");
11512
+ arg1 = reinterpret_cast< Nviz * >(argp1);
11513
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
11514
+ if (!SWIG_IsOK(ecode2)) {
11515
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_MoveIsosurface" "', argument " "2"" of type '" "int""'");
11517
+ arg2 = static_cast< int >(val2);
11518
+ ecode3 = SWIG_AsVal_int(obj2, &val3);
11519
+ if (!SWIG_IsOK(ecode3)) {
11520
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Nviz_MoveIsosurface" "', argument " "3"" of type '" "int""'");
11522
+ arg3 = static_cast< int >(val3);
11523
+ ecode4 = SWIG_AsVal_bool(obj3, &val4);
11524
+ if (!SWIG_IsOK(ecode4)) {
11525
+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Nviz_MoveIsosurface" "', argument " "4"" of type '" "bool""'");
11527
+ arg4 = static_cast< bool >(val4);
11528
+ result = (int)(arg1)->MoveIsosurface(arg2,arg3,arg4);
11529
+ resultobj = SWIG_From_int(static_cast< int >(result));
11530
+ return resultobj;
11536
+SWIGINTERN PyObject *_wrap_Nviz_SetIsosurfaceColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11537
+ PyObject *resultobj = 0;
11538
+ Nviz *arg1 = (Nviz *) 0 ;
11542
+ char *arg5 = (char *) 0 ;
11543
+ void *argp1 = 0 ;
11554
+ PyObject * obj0 = 0 ;
11555
+ PyObject * obj1 = 0 ;
11556
+ PyObject * obj2 = 0 ;
11557
+ PyObject * obj3 = 0 ;
11558
+ PyObject * obj4 = 0 ;
11561
+ if (!PyArg_ParseTuple(args,(char *)"OOOOO:Nviz_SetIsosurfaceColor",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11562
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
11563
+ if (!SWIG_IsOK(res1)) {
11564
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_SetIsosurfaceColor" "', argument " "1"" of type '" "Nviz *""'");
11566
+ arg1 = reinterpret_cast< Nviz * >(argp1);
11567
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
11568
+ if (!SWIG_IsOK(ecode2)) {
11569
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_SetIsosurfaceColor" "', argument " "2"" of type '" "int""'");
11571
+ arg2 = static_cast< int >(val2);
11572
+ ecode3 = SWIG_AsVal_int(obj2, &val3);
11573
+ if (!SWIG_IsOK(ecode3)) {
11574
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Nviz_SetIsosurfaceColor" "', argument " "3"" of type '" "int""'");
11576
+ arg3 = static_cast< int >(val3);
11577
+ ecode4 = SWIG_AsVal_bool(obj3, &val4);
11578
+ if (!SWIG_IsOK(ecode4)) {
11579
+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Nviz_SetIsosurfaceColor" "', argument " "4"" of type '" "bool""'");
11581
+ arg4 = static_cast< bool >(val4);
11582
+ res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5);
11583
+ if (!SWIG_IsOK(res5)) {
11584
+ SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Nviz_SetIsosurfaceColor" "', argument " "5"" of type '" "char const *""'");
11586
+ arg5 = reinterpret_cast< char * >(buf5);
11587
+ result = (int)(arg1)->SetIsosurfaceColor(arg2,arg3,arg4,(char const *)arg5);
11588
+ resultobj = SWIG_From_int(static_cast< int >(result));
11589
+ if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
11590
+ return resultobj;
11592
+ if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
11597
+SWIGINTERN PyObject *_wrap_Nviz_SetIsosurfaceMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11598
+ PyObject *resultobj = 0;
11599
+ Nviz *arg1 = (Nviz *) 0 ;
11603
+ char *arg5 = (char *) 0 ;
11604
+ void *argp1 = 0 ;
11615
+ PyObject * obj0 = 0 ;
11616
+ PyObject * obj1 = 0 ;
11617
+ PyObject * obj2 = 0 ;
11618
+ PyObject * obj3 = 0 ;
11619
+ PyObject * obj4 = 0 ;
11622
+ if (!PyArg_ParseTuple(args,(char *)"OOOOO:Nviz_SetIsosurfaceMask",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11623
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
11624
+ if (!SWIG_IsOK(res1)) {
11625
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_SetIsosurfaceMask" "', argument " "1"" of type '" "Nviz *""'");
11627
+ arg1 = reinterpret_cast< Nviz * >(argp1);
11628
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
11629
+ if (!SWIG_IsOK(ecode2)) {
11630
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_SetIsosurfaceMask" "', argument " "2"" of type '" "int""'");
11632
+ arg2 = static_cast< int >(val2);
11633
+ ecode3 = SWIG_AsVal_int(obj2, &val3);
11634
+ if (!SWIG_IsOK(ecode3)) {
11635
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Nviz_SetIsosurfaceMask" "', argument " "3"" of type '" "int""'");
11637
+ arg3 = static_cast< int >(val3);
11638
+ ecode4 = SWIG_AsVal_bool(obj3, &val4);
11639
+ if (!SWIG_IsOK(ecode4)) {
11640
+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Nviz_SetIsosurfaceMask" "', argument " "4"" of type '" "bool""'");
11642
+ arg4 = static_cast< bool >(val4);
11643
+ res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5);
11644
+ if (!SWIG_IsOK(res5)) {
11645
+ SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Nviz_SetIsosurfaceMask" "', argument " "5"" of type '" "char const *""'");
11647
+ arg5 = reinterpret_cast< char * >(buf5);
11648
+ result = (int)(arg1)->SetIsosurfaceMask(arg2,arg3,arg4,(char const *)arg5);
11649
+ resultobj = SWIG_From_int(static_cast< int >(result));
11650
+ if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
11651
+ return resultobj;
11653
+ if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
11658
+SWIGINTERN PyObject *_wrap_Nviz_SetIsosurfaceTransp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11659
+ PyObject *resultobj = 0;
11660
+ Nviz *arg1 = (Nviz *) 0 ;
11664
+ char *arg5 = (char *) 0 ;
11665
+ void *argp1 = 0 ;
11676
+ PyObject * obj0 = 0 ;
11677
+ PyObject * obj1 = 0 ;
11678
+ PyObject * obj2 = 0 ;
11679
+ PyObject * obj3 = 0 ;
11680
+ PyObject * obj4 = 0 ;
11683
+ if (!PyArg_ParseTuple(args,(char *)"OOOOO:Nviz_SetIsosurfaceTransp",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11684
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
11685
+ if (!SWIG_IsOK(res1)) {
11686
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_SetIsosurfaceTransp" "', argument " "1"" of type '" "Nviz *""'");
11688
+ arg1 = reinterpret_cast< Nviz * >(argp1);
11689
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
11690
+ if (!SWIG_IsOK(ecode2)) {
11691
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_SetIsosurfaceTransp" "', argument " "2"" of type '" "int""'");
11693
+ arg2 = static_cast< int >(val2);
11694
+ ecode3 = SWIG_AsVal_int(obj2, &val3);
11695
+ if (!SWIG_IsOK(ecode3)) {
11696
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Nviz_SetIsosurfaceTransp" "', argument " "3"" of type '" "int""'");
11698
+ arg3 = static_cast< int >(val3);
11699
+ ecode4 = SWIG_AsVal_bool(obj3, &val4);
11700
+ if (!SWIG_IsOK(ecode4)) {
11701
+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Nviz_SetIsosurfaceTransp" "', argument " "4"" of type '" "bool""'");
11703
+ arg4 = static_cast< bool >(val4);
11704
+ res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5);
11705
+ if (!SWIG_IsOK(res5)) {
11706
+ SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Nviz_SetIsosurfaceTransp" "', argument " "5"" of type '" "char const *""'");
11708
+ arg5 = reinterpret_cast< char * >(buf5);
11709
+ result = (int)(arg1)->SetIsosurfaceTransp(arg2,arg3,arg4,(char const *)arg5);
11710
+ resultobj = SWIG_From_int(static_cast< int >(result));
11711
+ if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
11712
+ return resultobj;
11714
+ if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
11719
+SWIGINTERN PyObject *_wrap_Nviz_SetIsosurfaceShine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11720
+ PyObject *resultobj = 0;
11721
+ Nviz *arg1 = (Nviz *) 0 ;
11725
+ char *arg5 = (char *) 0 ;
11726
+ void *argp1 = 0 ;
11737
+ PyObject * obj0 = 0 ;
11738
+ PyObject * obj1 = 0 ;
11739
+ PyObject * obj2 = 0 ;
11740
+ PyObject * obj3 = 0 ;
11741
+ PyObject * obj4 = 0 ;
11744
+ if (!PyArg_ParseTuple(args,(char *)"OOOOO:Nviz_SetIsosurfaceShine",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11745
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
11746
+ if (!SWIG_IsOK(res1)) {
11747
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_SetIsosurfaceShine" "', argument " "1"" of type '" "Nviz *""'");
11749
+ arg1 = reinterpret_cast< Nviz * >(argp1);
11750
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
11751
+ if (!SWIG_IsOK(ecode2)) {
11752
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_SetIsosurfaceShine" "', argument " "2"" of type '" "int""'");
11754
+ arg2 = static_cast< int >(val2);
11755
+ ecode3 = SWIG_AsVal_int(obj2, &val3);
11756
+ if (!SWIG_IsOK(ecode3)) {
11757
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Nviz_SetIsosurfaceShine" "', argument " "3"" of type '" "int""'");
11759
+ arg3 = static_cast< int >(val3);
11760
+ ecode4 = SWIG_AsVal_bool(obj3, &val4);
11761
+ if (!SWIG_IsOK(ecode4)) {
11762
+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Nviz_SetIsosurfaceShine" "', argument " "4"" of type '" "bool""'");
11764
+ arg4 = static_cast< bool >(val4);
11765
+ res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5);
11766
+ if (!SWIG_IsOK(res5)) {
11767
+ SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Nviz_SetIsosurfaceShine" "', argument " "5"" of type '" "char const *""'");
11769
+ arg5 = reinterpret_cast< char * >(buf5);
11770
+ result = (int)(arg1)->SetIsosurfaceShine(arg2,arg3,arg4,(char const *)arg5);
11771
+ resultobj = SWIG_From_int(static_cast< int >(result));
11772
+ if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
11773
+ return resultobj;
11775
+ if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
11780
+SWIGINTERN PyObject *_wrap_Nviz_SetIsosurfaceEmit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11781
+ PyObject *resultobj = 0;
11782
+ Nviz *arg1 = (Nviz *) 0 ;
11786
+ char *arg5 = (char *) 0 ;
11787
+ void *argp1 = 0 ;
11798
+ PyObject * obj0 = 0 ;
11799
+ PyObject * obj1 = 0 ;
11800
+ PyObject * obj2 = 0 ;
11801
+ PyObject * obj3 = 0 ;
11802
+ PyObject * obj4 = 0 ;
11805
+ if (!PyArg_ParseTuple(args,(char *)"OOOOO:Nviz_SetIsosurfaceEmit",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11806
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
11807
+ if (!SWIG_IsOK(res1)) {
11808
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_SetIsosurfaceEmit" "', argument " "1"" of type '" "Nviz *""'");
11810
+ arg1 = reinterpret_cast< Nviz * >(argp1);
11811
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
11812
+ if (!SWIG_IsOK(ecode2)) {
11813
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_SetIsosurfaceEmit" "', argument " "2"" of type '" "int""'");
11815
+ arg2 = static_cast< int >(val2);
11816
+ ecode3 = SWIG_AsVal_int(obj2, &val3);
11817
+ if (!SWIG_IsOK(ecode3)) {
11818
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Nviz_SetIsosurfaceEmit" "', argument " "3"" of type '" "int""'");
11820
+ arg3 = static_cast< int >(val3);
11821
+ ecode4 = SWIG_AsVal_bool(obj3, &val4);
11822
+ if (!SWIG_IsOK(ecode4)) {
11823
+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Nviz_SetIsosurfaceEmit" "', argument " "4"" of type '" "bool""'");
11825
+ arg4 = static_cast< bool >(val4);
11826
+ res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5);
11827
+ if (!SWIG_IsOK(res5)) {
11828
+ SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Nviz_SetIsosurfaceEmit" "', argument " "5"" of type '" "char const *""'");
11830
+ arg5 = reinterpret_cast< char * >(buf5);
11831
+ result = (int)(arg1)->SetIsosurfaceEmit(arg2,arg3,arg4,(char const *)arg5);
11832
+ resultobj = SWIG_From_int(static_cast< int >(result));
11833
+ if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
11834
+ return resultobj;
11836
+ if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
11841
+SWIGINTERN PyObject *_wrap_Nviz_UnsetIsosurfaceMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11842
+ PyObject *resultobj = 0;
11843
+ Nviz *arg1 = (Nviz *) 0 ;
11846
+ void *argp1 = 0 ;
11852
+ PyObject * obj0 = 0 ;
11853
+ PyObject * obj1 = 0 ;
11854
+ PyObject * obj2 = 0 ;
11857
+ if (!PyArg_ParseTuple(args,(char *)"OOO:Nviz_UnsetIsosurfaceMask",&obj0,&obj1,&obj2)) SWIG_fail;
11858
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
11859
+ if (!SWIG_IsOK(res1)) {
11860
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_UnsetIsosurfaceMask" "', argument " "1"" of type '" "Nviz *""'");
11862
+ arg1 = reinterpret_cast< Nviz * >(argp1);
11863
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
11864
+ if (!SWIG_IsOK(ecode2)) {
11865
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_UnsetIsosurfaceMask" "', argument " "2"" of type '" "int""'");
11867
+ arg2 = static_cast< int >(val2);
11868
+ ecode3 = SWIG_AsVal_int(obj2, &val3);
11869
+ if (!SWIG_IsOK(ecode3)) {
11870
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Nviz_UnsetIsosurfaceMask" "', argument " "3"" of type '" "int""'");
11872
+ arg3 = static_cast< int >(val3);
11873
+ result = (int)(arg1)->UnsetIsosurfaceMask(arg2,arg3);
11874
+ resultobj = SWIG_From_int(static_cast< int >(result));
11875
+ return resultobj;
11881
+SWIGINTERN PyObject *_wrap_Nviz_UnsetIsosurfaceTransp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11882
+ PyObject *resultobj = 0;
11883
+ Nviz *arg1 = (Nviz *) 0 ;
11886
+ void *argp1 = 0 ;
11892
+ PyObject * obj0 = 0 ;
11893
+ PyObject * obj1 = 0 ;
11894
+ PyObject * obj2 = 0 ;
11897
+ if (!PyArg_ParseTuple(args,(char *)"OOO:Nviz_UnsetIsosurfaceTransp",&obj0,&obj1,&obj2)) SWIG_fail;
11898
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
11899
+ if (!SWIG_IsOK(res1)) {
11900
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_UnsetIsosurfaceTransp" "', argument " "1"" of type '" "Nviz *""'");
11902
+ arg1 = reinterpret_cast< Nviz * >(argp1);
11903
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
11904
+ if (!SWIG_IsOK(ecode2)) {
11905
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_UnsetIsosurfaceTransp" "', argument " "2"" of type '" "int""'");
11907
+ arg2 = static_cast< int >(val2);
11908
+ ecode3 = SWIG_AsVal_int(obj2, &val3);
11909
+ if (!SWIG_IsOK(ecode3)) {
11910
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Nviz_UnsetIsosurfaceTransp" "', argument " "3"" of type '" "int""'");
11912
+ arg3 = static_cast< int >(val3);
11913
+ result = (int)(arg1)->UnsetIsosurfaceTransp(arg2,arg3);
11914
+ resultobj = SWIG_From_int(static_cast< int >(result));
11915
+ return resultobj;
11921
+SWIGINTERN PyObject *_wrap_Nviz_UnsetIsosurfaceEmit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11922
+ PyObject *resultobj = 0;
11923
+ Nviz *arg1 = (Nviz *) 0 ;
11926
+ void *argp1 = 0 ;
11932
+ PyObject * obj0 = 0 ;
11933
+ PyObject * obj1 = 0 ;
11934
+ PyObject * obj2 = 0 ;
11937
+ if (!PyArg_ParseTuple(args,(char *)"OOO:Nviz_UnsetIsosurfaceEmit",&obj0,&obj1,&obj2)) SWIG_fail;
11938
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
11939
+ if (!SWIG_IsOK(res1)) {
11940
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_UnsetIsosurfaceEmit" "', argument " "1"" of type '" "Nviz *""'");
11942
+ arg1 = reinterpret_cast< Nviz * >(argp1);
11943
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
11944
+ if (!SWIG_IsOK(ecode2)) {
11945
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_UnsetIsosurfaceEmit" "', argument " "2"" of type '" "int""'");
11947
+ arg2 = static_cast< int >(val2);
11948
+ ecode3 = SWIG_AsVal_int(obj2, &val3);
11949
+ if (!SWIG_IsOK(ecode3)) {
11950
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Nviz_UnsetIsosurfaceEmit" "', argument " "3"" of type '" "int""'");
11952
+ arg3 = static_cast< int >(val3);
11953
+ result = (int)(arg1)->UnsetIsosurfaceEmit(arg2,arg3);
11954
+ resultobj = SWIG_From_int(static_cast< int >(result));
11955
+ return resultobj;
11961
+SWIGINTERN PyObject *_wrap_Nviz_SetIsosurfaceMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11962
+ PyObject *resultobj = 0;
11963
+ Nviz *arg1 = (Nviz *) 0 ;
11966
+ void *argp1 = 0 ;
11972
+ PyObject * obj0 = 0 ;
11973
+ PyObject * obj1 = 0 ;
11974
+ PyObject * obj2 = 0 ;
11977
+ if (!PyArg_ParseTuple(args,(char *)"OOO:Nviz_SetIsosurfaceMode",&obj0,&obj1,&obj2)) SWIG_fail;
11978
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
11979
+ if (!SWIG_IsOK(res1)) {
11980
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_SetIsosurfaceMode" "', argument " "1"" of type '" "Nviz *""'");
11982
+ arg1 = reinterpret_cast< Nviz * >(argp1);
11983
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
11984
+ if (!SWIG_IsOK(ecode2)) {
11985
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_SetIsosurfaceMode" "', argument " "2"" of type '" "int""'");
11987
+ arg2 = static_cast< int >(val2);
11988
+ ecode3 = SWIG_AsVal_int(obj2, &val3);
11989
+ if (!SWIG_IsOK(ecode3)) {
11990
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Nviz_SetIsosurfaceMode" "', argument " "3"" of type '" "int""'");
11992
+ arg3 = static_cast< int >(val3);
11993
+ result = (int)(arg1)->SetIsosurfaceMode(arg2,arg3);
11994
+ resultobj = SWIG_From_int(static_cast< int >(result));
11995
+ return resultobj;
12001
+SWIGINTERN PyObject *_wrap_Nviz_SetIsosurfaceRes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12002
+ PyObject *resultobj = 0;
12003
+ Nviz *arg1 = (Nviz *) 0 ;
12006
+ void *argp1 = 0 ;
12012
+ PyObject * obj0 = 0 ;
12013
+ PyObject * obj1 = 0 ;
12014
+ PyObject * obj2 = 0 ;
12017
+ if (!PyArg_ParseTuple(args,(char *)"OOO:Nviz_SetIsosurfaceRes",&obj0,&obj1,&obj2)) SWIG_fail;
12018
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Nviz, 0 | 0 );
12019
+ if (!SWIG_IsOK(res1)) {
12020
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Nviz_SetIsosurfaceRes" "', argument " "1"" of type '" "Nviz *""'");
12022
+ arg1 = reinterpret_cast< Nviz * >(argp1);
12023
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
12024
+ if (!SWIG_IsOK(ecode2)) {
12025
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Nviz_SetIsosurfaceRes" "', argument " "2"" of type '" "int""'");
12027
+ arg2 = static_cast< int >(val2);
12028
+ ecode3 = SWIG_AsVal_int(obj2, &val3);
12029
+ if (!SWIG_IsOK(ecode3)) {
12030
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Nviz_SetIsosurfaceRes" "', argument " "3"" of type '" "int""'");
12032
+ arg3 = static_cast< int >(val3);
12033
+ result = (int)(arg1)->SetIsosurfaceRes(arg2,arg3);
12034
+ resultobj = SWIG_From_int(static_cast< int >(result));
12035
+ return resultobj;
12041
+SWIGINTERN PyObject *Nviz_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12043
+ if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
12044
+ SWIG_TypeNewClientData(SWIGTYPE_p_Nviz, SWIG_NewClientData(obj));
12045
+ return SWIG_Py_Void();
12048
+static PyMethodDef SwigMethods[] = {
12049
+ { (char *)"delete_PySwigIterator", _wrap_delete_PySwigIterator, METH_VARARGS, NULL},
12050
+ { (char *)"PySwigIterator_value", _wrap_PySwigIterator_value, METH_VARARGS, NULL},
12051
+ { (char *)"PySwigIterator_incr", _wrap_PySwigIterator_incr, METH_VARARGS, NULL},
12052
+ { (char *)"PySwigIterator_decr", _wrap_PySwigIterator_decr, METH_VARARGS, NULL},
12053
+ { (char *)"PySwigIterator_distance", _wrap_PySwigIterator_distance, METH_VARARGS, NULL},
12054
+ { (char *)"PySwigIterator_equal", _wrap_PySwigIterator_equal, METH_VARARGS, NULL},
12055
+ { (char *)"PySwigIterator_copy", _wrap_PySwigIterator_copy, METH_VARARGS, NULL},
12056
+ { (char *)"PySwigIterator_next", _wrap_PySwigIterator_next, METH_VARARGS, NULL},
12057
+ { (char *)"PySwigIterator_previous", _wrap_PySwigIterator_previous, METH_VARARGS, NULL},
12058
+ { (char *)"PySwigIterator_advance", _wrap_PySwigIterator_advance, METH_VARARGS, NULL},
12059
+ { (char *)"PySwigIterator___eq__", _wrap_PySwigIterator___eq__, METH_VARARGS, NULL},
12060
+ { (char *)"PySwigIterator___ne__", _wrap_PySwigIterator___ne__, METH_VARARGS, NULL},
12061
+ { (char *)"PySwigIterator___iadd__", _wrap_PySwigIterator___iadd__, METH_VARARGS, NULL},
12062
+ { (char *)"PySwigIterator___isub__", _wrap_PySwigIterator___isub__, METH_VARARGS, NULL},
12063
+ { (char *)"PySwigIterator___add__", _wrap_PySwigIterator___add__, METH_VARARGS, NULL},
12064
+ { (char *)"PySwigIterator___sub__", _wrap_PySwigIterator___sub__, METH_VARARGS, NULL},
12065
+ { (char *)"PySwigIterator_swigregister", PySwigIterator_swigregister, METH_VARARGS, NULL},
12066
+ { (char *)"IntVector_iterator", _wrap_IntVector_iterator, METH_VARARGS, NULL},
12067
+ { (char *)"IntVector___nonzero__", _wrap_IntVector___nonzero__, METH_VARARGS, NULL},
12068
+ { (char *)"IntVector___len__", _wrap_IntVector___len__, METH_VARARGS, NULL},
12069
+ { (char *)"IntVector_pop", _wrap_IntVector_pop, METH_VARARGS, NULL},
12070
+ { (char *)"IntVector___getslice__", _wrap_IntVector___getslice__, METH_VARARGS, NULL},
12071
+ { (char *)"IntVector___setslice__", _wrap_IntVector___setslice__, METH_VARARGS, NULL},
12072
+ { (char *)"IntVector___delslice__", _wrap_IntVector___delslice__, METH_VARARGS, NULL},
12073
+ { (char *)"IntVector___delitem__", _wrap_IntVector___delitem__, METH_VARARGS, NULL},
12074
+ { (char *)"IntVector___getitem__", _wrap_IntVector___getitem__, METH_VARARGS, NULL},
12075
+ { (char *)"IntVector___setitem__", _wrap_IntVector___setitem__, METH_VARARGS, NULL},
12076
+ { (char *)"IntVector_append", _wrap_IntVector_append, METH_VARARGS, NULL},
12077
+ { (char *)"IntVector_empty", _wrap_IntVector_empty, METH_VARARGS, NULL},
12078
+ { (char *)"IntVector_size", _wrap_IntVector_size, METH_VARARGS, NULL},
12079
+ { (char *)"IntVector_clear", _wrap_IntVector_clear, METH_VARARGS, NULL},
12080
+ { (char *)"IntVector_swap", _wrap_IntVector_swap, METH_VARARGS, NULL},
12081
+ { (char *)"IntVector_get_allocator", _wrap_IntVector_get_allocator, METH_VARARGS, NULL},
12082
+ { (char *)"IntVector_begin", _wrap_IntVector_begin, METH_VARARGS, NULL},
12083
+ { (char *)"IntVector_end", _wrap_IntVector_end, METH_VARARGS, NULL},
12084
+ { (char *)"IntVector_rbegin", _wrap_IntVector_rbegin, METH_VARARGS, NULL},
12085
+ { (char *)"IntVector_rend", _wrap_IntVector_rend, METH_VARARGS, NULL},
12086
+ { (char *)"IntVector_pop_back", _wrap_IntVector_pop_back, METH_VARARGS, NULL},
12087
+ { (char *)"IntVector_erase", _wrap_IntVector_erase, METH_VARARGS, NULL},
12088
+ { (char *)"new_IntVector", _wrap_new_IntVector, METH_VARARGS, NULL},
12089
+ { (char *)"IntVector_push_back", _wrap_IntVector_push_back, METH_VARARGS, NULL},
12090
+ { (char *)"IntVector_front", _wrap_IntVector_front, METH_VARARGS, NULL},
12091
+ { (char *)"IntVector_back", _wrap_IntVector_back, METH_VARARGS, NULL},
12092
+ { (char *)"IntVector_assign", _wrap_IntVector_assign, METH_VARARGS, NULL},
12093
+ { (char *)"IntVector_resize", _wrap_IntVector_resize, METH_VARARGS, NULL},
12094
+ { (char *)"IntVector_insert", _wrap_IntVector_insert, METH_VARARGS, NULL},
12095
+ { (char *)"IntVector_reserve", _wrap_IntVector_reserve, METH_VARARGS, NULL},
12096
+ { (char *)"IntVector_capacity", _wrap_IntVector_capacity, METH_VARARGS, NULL},
12097
+ { (char *)"delete_IntVector", _wrap_delete_IntVector, METH_VARARGS, NULL},
12098
+ { (char *)"IntVector_swigregister", IntVector_swigregister, METH_VARARGS, NULL},
12099
+ { (char *)"DoubleVector_iterator", _wrap_DoubleVector_iterator, METH_VARARGS, NULL},
12100
+ { (char *)"DoubleVector___nonzero__", _wrap_DoubleVector___nonzero__, METH_VARARGS, NULL},
12101
+ { (char *)"DoubleVector___len__", _wrap_DoubleVector___len__, METH_VARARGS, NULL},
12102
+ { (char *)"DoubleVector_pop", _wrap_DoubleVector_pop, METH_VARARGS, NULL},
12103
+ { (char *)"DoubleVector___getslice__", _wrap_DoubleVector___getslice__, METH_VARARGS, NULL},
12104
+ { (char *)"DoubleVector___setslice__", _wrap_DoubleVector___setslice__, METH_VARARGS, NULL},
12105
+ { (char *)"DoubleVector___delslice__", _wrap_DoubleVector___delslice__, METH_VARARGS, NULL},
12106
+ { (char *)"DoubleVector___delitem__", _wrap_DoubleVector___delitem__, METH_VARARGS, NULL},
12107
+ { (char *)"DoubleVector___getitem__", _wrap_DoubleVector___getitem__, METH_VARARGS, NULL},
12108
+ { (char *)"DoubleVector___setitem__", _wrap_DoubleVector___setitem__, METH_VARARGS, NULL},
12109
+ { (char *)"DoubleVector_append", _wrap_DoubleVector_append, METH_VARARGS, NULL},
12110
+ { (char *)"DoubleVector_empty", _wrap_DoubleVector_empty, METH_VARARGS, NULL},
12111
+ { (char *)"DoubleVector_size", _wrap_DoubleVector_size, METH_VARARGS, NULL},
12112
+ { (char *)"DoubleVector_clear", _wrap_DoubleVector_clear, METH_VARARGS, NULL},
12113
+ { (char *)"DoubleVector_swap", _wrap_DoubleVector_swap, METH_VARARGS, NULL},
12114
+ { (char *)"DoubleVector_get_allocator", _wrap_DoubleVector_get_allocator, METH_VARARGS, NULL},
12115
+ { (char *)"DoubleVector_begin", _wrap_DoubleVector_begin, METH_VARARGS, NULL},
12116
+ { (char *)"DoubleVector_end", _wrap_DoubleVector_end, METH_VARARGS, NULL},
12117
+ { (char *)"DoubleVector_rbegin", _wrap_DoubleVector_rbegin, METH_VARARGS, NULL},
12118
+ { (char *)"DoubleVector_rend", _wrap_DoubleVector_rend, METH_VARARGS, NULL},
12119
+ { (char *)"DoubleVector_pop_back", _wrap_DoubleVector_pop_back, METH_VARARGS, NULL},
12120
+ { (char *)"DoubleVector_erase", _wrap_DoubleVector_erase, METH_VARARGS, NULL},
12121
+ { (char *)"new_DoubleVector", _wrap_new_DoubleVector, METH_VARARGS, NULL},
12122
+ { (char *)"DoubleVector_push_back", _wrap_DoubleVector_push_back, METH_VARARGS, NULL},
12123
+ { (char *)"DoubleVector_front", _wrap_DoubleVector_front, METH_VARARGS, NULL},
12124
+ { (char *)"DoubleVector_back", _wrap_DoubleVector_back, METH_VARARGS, NULL},
12125
+ { (char *)"DoubleVector_assign", _wrap_DoubleVector_assign, METH_VARARGS, NULL},
12126
+ { (char *)"DoubleVector_resize", _wrap_DoubleVector_resize, METH_VARARGS, NULL},
12127
+ { (char *)"DoubleVector_insert", _wrap_DoubleVector_insert, METH_VARARGS, NULL},
12128
+ { (char *)"DoubleVector_reserve", _wrap_DoubleVector_reserve, METH_VARARGS, NULL},
12129
+ { (char *)"DoubleVector_capacity", _wrap_DoubleVector_capacity, METH_VARARGS, NULL},
12130
+ { (char *)"delete_DoubleVector", _wrap_delete_DoubleVector, METH_VARARGS, NULL},
12131
+ { (char *)"DoubleVector_swigregister", DoubleVector_swigregister, METH_VARARGS, NULL},
12132
+ { (char *)"IntVecIntMap_iterator", _wrap_IntVecIntMap_iterator, METH_VARARGS, NULL},
12133
+ { (char *)"IntVecIntMap___nonzero__", _wrap_IntVecIntMap___nonzero__, METH_VARARGS, NULL},
12134
+ { (char *)"IntVecIntMap___len__", _wrap_IntVecIntMap___len__, METH_VARARGS, NULL},
12135
+ { (char *)"IntVecIntMap___getitem__", _wrap_IntVecIntMap___getitem__, METH_VARARGS, NULL},
12136
+ { (char *)"IntVecIntMap___delitem__", _wrap_IntVecIntMap___delitem__, METH_VARARGS, NULL},
12137
+ { (char *)"IntVecIntMap_has_key", _wrap_IntVecIntMap_has_key, METH_VARARGS, NULL},
12138
+ { (char *)"IntVecIntMap_keys", _wrap_IntVecIntMap_keys, METH_VARARGS, NULL},
12139
+ { (char *)"IntVecIntMap_values", _wrap_IntVecIntMap_values, METH_VARARGS, NULL},
12140
+ { (char *)"IntVecIntMap_items", _wrap_IntVecIntMap_items, METH_VARARGS, NULL},
12141
+ { (char *)"IntVecIntMap___contains__", _wrap_IntVecIntMap___contains__, METH_VARARGS, NULL},
12142
+ { (char *)"IntVecIntMap_key_iterator", _wrap_IntVecIntMap_key_iterator, METH_VARARGS, NULL},
12143
+ { (char *)"IntVecIntMap_value_iterator", _wrap_IntVecIntMap_value_iterator, METH_VARARGS, NULL},
12144
+ { (char *)"IntVecIntMap___setitem__", _wrap_IntVecIntMap___setitem__, METH_VARARGS, NULL},
12145
+ { (char *)"new_IntVecIntMap", _wrap_new_IntVecIntMap, METH_VARARGS, NULL},
12146
+ { (char *)"IntVecIntMap_empty", _wrap_IntVecIntMap_empty, METH_VARARGS, NULL},
12147
+ { (char *)"IntVecIntMap_size", _wrap_IntVecIntMap_size, METH_VARARGS, NULL},
12148
+ { (char *)"IntVecIntMap_clear", _wrap_IntVecIntMap_clear, METH_VARARGS, NULL},
12149
+ { (char *)"IntVecIntMap_swap", _wrap_IntVecIntMap_swap, METH_VARARGS, NULL},
12150
+ { (char *)"IntVecIntMap_get_allocator", _wrap_IntVecIntMap_get_allocator, METH_VARARGS, NULL},
12151
+ { (char *)"IntVecIntMap_begin", _wrap_IntVecIntMap_begin, METH_VARARGS, NULL},
12152
+ { (char *)"IntVecIntMap_end", _wrap_IntVecIntMap_end, METH_VARARGS, NULL},
12153
+ { (char *)"IntVecIntMap_rbegin", _wrap_IntVecIntMap_rbegin, METH_VARARGS, NULL},
12154
+ { (char *)"IntVecIntMap_rend", _wrap_IntVecIntMap_rend, METH_VARARGS, NULL},
12155
+ { (char *)"IntVecIntMap_count", _wrap_IntVecIntMap_count, METH_VARARGS, NULL},
12156
+ { (char *)"IntVecIntMap_erase", _wrap_IntVecIntMap_erase, METH_VARARGS, NULL},
12157
+ { (char *)"IntVecIntMap_find", _wrap_IntVecIntMap_find, METH_VARARGS, NULL},
12158
+ { (char *)"IntVecIntMap_lower_bound", _wrap_IntVecIntMap_lower_bound, METH_VARARGS, NULL},
12159
+ { (char *)"IntVecIntMap_upper_bound", _wrap_IntVecIntMap_upper_bound, METH_VARARGS, NULL},
12160
+ { (char *)"delete_IntVecIntMap", _wrap_delete_IntVecIntMap, METH_VARARGS, NULL},
12161
+ { (char *)"IntVecIntMap_swigregister", IntVecIntMap_swigregister, METH_VARARGS, NULL},
12162
+ { (char *)"new_Nviz", _wrap_new_Nviz, METH_VARARGS, NULL},
12163
+ { (char *)"delete_Nviz", _wrap_delete_Nviz, METH_VARARGS, NULL},
12164
+ { (char *)"Nviz_ResizeWindow", _wrap_Nviz_ResizeWindow, METH_VARARGS, NULL},
12165
+ { (char *)"Nviz_SetViewDefault", _wrap_Nviz_SetViewDefault, METH_VARARGS, NULL},
12166
+ { (char *)"Nviz_SetView", _wrap_Nviz_SetView, METH_VARARGS, NULL},
12167
+ { (char *)"Nviz_SetZExag", _wrap_Nviz_SetZExag, METH_VARARGS, NULL},
12168
+ { (char *)"Nviz_SetDisplay", _wrap_Nviz_SetDisplay, METH_VARARGS, NULL},
12169
+ { (char *)"Nviz_InitView", _wrap_Nviz_InitView, METH_VARARGS, NULL},
12170
+ { (char *)"Nviz_SetBgColor", _wrap_Nviz_SetBgColor, METH_VARARGS, NULL},
12171
+ { (char *)"Nviz_SetLightsDefault", _wrap_Nviz_SetLightsDefault, METH_VARARGS, NULL},
12172
+ { (char *)"Nviz_LoadSurface", _wrap_Nviz_LoadSurface, METH_VARARGS, NULL},
12173
+ { (char *)"Nviz_UnloadSurface", _wrap_Nviz_UnloadSurface, METH_VARARGS, NULL},
12174
+ { (char *)"Nviz_LoadVector", _wrap_Nviz_LoadVector, METH_VARARGS, NULL},
12175
+ { (char *)"Nviz_UnloadVector", _wrap_Nviz_UnloadVector, METH_VARARGS, NULL},
12176
+ { (char *)"Nviz_LoadVolume", _wrap_Nviz_LoadVolume, METH_VARARGS, NULL},
12177
+ { (char *)"Nviz_UnloadVolume", _wrap_Nviz_UnloadVolume, METH_VARARGS, NULL},
12178
+ { (char *)"Nviz_Draw", _wrap_Nviz_Draw, METH_VARARGS, NULL},
12179
+ { (char *)"Nviz_EraseMap", _wrap_Nviz_EraseMap, METH_VARARGS, NULL},
12180
+ { (char *)"Nviz_SetSurfaceTopo", _wrap_Nviz_SetSurfaceTopo, METH_VARARGS, NULL},
12181
+ { (char *)"Nviz_SetSurfaceColor", _wrap_Nviz_SetSurfaceColor, METH_VARARGS, NULL},
12182
+ { (char *)"Nviz_SetSurfaceMask", _wrap_Nviz_SetSurfaceMask, METH_VARARGS, NULL},
12183
+ { (char *)"Nviz_SetSurfaceTransp", _wrap_Nviz_SetSurfaceTransp, METH_VARARGS, NULL},
12184
+ { (char *)"Nviz_SetSurfaceShine", _wrap_Nviz_SetSurfaceShine, METH_VARARGS, NULL},
12185
+ { (char *)"Nviz_SetSurfaceEmit", _wrap_Nviz_SetSurfaceEmit, METH_VARARGS, NULL},
12186
+ { (char *)"Nviz_UnsetSurfaceMask", _wrap_Nviz_UnsetSurfaceMask, METH_VARARGS, NULL},
12187
+ { (char *)"Nviz_UnsetSurfaceTransp", _wrap_Nviz_UnsetSurfaceTransp, METH_VARARGS, NULL},
12188
+ { (char *)"Nviz_UnsetSurfaceEmit", _wrap_Nviz_UnsetSurfaceEmit, METH_VARARGS, NULL},
12189
+ { (char *)"Nviz_SetSurfaceRes", _wrap_Nviz_SetSurfaceRes, METH_VARARGS, NULL},
12190
+ { (char *)"Nviz_SetSurfaceStyle", _wrap_Nviz_SetSurfaceStyle, METH_VARARGS, NULL},
12191
+ { (char *)"Nviz_SetWireColor", _wrap_Nviz_SetWireColor, METH_VARARGS, NULL},
12192
+ { (char *)"Nviz_GetSurfacePosition", _wrap_Nviz_GetSurfacePosition, METH_VARARGS, NULL},
12193
+ { (char *)"Nviz_SetSurfacePosition", _wrap_Nviz_SetSurfacePosition, METH_VARARGS, NULL},
12194
+ { (char *)"Nviz_SetVectorLineMode", _wrap_Nviz_SetVectorLineMode, METH_VARARGS, NULL},
12195
+ { (char *)"Nviz_SetVectorLineHeight", _wrap_Nviz_SetVectorLineHeight, METH_VARARGS, NULL},
12196
+ { (char *)"Nviz_SetVectorLineSurface", _wrap_Nviz_SetVectorLineSurface, METH_VARARGS, NULL},
12197
+ { (char *)"Nviz_SetVectorPointMode", _wrap_Nviz_SetVectorPointMode, METH_VARARGS, NULL},
12198
+ { (char *)"Nviz_SetVectorPointHeight", _wrap_Nviz_SetVectorPointHeight, METH_VARARGS, NULL},
12199
+ { (char *)"Nviz_SetVectorPointSurface", _wrap_Nviz_SetVectorPointSurface, METH_VARARGS, NULL},
12200
+ { (char *)"Nviz_AddIsosurface", _wrap_Nviz_AddIsosurface, METH_VARARGS, NULL},
12201
+ { (char *)"Nviz_DeleteIsosurface", _wrap_Nviz_DeleteIsosurface, METH_VARARGS, NULL},
12202
+ { (char *)"Nviz_MoveIsosurface", _wrap_Nviz_MoveIsosurface, METH_VARARGS, NULL},
12203
+ { (char *)"Nviz_SetIsosurfaceColor", _wrap_Nviz_SetIsosurfaceColor, METH_VARARGS, NULL},
12204
+ { (char *)"Nviz_SetIsosurfaceMask", _wrap_Nviz_SetIsosurfaceMask, METH_VARARGS, NULL},
12205
+ { (char *)"Nviz_SetIsosurfaceTransp", _wrap_Nviz_SetIsosurfaceTransp, METH_VARARGS, NULL},
12206
+ { (char *)"Nviz_SetIsosurfaceShine", _wrap_Nviz_SetIsosurfaceShine, METH_VARARGS, NULL},
12207
+ { (char *)"Nviz_SetIsosurfaceEmit", _wrap_Nviz_SetIsosurfaceEmit, METH_VARARGS, NULL},
12208
+ { (char *)"Nviz_UnsetIsosurfaceMask", _wrap_Nviz_UnsetIsosurfaceMask, METH_VARARGS, NULL},
12209
+ { (char *)"Nviz_UnsetIsosurfaceTransp", _wrap_Nviz_UnsetIsosurfaceTransp, METH_VARARGS, NULL},
12210
+ { (char *)"Nviz_UnsetIsosurfaceEmit", _wrap_Nviz_UnsetIsosurfaceEmit, METH_VARARGS, NULL},
12211
+ { (char *)"Nviz_SetIsosurfaceMode", _wrap_Nviz_SetIsosurfaceMode, METH_VARARGS, NULL},
12212
+ { (char *)"Nviz_SetIsosurfaceRes", _wrap_Nviz_SetIsosurfaceRes, METH_VARARGS, NULL},
12213
+ { (char *)"Nviz_swigregister", Nviz_swigregister, METH_VARARGS, NULL},
12214
+ { NULL, NULL, 0, NULL }
12218
+/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
12220
+static swig_type_info _swigt__p_Nviz = {"_p_Nviz", "Nviz *", 0, 0, (void*)0, 0};
12221
+static swig_type_info _swigt__p_allocator_type = {"_p_allocator_type", "allocator_type *", 0, 0, (void*)0, 0};
12222
+static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
12223
+static swig_type_info _swigt__p_difference_type = {"_p_difference_type", "difference_type *", 0, 0, (void*)0, 0};
12224
+static swig_type_info _swigt__p_key_type = {"_p_key_type", "key_type *", 0, 0, (void*)0, 0};
12225
+static swig_type_info _swigt__p_mapped_type = {"_p_mapped_type", "mapped_type *", 0, 0, (void*)0, 0};
12226
+static swig_type_info _swigt__p_p_PyObject = {"_p_p_PyObject", "PyObject **", 0, 0, (void*)0, 0};
12227
+static swig_type_info _swigt__p_size_type = {"_p_size_type", "size_type *", 0, 0, (void*)0, 0};
12228
+static swig_type_info _swigt__p_std__invalid_argument = {"_p_std__invalid_argument", "std::invalid_argument *", 0, 0, (void*)0, 0};
12229
+static swig_type_info _swigt__p_std__lessT_int_t = {"_p_std__lessT_int_t", "std::less< int > *", 0, 0, (void*)0, 0};
12230
+static swig_type_info _swigt__p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t = {"_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t", "std::map< int,std::vector< int > > *|std::map< int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > > *|std::map< int,std::vector< int,std::allocator< int > > > *", 0, 0, (void*)0, 0};
12231
+static swig_type_info _swigt__p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t__allocator_type = {"_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t__allocator_type", "std::map< int,std::vector< int > >::allocator_type *|std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > *", 0, 0, (void*)0, 0};
12232
+static swig_type_info _swigt__p_std__vectorT_double_std__allocatorT_double_t_t = {"_p_std__vectorT_double_std__allocatorT_double_t_t", "std::vector< double,std::allocator< double > > *|std::vector< double > *", 0, 0, (void*)0, 0};
12233
+static swig_type_info _swigt__p_std__vectorT_double_std__allocatorT_double_t_t__allocator_type = {"_p_std__vectorT_double_std__allocatorT_double_t_t__allocator_type", "std::vector< double >::allocator_type *|std::allocator< double > *", 0, 0, (void*)0, 0};
12234
+static swig_type_info _swigt__p_std__vectorT_int_std__allocatorT_int_t_t = {"_p_std__vectorT_int_std__allocatorT_int_t_t", "std::vector< int,std::allocator< int > > *|std::vector< int > *", 0, 0, (void*)0, 0};
12235
+static swig_type_info _swigt__p_std__vectorT_int_std__allocatorT_int_t_t__allocator_type = {"_p_std__vectorT_int_std__allocatorT_int_t_t__allocator_type", "std::vector< int >::allocator_type *|std::allocator< int > *", 0, 0, (void*)0, 0};
12236
+static swig_type_info _swigt__p_swig__PySwigIterator = {"_p_swig__PySwigIterator", "swig::PySwigIterator *", 0, 0, (void*)0, 0};
12237
+static swig_type_info _swigt__p_value_type = {"_p_value_type", "value_type *", 0, 0, (void*)0, 0};
12239
+static swig_type_info *swig_type_initial[] = {
12241
+ &_swigt__p_allocator_type,
12243
+ &_swigt__p_difference_type,
12244
+ &_swigt__p_key_type,
12245
+ &_swigt__p_mapped_type,
12246
+ &_swigt__p_p_PyObject,
12247
+ &_swigt__p_size_type,
12248
+ &_swigt__p_std__invalid_argument,
12249
+ &_swigt__p_std__lessT_int_t,
12250
+ &_swigt__p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t,
12251
+ &_swigt__p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t__allocator_type,
12252
+ &_swigt__p_std__vectorT_double_std__allocatorT_double_t_t,
12253
+ &_swigt__p_std__vectorT_double_std__allocatorT_double_t_t__allocator_type,
12254
+ &_swigt__p_std__vectorT_int_std__allocatorT_int_t_t,
12255
+ &_swigt__p_std__vectorT_int_std__allocatorT_int_t_t__allocator_type,
12256
+ &_swigt__p_swig__PySwigIterator,
12257
+ &_swigt__p_value_type,
12260
+static swig_cast_info _swigc__p_Nviz[] = { {&_swigt__p_Nviz, 0, 0, 0},{0, 0, 0, 0}};
12261
+static swig_cast_info _swigc__p_allocator_type[] = { {&_swigt__p_allocator_type, 0, 0, 0},{0, 0, 0, 0}};
12262
+static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
12263
+static swig_cast_info _swigc__p_difference_type[] = { {&_swigt__p_difference_type, 0, 0, 0},{0, 0, 0, 0}};
12264
+static swig_cast_info _swigc__p_key_type[] = { {&_swigt__p_key_type, 0, 0, 0},{0, 0, 0, 0}};
12265
+static swig_cast_info _swigc__p_mapped_type[] = { {&_swigt__p_mapped_type, 0, 0, 0},{0, 0, 0, 0}};
12266
+static swig_cast_info _swigc__p_p_PyObject[] = { {&_swigt__p_p_PyObject, 0, 0, 0},{0, 0, 0, 0}};
12267
+static swig_cast_info _swigc__p_size_type[] = { {&_swigt__p_size_type, 0, 0, 0},{0, 0, 0, 0}};
12268
+static swig_cast_info _swigc__p_std__invalid_argument[] = { {&_swigt__p_std__invalid_argument, 0, 0, 0},{0, 0, 0, 0}};
12269
+static swig_cast_info _swigc__p_std__lessT_int_t[] = { {&_swigt__p_std__lessT_int_t, 0, 0, 0},{0, 0, 0, 0}};
12270
+static swig_cast_info _swigc__p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t[] = { {&_swigt__p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
12271
+static swig_cast_info _swigc__p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t__allocator_type[] = { {&_swigt__p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t__allocator_type, 0, 0, 0},{0, 0, 0, 0}};
12272
+static swig_cast_info _swigc__p_std__vectorT_double_std__allocatorT_double_t_t[] = { {&_swigt__p_std__vectorT_double_std__allocatorT_double_t_t, 0, 0, 0},{0, 0, 0, 0}};
12273
+static swig_cast_info _swigc__p_std__vectorT_double_std__allocatorT_double_t_t__allocator_type[] = { {&_swigt__p_std__vectorT_double_std__allocatorT_double_t_t__allocator_type, 0, 0, 0},{0, 0, 0, 0}};
12274
+static swig_cast_info _swigc__p_std__vectorT_int_std__allocatorT_int_t_t[] = { {&_swigt__p_std__vectorT_int_std__allocatorT_int_t_t, 0, 0, 0},{0, 0, 0, 0}};
12275
+static swig_cast_info _swigc__p_std__vectorT_int_std__allocatorT_int_t_t__allocator_type[] = { {&_swigt__p_std__vectorT_int_std__allocatorT_int_t_t__allocator_type, 0, 0, 0},{0, 0, 0, 0}};
12276
+static swig_cast_info _swigc__p_swig__PySwigIterator[] = { {&_swigt__p_swig__PySwigIterator, 0, 0, 0},{0, 0, 0, 0}};
12277
+static swig_cast_info _swigc__p_value_type[] = { {&_swigt__p_value_type, 0, 0, 0},{0, 0, 0, 0}};
12279
+static swig_cast_info *swig_cast_initial[] = {
12281
+ _swigc__p_allocator_type,
12283
+ _swigc__p_difference_type,
12284
+ _swigc__p_key_type,
12285
+ _swigc__p_mapped_type,
12286
+ _swigc__p_p_PyObject,
12287
+ _swigc__p_size_type,
12288
+ _swigc__p_std__invalid_argument,
12289
+ _swigc__p_std__lessT_int_t,
12290
+ _swigc__p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t,
12291
+ _swigc__p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t__allocator_type,
12292
+ _swigc__p_std__vectorT_double_std__allocatorT_double_t_t,
12293
+ _swigc__p_std__vectorT_double_std__allocatorT_double_t_t__allocator_type,
12294
+ _swigc__p_std__vectorT_int_std__allocatorT_int_t_t,
12295
+ _swigc__p_std__vectorT_int_std__allocatorT_int_t_t__allocator_type,
12296
+ _swigc__p_swig__PySwigIterator,
12297
+ _swigc__p_value_type,
12301
+/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
12303
+static swig_const_info swig_const_table[] = {
12304
+{0, 0, 0, 0.0, 0, 0}};
12306
+#ifdef __cplusplus
12309
+/* -----------------------------------------------------------------------------
12310
+ * Type initialization:
12311
+ * This problem is tough by the requirement that no dynamic
12312
+ * memory is used. Also, since swig_type_info structures store pointers to
12313
+ * swig_cast_info structures and swig_cast_info structures store pointers back
12314
+ * to swig_type_info structures, we need some lookup code at initialization.
12315
+ * The idea is that swig generates all the structures that are needed.
12316
+ * The runtime then collects these partially filled structures.
12317
+ * The SWIG_InitializeModule function takes these initial arrays out of
12318
+ * swig_module, and does all the lookup, filling in the swig_module.types
12319
+ * array with the correct data and linking the correct swig_cast_info
12320
+ * structures together.
12322
+ * The generated swig_type_info structures are assigned staticly to an initial
12323
+ * array. We just loop through that array, and handle each type individually.
12324
+ * First we lookup if this type has been already loaded, and if so, use the
12325
+ * loaded structure instead of the generated one. Then we have to fill in the
12326
+ * cast linked list. The cast data is initially stored in something like a
12327
+ * two-dimensional array. Each row corresponds to a type (there are the same
12328
+ * number of rows as there are in the swig_type_initial array). Each entry in
12329
+ * a column is one of the swig_cast_info structures for that type.
12330
+ * The cast_initial array is actually an array of arrays, because each row has
12331
+ * a variable number of columns. So to actually build the cast linked list,
12332
+ * we find the array of casts associated with the type, and loop through it
12333
+ * adding the casts to the list. The one last trick we need to do is making
12334
+ * sure the type pointer in the swig_cast_info struct is correct.
12336
+ * First off, we lookup the cast->type name to see if it is already loaded.
12337
+ * There are three cases to handle:
12338
+ * 1) If the cast->type has already been loaded AND the type we are adding
12339
+ * casting info to has not been loaded (it is in this module), THEN we
12340
+ * replace the cast->type pointer with the type pointer that has already
12342
+ * 2) If BOTH types (the one we are adding casting info to, and the
12343
+ * cast->type) are loaded, THEN the cast info has already been loaded by
12344
+ * the previous module so we just ignore it.
12345
+ * 3) Finally, if cast->type has not already been loaded, then we add that
12346
+ * swig_cast_info to the linked list (because the cast->type) pointer will
12348
+ * ----------------------------------------------------------------------------- */
12350
+#ifdef __cplusplus
12358
+#define SWIGRUNTIME_DEBUG
12363
+SWIG_InitializeModule(void *clientdata) {
12365
+ swig_module_info *module_head, *iter;
12368
+ clientdata = clientdata;
12370
+ /* check to see if the circular list has been setup, if not, set it up */
12371
+ if (swig_module.next==0) {
12372
+ /* Initialize the swig_module */
12373
+ swig_module.type_initial = swig_type_initial;
12374
+ swig_module.cast_initial = swig_cast_initial;
12375
+ swig_module.next = &swig_module;
12381
+ /* Try and load any already created modules */
12382
+ module_head = SWIG_GetModule(clientdata);
12383
+ if (!module_head) {
12384
+ /* This is the first module loaded for this interpreter */
12385
+ /* so set the swig module into the interpreter */
12386
+ SWIG_SetModule(clientdata, &swig_module);
12387
+ module_head = &swig_module;
12389
+ /* the interpreter has loaded a SWIG module, but has it loaded this one? */
12391
+ iter=module_head;
12393
+ if (iter==&swig_module) {
12398
+ } while (iter!= module_head);
12400
+ /* if the is found in the list, then all is done and we may leave */
12401
+ if (found) return;
12402
+ /* otherwise we must add out module into the list */
12403
+ swig_module.next = module_head->next;
12404
+ module_head->next = &swig_module;
12407
+ /* When multiple interpeters are used, a module could have already been initialized in
12408
+ a different interpreter, but not yet have a pointer in this interpreter.
12409
+ In this case, we do not want to continue adding types... everything should be
12410
+ set up already */
12411
+ if (init == 0) return;
12413
+ /* Now work on filling in swig_module.types */
12414
+#ifdef SWIGRUNTIME_DEBUG
12415
+ printf("SWIG_InitializeModule: size %d\n", swig_module.size);
12417
+ for (i = 0; i < swig_module.size; ++i) {
12418
+ swig_type_info *type = 0;
12419
+ swig_type_info *ret;
12420
+ swig_cast_info *cast;
12422
+#ifdef SWIGRUNTIME_DEBUG
12423
+ printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
12426
+ /* if there is another module already loaded */
12427
+ if (swig_module.next != &swig_module) {
12428
+ type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
12431
+ /* Overwrite clientdata field */
12432
+#ifdef SWIGRUNTIME_DEBUG
12433
+ printf("SWIG_InitializeModule: found type %s\n", type->name);
12435
+ if (swig_module.type_initial[i]->clientdata) {
12436
+ type->clientdata = swig_module.type_initial[i]->clientdata;
12437
+#ifdef SWIGRUNTIME_DEBUG
12438
+ printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
12442
+ type = swig_module.type_initial[i];
12445
+ /* Insert casting types */
12446
+ cast = swig_module.cast_initial[i];
12447
+ while (cast->type) {
12448
+ /* Don't need to add information already in the list */
12450
+#ifdef SWIGRUNTIME_DEBUG
12451
+ printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
12453
+ if (swig_module.next != &swig_module) {
12454
+ ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
12455
+#ifdef SWIGRUNTIME_DEBUG
12456
+ if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
12460
+ if (type == swig_module.type_initial[i]) {
12461
+#ifdef SWIGRUNTIME_DEBUG
12462
+ printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
12464
+ cast->type = ret;
12467
+ /* Check for casting already in the list */
12468
+ swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
12469
+#ifdef SWIGRUNTIME_DEBUG
12470
+ if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
12472
+ if (!ocast) ret = 0;
12477
+#ifdef SWIGRUNTIME_DEBUG
12478
+ printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
12480
+ if (type->cast) {
12481
+ type->cast->prev = cast;
12482
+ cast->next = type->cast;
12484
+ type->cast = cast;
12488
+ /* Set entry in modules->types array equal to the type */
12489
+ swig_module.types[i] = type;
12491
+ swig_module.types[i] = 0;
12493
+#ifdef SWIGRUNTIME_DEBUG
12494
+ printf("**** SWIG_InitializeModule: Cast List ******\n");
12495
+ for (i = 0; i < swig_module.size; ++i) {
12497
+ swig_cast_info *cast = swig_module.cast_initial[i];
12498
+ printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
12499
+ while (cast->type) {
12500
+ printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
12504
+ printf("---- Total casts: %d\n",j);
12506
+ printf("**** SWIG_InitializeModule: Cast List ******\n");
12510
+/* This function will propagate the clientdata field of type to
12511
+* any new swig_type_info structures that have been added into the list
12512
+* of equivalent types. It is like calling
12513
+* SWIG_TypeClientData(type, clientdata) a second time.
12516
+SWIG_PropagateClientData(void) {
12518
+ swig_cast_info *equiv;
12519
+ static int init_run = 0;
12521
+ if (init_run) return;
12524
+ for (i = 0; i < swig_module.size; i++) {
12525
+ if (swig_module.types[i]->clientdata) {
12526
+ equiv = swig_module.types[i]->cast;
12528
+ if (!equiv->converter) {
12529
+ if (equiv->type && !equiv->type->clientdata)
12530
+ SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
12532
+ equiv = equiv->next;
12538
+#ifdef __cplusplus
12548
+#ifdef __cplusplus
12552
+ /* Python-specific SWIG API */
12553
+#define SWIG_newvarlink() SWIG_Python_newvarlink()
12554
+#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
12555
+#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
12557
+ /* -----------------------------------------------------------------------------
12558
+ * global variable support code.
12559
+ * ----------------------------------------------------------------------------- */
12561
+ typedef struct swig_globalvar {
12562
+ char *name; /* Name of global variable */
12563
+ PyObject *(*get_attr)(void); /* Return the current value */
12564
+ int (*set_attr)(PyObject *); /* Set the value */
12565
+ struct swig_globalvar *next;
12566
+ } swig_globalvar;
12568
+ typedef struct swig_varlinkobject {
12570
+ swig_globalvar *vars;
12571
+ } swig_varlinkobject;
12573
+ SWIGINTERN PyObject *
12574
+ swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
12575
+ return PyString_FromString("<Swig global variables>");
12578
+ SWIGINTERN PyObject *
12579
+ swig_varlink_str(swig_varlinkobject *v) {
12580
+ PyObject *str = PyString_FromString("(");
12581
+ swig_globalvar *var;
12582
+ for (var = v->vars; var; var=var->next) {
12583
+ PyString_ConcatAndDel(&str,PyString_FromString(var->name));
12584
+ if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
12586
+ PyString_ConcatAndDel(&str,PyString_FromString(")"));
12591
+ swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
12592
+ PyObject *str = swig_varlink_str(v);
12593
+ fprintf(fp,"Swig global variables ");
12594
+ fprintf(fp,"%s\n", PyString_AsString(str));
12600
+ swig_varlink_dealloc(swig_varlinkobject *v) {
12601
+ swig_globalvar *var = v->vars;
12603
+ swig_globalvar *n = var->next;
12610
+ SWIGINTERN PyObject *
12611
+ swig_varlink_getattr(swig_varlinkobject *v, char *n) {
12612
+ PyObject *res = NULL;
12613
+ swig_globalvar *var = v->vars;
12615
+ if (strcmp(var->name,n) == 0) {
12616
+ res = (*var->get_attr)();
12621
+ if (res == NULL && !PyErr_Occurred()) {
12622
+ PyErr_SetString(PyExc_NameError,"Unknown C global variable");
12628
+ swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
12630
+ swig_globalvar *var = v->vars;
12632
+ if (strcmp(var->name,n) == 0) {
12633
+ res = (*var->set_attr)(p);
12638
+ if (res == 1 && !PyErr_Occurred()) {
12639
+ PyErr_SetString(PyExc_NameError,"Unknown C global variable");
12644
+ SWIGINTERN PyTypeObject*
12645
+ swig_varlink_type(void) {
12646
+ static char varlink__doc__[] = "Swig var link object";
12647
+ static PyTypeObject varlink_type;
12648
+ static int type_init = 0;
12649
+ if (!type_init) {
12650
+ const PyTypeObject tmp
12652
+ PyObject_HEAD_INIT(NULL)
12653
+ 0, /* Number of items in variable part (ob_size) */
12654
+ (char *)"swigvarlink", /* Type name (tp_name) */
12655
+ sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
12656
+ 0, /* Itemsize (tp_itemsize) */
12657
+ (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
12658
+ (printfunc) swig_varlink_print, /* Print (tp_print) */
12659
+ (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
12660
+ (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
12661
+ 0, /* tp_compare */
12662
+ (reprfunc) swig_varlink_repr, /* tp_repr */
12663
+ 0, /* tp_as_number */
12664
+ 0, /* tp_as_sequence */
12665
+ 0, /* tp_as_mapping */
12668
+ (reprfunc)swig_varlink_str, /* tp_str */
12669
+ 0, /* tp_getattro */
12670
+ 0, /* tp_setattro */
12671
+ 0, /* tp_as_buffer */
12672
+ 0, /* tp_flags */
12673
+ varlink__doc__, /* tp_doc */
12674
+ 0, /* tp_traverse */
12675
+ 0, /* tp_clear */
12676
+ 0, /* tp_richcompare */
12677
+ 0, /* tp_weaklistoffset */
12678
+#if PY_VERSION_HEX >= 0x02020000
12679
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
12681
+#if PY_VERSION_HEX >= 0x02030000
12684
+#ifdef COUNT_ALLOCS
12685
+ 0,0,0,0 /* tp_alloc -> tp_next */
12688
+ varlink_type = tmp;
12689
+ varlink_type.ob_type = &PyType_Type;
12692
+ return &varlink_type;
12695
+ /* Create a variable linking object for use later */
12696
+ SWIGINTERN PyObject *
12697
+ SWIG_Python_newvarlink(void) {
12698
+ swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
12700
+ result->vars = 0;
12702
+ return ((PyObject*) result);
12706
+ SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
12707
+ swig_varlinkobject *v = (swig_varlinkobject *) p;
12708
+ swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
12710
+ size_t size = strlen(name)+1;
12711
+ gv->name = (char *)malloc(size);
12713
+ strncpy(gv->name,name,size);
12714
+ gv->get_attr = get_attr;
12715
+ gv->set_attr = set_attr;
12716
+ gv->next = v->vars;
12722
+ SWIGINTERN PyObject *
12723
+ SWIG_globals(void) {
12724
+ static PyObject *_SWIG_globals = 0;
12725
+ if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
12726
+ return _SWIG_globals;
12729
+ /* -----------------------------------------------------------------------------
12730
+ * constants/methods manipulation
12731
+ * ----------------------------------------------------------------------------- */
12733
+ /* Install Constants */
12735
+ SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
12736
+ PyObject *obj = 0;
12738
+ for (i = 0; constants[i].type; ++i) {
12739
+ switch(constants[i].type) {
12740
+ case SWIG_PY_POINTER:
12741
+ obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
12743
+ case SWIG_PY_BINARY:
12744
+ obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
12751
+ PyDict_SetItemString(d, constants[i].name, obj);
12757
+ /* -----------------------------------------------------------------------------*/
12758
+ /* Fix SwigMethods to carry the callback ptrs when needed */
12759
+ /* -----------------------------------------------------------------------------*/
12762
+ SWIG_Python_FixMethods(PyMethodDef *methods,
12763
+ swig_const_info *const_table,
12764
+ swig_type_info **types,
12765
+ swig_type_info **types_initial) {
12767
+ for (i = 0; methods[i].ml_name; ++i) {
12768
+ const char *c = methods[i].ml_doc;
12769
+ if (c && (c = strstr(c, "swig_ptr: "))) {
12771
+ swig_const_info *ci = 0;
12772
+ const char *name = c + 10;
12773
+ for (j = 0; const_table[j].type; ++j) {
12774
+ if (strncmp(const_table[j].name, name,
12775
+ strlen(const_table[j].name)) == 0) {
12776
+ ci = &(const_table[j]);
12781
+ size_t shift = (ci->ptype) - types;
12782
+ swig_type_info *ty = types_initial[shift];
12783
+ size_t ldoc = (c - methods[i].ml_doc);
12784
+ size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
12785
+ char *ndoc = (char*)malloc(ldoc + lptr + 10);
12787
+ char *buff = ndoc;
12788
+ void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
12790
+ strncpy(buff, methods[i].ml_doc, ldoc);
12792
+ strncpy(buff, "swig_ptr: ", 10);
12794
+ SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
12795
+ methods[i].ml_doc = ndoc;
12803
+#ifdef __cplusplus
12807
+/* -----------------------------------------------------------------------------*
12808
+ * Partial Init method
12809
+ * -----------------------------------------------------------------------------*/
12811
+#ifdef __cplusplus
12814
+SWIGEXPORT void SWIG_init(void) {
12817
+ /* Fix SwigMethods to carry the callback ptrs when needed */
12818
+ SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
12820
+ m = Py_InitModule((char *) SWIG_name, SwigMethods);
12821
+ d = PyModule_GetDict(m);
12823
+ SWIG_InitializeModule(0);
12824
+ SWIG_InstallConstants(d,swig_const_table);
12827
+ SWIG_Python_SetConstant(d, "GV_POINT",SWIG_From_int(static_cast< int >(0x01)));
12828
+ SWIG_Python_SetConstant(d, "GV_LINE",SWIG_From_int(static_cast< int >(0x02)));
12829
+ SWIG_Python_SetConstant(d, "GV_BOUNDARY",SWIG_From_int(static_cast< int >(0x04)));
12830
+ SWIG_Python_SetConstant(d, "GV_CENTROID",SWIG_From_int(static_cast< int >(0x08)));
12831
+ SWIG_Python_SetConstant(d, "GV_FACE",SWIG_From_int(static_cast< int >(0x10)));
12832
+ SWIG_Python_SetConstant(d, "GV_KERNEL",SWIG_From_int(static_cast< int >(0x20)));
12833
+ SWIG_Python_SetConstant(d, "GV_AREA",SWIG_From_int(static_cast< int >(0x40)));
12834
+ SWIG_Python_SetConstant(d, "GV_VOLUME",SWIG_From_int(static_cast< int >(0x80)));
12835
+ SWIG_Python_SetConstant(d, "GV_POINTS",SWIG_From_int(static_cast< int >((0x01|0x08))));
12836
+ SWIG_Python_SetConstant(d, "GV_LINES",SWIG_From_int(static_cast< int >((0x02|0x04))));
12837
+ SWIG_Python_SetConstant(d, "PORT_DOUBLE_MAX",SWIG_From_double(static_cast< double >(1.7976931348623157e+308)));
12838
+ SWIG_Python_SetConstant(d, "VIEW_DEFAULT_POS_X",SWIG_From_double(static_cast< double >(0.85)));
12839
+ SWIG_Python_SetConstant(d, "VIEW_DEFAULT_POS_Y",SWIG_From_double(static_cast< double >(0.85)));
12840
+ SWIG_Python_SetConstant(d, "VIEW_DEFAULT_PERSP",SWIG_From_double(static_cast< double >(40.0)));
12841
+ SWIG_Python_SetConstant(d, "VIEW_DEFAULT_TWIST",SWIG_From_double(static_cast< double >(0.0)));
12842
+ SWIG_Python_SetConstant(d, "VIEW_DEFAULT_ZEXAG",SWIG_From_double(static_cast< double >(1.0)));
12843
+ SWIG_Python_SetConstant(d, "DM_GOURAUD",SWIG_From_int(static_cast< int >(0x00000100)));
12844
+ SWIG_Python_SetConstant(d, "DM_FLAT",SWIG_From_int(static_cast< int >(0x00000200)));
12845
+ SWIG_Python_SetConstant(d, "DM_FRINGE",SWIG_From_int(static_cast< int >(0x00000010)));
12846
+ SWIG_Python_SetConstant(d, "DM_WIRE",SWIG_From_int(static_cast< int >(0x00000001)));
12847
+ SWIG_Python_SetConstant(d, "DM_COL_WIRE",SWIG_From_int(static_cast< int >(0x00000002)));
12848
+ SWIG_Python_SetConstant(d, "DM_POLY",SWIG_From_int(static_cast< int >(0x00000004)));
12849
+ SWIG_Python_SetConstant(d, "DM_WIRE_POLY",SWIG_From_int(static_cast< int >(0x00000008)));
12850
+ SWIG_Python_SetConstant(d, "DM_GRID_WIRE",SWIG_From_int(static_cast< int >(0x00000400)));
12851
+ SWIG_Python_SetConstant(d, "DM_GRID_SURF",SWIG_From_int(static_cast< int >(0x00000800)));
12852
+ SWIG_Python_SetConstant(d, "ST_X",SWIG_From_int(static_cast< int >(1)));
12853
+ SWIG_Python_SetConstant(d, "ST_BOX",SWIG_From_int(static_cast< int >(2)));
12854
+ SWIG_Python_SetConstant(d, "ST_SPHERE",SWIG_From_int(static_cast< int >(3)));
12855
+ SWIG_Python_SetConstant(d, "ST_CUBE",SWIG_From_int(static_cast< int >(4)));
12856
+ SWIG_Python_SetConstant(d, "ST_DIAMOND",SWIG_From_int(static_cast< int >(5)));
12857
+ SWIG_Python_SetConstant(d, "ST_DEC_TREE",SWIG_From_int(static_cast< int >(6)));
12858
+ SWIG_Python_SetConstant(d, "ST_CON_TREE",SWIG_From_int(static_cast< int >(7)));
12859
+ SWIG_Python_SetConstant(d, "ST_ASTER",SWIG_From_int(static_cast< int >(8)));
12860
+ SWIG_Python_SetConstant(d, "ST_GYRO",SWIG_From_int(static_cast< int >(9)));
12861
+ SWIG_Python_SetConstant(d, "ST_HISTOGRAM",SWIG_From_int(static_cast< int >(10)));
12862
+ SWIG_Python_SetConstant(d, "MAX_ISOSURFS",SWIG_From_int(static_cast< int >(12)));
12863
+ SWIG_Python_SetConstant(d, "MAX_SLICES",SWIG_From_int(static_cast< int >(12)));
12864
+ SWIG_Python_SetConstant(d, "DRAW_QUICK_SURFACE",SWIG_From_int(static_cast< int >(0x01)));
12865
+ SWIG_Python_SetConstant(d, "DRAW_QUICK_VLINES",SWIG_From_int(static_cast< int >(0x02)));
12866
+ SWIG_Python_SetConstant(d, "DRAW_QUICK_VPOINTS",SWIG_From_int(static_cast< int >(0x04)));
12867
+ SWIG_Python_SetConstant(d, "DRAW_QUICK_VOLUME",SWIG_From_int(static_cast< int >(0x08)));
12870
diff -urNad grass-6.4.0~rc5+39426~/gui/wxpython/nviz/setup.py grass-6.4.0~rc5+39426/gui/wxpython/nviz/setup.py
12871
--- grass-6.4.0~rc5+39426~/gui/wxpython/nviz/setup.py 2009-06-09 15:22:20.000000000 +0200
12872
+++ grass-6.4.0~rc5+39426/gui/wxpython/nviz/setup.py 2009-10-08 00:04:10.000000000 +0200
12877
- "grass6_wxnviz.i"],
12878
+ "grass6_wxnviz_wrap.cpp"],
12879
swig_opts = ['-c++',
12881
define_macros = macros,
12882
diff -urNad grass-6.4.0~rc5+39426~/gui/wxpython/vdigit/Makefile grass-6.4.0~rc5+39426/gui/wxpython/vdigit/Makefile
12883
--- grass-6.4.0~rc5+39426~/gui/wxpython/vdigit/Makefile 2009-10-07 10:48:15.000000000 +0200
12884
+++ grass-6.4.0~rc5+39426/gui/wxpython/vdigit/Makefile 2009-10-08 00:05:02.000000000 +0200
12887
$(LIB_NAME).py: $(SHLIB)
12889
-$(SHLIB): $(LIB_NAME).i
12890
+$(SHLIB): $(LIB_NAME)_wrap.cpp
12891
python setup.py build_ext --swig=$(SWIG) --swig-opts=-c++ --build-lib=$(OBJDIR) --build-temp=$(OBJDIR)
12893
.NOTPARALLEL: $(LIB_NAME).py $(LIB_NAME)_wrap.cpp
12894
diff -urNad grass-6.4.0~rc5+39426~/gui/wxpython/vdigit/grass6_wxvdigit.i grass-6.4.0~rc5+39426/gui/wxpython/vdigit/grass6_wxvdigit.i
12895
--- grass-6.4.0~rc5+39426~/gui/wxpython/vdigit/grass6_wxvdigit.i 1970-01-01 01:00:00.000000000 +0100
12896
+++ grass-6.4.0~rc5+39426/gui/wxpython/vdigit/grass6_wxvdigit.i 2009-10-08 00:01:13.000000000 +0200
12898
+/* File: digit.i */
12900
+%module grass6_wxvdigit
12902
+#include <grass/gis.h>
12903
+#include <grass/gisdefs.h>
12904
+#include <grass/Vect.h>
12905
+#include <grass/vect/dig_structs.h>
12906
+#include "driver.h"
12907
+#include "digit.h"
12910
+%include "std_vector.i"
12912
+ %template(IntVector) vector<int>;
12913
+ %template(DoubleVector) vector<double>;
12915
+%include "std_map.i"
12917
+ %template(IntVecIntMap) map<int, vector<int> >;
12920
+ %template(DoubleVecIntMap) map<int, vector<double> >;
12923
+%include "driver.h"
12924
+%include "digit.h"
12926
+#include <wx/wxPython/wxPython.h>
12927
+#include <wx/wxPython/pyclasses.h>
12931
+#include "pseudodc.h"
12934
+%rename(PseudoDC) gwxPseudoDC;
12936
+%typemap(out) wxRect {
12937
+ $result = Py_BuildValue("iiii", $1.x, $1.y, $1.width, $1.height);
12946
+ void RemoveAll();
12947
+ void RemoveId(int id);
12949
+ void DrawToDC(void *dc) {
12950
+ self->DrawToDC((wxDC *) dc);
12952
+ void DrawToDCClipped(void *dc, const wxRect& rect) {
12953
+ self->DrawToDCClipped((wxDC *) dc, rect);
12955
+ wxRect GetIdBounds(int id) {
12957
+ self->GetIdBounds(id, rect);
12963
+/* extracted from include/vect/dig_defines.h */
12965
+#define GV_POINT 0x01
12966
+#define GV_LINE 0x02
12967
+#define GV_BOUNDARY 0x04
12968
+#define GV_CENTROID 0x08
12969
+#define GV_FACE 0x10
12970
+#define GV_KERNEL 0x20
12971
+#define GV_AREA 0x40
12972
+#define GV_VOLUME 0x80
12974
+#define GV_POINTS (GV_POINT | GV_CENTROID )
12975
+#define GV_LINES (GV_LINE | GV_BOUNDARY )
12977
+#define PORT_DOUBLE_MAX 1.7976931348623157e+308
12979
+/* extracted from vector/v.edit/lib/vedit.h */
12981
+#define NO_SNAP 0 /* snapping disabled */
12982
+#define SNAP 1 /* snapping enabled for nodes */
12983
+#define SNAPVERTEX 2 /* snapping enabled for vertex also */
12985
+#define QUERY_UNKNOWN -1
12986
+#define QUERY_LENGTH 0 /* select by line length */
12987
+#define QUERY_DANGLE 1 /* select dangles */
12988
+/* auto-generated swig typedef file */
12989
+#ifndef WXVDIGIT_DRIVER_H
12990
+#define WXVDIGIT_DRIVER_H
12992
+#include <iostream> // debug
12997
+// For compilers that support precompilation, includes "wx.h".
12998
+#include <wx/wxprec.h>
13000
+#ifdef __BORLANDC__
13004
+#ifndef WX_PRECOMP
13005
+// Include your minimal set of headers here, or wx.h
13006
+#include <wx/wx.h>
13009
+#include <wx/dc.h>
13010
+#include <wx/list.h>
13011
+#include <wx/string.h>
13013
+#include <Python.h>
13014
+#include "pseudodc.h"
13015
+#include <wx/gdicmn.h>
13018
+#include <grass/gis.h>
13019
+#include <grass/Vect.h>
13022
+class DisplayDriver
13025
+ friend class Digit;
13026
+ gwxPseudoDC *dc, *dcTmp; // device content
13027
+ wxWindow *parentWin;
13029
+ /* disabled due to expensive calling dc->SetId()
13031
+ * currently all objects are drawn without id
13033
+ * only selected lines with id '1'
13035
+ * segments with unique id (starting with '1')
13036
+ * are drawn only when line was selected using SelectLineByPoint()
13039
+ struct _selected {
13040
+ int field; // field number
13041
+ struct ilist *cats; // list of cats
13042
+ struct ilist *ids; // list of ids
13043
+ struct ilist *idsDupl; // list of duplicated features
13046
+ bool drawSelected;
13048
+ bool drawSegments; // draw segments of selected line
13050
+ struct Map_info *mapInfo;
13051
+ struct line_pnts *points; // east, north, depth
13052
+ wxList *pointsScreen; // x, y, z
13053
+ struct line_cats *cats;
13056
+ // GRASS region section
13057
+ BOUND_BOX box; // W,E,N,S,T,B
13060
+ double center_easting;
13061
+ double center_northing;
13063
+ // map window section
13064
+ double map_width; // px
13065
+ double map_height;
13067
+ double map_north;
13076
+ struct _settings {
13077
+ wxColor highlight;
13078
+ symbol highlightDupl;
13083
+ symbol boundaryNo;
13084
+ symbol boundaryOne;
13085
+ symbol boundaryTwo;
13087
+ symbol centroidIn;
13088
+ symbol centroidOut;
13089
+ symbol centroidDup;
13098
+ symbol direction;
13100
+ int lineWidth; // screen units
13103
+ struct _topology {
13104
+ long int highlight;
13109
+ long int boundaryNo;
13110
+ long int boundaryOne;
13111
+ long int boundaryTwo;
13113
+ long int centroidIn;
13114
+ long int centroidOut;
13115
+ long int centroidDup;
13117
+ long int nodeOne;
13118
+ long int nodeTwo;
13123
+ void Cell2Pixel (double, double, double,
13124
+ double *, double *, double *);
13125
+ double DistanceInPixels(double);
13127
+ int DrawCross(gwxPseudoDC *, int, const wxPoint *, int size=5);
13128
+ int DrawArrow(double, double, double, double, double,
13131
+ int DrawLine(int);
13132
+ int DrawLineVerteces(int);
13133
+ int DrawLineNodes(int);
13134
+ int DrawDirectionArrow();
13136
+ int DrawArea(const line_pnts *);
13141
+ /* select feature */
13142
+ bool IsSelected(int, bool force=false);
13143
+ bool IsDuplicated(int);
13145
+ std::vector<int> ListToVector(struct ilist *);
13146
+ int VectorToList(struct ilist *, const std::vector<int>&);
13148
+ void ResetTopology();
13150
+ /* message dialogs */
13151
+ wxString msgCaption;
13152
+ void DisplayMsg(void);
13153
+ void Only2DMsg(void);
13154
+ void ReadLineMsg(int);
13155
+ void DeadLineMsg(int);
13156
+ void WriteLineMsg(void);
13157
+ void BackgroundMapMsg(const char *);
13158
+ void DblinkMsg(int);
13159
+ void DbDriverMsg(const char *);
13160
+ void DbDatabaseMsg(const char *, const char *);
13161
+ void DbExecuteMsg(const char *);
13162
+ void DbSelectCursorMsg(const char *);
13163
+ void GetLineCatsMsg(int);
13166
+ /* constructor */
13167
+ DisplayDriver(void *, void *);
13169
+ ~DisplayDriver();
13172
+ int DrawMap(bool);
13175
+ int SelectLinesByBox(double, double, double, double,
13176
+ double, double, int, bool, bool);
13177
+ std::vector<double> SelectLineByPoint(double, double, double,
13178
+ double, int, int);
13180
+ std::vector<int> GetSelected(bool);
13181
+ std::map<int, std::vector<double> > GetSelectedCoord();
13182
+ std::map<int, std::vector <int> > GetDuplicates();
13183
+ std::vector<double> GetRegionSelected();
13184
+ int SetSelected(std::vector<int>, int);
13185
+ int UnSelect(std::vector<int>);
13186
+ std::vector<int> GetSelectedVertex(double, double, double);
13187
+ void DrawSelected(bool);
13191
+ int OpenMap(const char *, const char *, bool);
13192
+ void ReloadMap();
13193
+ void SetDevice(void *);
13196
+ std::vector<double> GetMapBoundingBox();
13200
+ void SetRegion(double, double, double, double,
13205
+ void UpdateSettings(unsigned long,
13206
+ bool, unsigned long,
13207
+ bool, unsigned long, /* enabled, color */
13208
+ bool, unsigned long,
13209
+ bool, unsigned long,
13210
+ bool, unsigned long,
13211
+ bool, unsigned long,
13212
+ bool, unsigned long,
13213
+ bool, unsigned long,
13214
+ bool, unsigned long,
13215
+ bool, unsigned long,
13216
+ bool, unsigned long,
13217
+ bool, unsigned long,
13218
+ bool, unsigned long,
13219
+ bool, unsigned long,
13223
+int print_error(const char *, int);
13225
+#endif /* WXVDIGIT_DRIVER_H */
13226
+#ifndef WXVDIGIT_DIGIT_H
13227
+#define WXVDIGIT_DIGIT_H
13229
+#define GSQL_MAX 4000
13237
+ /* layer / max category */
13238
+ std::map<int, int> cats;
13240
+ DisplayDriver *display;
13242
+ int SetCategory(int, int);
13243
+ struct Map_info** OpenBackgroundVectorMap(const char *);
13244
+ int BreakLineAtIntersection(int, struct line_pnts*, int);
13246
+ int AddActionsBefore(void);
13247
+ void AddActionsAfter(int, int);
13250
+ struct _settings {
13255
+ enum action_type { ADD, DEL };
13256
+ struct action_meta {
13257
+ action_type type;
13262
+ std::map<int, std::vector<action_meta> > changesets;
13263
+ int changesetCurrent; /* first changeset to apply */
13264
+ int changesetEnd; /* last changeset to be applied */
13266
+ int AddActionToChangeset(int, action_type, int);
13267
+ int ApplyChangeset(int, bool);
13268
+ void FreeChangeset(int);
13269
+ int RemoveActionFromChangeset(int, action_type, int);
13272
+ Digit(DisplayDriver *, wxWindow *);
13277
+ int AddLine(int, std::vector<double>, int, int,
13278
+ const char*, int, double);
13279
+ int RewriteLine(int, std::vector<double>,
13280
+ const char*, int, double);
13281
+ int SplitLine(double, double, double,
13284
+ int DeleteLines(bool);
13285
+ int MoveLines(double, double, double,
13286
+ const char*, int, double);
13288
+ int MergeLines();
13289
+ int BreakLines();
13290
+ int SnapLines(double);
13291
+ int ConnectLines(double);
13292
+ int TypeConvLines();
13293
+ int ZBulkLabeling(double, double, double, double,
13295
+ int CopyLines(std::vector<int>, const char*);
13297
+ int MoveVertex(double, double, double,
13298
+ double, double, double,
13299
+ const char*, int,
13301
+ int ModifyLineVertex(int, double, double, double,
13304
+ std::vector<int> SelectLinesByQuery(double, double, double,
13305
+ double, double, double, bool,
13306
+ int, int, double);
13308
+ int CopyCats(std::vector<int>, std::vector<int>, bool);
13309
+ int GetCategory(int);
13310
+ std::map<int, std::vector<int> > GetLineCats(int);
13311
+ int SetLineCats(int, int, std::vector<int>, bool);
13312
+ std::vector<int> GetLayers();
13315
+ int GetUndoLevel();
13317
+ void UpdateSettings(bool);
13320
+#endif /* WXVDIGIT_DIGIT_H */
13321
diff -urNad grass-6.4.0~rc5+39426~/gui/wxpython/vdigit/grass6_wxvdigit.py grass-6.4.0~rc5+39426/gui/wxpython/vdigit/grass6_wxvdigit.py
13322
--- grass-6.4.0~rc5+39426~/gui/wxpython/vdigit/grass6_wxvdigit.py 1970-01-01 01:00:00.000000000 +0100
13323
+++ grass-6.4.0~rc5+39426/gui/wxpython/vdigit/grass6_wxvdigit.py 2009-10-08 00:01:13.000000000 +0200
13325
+# This file was automatically generated by SWIG (http://www.swig.org).
13328
+# Don't modify this file, modify the SWIG interface instead.
13329
+# This file is compatible with both classic and new-style classes.
13331
+import _grass6_wxvdigit
13333
+new_instancemethod = new.instancemethod
13335
+ _swig_property = property
13337
+ pass # Python < 2.2 doesn't have 'property'.
13338
+def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
13339
+ if (name == "thisown"): return self.this.own(value)
13340
+ if (name == "this"):
13341
+ if type(value).__name__ == 'PySwigObject':
13342
+ self.__dict__[name] = value
13344
+ method = class_type.__swig_setmethods__.get(name,None)
13345
+ if method: return method(self,value)
13346
+ if (not static) or hasattr(self,name):
13347
+ self.__dict__[name] = value
13349
+ raise AttributeError("You cannot add attributes to %s" % self)
13351
+def _swig_setattr(self,class_type,name,value):
13352
+ return _swig_setattr_nondynamic(self,class_type,name,value,0)
13354
+def _swig_getattr(self,class_type,name):
13355
+ if (name == "thisown"): return self.this.own()
13356
+ method = class_type.__swig_getmethods__.get(name,None)
13357
+ if method: return method(self)
13358
+ raise AttributeError,name
13360
+def _swig_repr(self):
13361
+ try: strthis = "proxy of " + self.this.__repr__()
13362
+ except: strthis = ""
13363
+ return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
13367
+ _object = types.ObjectType
13369
+except AttributeError:
13370
+ class _object : pass
13375
+class PySwigIterator(_object):
13376
+ __swig_setmethods__ = {}
13377
+ __setattr__ = lambda self, name, value: _swig_setattr(self, PySwigIterator, name, value)
13378
+ __swig_getmethods__ = {}
13379
+ __getattr__ = lambda self, name: _swig_getattr(self, PySwigIterator, name)
13380
+ def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined"
13381
+ __repr__ = _swig_repr
13382
+ __swig_destroy__ = _grass6_wxvdigit.delete_PySwigIterator
13383
+ __del__ = lambda self : None;
13384
+ def value(*args): return _grass6_wxvdigit.PySwigIterator_value(*args)
13385
+ def incr(*args): return _grass6_wxvdigit.PySwigIterator_incr(*args)
13386
+ def decr(*args): return _grass6_wxvdigit.PySwigIterator_decr(*args)
13387
+ def distance(*args): return _grass6_wxvdigit.PySwigIterator_distance(*args)
13388
+ def equal(*args): return _grass6_wxvdigit.PySwigIterator_equal(*args)
13389
+ def copy(*args): return _grass6_wxvdigit.PySwigIterator_copy(*args)
13390
+ def next(*args): return _grass6_wxvdigit.PySwigIterator_next(*args)
13391
+ def previous(*args): return _grass6_wxvdigit.PySwigIterator_previous(*args)
13392
+ def advance(*args): return _grass6_wxvdigit.PySwigIterator_advance(*args)
13393
+ def __eq__(*args): return _grass6_wxvdigit.PySwigIterator___eq__(*args)
13394
+ def __ne__(*args): return _grass6_wxvdigit.PySwigIterator___ne__(*args)
13395
+ def __iadd__(*args): return _grass6_wxvdigit.PySwigIterator___iadd__(*args)
13396
+ def __isub__(*args): return _grass6_wxvdigit.PySwigIterator___isub__(*args)
13397
+ def __add__(*args): return _grass6_wxvdigit.PySwigIterator___add__(*args)
13398
+ def __sub__(*args): return _grass6_wxvdigit.PySwigIterator___sub__(*args)
13399
+ def __iter__(self): return self
13400
+PySwigIterator_swigregister = _grass6_wxvdigit.PySwigIterator_swigregister
13401
+PySwigIterator_swigregister(PySwigIterator)
13403
+class IntVector(_object):
13404
+ __swig_setmethods__ = {}
13405
+ __setattr__ = lambda self, name, value: _swig_setattr(self, IntVector, name, value)
13406
+ __swig_getmethods__ = {}
13407
+ __getattr__ = lambda self, name: _swig_getattr(self, IntVector, name)
13408
+ __repr__ = _swig_repr
13409
+ def iterator(*args): return _grass6_wxvdigit.IntVector_iterator(*args)
13410
+ def __iter__(self): return self.iterator()
13411
+ def __nonzero__(*args): return _grass6_wxvdigit.IntVector___nonzero__(*args)
13412
+ def __len__(*args): return _grass6_wxvdigit.IntVector___len__(*args)
13413
+ def pop(*args): return _grass6_wxvdigit.IntVector_pop(*args)
13414
+ def __getslice__(*args): return _grass6_wxvdigit.IntVector___getslice__(*args)
13415
+ def __setslice__(*args): return _grass6_wxvdigit.IntVector___setslice__(*args)
13416
+ def __delslice__(*args): return _grass6_wxvdigit.IntVector___delslice__(*args)
13417
+ def __delitem__(*args): return _grass6_wxvdigit.IntVector___delitem__(*args)
13418
+ def __getitem__(*args): return _grass6_wxvdigit.IntVector___getitem__(*args)
13419
+ def __setitem__(*args): return _grass6_wxvdigit.IntVector___setitem__(*args)
13420
+ def append(*args): return _grass6_wxvdigit.IntVector_append(*args)
13421
+ def empty(*args): return _grass6_wxvdigit.IntVector_empty(*args)
13422
+ def size(*args): return _grass6_wxvdigit.IntVector_size(*args)
13423
+ def clear(*args): return _grass6_wxvdigit.IntVector_clear(*args)
13424
+ def swap(*args): return _grass6_wxvdigit.IntVector_swap(*args)
13425
+ def get_allocator(*args): return _grass6_wxvdigit.IntVector_get_allocator(*args)
13426
+ def begin(*args): return _grass6_wxvdigit.IntVector_begin(*args)
13427
+ def end(*args): return _grass6_wxvdigit.IntVector_end(*args)
13428
+ def rbegin(*args): return _grass6_wxvdigit.IntVector_rbegin(*args)
13429
+ def rend(*args): return _grass6_wxvdigit.IntVector_rend(*args)
13430
+ def pop_back(*args): return _grass6_wxvdigit.IntVector_pop_back(*args)
13431
+ def erase(*args): return _grass6_wxvdigit.IntVector_erase(*args)
13432
+ def __init__(self, *args):
13433
+ this = _grass6_wxvdigit.new_IntVector(*args)
13434
+ try: self.this.append(this)
13435
+ except: self.this = this
13436
+ def push_back(*args): return _grass6_wxvdigit.IntVector_push_back(*args)
13437
+ def front(*args): return _grass6_wxvdigit.IntVector_front(*args)
13438
+ def back(*args): return _grass6_wxvdigit.IntVector_back(*args)
13439
+ def assign(*args): return _grass6_wxvdigit.IntVector_assign(*args)
13440
+ def resize(*args): return _grass6_wxvdigit.IntVector_resize(*args)
13441
+ def insert(*args): return _grass6_wxvdigit.IntVector_insert(*args)
13442
+ def reserve(*args): return _grass6_wxvdigit.IntVector_reserve(*args)
13443
+ def capacity(*args): return _grass6_wxvdigit.IntVector_capacity(*args)
13444
+ __swig_destroy__ = _grass6_wxvdigit.delete_IntVector
13445
+ __del__ = lambda self : None;
13446
+IntVector_swigregister = _grass6_wxvdigit.IntVector_swigregister
13447
+IntVector_swigregister(IntVector)
13449
+class DoubleVector(_object):
13450
+ __swig_setmethods__ = {}
13451
+ __setattr__ = lambda self, name, value: _swig_setattr(self, DoubleVector, name, value)
13452
+ __swig_getmethods__ = {}
13453
+ __getattr__ = lambda self, name: _swig_getattr(self, DoubleVector, name)
13454
+ __repr__ = _swig_repr
13455
+ def iterator(*args): return _grass6_wxvdigit.DoubleVector_iterator(*args)
13456
+ def __iter__(self): return self.iterator()
13457
+ def __nonzero__(*args): return _grass6_wxvdigit.DoubleVector___nonzero__(*args)
13458
+ def __len__(*args): return _grass6_wxvdigit.DoubleVector___len__(*args)
13459
+ def pop(*args): return _grass6_wxvdigit.DoubleVector_pop(*args)
13460
+ def __getslice__(*args): return _grass6_wxvdigit.DoubleVector___getslice__(*args)
13461
+ def __setslice__(*args): return _grass6_wxvdigit.DoubleVector___setslice__(*args)
13462
+ def __delslice__(*args): return _grass6_wxvdigit.DoubleVector___delslice__(*args)
13463
+ def __delitem__(*args): return _grass6_wxvdigit.DoubleVector___delitem__(*args)
13464
+ def __getitem__(*args): return _grass6_wxvdigit.DoubleVector___getitem__(*args)
13465
+ def __setitem__(*args): return _grass6_wxvdigit.DoubleVector___setitem__(*args)
13466
+ def append(*args): return _grass6_wxvdigit.DoubleVector_append(*args)
13467
+ def empty(*args): return _grass6_wxvdigit.DoubleVector_empty(*args)
13468
+ def size(*args): return _grass6_wxvdigit.DoubleVector_size(*args)
13469
+ def clear(*args): return _grass6_wxvdigit.DoubleVector_clear(*args)
13470
+ def swap(*args): return _grass6_wxvdigit.DoubleVector_swap(*args)
13471
+ def get_allocator(*args): return _grass6_wxvdigit.DoubleVector_get_allocator(*args)
13472
+ def begin(*args): return _grass6_wxvdigit.DoubleVector_begin(*args)
13473
+ def end(*args): return _grass6_wxvdigit.DoubleVector_end(*args)
13474
+ def rbegin(*args): return _grass6_wxvdigit.DoubleVector_rbegin(*args)
13475
+ def rend(*args): return _grass6_wxvdigit.DoubleVector_rend(*args)
13476
+ def pop_back(*args): return _grass6_wxvdigit.DoubleVector_pop_back(*args)
13477
+ def erase(*args): return _grass6_wxvdigit.DoubleVector_erase(*args)
13478
+ def __init__(self, *args):
13479
+ this = _grass6_wxvdigit.new_DoubleVector(*args)
13480
+ try: self.this.append(this)
13481
+ except: self.this = this
13482
+ def push_back(*args): return _grass6_wxvdigit.DoubleVector_push_back(*args)
13483
+ def front(*args): return _grass6_wxvdigit.DoubleVector_front(*args)
13484
+ def back(*args): return _grass6_wxvdigit.DoubleVector_back(*args)
13485
+ def assign(*args): return _grass6_wxvdigit.DoubleVector_assign(*args)
13486
+ def resize(*args): return _grass6_wxvdigit.DoubleVector_resize(*args)
13487
+ def insert(*args): return _grass6_wxvdigit.DoubleVector_insert(*args)
13488
+ def reserve(*args): return _grass6_wxvdigit.DoubleVector_reserve(*args)
13489
+ def capacity(*args): return _grass6_wxvdigit.DoubleVector_capacity(*args)
13490
+ __swig_destroy__ = _grass6_wxvdigit.delete_DoubleVector
13491
+ __del__ = lambda self : None;
13492
+DoubleVector_swigregister = _grass6_wxvdigit.DoubleVector_swigregister
13493
+DoubleVector_swigregister(DoubleVector)
13495
+class IntVecIntMap(_object):
13496
+ __swig_setmethods__ = {}
13497
+ __setattr__ = lambda self, name, value: _swig_setattr(self, IntVecIntMap, name, value)
13498
+ __swig_getmethods__ = {}
13499
+ __getattr__ = lambda self, name: _swig_getattr(self, IntVecIntMap, name)
13500
+ __repr__ = _swig_repr
13501
+ def iterator(*args): return _grass6_wxvdigit.IntVecIntMap_iterator(*args)
13502
+ def __iter__(self): return self.iterator()
13503
+ def __nonzero__(*args): return _grass6_wxvdigit.IntVecIntMap___nonzero__(*args)
13504
+ def __len__(*args): return _grass6_wxvdigit.IntVecIntMap___len__(*args)
13505
+ def __getitem__(*args): return _grass6_wxvdigit.IntVecIntMap___getitem__(*args)
13506
+ def __delitem__(*args): return _grass6_wxvdigit.IntVecIntMap___delitem__(*args)
13507
+ def has_key(*args): return _grass6_wxvdigit.IntVecIntMap_has_key(*args)
13508
+ def keys(*args): return _grass6_wxvdigit.IntVecIntMap_keys(*args)
13509
+ def values(*args): return _grass6_wxvdigit.IntVecIntMap_values(*args)
13510
+ def items(*args): return _grass6_wxvdigit.IntVecIntMap_items(*args)
13511
+ def __contains__(*args): return _grass6_wxvdigit.IntVecIntMap___contains__(*args)
13512
+ def key_iterator(*args): return _grass6_wxvdigit.IntVecIntMap_key_iterator(*args)
13513
+ def value_iterator(*args): return _grass6_wxvdigit.IntVecIntMap_value_iterator(*args)
13514
+ def __iter__(self): return self.key_iterator()
13515
+ def iterkeys(self): return self.key_iterator()
13516
+ def itervalues(self): return self.value_iterator()
13517
+ def iteritems(self): return self.iterator()
13518
+ def __setitem__(*args): return _grass6_wxvdigit.IntVecIntMap___setitem__(*args)
13519
+ def __init__(self, *args):
13520
+ this = _grass6_wxvdigit.new_IntVecIntMap(*args)
13521
+ try: self.this.append(this)
13522
+ except: self.this = this
13523
+ def empty(*args): return _grass6_wxvdigit.IntVecIntMap_empty(*args)
13524
+ def size(*args): return _grass6_wxvdigit.IntVecIntMap_size(*args)
13525
+ def clear(*args): return _grass6_wxvdigit.IntVecIntMap_clear(*args)
13526
+ def swap(*args): return _grass6_wxvdigit.IntVecIntMap_swap(*args)
13527
+ def get_allocator(*args): return _grass6_wxvdigit.IntVecIntMap_get_allocator(*args)
13528
+ def begin(*args): return _grass6_wxvdigit.IntVecIntMap_begin(*args)
13529
+ def end(*args): return _grass6_wxvdigit.IntVecIntMap_end(*args)
13530
+ def rbegin(*args): return _grass6_wxvdigit.IntVecIntMap_rbegin(*args)
13531
+ def rend(*args): return _grass6_wxvdigit.IntVecIntMap_rend(*args)
13532
+ def count(*args): return _grass6_wxvdigit.IntVecIntMap_count(*args)
13533
+ def erase(*args): return _grass6_wxvdigit.IntVecIntMap_erase(*args)
13534
+ def find(*args): return _grass6_wxvdigit.IntVecIntMap_find(*args)
13535
+ def lower_bound(*args): return _grass6_wxvdigit.IntVecIntMap_lower_bound(*args)
13536
+ def upper_bound(*args): return _grass6_wxvdigit.IntVecIntMap_upper_bound(*args)
13537
+ __swig_destroy__ = _grass6_wxvdigit.delete_IntVecIntMap
13538
+ __del__ = lambda self : None;
13539
+IntVecIntMap_swigregister = _grass6_wxvdigit.IntVecIntMap_swigregister
13540
+IntVecIntMap_swigregister(IntVecIntMap)
13542
+class DoubleVecIntMap(_object):
13543
+ __swig_setmethods__ = {}
13544
+ __setattr__ = lambda self, name, value: _swig_setattr(self, DoubleVecIntMap, name, value)
13545
+ __swig_getmethods__ = {}
13546
+ __getattr__ = lambda self, name: _swig_getattr(self, DoubleVecIntMap, name)
13547
+ __repr__ = _swig_repr
13548
+ def iterator(*args): return _grass6_wxvdigit.DoubleVecIntMap_iterator(*args)
13549
+ def __iter__(self): return self.iterator()
13550
+ def __nonzero__(*args): return _grass6_wxvdigit.DoubleVecIntMap___nonzero__(*args)
13551
+ def __len__(*args): return _grass6_wxvdigit.DoubleVecIntMap___len__(*args)
13552
+ def __getitem__(*args): return _grass6_wxvdigit.DoubleVecIntMap___getitem__(*args)
13553
+ def __delitem__(*args): return _grass6_wxvdigit.DoubleVecIntMap___delitem__(*args)
13554
+ def has_key(*args): return _grass6_wxvdigit.DoubleVecIntMap_has_key(*args)
13555
+ def keys(*args): return _grass6_wxvdigit.DoubleVecIntMap_keys(*args)
13556
+ def values(*args): return _grass6_wxvdigit.DoubleVecIntMap_values(*args)
13557
+ def items(*args): return _grass6_wxvdigit.DoubleVecIntMap_items(*args)
13558
+ def __contains__(*args): return _grass6_wxvdigit.DoubleVecIntMap___contains__(*args)
13559
+ def key_iterator(*args): return _grass6_wxvdigit.DoubleVecIntMap_key_iterator(*args)
13560
+ def value_iterator(*args): return _grass6_wxvdigit.DoubleVecIntMap_value_iterator(*args)
13561
+ def __iter__(self): return self.key_iterator()
13562
+ def iterkeys(self): return self.key_iterator()
13563
+ def itervalues(self): return self.value_iterator()
13564
+ def iteritems(self): return self.iterator()
13565
+ def __setitem__(*args): return _grass6_wxvdigit.DoubleVecIntMap___setitem__(*args)
13566
+ def __init__(self, *args):
13567
+ this = _grass6_wxvdigit.new_DoubleVecIntMap(*args)
13568
+ try: self.this.append(this)
13569
+ except: self.this = this
13570
+ def empty(*args): return _grass6_wxvdigit.DoubleVecIntMap_empty(*args)
13571
+ def size(*args): return _grass6_wxvdigit.DoubleVecIntMap_size(*args)
13572
+ def clear(*args): return _grass6_wxvdigit.DoubleVecIntMap_clear(*args)
13573
+ def swap(*args): return _grass6_wxvdigit.DoubleVecIntMap_swap(*args)
13574
+ def get_allocator(*args): return _grass6_wxvdigit.DoubleVecIntMap_get_allocator(*args)
13575
+ def begin(*args): return _grass6_wxvdigit.DoubleVecIntMap_begin(*args)
13576
+ def end(*args): return _grass6_wxvdigit.DoubleVecIntMap_end(*args)
13577
+ def rbegin(*args): return _grass6_wxvdigit.DoubleVecIntMap_rbegin(*args)
13578
+ def rend(*args): return _grass6_wxvdigit.DoubleVecIntMap_rend(*args)
13579
+ def count(*args): return _grass6_wxvdigit.DoubleVecIntMap_count(*args)
13580
+ def erase(*args): return _grass6_wxvdigit.DoubleVecIntMap_erase(*args)
13581
+ def find(*args): return _grass6_wxvdigit.DoubleVecIntMap_find(*args)
13582
+ def lower_bound(*args): return _grass6_wxvdigit.DoubleVecIntMap_lower_bound(*args)
13583
+ def upper_bound(*args): return _grass6_wxvdigit.DoubleVecIntMap_upper_bound(*args)
13584
+ __swig_destroy__ = _grass6_wxvdigit.delete_DoubleVecIntMap
13585
+ __del__ = lambda self : None;
13586
+DoubleVecIntMap_swigregister = _grass6_wxvdigit.DoubleVecIntMap_swigregister
13587
+DoubleVecIntMap_swigregister(DoubleVecIntMap)
13589
+class DisplayDriver(_object):
13590
+ __swig_setmethods__ = {}
13591
+ __setattr__ = lambda self, name, value: _swig_setattr(self, DisplayDriver, name, value)
13592
+ __swig_getmethods__ = {}
13593
+ __getattr__ = lambda self, name: _swig_getattr(self, DisplayDriver, name)
13594
+ __repr__ = _swig_repr
13595
+ def __init__(self, *args):
13596
+ this = _grass6_wxvdigit.new_DisplayDriver(*args)
13597
+ try: self.this.append(this)
13598
+ except: self.this = this
13599
+ __swig_destroy__ = _grass6_wxvdigit.delete_DisplayDriver
13600
+ __del__ = lambda self : None;
13601
+ def DrawMap(*args): return _grass6_wxvdigit.DisplayDriver_DrawMap(*args)
13602
+ def SelectLinesByBox(*args): return _grass6_wxvdigit.DisplayDriver_SelectLinesByBox(*args)
13603
+ def SelectLineByPoint(*args): return _grass6_wxvdigit.DisplayDriver_SelectLineByPoint(*args)
13604
+ def GetSelected(*args): return _grass6_wxvdigit.DisplayDriver_GetSelected(*args)
13605
+ def GetSelectedCoord(*args): return _grass6_wxvdigit.DisplayDriver_GetSelectedCoord(*args)
13606
+ def GetDuplicates(*args): return _grass6_wxvdigit.DisplayDriver_GetDuplicates(*args)
13607
+ def GetRegionSelected(*args): return _grass6_wxvdigit.DisplayDriver_GetRegionSelected(*args)
13608
+ def SetSelected(*args): return _grass6_wxvdigit.DisplayDriver_SetSelected(*args)
13609
+ def UnSelect(*args): return _grass6_wxvdigit.DisplayDriver_UnSelect(*args)
13610
+ def GetSelectedVertex(*args): return _grass6_wxvdigit.DisplayDriver_GetSelectedVertex(*args)
13611
+ def DrawSelected(*args): return _grass6_wxvdigit.DisplayDriver_DrawSelected(*args)
13612
+ def CloseMap(*args): return _grass6_wxvdigit.DisplayDriver_CloseMap(*args)
13613
+ def OpenMap(*args): return _grass6_wxvdigit.DisplayDriver_OpenMap(*args)
13614
+ def ReloadMap(*args): return _grass6_wxvdigit.DisplayDriver_ReloadMap(*args)
13615
+ def SetDevice(*args): return _grass6_wxvdigit.DisplayDriver_SetDevice(*args)
13616
+ def GetMapBoundingBox(*args): return _grass6_wxvdigit.DisplayDriver_GetMapBoundingBox(*args)
13617
+ def Is3D(*args): return _grass6_wxvdigit.DisplayDriver_Is3D(*args)
13618
+ def SetRegion(*args): return _grass6_wxvdigit.DisplayDriver_SetRegion(*args)
13619
+ def UpdateSettings(*args): return _grass6_wxvdigit.DisplayDriver_UpdateSettings(*args)
13620
+DisplayDriver_swigregister = _grass6_wxvdigit.DisplayDriver_swigregister
13621
+DisplayDriver_swigregister(DisplayDriver)
13623
+print_error = _grass6_wxvdigit.print_error
13624
+GSQL_MAX = _grass6_wxvdigit.GSQL_MAX
13625
+class Digit(_object):
13626
+ __swig_setmethods__ = {}
13627
+ __setattr__ = lambda self, name, value: _swig_setattr(self, Digit, name, value)
13628
+ __swig_getmethods__ = {}
13629
+ __getattr__ = lambda self, name: _swig_getattr(self, Digit, name)
13630
+ __repr__ = _swig_repr
13631
+ def __init__(self, *args):
13632
+ this = _grass6_wxvdigit.new_Digit(*args)
13633
+ try: self.this.append(this)
13634
+ except: self.this = this
13635
+ __swig_destroy__ = _grass6_wxvdigit.delete_Digit
13636
+ __del__ = lambda self : None;
13637
+ def InitCats(*args): return _grass6_wxvdigit.Digit_InitCats(*args)
13638
+ def AddLine(*args): return _grass6_wxvdigit.Digit_AddLine(*args)
13639
+ def RewriteLine(*args): return _grass6_wxvdigit.Digit_RewriteLine(*args)
13640
+ def SplitLine(*args): return _grass6_wxvdigit.Digit_SplitLine(*args)
13641
+ def DeleteLines(*args): return _grass6_wxvdigit.Digit_DeleteLines(*args)
13642
+ def MoveLines(*args): return _grass6_wxvdigit.Digit_MoveLines(*args)
13643
+ def FlipLines(*args): return _grass6_wxvdigit.Digit_FlipLines(*args)
13644
+ def MergeLines(*args): return _grass6_wxvdigit.Digit_MergeLines(*args)
13645
+ def BreakLines(*args): return _grass6_wxvdigit.Digit_BreakLines(*args)
13646
+ def SnapLines(*args): return _grass6_wxvdigit.Digit_SnapLines(*args)
13647
+ def ConnectLines(*args): return _grass6_wxvdigit.Digit_ConnectLines(*args)
13648
+ def TypeConvLines(*args): return _grass6_wxvdigit.Digit_TypeConvLines(*args)
13649
+ def ZBulkLabeling(*args): return _grass6_wxvdigit.Digit_ZBulkLabeling(*args)
13650
+ def CopyLines(*args): return _grass6_wxvdigit.Digit_CopyLines(*args)
13651
+ def MoveVertex(*args): return _grass6_wxvdigit.Digit_MoveVertex(*args)
13652
+ def ModifyLineVertex(*args): return _grass6_wxvdigit.Digit_ModifyLineVertex(*args)
13653
+ def SelectLinesByQuery(*args): return _grass6_wxvdigit.Digit_SelectLinesByQuery(*args)
13654
+ def CopyCats(*args): return _grass6_wxvdigit.Digit_CopyCats(*args)
13655
+ def GetCategory(*args): return _grass6_wxvdigit.Digit_GetCategory(*args)
13656
+ def GetLineCats(*args): return _grass6_wxvdigit.Digit_GetLineCats(*args)
13657
+ def SetLineCats(*args): return _grass6_wxvdigit.Digit_SetLineCats(*args)
13658
+ def GetLayers(*args): return _grass6_wxvdigit.Digit_GetLayers(*args)
13659
+ def Undo(*args): return _grass6_wxvdigit.Digit_Undo(*args)
13660
+ def GetUndoLevel(*args): return _grass6_wxvdigit.Digit_GetUndoLevel(*args)
13661
+ def UpdateSettings(*args): return _grass6_wxvdigit.Digit_UpdateSettings(*args)
13662
+Digit_swigregister = _grass6_wxvdigit.Digit_swigregister
13663
+Digit_swigregister(Digit)
13665
+class PseudoDC(_object):
13666
+ __swig_setmethods__ = {}
13667
+ __setattr__ = lambda self, name, value: _swig_setattr(self, PseudoDC, name, value)
13668
+ __swig_getmethods__ = {}
13669
+ __getattr__ = lambda self, name: _swig_getattr(self, PseudoDC, name)
13670
+ __repr__ = _swig_repr
13671
+ def __init__(self, *args):
13672
+ this = _grass6_wxvdigit.new_PseudoDC(*args)
13673
+ try: self.this.append(this)
13674
+ except: self.this = this
13675
+ __swig_destroy__ = _grass6_wxvdigit.delete_PseudoDC
13676
+ __del__ = lambda self : None;
13677
+ def Clear(*args): return _grass6_wxvdigit.PseudoDC_Clear(*args)
13678
+ def RemoveAll(*args): return _grass6_wxvdigit.PseudoDC_RemoveAll(*args)
13679
+ def RemoveId(*args): return _grass6_wxvdigit.PseudoDC_RemoveId(*args)
13680
+ def DrawToDC(*args): return _grass6_wxvdigit.PseudoDC_DrawToDC(*args)
13681
+ def DrawToDCClipped(*args): return _grass6_wxvdigit.PseudoDC_DrawToDCClipped(*args)
13682
+ def GetIdBounds(*args): return _grass6_wxvdigit.PseudoDC_GetIdBounds(*args)
13683
+PseudoDC_swigregister = _grass6_wxvdigit.PseudoDC_swigregister
13684
+PseudoDC_swigregister(PseudoDC)
13686
+GV_POINT = _grass6_wxvdigit.GV_POINT
13687
+GV_LINE = _grass6_wxvdigit.GV_LINE
13688
+GV_BOUNDARY = _grass6_wxvdigit.GV_BOUNDARY
13689
+GV_CENTROID = _grass6_wxvdigit.GV_CENTROID
13690
+GV_FACE = _grass6_wxvdigit.GV_FACE
13691
+GV_KERNEL = _grass6_wxvdigit.GV_KERNEL
13692
+GV_AREA = _grass6_wxvdigit.GV_AREA
13693
+GV_VOLUME = _grass6_wxvdigit.GV_VOLUME
13694
+GV_POINTS = _grass6_wxvdigit.GV_POINTS
13695
+GV_LINES = _grass6_wxvdigit.GV_LINES
13696
+PORT_DOUBLE_MAX = _grass6_wxvdigit.PORT_DOUBLE_MAX
13697
+NO_SNAP = _grass6_wxvdigit.NO_SNAP
13698
+SNAP = _grass6_wxvdigit.SNAP
13699
+SNAPVERTEX = _grass6_wxvdigit.SNAPVERTEX
13700
+QUERY_UNKNOWN = _grass6_wxvdigit.QUERY_UNKNOWN
13701
+QUERY_LENGTH = _grass6_wxvdigit.QUERY_LENGTH
13702
+QUERY_DANGLE = _grass6_wxvdigit.QUERY_DANGLE
13705
diff -urNad grass-6.4.0~rc5+39426~/gui/wxpython/vdigit/grass6_wxvdigit_wrap.cpp grass-6.4.0~rc5+39426/gui/wxpython/vdigit/grass6_wxvdigit_wrap.cpp
13706
--- grass-6.4.0~rc5+39426~/gui/wxpython/vdigit/grass6_wxvdigit_wrap.cpp 1970-01-01 01:00:00.000000000 +0100
13707
+++ grass-6.4.0~rc5+39426/gui/wxpython/vdigit/grass6_wxvdigit_wrap.cpp 2009-10-08 00:01:14.000000000 +0200
13708
@@ -0,0 +1,13942 @@
13709
+/* ----------------------------------------------------------------------------
13710
+ * This file was automatically generated by SWIG (http://www.swig.org).
13713
+ * This file is not intended to be easily readable and contains a number of
13714
+ * coding conventions designed to improve portability and efficiency. Do not make
13715
+ * changes to this file unless you know what you are doing--modify the SWIG
13716
+ * interface file instead.
13717
+ * ----------------------------------------------------------------------------- */
13719
+#define SWIGPYTHON
13720
+#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13722
+#ifdef __cplusplus
13723
+template<typename T> class SwigValueWrapper {
13726
+ SwigValueWrapper() : tt(0) { }
13727
+ SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
13728
+ SwigValueWrapper(const T& t) : tt(new T(t)) { }
13729
+ ~SwigValueWrapper() { delete tt; }
13730
+ SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
13731
+ operator T&() const { return *tt; }
13732
+ T *operator&() { return tt; }
13734
+ SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
13737
+template <typename T> T SwigValueInit() {
13742
+/* -----------------------------------------------------------------------------
13743
+ * This section contains generic SWIG labels for method/variable
13744
+ * declarations/attributes, and other compiler dependent labels.
13745
+ * ----------------------------------------------------------------------------- */
13747
+/* template workaround for compilers that cannot correctly implement the C++ standard */
13748
+#ifndef SWIGTEMPLATEDISAMBIGUATOR
13749
+# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
13750
+# define SWIGTEMPLATEDISAMBIGUATOR template
13751
+# elif defined(__HP_aCC)
13752
+/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
13753
+/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
13754
+# define SWIGTEMPLATEDISAMBIGUATOR template
13756
+# define SWIGTEMPLATEDISAMBIGUATOR
13760
+/* inline attribute */
13761
+#ifndef SWIGINLINE
13762
+# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
13763
+# define SWIGINLINE inline
13765
+# define SWIGINLINE
13769
+/* attribute recognised by some compilers to avoid 'unused' warnings */
13770
+#ifndef SWIGUNUSED
13771
+# if defined(__GNUC__)
13772
+# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
13773
+# define SWIGUNUSED __attribute__ ((__unused__))
13775
+# define SWIGUNUSED
13777
+# elif defined(__ICC)
13778
+# define SWIGUNUSED __attribute__ ((__unused__))
13780
+# define SWIGUNUSED
13784
+#ifndef SWIG_MSC_UNSUPPRESS_4505
13785
+# if defined(_MSC_VER)
13786
+# pragma warning(disable : 4505) /* unreferenced local function has been removed */
13790
+#ifndef SWIGUNUSEDPARM
13791
+# ifdef __cplusplus
13792
+# define SWIGUNUSEDPARM(p)
13794
+# define SWIGUNUSEDPARM(p) p SWIGUNUSED
13798
+/* internal SWIG method */
13799
+#ifndef SWIGINTERN
13800
+# define SWIGINTERN static SWIGUNUSED
13803
+/* internal inline SWIG method */
13804
+#ifndef SWIGINTERNINLINE
13805
+# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
13808
+/* exporting methods */
13809
+#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
13810
+# ifndef GCC_HASCLASSVISIBILITY
13811
+# define GCC_HASCLASSVISIBILITY
13815
+#ifndef SWIGEXPORT
13816
+# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
13817
+# if defined(STATIC_LINKED)
13818
+# define SWIGEXPORT
13820
+# define SWIGEXPORT __declspec(dllexport)
13823
+# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
13824
+# define SWIGEXPORT __attribute__ ((visibility("default")))
13826
+# define SWIGEXPORT
13831
+/* calling conventions for Windows */
13832
+#ifndef SWIGSTDCALL
13833
+# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
13834
+# define SWIGSTDCALL __stdcall
13836
+# define SWIGSTDCALL
13840
+/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
13841
+#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
13842
+# define _CRT_SECURE_NO_DEPRECATE
13845
+/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
13846
+#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
13847
+# define _SCL_SECURE_NO_DEPRECATE
13852
+/* Python.h has to appear first */
13853
+#include <Python.h>
13855
+/* -----------------------------------------------------------------------------
13858
+ * This file contains generic CAPI SWIG runtime support for pointer
13860
+ * ----------------------------------------------------------------------------- */
13862
+/* This should only be incremented when either the layout of swig_type_info changes,
13863
+ or for whatever reason, the runtime changes incompatibly */
13864
+#define SWIG_RUNTIME_VERSION "4"
13866
+/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
13867
+#ifdef SWIG_TYPE_TABLE
13868
+# define SWIG_QUOTE_STRING(x) #x
13869
+# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
13870
+# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
13872
+# define SWIG_TYPE_TABLE_NAME
13876
+ You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
13877
+ creating a static or dynamic library from the swig runtime code.
13878
+ In 99.9% of the cases, swig just needs to declare them as 'static'.
13880
+ But only do this if is strictly necessary, ie, if you have problems
13881
+ with your compiler or so.
13884
+#ifndef SWIGRUNTIME
13885
+# define SWIGRUNTIME SWIGINTERN
13888
+#ifndef SWIGRUNTIMEINLINE
13889
+# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
13892
+/* Generic buffer size */
13893
+#ifndef SWIG_BUFFER_SIZE
13894
+# define SWIG_BUFFER_SIZE 1024
13897
+/* Flags for pointer conversions */
13898
+#define SWIG_POINTER_DISOWN 0x1
13899
+#define SWIG_CAST_NEW_MEMORY 0x2
13901
+/* Flags for new pointer objects */
13902
+#define SWIG_POINTER_OWN 0x1
13906
+ Flags/methods for returning states.
13908
+ The swig conversion methods, as ConvertPtr, return and integer
13909
+ that tells if the conversion was successful or not. And if not,
13910
+ an error code can be returned (see swigerrors.swg for the codes).
13912
+ Use the following macros/flags to set or process the returning
13915
+ In old swig versions, you usually write code as:
13917
+ if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
13923
+ Now you can be more explicit as:
13925
+ int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
13926
+ if (SWIG_IsOK(res)) {
13932
+ that seems to be the same, but now you can also do
13935
+ int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
13936
+ if (SWIG_IsOK(res)) {
13938
+ if (SWIG_IsNewObj(res) {
13948
+ I.e., now SWIG_ConvertPtr can return new objects and you can
13949
+ identify the case and take care of the deallocation. Of course that
13950
+ requires also to SWIG_ConvertPtr to return new result values, as
13952
+ int SWIG_ConvertPtr(obj, ptr,...) {
13953
+ if (<obj is ok>) {
13954
+ if (<need new object>) {
13955
+ *ptr = <ptr to new allocated object>;
13956
+ return SWIG_NEWOBJ;
13958
+ *ptr = <ptr to old object>;
13959
+ return SWIG_OLDOBJ;
13962
+ return SWIG_BADOBJ;
13966
+ Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
13967
+ more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
13968
+ swig errors code.
13970
+ Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
13971
+ allows to return the 'cast rank', for example, if you have this
13978
+ food(1) // cast rank '1' (1 -> 1.0)
13979
+ fooi(1) // cast rank '0'
13981
+ just use the SWIG_AddCast()/SWIG_CheckState()
13985
+#define SWIG_OK (0)
13986
+#define SWIG_ERROR (-1)
13987
+#define SWIG_IsOK(r) (r >= 0)
13988
+#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
13990
+/* The CastRankLimit says how many bits are used for the cast rank */
13991
+#define SWIG_CASTRANKLIMIT (1 << 8)
13992
+/* The NewMask denotes the object was created (using new/malloc) */
13993
+#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
13994
+/* The TmpMask is for in/out typemaps that use temporal objects */
13995
+#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
13996
+/* Simple returning values */
13997
+#define SWIG_BADOBJ (SWIG_ERROR)
13998
+#define SWIG_OLDOBJ (SWIG_OK)
13999
+#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
14000
+#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
14001
+/* Check, add and del mask methods */
14002
+#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
14003
+#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
14004
+#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
14005
+#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
14006
+#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
14007
+#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
14010
+/* Cast-Rank Mode */
14011
+#if defined(SWIG_CASTRANK_MODE)
14012
+# ifndef SWIG_TypeRank
14013
+# define SWIG_TypeRank unsigned long
14015
+# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
14016
+# define SWIG_MAXCASTRANK (2)
14018
+# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
14019
+# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
14020
+SWIGINTERNINLINE int SWIG_AddCast(int r) {
14021
+ return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
14023
+SWIGINTERNINLINE int SWIG_CheckState(int r) {
14024
+ return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
14026
+#else /* no cast-rank mode */
14027
+# define SWIG_AddCast
14028
+# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
14034
+#include <string.h>
14036
+#ifdef __cplusplus
14040
+typedef void *(*swig_converter_func)(void *, int *);
14041
+typedef struct swig_type_info *(*swig_dycast_func)(void **);
14043
+/* Structure to store information on one type */
14044
+typedef struct swig_type_info {
14045
+ const char *name; /* mangled name of this type */
14046
+ const char *str; /* human readable name of this type */
14047
+ swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
14048
+ struct swig_cast_info *cast; /* linked list of types that can cast into this type */
14049
+ void *clientdata; /* language specific type data */
14050
+ int owndata; /* flag if the structure owns the clientdata */
14053
+/* Structure to store a type and conversion function used for casting */
14054
+typedef struct swig_cast_info {
14055
+ swig_type_info *type; /* pointer to type that is equivalent to this type */
14056
+ swig_converter_func converter; /* function to cast the void pointers */
14057
+ struct swig_cast_info *next; /* pointer to next cast in linked list */
14058
+ struct swig_cast_info *prev; /* pointer to the previous cast */
14061
+/* Structure used to store module information
14062
+ * Each module generates one structure like this, and the runtime collects
14063
+ * all of these structures and stores them in a circularly linked list.*/
14064
+typedef struct swig_module_info {
14065
+ swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
14066
+ size_t size; /* Number of types in this module */
14067
+ struct swig_module_info *next; /* Pointer to next element in circularly linked list */
14068
+ swig_type_info **type_initial; /* Array of initially generated type structures */
14069
+ swig_cast_info **cast_initial; /* Array of initially generated casting structures */
14070
+ void *clientdata; /* Language specific module data */
14071
+} swig_module_info;
14074
+ Compare two type names skipping the space characters, therefore
14075
+ "char*" == "char *" and "Class<int>" == "Class<int >", etc.
14077
+ Return 0 when the two name types are equivalent, as in
14078
+ strncmp, but skipping ' '.
14081
+SWIG_TypeNameComp(const char *f1, const char *l1,
14082
+ const char *f2, const char *l2) {
14083
+ for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
14084
+ while ((*f1 == ' ') && (f1 != l1)) ++f1;
14085
+ while ((*f2 == ' ') && (f2 != l2)) ++f2;
14086
+ if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
14088
+ return (int)((l1 - f1) - (l2 - f2));
14092
+ Check type equivalence in a name list like <name1>|<name2>|...
14093
+ Return 0 if not equal, 1 if equal
14096
+SWIG_TypeEquiv(const char *nb, const char *tb) {
14098
+ const char* te = tb + strlen(tb);
14099
+ const char* ne = nb;
14100
+ while (!equiv && *ne) {
14101
+ for (nb = ne; *ne; ++ne) {
14102
+ if (*ne == '|') break;
14104
+ equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
14111
+ Check type equivalence in a name list like <name1>|<name2>|...
14112
+ Return 0 if equal, -1 if nb < tb, 1 if nb > tb
14115
+SWIG_TypeCompare(const char *nb, const char *tb) {
14117
+ const char* te = tb + strlen(tb);
14118
+ const char* ne = nb;
14119
+ while (!equiv && *ne) {
14120
+ for (nb = ne; *ne; ++ne) {
14121
+ if (*ne == '|') break;
14123
+ equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
14130
+/* think of this as a c++ template<> or a scheme macro */
14131
+#define SWIG_TypeCheck_Template(comparison, ty) \
14133
+ swig_cast_info *iter = ty->cast; \
14135
+ if (comparison) { \
14136
+ if (iter == ty->cast) return iter; \
14137
+ /* Move iter to the top of the linked list */ \
14138
+ iter->prev->next = iter->next; \
14139
+ if (iter->next) \
14140
+ iter->next->prev = iter->prev; \
14141
+ iter->next = ty->cast; \
14142
+ iter->prev = 0; \
14143
+ if (ty->cast) ty->cast->prev = iter; \
14144
+ ty->cast = iter; \
14147
+ iter = iter->next; \
14153
+ Check the typename
14155
+SWIGRUNTIME swig_cast_info *
14156
+SWIG_TypeCheck(const char *c, swig_type_info *ty) {
14157
+ SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
14160
+/* Same as previous function, except strcmp is replaced with a pointer comparison */
14161
+SWIGRUNTIME swig_cast_info *
14162
+SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
14163
+ SWIG_TypeCheck_Template(iter->type == from, into);
14167
+ Cast a pointer up an inheritance hierarchy
14169
+SWIGRUNTIMEINLINE void *
14170
+SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
14171
+ return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
14175
+ Dynamic pointer casting. Down an inheritance hierarchy
14177
+SWIGRUNTIME swig_type_info *
14178
+SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
14179
+ swig_type_info *lastty = ty;
14180
+ if (!ty || !ty->dcast) return ty;
14181
+ while (ty && (ty->dcast)) {
14182
+ ty = (*ty->dcast)(ptr);
14183
+ if (ty) lastty = ty;
14189
+ Return the name associated with this type
14191
+SWIGRUNTIMEINLINE const char *
14192
+SWIG_TypeName(const swig_type_info *ty) {
14197
+ Return the pretty name associated with this type,
14198
+ that is an unmangled type name in a form presentable to the user.
14200
+SWIGRUNTIME const char *
14201
+SWIG_TypePrettyName(const swig_type_info *type) {
14202
+ /* The "str" field contains the equivalent pretty names of the
14203
+ type, separated by vertical-bar characters. We choose
14204
+ to print the last name, as it is often (?) the most
14206
+ if (!type) return NULL;
14207
+ if (type->str != NULL) {
14208
+ const char *last_name = type->str;
14210
+ for (s = type->str; *s; s++)
14211
+ if (*s == '|') last_name = s+1;
14212
+ return last_name;
14215
+ return type->name;
14219
+ Set the clientdata field for a type
14222
+SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
14223
+ swig_cast_info *cast = ti->cast;
14224
+ /* if (ti->clientdata == clientdata) return; */
14225
+ ti->clientdata = clientdata;
14228
+ if (!cast->converter) {
14229
+ swig_type_info *tc = cast->type;
14230
+ if (!tc->clientdata) {
14231
+ SWIG_TypeClientData(tc, clientdata);
14234
+ cast = cast->next;
14238
+SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
14239
+ SWIG_TypeClientData(ti, clientdata);
14244
+ Search for a swig_type_info structure only by mangled name
14245
+ Search is a O(log #types)
14247
+ We start searching at module start, and finish searching when start == end.
14248
+ Note: if start == end at the beginning of the function, we go all the way around
14249
+ the circular list.
14251
+SWIGRUNTIME swig_type_info *
14252
+SWIG_MangledTypeQueryModule(swig_module_info *start,
14253
+ swig_module_info *end,
14254
+ const char *name) {
14255
+ swig_module_info *iter = start;
14257
+ if (iter->size) {
14258
+ register size_t l = 0;
14259
+ register size_t r = iter->size - 1;
14261
+ /* since l+r >= 0, we can (>> 1) instead (/ 2) */
14262
+ register size_t i = (l + r) >> 1;
14263
+ const char *iname = iter->types[i]->name;
14265
+ register int compare = strcmp(name, iname);
14266
+ if (compare == 0) {
14267
+ return iter->types[i];
14268
+ } else if (compare < 0) {
14274
+ } else if (compare > 0) {
14278
+ break; /* should never happen */
14280
+ } while (l <= r);
14282
+ iter = iter->next;
14283
+ } while (iter != end);
14288
+ Search for a swig_type_info structure for either a mangled name or a human readable name.
14289
+ It first searches the mangled names of the types, which is a O(log #types)
14290
+ If a type is not found it then searches the human readable names, which is O(#types).
14292
+ We start searching at module start, and finish searching when start == end.
14293
+ Note: if start == end at the beginning of the function, we go all the way around
14294
+ the circular list.
14296
+SWIGRUNTIME swig_type_info *
14297
+SWIG_TypeQueryModule(swig_module_info *start,
14298
+ swig_module_info *end,
14299
+ const char *name) {
14300
+ /* STEP 1: Search the name field using binary search */
14301
+ swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
14305
+ /* STEP 2: If the type hasn't been found, do a complete search
14306
+ of the str field (the human readable name) */
14307
+ swig_module_info *iter = start;
14309
+ register size_t i = 0;
14310
+ for (; i < iter->size; ++i) {
14311
+ if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
14312
+ return iter->types[i];
14314
+ iter = iter->next;
14315
+ } while (iter != end);
14318
+ /* neither found a match */
14323
+ Pack binary data into a string
14325
+SWIGRUNTIME char *
14326
+SWIG_PackData(char *c, void *ptr, size_t sz) {
14327
+ static const char hex[17] = "0123456789abcdef";
14328
+ register const unsigned char *u = (unsigned char *) ptr;
14329
+ register const unsigned char *eu = u + sz;
14330
+ for (; u != eu; ++u) {
14331
+ register unsigned char uu = *u;
14332
+ *(c++) = hex[(uu & 0xf0) >> 4];
14333
+ *(c++) = hex[uu & 0xf];
14339
+ Unpack binary data from a string
14341
+SWIGRUNTIME const char *
14342
+SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
14343
+ register unsigned char *u = (unsigned char *) ptr;
14344
+ register const unsigned char *eu = u + sz;
14345
+ for (; u != eu; ++u) {
14346
+ register char d = *(c++);
14347
+ register unsigned char uu;
14348
+ if ((d >= '0') && (d <= '9'))
14349
+ uu = ((d - '0') << 4);
14350
+ else if ((d >= 'a') && (d <= 'f'))
14351
+ uu = ((d - ('a'-10)) << 4);
14353
+ return (char *) 0;
14355
+ if ((d >= '0') && (d <= '9'))
14357
+ else if ((d >= 'a') && (d <= 'f'))
14358
+ uu |= (d - ('a'-10));
14360
+ return (char *) 0;
14367
+ Pack 'void *' into a string buffer.
14369
+SWIGRUNTIME char *
14370
+SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
14372
+ if ((2*sizeof(void *) + 2) > bsz) return 0;
14374
+ r = SWIG_PackData(r,&ptr,sizeof(void *));
14375
+ if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
14380
+SWIGRUNTIME const char *
14381
+SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
14383
+ if (strcmp(c,"NULL") == 0) {
14384
+ *ptr = (void *) 0;
14390
+ return SWIG_UnpackData(++c,ptr,sizeof(void *));
14393
+SWIGRUNTIME char *
14394
+SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
14396
+ size_t lname = (name ? strlen(name) : 0);
14397
+ if ((2*sz + 2 + lname) > bsz) return 0;
14399
+ r = SWIG_PackData(r,ptr,sz);
14401
+ strncpy(r,name,lname+1);
14408
+SWIGRUNTIME const char *
14409
+SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
14411
+ if (strcmp(c,"NULL") == 0) {
14412
+ memset(ptr,0,sz);
14418
+ return SWIG_UnpackData(++c,ptr,sz);
14421
+#ifdef __cplusplus
14425
+/* Errors in SWIG */
14426
+#define SWIG_UnknownError -1
14427
+#define SWIG_IOError -2
14428
+#define SWIG_RuntimeError -3
14429
+#define SWIG_IndexError -4
14430
+#define SWIG_TypeError -5
14431
+#define SWIG_DivisionByZero -6
14432
+#define SWIG_OverflowError -7
14433
+#define SWIG_SyntaxError -8
14434
+#define SWIG_ValueError -9
14435
+#define SWIG_SystemError -10
14436
+#define SWIG_AttributeError -11
14437
+#define SWIG_MemoryError -12
14438
+#define SWIG_NullReferenceError -13
14443
+/* Add PyOS_snprintf for old Pythons */
14444
+#if PY_VERSION_HEX < 0x02020000
14445
+# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
14446
+# define PyOS_snprintf _snprintf
14448
+# define PyOS_snprintf snprintf
14452
+/* A crude PyString_FromFormat implementation for old Pythons */
14453
+#if PY_VERSION_HEX < 0x02020000
14455
+#ifndef SWIG_PYBUFFER_SIZE
14456
+# define SWIG_PYBUFFER_SIZE 1024
14460
+PyString_FromFormat(const char *fmt, ...) {
14462
+ char buf[SWIG_PYBUFFER_SIZE * 2];
14464
+ va_start(ap, fmt);
14465
+ res = vsnprintf(buf, sizeof(buf), fmt, ap);
14467
+ return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
14471
+/* Add PyObject_Del for old Pythons */
14472
+#if PY_VERSION_HEX < 0x01060000
14473
+# define PyObject_Del(op) PyMem_DEL((op))
14475
+#ifndef PyObject_DEL
14476
+# define PyObject_DEL PyObject_Del
14479
+/* A crude PyExc_StopIteration exception for old Pythons */
14480
+#if PY_VERSION_HEX < 0x02020000
14481
+# ifndef PyExc_StopIteration
14482
+# define PyExc_StopIteration PyExc_RuntimeError
14484
+# ifndef PyObject_GenericGetAttr
14485
+# define PyObject_GenericGetAttr 0
14488
+/* Py_NotImplemented is defined in 2.1 and up. */
14489
+#if PY_VERSION_HEX < 0x02010000
14490
+# ifndef Py_NotImplemented
14491
+# define Py_NotImplemented PyExc_RuntimeError
14496
+/* A crude PyString_AsStringAndSize implementation for old Pythons */
14497
+#if PY_VERSION_HEX < 0x02010000
14498
+# ifndef PyString_AsStringAndSize
14499
+# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
14503
+/* PySequence_Size for old Pythons */
14504
+#if PY_VERSION_HEX < 0x02000000
14505
+# ifndef PySequence_Size
14506
+# define PySequence_Size PySequence_Length
14511
+/* PyBool_FromLong for old Pythons */
14512
+#if PY_VERSION_HEX < 0x02030000
14514
+PyObject *PyBool_FromLong(long ok)
14516
+ PyObject *result = ok ? Py_True : Py_False;
14517
+ Py_INCREF(result);
14522
+/* Py_ssize_t for old Pythons */
14523
+/* This code is as recommended by: */
14524
+/* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */
14525
+#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
14526
+typedef int Py_ssize_t;
14527
+# define PY_SSIZE_T_MAX INT_MAX
14528
+# define PY_SSIZE_T_MIN INT_MIN
14531
+/* -----------------------------------------------------------------------------
14532
+ * error manipulation
14533
+ * ----------------------------------------------------------------------------- */
14535
+SWIGRUNTIME PyObject*
14536
+SWIG_Python_ErrorType(int code) {
14537
+ PyObject* type = 0;
14539
+ case SWIG_MemoryError:
14540
+ type = PyExc_MemoryError;
14542
+ case SWIG_IOError:
14543
+ type = PyExc_IOError;
14545
+ case SWIG_RuntimeError:
14546
+ type = PyExc_RuntimeError;
14548
+ case SWIG_IndexError:
14549
+ type = PyExc_IndexError;
14551
+ case SWIG_TypeError:
14552
+ type = PyExc_TypeError;
14554
+ case SWIG_DivisionByZero:
14555
+ type = PyExc_ZeroDivisionError;
14557
+ case SWIG_OverflowError:
14558
+ type = PyExc_OverflowError;
14560
+ case SWIG_SyntaxError:
14561
+ type = PyExc_SyntaxError;
14563
+ case SWIG_ValueError:
14564
+ type = PyExc_ValueError;
14566
+ case SWIG_SystemError:
14567
+ type = PyExc_SystemError;
14569
+ case SWIG_AttributeError:
14570
+ type = PyExc_AttributeError;
14573
+ type = PyExc_RuntimeError;
14580
+SWIG_Python_AddErrorMsg(const char* mesg)
14582
+ PyObject *type = 0;
14583
+ PyObject *value = 0;
14584
+ PyObject *traceback = 0;
14586
+ if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
14588
+ PyObject *old_str = PyObject_Str(value);
14590
+ Py_XINCREF(type);
14591
+ PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
14592
+ Py_DECREF(old_str);
14593
+ Py_DECREF(value);
14595
+ PyErr_SetString(PyExc_RuntimeError, mesg);
14601
+#if defined(SWIG_PYTHON_NO_THREADS)
14602
+# if defined(SWIG_PYTHON_THREADS)
14603
+# undef SWIG_PYTHON_THREADS
14606
+#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
14607
+# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
14608
+# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
14609
+# define SWIG_PYTHON_USE_GIL
14612
+# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
14613
+# ifndef SWIG_PYTHON_INITIALIZE_THREADS
14614
+# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
14616
+# ifdef __cplusplus /* C++ code */
14617
+ class SWIG_Python_Thread_Block {
14619
+ PyGILState_STATE state;
14621
+ void end() { if (status) { PyGILState_Release(state); status = false;} }
14622
+ SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
14623
+ ~SWIG_Python_Thread_Block() { end(); }
14625
+ class SWIG_Python_Thread_Allow {
14627
+ PyThreadState *save;
14629
+ void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
14630
+ SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
14631
+ ~SWIG_Python_Thread_Allow() { end(); }
14633
+# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
14634
+# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
14635
+# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
14636
+# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
14637
+# else /* C code */
14638
+# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
14639
+# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
14640
+# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
14641
+# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
14643
+# else /* Old thread way, not implemented, user must provide it */
14644
+# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
14645
+# define SWIG_PYTHON_INITIALIZE_THREADS
14647
+# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
14648
+# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
14650
+# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
14651
+# define SWIG_PYTHON_THREAD_END_BLOCK
14653
+# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
14654
+# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
14656
+# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
14657
+# define SWIG_PYTHON_THREAD_END_ALLOW
14660
+#else /* No thread support */
14661
+# define SWIG_PYTHON_INITIALIZE_THREADS
14662
+# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
14663
+# define SWIG_PYTHON_THREAD_END_BLOCK
14664
+# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
14665
+# define SWIG_PYTHON_THREAD_END_ALLOW
14668
+/* -----------------------------------------------------------------------------
14669
+ * Python API portion that goes into the runtime
14670
+ * ----------------------------------------------------------------------------- */
14672
+#ifdef __cplusplus
14679
+/* -----------------------------------------------------------------------------
14680
+ * Constant declarations
14681
+ * ----------------------------------------------------------------------------- */
14683
+/* Constant Types */
14684
+#define SWIG_PY_POINTER 4
14685
+#define SWIG_PY_BINARY 5
14687
+/* Constant information structure */
14688
+typedef struct swig_const_info {
14694
+ swig_type_info **ptype;
14695
+} swig_const_info;
14697
+#ifdef __cplusplus
14705
+/* -----------------------------------------------------------------------------
14706
+ * See the LICENSE file for information on copyright, usage and redistribution
14707
+ * of SWIG, and the README file for authors - http://www.swig.org/release.html.
14711
+ * This file contains the runtime support for Python modules
14712
+ * and includes code for managing global variables and pointer
14715
+ * ----------------------------------------------------------------------------- */
14717
+/* Common SWIG API */
14719
+/* for raw pointers */
14720
+#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
14721
+#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
14722
+#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
14723
+#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
14724
+#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
14725
+#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
14726
+#define swig_owntype int
14728
+/* for raw packed data */
14729
+#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
14730
+#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
14732
+/* for class or struct pointers */
14733
+#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
14734
+#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
14736
+/* for C or C++ function pointers */
14737
+#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
14738
+#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
14740
+/* for C++ member pointers, ie, member methods */
14741
+#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
14742
+#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
14747
+#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
14748
+#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
14749
+#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
14751
+#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
14752
+#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
14753
+#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
14754
+#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
14755
+#define SWIG_fail goto fail
14758
+/* Runtime API implementation */
14760
+/* Error manipulation */
14763
+SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
14764
+ SWIG_PYTHON_THREAD_BEGIN_BLOCK;
14765
+ PyErr_SetObject(errtype, obj);
14767
+ SWIG_PYTHON_THREAD_END_BLOCK;
14771
+SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
14772
+ SWIG_PYTHON_THREAD_BEGIN_BLOCK;
14773
+ PyErr_SetString(errtype, (char *) msg);
14774
+ SWIG_PYTHON_THREAD_END_BLOCK;
14777
+#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
14779
+/* Set a constant value */
14782
+SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
14783
+ PyDict_SetItemString(d, (char*) name, obj);
14787
+/* Append a value to the result obj */
14789
+SWIGINTERN PyObject*
14790
+SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
14791
+#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
14794
+ } else if (result == Py_None) {
14795
+ Py_DECREF(result);
14798
+ if (!PyList_Check(result)) {
14799
+ PyObject *o2 = result;
14800
+ result = PyList_New(1);
14801
+ PyList_SetItem(result, 0, o2);
14803
+ PyList_Append(result,obj);
14812
+ } else if (result == Py_None) {
14813
+ Py_DECREF(result);
14816
+ if (!PyTuple_Check(result)) {
14818
+ result = PyTuple_New(1);
14819
+ PyTuple_SET_ITEM(result, 0, o2);
14821
+ o3 = PyTuple_New(1);
14822
+ PyTuple_SET_ITEM(o3, 0, obj);
14824
+ result = PySequence_Concat(o2, o3);
14832
+/* Unpack the argument tuple */
14835
+SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
14838
+ if (!min && !max) {
14841
+ PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
14842
+ name, (min == max ? "" : "at least "), (int)min);
14846
+ if (!PyTuple_Check(args)) {
14847
+ PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
14850
+ register Py_ssize_t l = PyTuple_GET_SIZE(args);
14852
+ PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
14853
+ name, (min == max ? "" : "at least "), (int)min, (int)l);
14855
+ } else if (l > max) {
14856
+ PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
14857
+ name, (min == max ? "" : "at most "), (int)max, (int)l);
14861
+ for (i = 0; i < l; ++i) {
14862
+ objs[i] = PyTuple_GET_ITEM(args, i);
14864
+ for (; l < max; ++l) {
14872
+/* A functor is a function object with one single object argument */
14873
+#if PY_VERSION_HEX >= 0x02020000
14874
+#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
14876
+#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
14880
+ Helper for static pointer initialization for both C and C++ code, for example
14881
+ static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
14883
+#ifdef __cplusplus
14884
+#define SWIG_STATIC_POINTER(var) var
14886
+#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
14889
+/* -----------------------------------------------------------------------------
14890
+ * Pointer declarations
14891
+ * ----------------------------------------------------------------------------- */
14893
+/* Flags for new pointer objects */
14894
+#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
14895
+#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
14897
+#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
14899
+#ifdef __cplusplus
14906
+/* How to access Py_None */
14907
+#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
14908
+# ifndef SWIG_PYTHON_NO_BUILD_NONE
14909
+# ifndef SWIG_PYTHON_BUILD_NONE
14910
+# define SWIG_PYTHON_BUILD_NONE
14915
+#ifdef SWIG_PYTHON_BUILD_NONE
14918
+# define Py_None SWIG_Py_None()
14920
+SWIGRUNTIMEINLINE PyObject *
14921
+_SWIG_Py_None(void)
14923
+ PyObject *none = Py_BuildValue((char*)"");
14927
+SWIGRUNTIME PyObject *
14928
+SWIG_Py_None(void)
14930
+ static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
14935
+/* The python void return value */
14937
+SWIGRUNTIMEINLINE PyObject *
14938
+SWIG_Py_Void(void)
14940
+ PyObject *none = Py_None;
14945
+/* PySwigClientData */
14949
+ PyObject *newraw;
14950
+ PyObject *newargs;
14951
+ PyObject *destroy;
14953
+ int implicitconv;
14954
+} PySwigClientData;
14956
+SWIGRUNTIMEINLINE int
14957
+SWIG_Python_CheckImplicit(swig_type_info *ty)
14959
+ PySwigClientData *data = (PySwigClientData *)ty->clientdata;
14960
+ return data ? data->implicitconv : 0;
14963
+SWIGRUNTIMEINLINE PyObject *
14964
+SWIG_Python_ExceptionType(swig_type_info *desc) {
14965
+ PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
14966
+ PyObject *klass = data ? data->klass : 0;
14967
+ return (klass ? klass : PyExc_RuntimeError);
14971
+SWIGRUNTIME PySwigClientData *
14972
+PySwigClientData_New(PyObject* obj)
14977
+ PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
14978
+ /* the klass element */
14979
+ data->klass = obj;
14980
+ Py_INCREF(data->klass);
14981
+ /* the newraw method and newargs arguments used to create a new raw instance */
14982
+ if (PyClass_Check(obj)) {
14983
+ data->newraw = 0;
14984
+ data->newargs = obj;
14987
+#if (PY_VERSION_HEX < 0x02020000)
14988
+ data->newraw = 0;
14990
+ data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
14992
+ if (data->newraw) {
14993
+ Py_INCREF(data->newraw);
14994
+ data->newargs = PyTuple_New(1);
14995
+ PyTuple_SetItem(data->newargs, 0, obj);
14997
+ data->newargs = obj;
14999
+ Py_INCREF(data->newargs);
15001
+ /* the destroy method, aka as the C++ delete method */
15002
+ data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
15003
+ if (PyErr_Occurred()) {
15005
+ data->destroy = 0;
15007
+ if (data->destroy) {
15009
+ Py_INCREF(data->destroy);
15010
+ flags = PyCFunction_GET_FLAGS(data->destroy);
15012
+ data->delargs = !(flags & (METH_O));
15014
+ data->delargs = 0;
15017
+ data->delargs = 0;
15019
+ data->implicitconv = 0;
15025
+PySwigClientData_Del(PySwigClientData* data)
15027
+ Py_XDECREF(data->newraw);
15028
+ Py_XDECREF(data->newargs);
15029
+ Py_XDECREF(data->destroy);
15032
+/* =============== PySwigObject =====================*/
15037
+ swig_type_info *ty;
15042
+SWIGRUNTIME PyObject *
15043
+PySwigObject_long(PySwigObject *v)
15045
+ return PyLong_FromVoidPtr(v->ptr);
15048
+SWIGRUNTIME PyObject *
15049
+PySwigObject_format(const char* fmt, PySwigObject *v)
15051
+ PyObject *res = NULL;
15052
+ PyObject *args = PyTuple_New(1);
15054
+ if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
15055
+ PyObject *ofmt = PyString_FromString(fmt);
15057
+ res = PyString_Format(ofmt,args);
15066
+SWIGRUNTIME PyObject *
15067
+PySwigObject_oct(PySwigObject *v)
15069
+ return PySwigObject_format("%o",v);
15072
+SWIGRUNTIME PyObject *
15073
+PySwigObject_hex(PySwigObject *v)
15075
+ return PySwigObject_format("%x",v);
15078
+SWIGRUNTIME PyObject *
15079
+#ifdef METH_NOARGS
15080
+PySwigObject_repr(PySwigObject *v)
15082
+PySwigObject_repr(PySwigObject *v, PyObject *args)
15085
+ const char *name = SWIG_TypePrettyName(v->ty);
15086
+ PyObject *hex = PySwigObject_hex(v);
15087
+ PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
15090
+#ifdef METH_NOARGS
15091
+ PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
15093
+ PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
15095
+ PyString_ConcatAndDel(&repr,nrep);
15101
+PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
15103
+#ifdef METH_NOARGS
15104
+ PyObject *repr = PySwigObject_repr(v);
15106
+ PyObject *repr = PySwigObject_repr(v, NULL);
15109
+ fputs(PyString_AsString(repr), fp);
15117
+SWIGRUNTIME PyObject *
15118
+PySwigObject_str(PySwigObject *v)
15120
+ char result[SWIG_BUFFER_SIZE];
15121
+ return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
15122
+ PyString_FromString(result) : 0;
15126
+PySwigObject_compare(PySwigObject *v, PySwigObject *w)
15128
+ void *i = v->ptr;
15129
+ void *j = w->ptr;
15130
+ return (i < j) ? -1 : ((i > j) ? 1 : 0);
15133
+SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
15135
+SWIGRUNTIME PyTypeObject*
15136
+PySwigObject_type(void) {
15137
+ static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
15141
+SWIGRUNTIMEINLINE int
15142
+PySwigObject_Check(PyObject *op) {
15143
+ return ((op)->ob_type == PySwigObject_type())
15144
+ || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
15147
+SWIGRUNTIME PyObject *
15148
+PySwigObject_New(void *ptr, swig_type_info *ty, int own);
15151
+PySwigObject_dealloc(PyObject *v)
15153
+ PySwigObject *sobj = (PySwigObject *) v;
15154
+ PyObject *next = sobj->next;
15155
+ if (sobj->own == SWIG_POINTER_OWN) {
15156
+ swig_type_info *ty = sobj->ty;
15157
+ PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
15158
+ PyObject *destroy = data ? data->destroy : 0;
15160
+ /* destroy is always a VARARGS method */
15162
+ if (data->delargs) {
15163
+ /* we need to create a temporal object to carry the destroy operation */
15164
+ PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
15165
+ res = SWIG_Python_CallFunctor(destroy, tmp);
15168
+ PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
15169
+ PyObject *mself = PyCFunction_GET_SELF(destroy);
15170
+ res = ((*meth)(mself, v));
15174
+#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
15176
+ const char *name = SWIG_TypePrettyName(ty);
15177
+ printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown"));
15181
+ Py_XDECREF(next);
15185
+SWIGRUNTIME PyObject*
15186
+PySwigObject_append(PyObject* v, PyObject* next)
15188
+ PySwigObject *sobj = (PySwigObject *) v;
15190
+ PyObject *tmp = 0;
15191
+ if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
15194
+ if (!PySwigObject_Check(next)) {
15197
+ sobj->next = next;
15199
+ return SWIG_Py_Void();
15202
+SWIGRUNTIME PyObject*
15203
+#ifdef METH_NOARGS
15204
+PySwigObject_next(PyObject* v)
15206
+PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
15209
+ PySwigObject *sobj = (PySwigObject *) v;
15210
+ if (sobj->next) {
15211
+ Py_INCREF(sobj->next);
15212
+ return sobj->next;
15214
+ return SWIG_Py_Void();
15218
+SWIGINTERN PyObject*
15219
+#ifdef METH_NOARGS
15220
+PySwigObject_disown(PyObject *v)
15222
+PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
15225
+ PySwigObject *sobj = (PySwigObject *)v;
15227
+ return SWIG_Py_Void();
15230
+SWIGINTERN PyObject*
15231
+#ifdef METH_NOARGS
15232
+PySwigObject_acquire(PyObject *v)
15234
+PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
15237
+ PySwigObject *sobj = (PySwigObject *)v;
15238
+ sobj->own = SWIG_POINTER_OWN;
15239
+ return SWIG_Py_Void();
15242
+SWIGINTERN PyObject*
15243
+PySwigObject_own(PyObject *v, PyObject *args)
15245
+ PyObject *val = 0;
15246
+#if (PY_VERSION_HEX < 0x02020000)
15247
+ if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
15249
+ if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
15256
+ PySwigObject *sobj = (PySwigObject *)v;
15257
+ PyObject *obj = PyBool_FromLong(sobj->own);
15259
+#ifdef METH_NOARGS
15260
+ if (PyObject_IsTrue(val)) {
15261
+ PySwigObject_acquire(v);
15263
+ PySwigObject_disown(v);
15266
+ if (PyObject_IsTrue(val)) {
15267
+ PySwigObject_acquire(v,args);
15269
+ PySwigObject_disown(v,args);
15278
+static PyMethodDef
15279
+swigobject_methods[] = {
15280
+ {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
15281
+ {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
15282
+ {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
15283
+ {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
15284
+ {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
15285
+ {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
15289
+static PyMethodDef
15290
+swigobject_methods[] = {
15291
+ {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
15292
+ {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
15293
+ {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
15294
+ {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
15295
+ {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
15296
+ {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
15301
+#if PY_VERSION_HEX < 0x02020000
15302
+SWIGINTERN PyObject *
15303
+PySwigObject_getattr(PySwigObject *sobj,char *name)
15305
+ return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
15309
+SWIGRUNTIME PyTypeObject*
15310
+_PySwigObject_type(void) {
15311
+ static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
15313
+ static PyNumberMethods PySwigObject_as_number = {
15314
+ (binaryfunc)0, /*nb_add*/
15315
+ (binaryfunc)0, /*nb_subtract*/
15316
+ (binaryfunc)0, /*nb_multiply*/
15317
+ (binaryfunc)0, /*nb_divide*/
15318
+ (binaryfunc)0, /*nb_remainder*/
15319
+ (binaryfunc)0, /*nb_divmod*/
15320
+ (ternaryfunc)0,/*nb_power*/
15321
+ (unaryfunc)0, /*nb_negative*/
15322
+ (unaryfunc)0, /*nb_positive*/
15323
+ (unaryfunc)0, /*nb_absolute*/
15324
+ (inquiry)0, /*nb_nonzero*/
15331
+ (coercion)0, /*nb_coerce*/
15332
+ (unaryfunc)PySwigObject_long, /*nb_int*/
15333
+ (unaryfunc)PySwigObject_long, /*nb_long*/
15334
+ (unaryfunc)0, /*nb_float*/
15335
+ (unaryfunc)PySwigObject_oct, /*nb_oct*/
15336
+ (unaryfunc)PySwigObject_hex, /*nb_hex*/
15337
+#if PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */
15338
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */
15339
+#elif PY_VERSION_HEX >= 0x02020000 /* 2.2.0 */
15340
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
15341
+#elif PY_VERSION_HEX >= 0x02000000 /* 2.0.0 */
15342
+ 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
15346
+ static PyTypeObject pyswigobject_type;
15347
+ static int type_init = 0;
15348
+ if (!type_init) {
15349
+ const PyTypeObject tmp
15351
+ PyObject_HEAD_INIT(NULL)
15353
+ (char *)"PySwigObject", /* tp_name */
15354
+ sizeof(PySwigObject), /* tp_basicsize */
15355
+ 0, /* tp_itemsize */
15356
+ (destructor)PySwigObject_dealloc, /* tp_dealloc */
15357
+ (printfunc)PySwigObject_print, /* tp_print */
15358
+#if PY_VERSION_HEX < 0x02020000
15359
+ (getattrfunc)PySwigObject_getattr, /* tp_getattr */
15361
+ (getattrfunc)0, /* tp_getattr */
15363
+ (setattrfunc)0, /* tp_setattr */
15364
+ (cmpfunc)PySwigObject_compare, /* tp_compare */
15365
+ (reprfunc)PySwigObject_repr, /* tp_repr */
15366
+ &PySwigObject_as_number, /* tp_as_number */
15367
+ 0, /* tp_as_sequence */
15368
+ 0, /* tp_as_mapping */
15369
+ (hashfunc)0, /* tp_hash */
15370
+ (ternaryfunc)0, /* tp_call */
15371
+ (reprfunc)PySwigObject_str, /* tp_str */
15372
+ PyObject_GenericGetAttr, /* tp_getattro */
15373
+ 0, /* tp_setattro */
15374
+ 0, /* tp_as_buffer */
15375
+ Py_TPFLAGS_DEFAULT, /* tp_flags */
15376
+ swigobject_doc, /* tp_doc */
15377
+ 0, /* tp_traverse */
15378
+ 0, /* tp_clear */
15379
+ 0, /* tp_richcompare */
15380
+ 0, /* tp_weaklistoffset */
15381
+#if PY_VERSION_HEX >= 0x02020000
15383
+ 0, /* tp_iternext */
15384
+ swigobject_methods, /* tp_methods */
15385
+ 0, /* tp_members */
15386
+ 0, /* tp_getset */
15389
+ 0, /* tp_descr_get */
15390
+ 0, /* tp_descr_set */
15391
+ 0, /* tp_dictoffset */
15393
+ 0, /* tp_alloc */
15396
+ 0, /* tp_is_gc */
15397
+ 0, /* tp_bases */
15399
+ 0, /* tp_cache */
15400
+ 0, /* tp_subclasses */
15401
+ 0, /* tp_weaklist */
15403
+#if PY_VERSION_HEX >= 0x02030000
15406
+#ifdef COUNT_ALLOCS
15407
+ 0,0,0,0 /* tp_alloc -> tp_next */
15410
+ pyswigobject_type = tmp;
15411
+ pyswigobject_type.ob_type = &PyType_Type;
15414
+ return &pyswigobject_type;
15417
+SWIGRUNTIME PyObject *
15418
+PySwigObject_New(void *ptr, swig_type_info *ty, int own)
15420
+ PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
15427
+ return (PyObject *)sobj;
15430
+/* -----------------------------------------------------------------------------
15431
+ * Implements a simple Swig Packed type, and use it instead of string
15432
+ * ----------------------------------------------------------------------------- */
15437
+ swig_type_info *ty;
15442
+PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
15444
+ char result[SWIG_BUFFER_SIZE];
15445
+ fputs("<Swig Packed ", fp);
15446
+ if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
15447
+ fputs("at ", fp);
15448
+ fputs(result, fp);
15450
+ fputs(v->ty->name,fp);
15455
+SWIGRUNTIME PyObject *
15456
+PySwigPacked_repr(PySwigPacked *v)
15458
+ char result[SWIG_BUFFER_SIZE];
15459
+ if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
15460
+ return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
15462
+ return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
15466
+SWIGRUNTIME PyObject *
15467
+PySwigPacked_str(PySwigPacked *v)
15469
+ char result[SWIG_BUFFER_SIZE];
15470
+ if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
15471
+ return PyString_FromFormat("%s%s", result, v->ty->name);
15473
+ return PyString_FromString(v->ty->name);
15478
+PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
15480
+ size_t i = v->size;
15481
+ size_t j = w->size;
15482
+ int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
15483
+ return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
15486
+SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
15488
+SWIGRUNTIME PyTypeObject*
15489
+PySwigPacked_type(void) {
15490
+ static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
15494
+SWIGRUNTIMEINLINE int
15495
+PySwigPacked_Check(PyObject *op) {
15496
+ return ((op)->ob_type == _PySwigPacked_type())
15497
+ || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
15501
+PySwigPacked_dealloc(PyObject *v)
15503
+ if (PySwigPacked_Check(v)) {
15504
+ PySwigPacked *sobj = (PySwigPacked *) v;
15505
+ free(sobj->pack);
15510
+SWIGRUNTIME PyTypeObject*
15511
+_PySwigPacked_type(void) {
15512
+ static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
15513
+ static PyTypeObject pyswigpacked_type;
15514
+ static int type_init = 0;
15515
+ if (!type_init) {
15516
+ const PyTypeObject tmp
15518
+ PyObject_HEAD_INIT(NULL)
15520
+ (char *)"PySwigPacked", /* tp_name */
15521
+ sizeof(PySwigPacked), /* tp_basicsize */
15522
+ 0, /* tp_itemsize */
15523
+ (destructor)PySwigPacked_dealloc, /* tp_dealloc */
15524
+ (printfunc)PySwigPacked_print, /* tp_print */
15525
+ (getattrfunc)0, /* tp_getattr */
15526
+ (setattrfunc)0, /* tp_setattr */
15527
+ (cmpfunc)PySwigPacked_compare, /* tp_compare */
15528
+ (reprfunc)PySwigPacked_repr, /* tp_repr */
15529
+ 0, /* tp_as_number */
15530
+ 0, /* tp_as_sequence */
15531
+ 0, /* tp_as_mapping */
15532
+ (hashfunc)0, /* tp_hash */
15533
+ (ternaryfunc)0, /* tp_call */
15534
+ (reprfunc)PySwigPacked_str, /* tp_str */
15535
+ PyObject_GenericGetAttr, /* tp_getattro */
15536
+ 0, /* tp_setattro */
15537
+ 0, /* tp_as_buffer */
15538
+ Py_TPFLAGS_DEFAULT, /* tp_flags */
15539
+ swigpacked_doc, /* tp_doc */
15540
+ 0, /* tp_traverse */
15541
+ 0, /* tp_clear */
15542
+ 0, /* tp_richcompare */
15543
+ 0, /* tp_weaklistoffset */
15544
+#if PY_VERSION_HEX >= 0x02020000
15546
+ 0, /* tp_iternext */
15547
+ 0, /* tp_methods */
15548
+ 0, /* tp_members */
15549
+ 0, /* tp_getset */
15552
+ 0, /* tp_descr_get */
15553
+ 0, /* tp_descr_set */
15554
+ 0, /* tp_dictoffset */
15556
+ 0, /* tp_alloc */
15559
+ 0, /* tp_is_gc */
15560
+ 0, /* tp_bases */
15562
+ 0, /* tp_cache */
15563
+ 0, /* tp_subclasses */
15564
+ 0, /* tp_weaklist */
15566
+#if PY_VERSION_HEX >= 0x02030000
15569
+#ifdef COUNT_ALLOCS
15570
+ 0,0,0,0 /* tp_alloc -> tp_next */
15573
+ pyswigpacked_type = tmp;
15574
+ pyswigpacked_type.ob_type = &PyType_Type;
15577
+ return &pyswigpacked_type;
15580
+SWIGRUNTIME PyObject *
15581
+PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
15583
+ PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
15585
+ void *pack = malloc(size);
15587
+ memcpy(pack, ptr, size);
15588
+ sobj->pack = pack;
15590
+ sobj->size = size;
15592
+ PyObject_DEL((PyObject *) sobj);
15596
+ return (PyObject *) sobj;
15599
+SWIGRUNTIME swig_type_info *
15600
+PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
15602
+ if (PySwigPacked_Check(obj)) {
15603
+ PySwigPacked *sobj = (PySwigPacked *)obj;
15604
+ if (sobj->size != size) return 0;
15605
+ memcpy(ptr, sobj->pack, size);
15612
+/* -----------------------------------------------------------------------------
15613
+ * pointers/data manipulation
15614
+ * ----------------------------------------------------------------------------- */
15616
+SWIGRUNTIMEINLINE PyObject *
15619
+ return PyString_FromString("this");
15622
+SWIGRUNTIME PyObject *
15625
+ static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
15626
+ return swig_this;
15629
+/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
15631
+SWIGRUNTIME PySwigObject *
15632
+SWIG_Python_GetSwigThis(PyObject *pyobj)
15634
+ if (PySwigObject_Check(pyobj)) {
15635
+ return (PySwigObject *) pyobj;
15637
+ PyObject *obj = 0;
15638
+#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
15639
+ if (PyInstance_Check(pyobj)) {
15640
+ obj = _PyInstance_Lookup(pyobj, SWIG_This());
15642
+ PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
15643
+ if (dictptr != NULL) {
15644
+ PyObject *dict = *dictptr;
15645
+ obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
15647
+#ifdef PyWeakref_CheckProxy
15648
+ if (PyWeakref_CheckProxy(pyobj)) {
15649
+ PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
15650
+ return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
15653
+ obj = PyObject_GetAttr(pyobj,SWIG_This());
15657
+ if (PyErr_Occurred()) PyErr_Clear();
15663
+ obj = PyObject_GetAttr(pyobj,SWIG_This());
15667
+ if (PyErr_Occurred()) PyErr_Clear();
15671
+ if (obj && !PySwigObject_Check(obj)) {
15672
+ /* a PyObject is called 'this', try to get the 'real this'
15673
+ PySwigObject from it */
15674
+ return SWIG_Python_GetSwigThis(obj);
15676
+ return (PySwigObject *)obj;
15680
+/* Acquire a pointer value */
15683
+SWIG_Python_AcquirePtr(PyObject *obj, int own) {
15684
+ if (own == SWIG_POINTER_OWN) {
15685
+ PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
15687
+ int oldown = sobj->own;
15695
+/* Convert a pointer value */
15698
+SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
15699
+ if (!obj) return SWIG_ERROR;
15700
+ if (obj == Py_None) {
15701
+ if (ptr) *ptr = 0;
15704
+ PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
15708
+ void *vptr = sobj->ptr;
15710
+ swig_type_info *to = sobj->ty;
15712
+ /* no type cast needed */
15713
+ if (ptr) *ptr = vptr;
15716
+ swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
15718
+ sobj = (PySwigObject *)sobj->next;
15721
+ int newmemory = 0;
15722
+ *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
15723
+ if (newmemory == SWIG_CAST_NEW_MEMORY) {
15726
+ *own = *own | SWIG_CAST_NEW_MEMORY;
15733
+ if (ptr) *ptr = vptr;
15739
+ *own = *own | sobj->own;
15740
+ if (flags & SWIG_POINTER_DISOWN) {
15745
+ int res = SWIG_ERROR;
15746
+ if (flags & SWIG_POINTER_IMPLICIT_CONV) {
15747
+ PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
15748
+ if (data && !data->implicitconv) {
15749
+ PyObject *klass = data->klass;
15751
+ PyObject *impconv;
15752
+ data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
15753
+ impconv = SWIG_Python_CallFunctor(klass, obj);
15754
+ data->implicitconv = 0;
15755
+ if (PyErr_Occurred()) {
15760
+ PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
15763
+ res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
15764
+ if (SWIG_IsOK(res)) {
15767
+ /* transfer the ownership to 'ptr' */
15769
+ res = SWIG_AddCast(res);
15770
+ res = SWIG_AddNewMask(res);
15772
+ res = SWIG_AddCast(res);
15776
+ Py_DECREF(impconv);
15786
+/* Convert a function ptr value */
15789
+SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
15790
+ if (!PyCFunction_Check(obj)) {
15791
+ return SWIG_ConvertPtr(obj, ptr, ty, 0);
15795
+ /* here we get the method pointer for callbacks */
15796
+ const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
15797
+ const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
15799
+ desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
15800
+ if (!desc) return SWIG_ERROR;
15803
+ swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
15805
+ int newmemory = 0;
15806
+ *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
15807
+ assert(!newmemory); /* newmemory handling not yet implemented */
15809
+ return SWIG_ERROR;
15818
+/* Convert a packed value value */
15821
+SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
15822
+ swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
15823
+ if (!to) return SWIG_ERROR;
15826
+ /* check type cast? */
15827
+ swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
15828
+ if (!tc) return SWIG_ERROR;
15834
+/* -----------------------------------------------------------------------------
15835
+ * Create a new pointer object
15836
+ * ----------------------------------------------------------------------------- */
15839
+ Create a new instance object, whitout calling __init__, and set the
15840
+ 'this' attribute.
15843
+SWIGRUNTIME PyObject*
15844
+SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
15846
+#if (PY_VERSION_HEX >= 0x02020000)
15847
+ PyObject *inst = 0;
15848
+ PyObject *newraw = data->newraw;
15850
+ inst = PyObject_Call(newraw, data->newargs, NULL);
15852
+#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
15853
+ PyObject **dictptr = _PyObject_GetDictPtr(inst);
15854
+ if (dictptr != NULL) {
15855
+ PyObject *dict = *dictptr;
15856
+ if (dict == NULL) {
15857
+ dict = PyDict_New();
15859
+ PyDict_SetItem(dict, SWIG_This(), swig_this);
15863
+ PyObject *key = SWIG_This();
15864
+ PyObject_SetAttr(inst, key, swig_this);
15868
+ PyObject *dict = PyDict_New();
15869
+ PyDict_SetItem(dict, SWIG_This(), swig_this);
15870
+ inst = PyInstance_NewRaw(data->newargs, dict);
15875
+#if (PY_VERSION_HEX >= 0x02010000)
15877
+ PyObject *dict = PyDict_New();
15878
+ PyDict_SetItem(dict, SWIG_This(), swig_this);
15879
+ inst = PyInstance_NewRaw(data->newargs, dict);
15881
+ return (PyObject *) inst;
15883
+ PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
15884
+ if (inst == NULL) {
15887
+ inst->in_class = (PyClassObject *)data->newargs;
15888
+ Py_INCREF(inst->in_class);
15889
+ inst->in_dict = PyDict_New();
15890
+ if (inst->in_dict == NULL) {
15894
+#ifdef Py_TPFLAGS_HAVE_WEAKREFS
15895
+ inst->in_weakreflist = NULL;
15897
+#ifdef Py_TPFLAGS_GC
15898
+ PyObject_GC_Init(inst);
15900
+ PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
15901
+ return (PyObject *) inst;
15907
+SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
15910
+#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
15911
+ PyObject **dictptr = _PyObject_GetDictPtr(inst);
15912
+ if (dictptr != NULL) {
15914
+ if (dict == NULL) {
15915
+ dict = PyDict_New();
15918
+ PyDict_SetItem(dict, SWIG_This(), swig_this);
15922
+ dict = PyObject_GetAttrString(inst, (char*)"__dict__");
15923
+ PyDict_SetItem(dict, SWIG_This(), swig_this);
15928
+SWIGINTERN PyObject *
15929
+SWIG_Python_InitShadowInstance(PyObject *args) {
15930
+ PyObject *obj[2];
15931
+ if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
15934
+ PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
15936
+ PySwigObject_append((PyObject*) sthis, obj[1]);
15938
+ SWIG_Python_SetSwigThis(obj[0], obj[1]);
15940
+ return SWIG_Py_Void();
15944
+/* Create a new pointer object */
15946
+SWIGRUNTIME PyObject *
15947
+SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
15949
+ return SWIG_Py_Void();
15951
+ int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
15952
+ PyObject *robj = PySwigObject_New(ptr, type, own);
15953
+ PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
15954
+ if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
15955
+ PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
15965
+/* Create a new packed object */
15967
+SWIGRUNTIMEINLINE PyObject *
15968
+SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
15969
+ return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
15972
+/* -----------------------------------------------------------------------------*
15974
+ * -----------------------------------------------------------------------------*/
15976
+#ifdef SWIG_LINK_RUNTIME
15977
+void *SWIG_ReturnGlobalTypeList(void *);
15980
+SWIGRUNTIME swig_module_info *
15981
+SWIG_Python_GetModule(void) {
15982
+ static void *type_pointer = (void *)0;
15983
+ /* first check if module already created */
15984
+ if (!type_pointer) {
15985
+#ifdef SWIG_LINK_RUNTIME
15986
+ type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
15988
+ type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
15989
+ (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
15990
+ if (PyErr_Occurred()) {
15992
+ type_pointer = (void *)0;
15996
+ return (swig_module_info *) type_pointer;
15999
+#if PY_MAJOR_VERSION < 2
16000
+/* PyModule_AddObject function was introduced in Python 2.0. The following function
16001
+ is copied out of Python/modsupport.c in python version 2.3.4 */
16003
+PyModule_AddObject(PyObject *m, char *name, PyObject *o)
16006
+ if (!PyModule_Check(m)) {
16007
+ PyErr_SetString(PyExc_TypeError,
16008
+ "PyModule_AddObject() needs module as first arg");
16009
+ return SWIG_ERROR;
16012
+ PyErr_SetString(PyExc_TypeError,
16013
+ "PyModule_AddObject() needs non-NULL value");
16014
+ return SWIG_ERROR;
16017
+ dict = PyModule_GetDict(m);
16018
+ if (dict == NULL) {
16019
+ /* Internal error -- modules must have a dict! */
16020
+ PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
16021
+ PyModule_GetName(m));
16022
+ return SWIG_ERROR;
16024
+ if (PyDict_SetItemString(dict, name, o))
16025
+ return SWIG_ERROR;
16032
+SWIG_Python_DestroyModule(void *vptr)
16034
+ swig_module_info *swig_module = (swig_module_info *) vptr;
16035
+ swig_type_info **types = swig_module->types;
16037
+ for (i =0; i < swig_module->size; ++i) {
16038
+ swig_type_info *ty = types[i];
16039
+ if (ty->owndata) {
16040
+ PySwigClientData *data = (PySwigClientData *) ty->clientdata;
16041
+ if (data) PySwigClientData_Del(data);
16044
+ Py_DECREF(SWIG_This());
16048
+SWIG_Python_SetModule(swig_module_info *swig_module) {
16049
+ static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
16051
+ PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
16052
+ swig_empty_runtime_method_table);
16053
+ PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
16054
+ if (pointer && module) {
16055
+ PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
16057
+ Py_XDECREF(pointer);
16061
+/* The python cached type query */
16062
+SWIGRUNTIME PyObject *
16063
+SWIG_Python_TypeCache(void) {
16064
+ static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
16068
+SWIGRUNTIME swig_type_info *
16069
+SWIG_Python_TypeQuery(const char *type)
16071
+ PyObject *cache = SWIG_Python_TypeCache();
16072
+ PyObject *key = PyString_FromString(type);
16073
+ PyObject *obj = PyDict_GetItem(cache, key);
16074
+ swig_type_info *descriptor;
16076
+ descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
16078
+ swig_module_info *swig_module = SWIG_Python_GetModule();
16079
+ descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
16080
+ if (descriptor) {
16081
+ obj = PyCObject_FromVoidPtr(descriptor, NULL);
16082
+ PyDict_SetItem(cache, key, obj);
16087
+ return descriptor;
16091
+ For backward compatibility only
16093
+#define SWIG_POINTER_EXCEPTION 0
16094
+#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
16095
+#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
16098
+SWIG_Python_AddErrMesg(const char* mesg, int infront)
16100
+ if (PyErr_Occurred()) {
16101
+ PyObject *type = 0;
16102
+ PyObject *value = 0;
16103
+ PyObject *traceback = 0;
16104
+ PyErr_Fetch(&type, &value, &traceback);
16106
+ PyObject *old_str = PyObject_Str(value);
16107
+ Py_XINCREF(type);
16110
+ PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
16112
+ PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
16114
+ Py_DECREF(old_str);
16123
+SWIG_Python_ArgFail(int argnum)
16125
+ if (PyErr_Occurred()) {
16126
+ /* add information about failing argument */
16128
+ PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
16129
+ return SWIG_Python_AddErrMesg(mesg, 1);
16135
+SWIGRUNTIMEINLINE const char *
16136
+PySwigObject_GetDesc(PyObject *self)
16138
+ PySwigObject *v = (PySwigObject *)self;
16139
+ swig_type_info *ty = v ? v->ty : 0;
16140
+ return ty ? ty->str : (char*)"";
16144
+SWIG_Python_TypeError(const char *type, PyObject *obj)
16147
+#if defined(SWIG_COBJECT_TYPES)
16148
+ if (obj && PySwigObject_Check(obj)) {
16149
+ const char *otype = (const char *) PySwigObject_GetDesc(obj);
16151
+ PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
16158
+ const char *otype = (obj ? obj->ob_type->tp_name : 0);
16160
+ PyObject *str = PyObject_Str(obj);
16161
+ const char *cstr = str ? PyString_AsString(str) : 0;
16163
+ PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
16164
+ type, otype, cstr);
16166
+ PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
16173
+ PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
16175
+ PyErr_Format(PyExc_TypeError, "unexpected type is received");
16180
+/* Convert a pointer value, signal an exception on a type mismatch */
16181
+SWIGRUNTIME void *
16182
+SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
16184
+ if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
16186
+ if (flags & SWIG_POINTER_EXCEPTION) {
16187
+ SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
16188
+ SWIG_Python_ArgFail(argnum);
16195
+#ifdef __cplusplus
16204
+#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
16206
+#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
16210
+ #define SWIG_exception(code, msg) do { SWIG_Error(code, msg); SWIG_fail;; } while(0)
16213
+/* -------- TYPES TABLE (BEGIN) -------- */
16215
+#define SWIGTYPE_p_Digit swig_types[0]
16216
+#define SWIGTYPE_p_DisplayDriver swig_types[1]
16217
+#define SWIGTYPE_p_allocator_type swig_types[2]
16218
+#define SWIGTYPE_p_char swig_types[3]
16219
+#define SWIGTYPE_p_difference_type swig_types[4]
16220
+#define SWIGTYPE_p_gwxPseudoDC swig_types[5]
16221
+#define SWIGTYPE_p_key_type swig_types[6]
16222
+#define SWIGTYPE_p_mapped_type swig_types[7]
16223
+#define SWIGTYPE_p_p_PyObject swig_types[8]
16224
+#define SWIGTYPE_p_size_type swig_types[9]
16225
+#define SWIGTYPE_p_std__invalid_argument swig_types[10]
16226
+#define SWIGTYPE_p_std__lessT_int_t swig_types[11]
16227
+#define SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t swig_types[12]
16228
+#define SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t__allocator_type swig_types[13]
16229
+#define SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t swig_types[14]
16230
+#define SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t__allocator_type swig_types[15]
16231
+#define SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t swig_types[16]
16232
+#define SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t__allocator_type swig_types[17]
16233
+#define SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t swig_types[18]
16234
+#define SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t__allocator_type swig_types[19]
16235
+#define SWIGTYPE_p_swig__PySwigIterator swig_types[20]
16236
+#define SWIGTYPE_p_value_type swig_types[21]
16237
+#define SWIGTYPE_p_wxRect swig_types[22]
16238
+#define SWIGTYPE_p_wxWindow swig_types[23]
16239
+static swig_type_info *swig_types[25];
16240
+static swig_module_info swig_module = {swig_types, 24, 0, 0, 0, 0};
16241
+#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
16242
+#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
16244
+/* -------- TYPES TABLE (END) -------- */
16246
+#if (PY_VERSION_HEX <= 0x02000000)
16247
+# if !defined(SWIG_PYTHON_CLASSIC)
16248
+# error "This python version requires swig to be run with the '-classic' option"
16252
+/*-----------------------------------------------
16253
+ @(target):= _grass6_wxvdigit.so
16254
+ ------------------------------------------------*/
16255
+#define SWIG_init init_grass6_wxvdigit
16257
+#define SWIG_name "_grass6_wxvdigit"
16259
+#define SWIGVERSION 0x010336
16260
+#define SWIG_VERSION SWIGVERSION
16263
+#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
16264
+#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
16267
+#include <stdexcept>
16271
+ class PyObject_ptr {
16276
+ PyObject_ptr() :_obj(0)
16280
+ PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
16282
+ Py_XINCREF(_obj);
16285
+ PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
16287
+ if (initial_ref) {
16288
+ Py_XINCREF(_obj);
16292
+ PyObject_ptr & operator=(const PyObject_ptr& item)
16294
+ Py_XINCREF(item._obj);
16295
+ Py_XDECREF(_obj);
16296
+ _obj = item._obj;
16302
+ Py_XDECREF(_obj);
16305
+ operator PyObject *() const
16310
+ PyObject *operator->() const
16319
+ struct PyObject_var : PyObject_ptr {
16320
+ PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
16322
+ PyObject_var & operator = (PyObject* obj)
16324
+ Py_XDECREF(_obj);
16332
+#include <grass/gis.h>
16333
+#include <grass/gisdefs.h>
16334
+#include <grass/Vect.h>
16335
+#include <grass/vect/dig_structs.h>
16336
+#include "driver.h"
16337
+#include "digit.h"
16340
+#include <iostream>
16343
+#include <stdexcept>
16346
+#if defined(__GNUC__)
16347
+# if __GNUC__ == 2 && __GNUC_MINOR <= 96
16348
+# define SWIG_STD_NOMODERN_STL
16354
+#include <stdexcept>
16358
+ struct stop_iteration {
16361
+ struct PySwigIterator {
16363
+ PyObject_ptr _seq;
16366
+ PySwigIterator(PyObject *seq) : _seq(seq)
16371
+ virtual ~PySwigIterator() {}
16373
+ // Access iterator method, required by Python
16374
+ virtual PyObject *value() const = 0;
16376
+ // Forward iterator method, required by Python
16377
+ virtual PySwigIterator *incr(size_t n = 1) = 0;
16379
+ // Backward iterator method, very common in C++, but not required in Python
16380
+ virtual PySwigIterator *decr(size_t /*n*/ = 1)
16382
+ throw stop_iteration();
16385
+ // Random access iterator methods, but not required in Python
16386
+ virtual ptrdiff_t distance(const PySwigIterator &/*x*/) const
16388
+ throw std::invalid_argument("operation not supported");
16391
+ virtual bool equal (const PySwigIterator &/*x*/) const
16393
+ throw std::invalid_argument("operation not supported");
16396
+ // C++ common/needed methods
16397
+ virtual PySwigIterator *copy() const = 0;
16401
+ SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads
16402
+ PyObject *obj = value();
16404
+ SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads
16408
+ PyObject *previous()
16410
+ SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads
16412
+ PyObject *obj = value();
16413
+ SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads
16417
+ PySwigIterator *advance(ptrdiff_t n)
16419
+ return (n > 0) ? incr(n) : decr(-n);
16422
+ bool operator == (const PySwigIterator& x) const
16427
+ bool operator != (const PySwigIterator& x) const
16429
+ return ! operator==(x);
16432
+ PySwigIterator& operator += (ptrdiff_t n)
16434
+ return *advance(n);
16437
+ PySwigIterator& operator -= (ptrdiff_t n)
16439
+ return *advance(-n);
16442
+ PySwigIterator* operator + (ptrdiff_t n) const
16444
+ return copy()->advance(n);
16447
+ PySwigIterator* operator - (ptrdiff_t n) const
16449
+ return copy()->advance(-n);
16452
+ ptrdiff_t operator - (const PySwigIterator& x) const
16454
+ return x.distance(*this);
16457
+ static swig_type_info* descriptor() {
16458
+ static int init = 0;
16459
+ static swig_type_info* desc = 0;
16461
+ desc = SWIG_TypeQuery("swig::PySwigIterator *");
16471
+SWIG_AsVal_double (PyObject *obj, double *val)
16473
+ int res = SWIG_TypeError;
16474
+ if (PyFloat_Check(obj)) {
16475
+ if (val) *val = PyFloat_AsDouble(obj);
16477
+ } else if (PyInt_Check(obj)) {
16478
+ if (val) *val = PyInt_AsLong(obj);
16480
+ } else if (PyLong_Check(obj)) {
16481
+ double v = PyLong_AsDouble(obj);
16482
+ if (!PyErr_Occurred()) {
16483
+ if (val) *val = v;
16489
+#ifdef SWIG_PYTHON_CAST_MODE
16491
+ int dispatch = 0;
16492
+ double d = PyFloat_AsDouble(obj);
16493
+ if (!PyErr_Occurred()) {
16494
+ if (val) *val = d;
16495
+ return SWIG_AddCast(SWIG_OK);
16500
+ long v = PyLong_AsLong(obj);
16501
+ if (!PyErr_Occurred()) {
16502
+ if (val) *val = v;
16503
+ return SWIG_AddCast(SWIG_AddCast(SWIG_OK));
16514
+#include <float.h>
16520
+SWIGINTERNINLINE int
16521
+SWIG_CanCastAsInteger(double *d, double min, double max) {
16523
+ if ((min <= x && x <= max)) {
16524
+ double fx = floor(x);
16525
+ double cx = ceil(x);
16526
+ double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */
16527
+ if ((errno == EDOM) || (errno == ERANGE)) {
16530
+ double summ, reps, diff;
16533
+ } else if (rd > x) {
16539
+ reps = diff/summ;
16540
+ if (reps < 8*DBL_EPSILON) {
16551
+SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val)
16553
+ if (PyInt_Check(obj)) {
16554
+ long v = PyInt_AsLong(obj);
16556
+ if (val) *val = v;
16559
+ return SWIG_OverflowError;
16561
+ } else if (PyLong_Check(obj)) {
16562
+ unsigned long v = PyLong_AsUnsignedLong(obj);
16563
+ if (!PyErr_Occurred()) {
16564
+ if (val) *val = v;
16570
+#ifdef SWIG_PYTHON_CAST_MODE
16572
+ int dispatch = 0;
16573
+ unsigned long v = PyLong_AsUnsignedLong(obj);
16574
+ if (!PyErr_Occurred()) {
16575
+ if (val) *val = v;
16576
+ return SWIG_AddCast(SWIG_OK);
16582
+ int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
16583
+ if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) {
16584
+ if (val) *val = (unsigned long)(d);
16590
+ return SWIG_TypeError;
16594
+SWIGINTERNINLINE int
16595
+SWIG_AsVal_size_t (PyObject * obj, size_t *val)
16598
+ int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
16599
+ if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
16604
+ #define SWIG_From_long PyInt_FromLong
16607
+SWIGINTERNINLINE PyObject *
16608
+SWIG_From_ptrdiff_t (ptrdiff_t value)
16610
+ return SWIG_From_long (static_cast< long >(value));
16614
+SWIGINTERNINLINE PyObject*
16615
+ SWIG_From_bool (bool value)
16617
+ return PyBool_FromLong(value ? 1 : 0);
16622
+SWIG_AsVal_long (PyObject *obj, long* val)
16624
+ if (PyInt_Check(obj)) {
16625
+ if (val) *val = PyInt_AsLong(obj);
16627
+ } else if (PyLong_Check(obj)) {
16628
+ long v = PyLong_AsLong(obj);
16629
+ if (!PyErr_Occurred()) {
16630
+ if (val) *val = v;
16636
+#ifdef SWIG_PYTHON_CAST_MODE
16638
+ int dispatch = 0;
16639
+ long v = PyInt_AsLong(obj);
16640
+ if (!PyErr_Occurred()) {
16641
+ if (val) *val = v;
16642
+ return SWIG_AddCast(SWIG_OK);
16648
+ int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
16649
+ if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) {
16650
+ if (val) *val = (long)(d);
16656
+ return SWIG_TypeError;
16660
+SWIGINTERNINLINE int
16661
+SWIG_AsVal_ptrdiff_t (PyObject * obj, ptrdiff_t *val)
16664
+ int res = SWIG_AsVal_long (obj, val ? &v : 0);
16665
+ if (SWIG_IsOK(res) && val) *val = static_cast< ptrdiff_t >(v);
16670
+#include <stdexcept>
16673
+#include <algorithm>
16680
+ template <class Type>
16681
+ struct noconst_traits {
16682
+ typedef Type noconst_type;
16685
+ template <class Type>
16686
+ struct noconst_traits<const Type> {
16687
+ typedef Type noconst_type;
16693
+ struct pointer_category { };
16694
+ struct value_category { };
16697
+ General traits that provides type_name and type_info
16699
+ template <class Type> struct traits { };
16701
+ template <class Type>
16702
+ inline const char* type_name() {
16703
+ return traits<typename noconst_traits<Type >::noconst_type >::type_name();
16706
+ template <class Type>
16707
+ struct traits_info {
16708
+ static swig_type_info *type_query(std::string name) {
16710
+ return SWIG_TypeQuery(name.c_str());
16712
+ static swig_type_info *type_info() {
16713
+ static swig_type_info *info = type_query(type_name<Type>());
16718
+ template <class Type>
16719
+ inline swig_type_info *type_info() {
16720
+ return traits_info<Type>::type_info();
16724
+ Partial specialization for pointers
16726
+ template <class Type> struct traits <Type *> {
16727
+ typedef pointer_category category;
16728
+ static std::string make_ptr_name(const char* name) {
16729
+ std::string ptrname = name;
16733
+ static const char* type_name() {
16734
+ static std::string name = make_ptr_name(swig::type_name<Type>());
16735
+ return name.c_str();
16739
+ template <class Type, class Category>
16740
+ struct traits_as { };
16742
+ template <class Type, class Category>
16743
+ struct traits_check { };
16750
+ Traits that provides the from method
16752
+ template <class Type> struct traits_from_ptr {
16753
+ static PyObject *from(Type *val, int owner = 0) {
16754
+ return SWIG_NewPointerObj(val, type_info<Type>(), owner);
16758
+ template <class Type> struct traits_from {
16759
+ static PyObject *from(const Type& val) {
16760
+ return traits_from_ptr<Type>::from(new Type(val), 1);
16764
+ template <class Type> struct traits_from<Type *> {
16765
+ static PyObject *from(Type* val) {
16766
+ return traits_from_ptr<Type>::from(val, 0);
16770
+ template <class Type> struct traits_from<const Type *> {
16771
+ static PyObject *from(const Type* val) {
16772
+ return traits_from_ptr<Type>::from(const_cast<Type*>(val), 0);
16777
+ template <class Type>
16778
+ inline PyObject *from(const Type& val) {
16779
+ return traits_from<Type>::from(val);
16782
+ template <class Type>
16783
+ inline PyObject *from_ptr(Type* val, int owner) {
16784
+ return traits_from_ptr<Type>::from(val, owner);
16788
+ Traits that provides the asval/as/check method
16790
+ template <class Type>
16791
+ struct traits_asptr {
16792
+ static int asptr(PyObject *obj, Type **val) {
16794
+ int res = (SWIG_ConvertPtr(obj, (void**)&p, type_info<Type>(), 0) == SWIG_OK) ? SWIG_OLDOBJ : 0;
16795
+ if (SWIG_IsOK(res)) {
16796
+ if (val) *val = p;
16802
+ template <class Type>
16803
+ inline int asptr(PyObject *obj, Type **vptr) {
16804
+ return traits_asptr<Type>::asptr(obj, vptr);
16807
+ template <class Type>
16808
+ struct traits_asval {
16809
+ static int asval(PyObject *obj, Type *val) {
16812
+ int res = traits_asptr<Type>::asptr(obj, &p);
16813
+ if (!SWIG_IsOK(res)) return res;
16815
+ typedef typename noconst_traits<Type>::noconst_type noconst_type;
16816
+ *(const_cast<noconst_type*>(val)) = *p;
16817
+ if (SWIG_IsNewObj(res)){
16819
+ res = SWIG_DelNewMask(res);
16823
+ return SWIG_ERROR;
16826
+ return traits_asptr<Type>::asptr(obj, (Type **)(0));
16831
+ template <class Type> struct traits_asval<Type*> {
16832
+ static int asval(PyObject *obj, Type **val) {
16834
+ typedef typename noconst_traits<Type>::noconst_type noconst_type;
16835
+ noconst_type *p = 0;
16836
+ int res = traits_asptr<noconst_type>::asptr(obj, &p);
16837
+ if (SWIG_IsOK(res)) {
16838
+ *(const_cast<noconst_type**>(val)) = p;
16842
+ return traits_asptr<Type>::asptr(obj, (Type **)(0));
16847
+ template <class Type>
16848
+ inline int asval(PyObject *obj, Type *val) {
16849
+ return traits_asval<Type>::asval(obj, val);
16852
+ template <class Type>
16853
+ struct traits_as<Type, value_category> {
16854
+ static Type as(PyObject *obj, bool throw_error) {
16856
+ int res = asval(obj, &v);
16857
+ if (!obj || !SWIG_IsOK(res)) {
16858
+ if (!PyErr_Occurred()) {
16859
+ ::SWIG_Error(SWIG_TypeError, swig::type_name<Type>());
16861
+ if (throw_error) throw std::invalid_argument("bad type");
16867
+ template <class Type>
16868
+ struct traits_as<Type, pointer_category> {
16869
+ static Type as(PyObject *obj, bool throw_error) {
16871
+ int res = (obj ? traits_asptr<Type>::asptr(obj, &v) : SWIG_ERROR);
16872
+ if (SWIG_IsOK(res) && v) {
16873
+ if (SWIG_IsNewObj(res)) {
16881
+ // Uninitialized return value, no Type() constructor required.
16882
+ static Type *v_def = (Type*) malloc(sizeof(Type));
16883
+ if (!PyErr_Occurred()) {
16884
+ SWIG_Error(SWIG_TypeError, swig::type_name<Type>());
16886
+ if (throw_error) throw std::invalid_argument("bad type");
16887
+ memset(v_def,0,sizeof(Type));
16893
+ template <class Type>
16894
+ struct traits_as<Type*, pointer_category> {
16895
+ static Type* as(PyObject *obj, bool throw_error) {
16897
+ int res = (obj ? traits_asptr<Type>::asptr(obj, &v) : SWIG_ERROR);
16898
+ if (SWIG_IsOK(res)) {
16901
+ if (!PyErr_Occurred()) {
16902
+ SWIG_Error(SWIG_TypeError, swig::type_name<Type>());
16904
+ if (throw_error) throw std::invalid_argument("bad type");
16910
+ template <class Type>
16911
+ inline Type as(PyObject *obj, bool te = false) {
16912
+ return traits_as<Type, typename traits<Type>::category>::as(obj, te);
16915
+ template <class Type>
16916
+ struct traits_check<Type, value_category> {
16917
+ static bool check(PyObject *obj) {
16918
+ int res = obj ? asval(obj, (Type *)(0)) : SWIG_ERROR;
16919
+ return SWIG_IsOK(res) ? true : false;
16923
+ template <class Type>
16924
+ struct traits_check<Type, pointer_category> {
16925
+ static bool check(PyObject *obj) {
16926
+ int res = obj ? asptr(obj, (Type **)(0)) : SWIG_ERROR;
16927
+ return SWIG_IsOK(res) ? true : false;
16931
+ template <class Type>
16932
+ inline bool check(PyObject *obj) {
16933
+ return traits_check<Type, typename traits<Type>::category>::check(obj);
16938
+#include <functional>
16942
+ struct less <PyObject *>: public binary_function<PyObject *, PyObject *, bool>
16945
+ operator()(PyObject * v, PyObject *w) const
16948
+ SWIG_PYTHON_THREAD_BEGIN_BLOCK;
16949
+ res = PyObject_Compare(v, w) < 0;
16950
+ SWIG_PYTHON_THREAD_END_BLOCK;
16956
+ struct less <swig::PyObject_ptr>: public binary_function<swig::PyObject_ptr, swig::PyObject_ptr, bool>
16959
+ operator()(const swig::PyObject_ptr& v, const swig::PyObject_ptr& w) const
16961
+ return std::less<PyObject *>()(v, w);
16966
+ struct less <swig::PyObject_var>: public binary_function<swig::PyObject_var, swig::PyObject_var, bool>
16969
+ operator()(const swig::PyObject_var& v, const swig::PyObject_var& w) const
16971
+ return std::less<PyObject *>()(v, w);
16978
+ template <> struct traits<PyObject *> {
16979
+ typedef value_category category;
16980
+ static const char* type_name() { return "PyObject *"; }
16983
+ template <> struct traits_asval<PyObject * > {
16984
+ typedef PyObject * value_type;
16985
+ static int asval(PyObject *obj, value_type *val) {
16986
+ if (val) *val = obj;
16992
+ struct traits_check<PyObject *, value_category> {
16993
+ static bool check(PyObject *) {
16998
+ template <> struct traits_from<PyObject *> {
16999
+ typedef PyObject * value_type;
17000
+ static PyObject *from(const value_type& val) {
17010
+ check_index(ptrdiff_t i, size_t size, bool insert = false) {
17012
+ if ((size_t) (-i) <= size)
17013
+ return (size_t) (i + size);
17014
+ } else if ( (size_t) i < size ) {
17015
+ return (size_t) i;
17016
+ } else if (insert && ((size_t) i == size)) {
17020
+ throw std::out_of_range("index out of range");
17024
+ slice_index(ptrdiff_t i, size_t size) {
17026
+ if ((size_t) (-i) <= size) {
17027
+ return (size_t) (i + size);
17029
+ throw std::out_of_range("index out of range");
17032
+ return ( (size_t) i < size ) ? ((size_t) i) : size;
17036
+ template <class Sequence, class Difference>
17037
+ inline typename Sequence::iterator
17038
+ getpos(Sequence* self, Difference i) {
17039
+ typename Sequence::iterator pos = self->begin();
17040
+ std::advance(pos, check_index(i,self->size()));
17044
+ template <class Sequence, class Difference>
17045
+ inline typename Sequence::const_iterator
17046
+ cgetpos(const Sequence* self, Difference i) {
17047
+ typename Sequence::const_iterator pos = self->begin();
17048
+ std::advance(pos, check_index(i,self->size()));
17052
+ template <class Sequence, class Difference>
17054
+ getslice(const Sequence* self, Difference i, Difference j) {
17055
+ typename Sequence::size_type size = self->size();
17056
+ typename Sequence::size_type ii = swig::check_index(i, size);
17057
+ typename Sequence::size_type jj = swig::slice_index(j, size);
17060
+ typename Sequence::const_iterator vb = self->begin();
17061
+ typename Sequence::const_iterator ve = self->begin();
17062
+ std::advance(vb,ii);
17063
+ std::advance(ve,jj);
17064
+ return new Sequence(vb, ve);
17066
+ return new Sequence();
17070
+ template <class Sequence, class Difference, class InputSeq>
17072
+ setslice(Sequence* self, Difference i, Difference j, const InputSeq& v) {
17073
+ typename Sequence::size_type size = self->size();
17074
+ typename Sequence::size_type ii = swig::check_index(i, size, true);
17075
+ typename Sequence::size_type jj = swig::slice_index(j, size);
17076
+ if (jj < ii) jj = ii;
17077
+ size_t ssize = jj - ii;
17078
+ if (ssize <= v.size()) {
17079
+ typename Sequence::iterator sb = self->begin();
17080
+ typename InputSeq::const_iterator vmid = v.begin();
17081
+ std::advance(sb,ii);
17082
+ std::advance(vmid, jj - ii);
17083
+ self->insert(std::copy(v.begin(), vmid, sb), vmid, v.end());
17085
+ typename Sequence::iterator sb = self->begin();
17086
+ typename Sequence::iterator se = self->begin();
17087
+ std::advance(sb,ii);
17088
+ std::advance(se,jj);
17089
+ self->erase(sb,se);
17090
+ self->insert(sb, v.begin(), v.end());
17094
+ template <class Sequence, class Difference>
17096
+ delslice(Sequence* self, Difference i, Difference j) {
17097
+ typename Sequence::size_type size = self->size();
17098
+ typename Sequence::size_type ii = swig::check_index(i, size, true);
17099
+ typename Sequence::size_type jj = swig::slice_index(j, size);
17101
+ typename Sequence::iterator sb = self->begin();
17102
+ typename Sequence::iterator se = self->begin();
17103
+ std::advance(sb,ii);
17104
+ std::advance(se,jj);
17105
+ self->erase(sb,se);
17111
+#if defined(__SUNPRO_CC) && defined(_RWSTD_VER)
17112
+# if !defined(SWIG_NO_STD_NOITERATOR_TRAITS_STL)
17113
+# define SWIG_STD_NOITERATOR_TRAITS_STL
17117
+#if !defined(SWIG_STD_NOITERATOR_TRAITS_STL)
17118
+#include <iterator>
17121
+ template <class Iterator>
17122
+ struct iterator_traits {
17123
+ typedef ptrdiff_t difference_type;
17124
+ typedef typename Iterator::value_type value_type;
17127
+ template <class Iterator, class Category,class T, class Reference, class Pointer, class Distance>
17128
+ struct iterator_traits<__reverse_bi_iterator<Iterator,Category,T,Reference,Pointer,Distance> > {
17129
+ typedef Distance difference_type;
17130
+ typedef T value_type;
17133
+ template <class T>
17134
+ struct iterator_traits<T*> {
17135
+ typedef T value_type;
17136
+ typedef ptrdiff_t difference_type;
17139
+ template<typename _InputIterator>
17140
+ inline typename iterator_traits<_InputIterator>::difference_type
17141
+ distance(_InputIterator __first, _InputIterator __last)
17143
+ typename iterator_traits<_InputIterator>::difference_type __n = 0;
17144
+ while (__first != __last) {
17145
+ ++__first; ++__n;
17154
+ template<typename OutIterator>
17155
+ class PySwigIterator_T : public PySwigIterator
17158
+ typedef OutIterator out_iterator;
17159
+ typedef typename std::iterator_traits<out_iterator>::value_type value_type;
17160
+ typedef PySwigIterator_T<out_iterator> self_type;
17162
+ PySwigIterator_T(out_iterator curr, PyObject *seq)
17163
+ : PySwigIterator(seq), current(curr)
17167
+ const out_iterator& get_current() const
17173
+ bool equal (const PySwigIterator &iter) const
17175
+ const self_type *iters = dynamic_cast<const self_type *>(&iter);
17177
+ return (current == iters->get_current());
17179
+ throw std::invalid_argument("bad iterator type");
17183
+ ptrdiff_t distance(const PySwigIterator &iter) const
17185
+ const self_type *iters = dynamic_cast<const self_type *>(&iter);
17187
+ return std::distance(current, iters->get_current());
17189
+ throw std::invalid_argument("bad iterator type");
17194
+ out_iterator current;
17197
+ template <class ValueType>
17200
+ typedef const ValueType& argument_type;
17201
+ typedef PyObject *result_type;
17202
+ result_type operator()(argument_type v) const
17204
+ return swig::from(v);
17208
+ template<typename OutIterator,
17209
+ typename ValueType = typename std::iterator_traits<OutIterator>::value_type,
17210
+ typename FromOper = from_oper<ValueType> >
17211
+ class PySwigIteratorOpen_T : public PySwigIterator_T<OutIterator>
17215
+ typedef OutIterator out_iterator;
17216
+ typedef ValueType value_type;
17217
+ typedef PySwigIterator_T<out_iterator> base;
17218
+ typedef PySwigIteratorOpen_T<OutIterator, ValueType, FromOper> self_type;
17220
+ PySwigIteratorOpen_T(out_iterator curr, PyObject *seq)
17221
+ : PySwigIterator_T<OutIterator>(curr, seq)
17225
+ PyObject *value() const {
17226
+ return from(static_cast<const value_type&>(*(base::current)));
17229
+ PySwigIterator *copy() const
17231
+ return new self_type(*this);
17234
+ PySwigIterator *incr(size_t n = 1)
17242
+ PySwigIterator *decr(size_t n = 1)
17251
+ template<typename OutIterator,
17252
+ typename ValueType = typename std::iterator_traits<OutIterator>::value_type,
17253
+ typename FromOper = from_oper<ValueType> >
17254
+ class PySwigIteratorClosed_T : public PySwigIterator_T<OutIterator>
17258
+ typedef OutIterator out_iterator;
17259
+ typedef ValueType value_type;
17260
+ typedef PySwigIterator_T<out_iterator> base;
17261
+ typedef PySwigIteratorClosed_T<OutIterator, ValueType, FromOper> self_type;
17263
+ PySwigIteratorClosed_T(out_iterator curr, out_iterator first, out_iterator last, PyObject *seq)
17264
+ : PySwigIterator_T<OutIterator>(curr, seq), begin(first), end(last)
17268
+ PyObject *value() const {
17269
+ if (base::current == end) {
17270
+ throw stop_iteration();
17272
+ return from(static_cast<const value_type&>(*(base::current)));
17276
+ PySwigIterator *copy() const
17278
+ return new self_type(*this);
17281
+ PySwigIterator *incr(size_t n = 1)
17284
+ if (base::current == end) {
17285
+ throw stop_iteration();
17293
+ PySwigIterator *decr(size_t n = 1)
17296
+ if (base::current == begin) {
17297
+ throw stop_iteration();
17306
+ out_iterator begin;
17307
+ out_iterator end;
17310
+ template<typename OutIter>
17311
+ inline PySwigIterator*
17312
+ make_output_iterator(const OutIter& current, const OutIter& begin,const OutIter& end, PyObject *seq = 0)
17314
+ return new PySwigIteratorClosed_T<OutIter>(current, begin, end, seq);
17317
+ template<typename OutIter>
17318
+ inline PySwigIterator*
17319
+ make_output_iterator(const OutIter& current, PyObject *seq = 0)
17321
+ return new PySwigIteratorOpen_T<OutIter>(current, seq);
17328
+ template <class T>
17329
+ struct PySequence_Ref
17331
+ PySequence_Ref(PyObject* seq, int index)
17332
+ : _seq(seq), _index(index)
17336
+ operator T () const
17338
+ swig::PyObject_var item = PySequence_GetItem(_seq, _index);
17340
+ return swig::as<T>(item, true);
17341
+ } catch (std::exception& e) {
17343
+ sprintf(msg, "in sequence element %d ", _index);
17344
+ if (!PyErr_Occurred()) {
17345
+ ::SWIG_Error(SWIG_TypeError, swig::type_name<T>());
17347
+ SWIG_Python_AddErrorMsg(msg);
17348
+ SWIG_Python_AddErrorMsg(e.what());
17353
+ PySequence_Ref& operator=(const T& v)
17355
+ PySequence_SetItem(_seq, _index, swig::from<T>(v));
17364
+ template <class T>
17365
+ struct PySequence_ArrowProxy
17367
+ PySequence_ArrowProxy(const T& x): m_value(x) {}
17368
+ const T* operator->() const { return &m_value; }
17369
+ operator const T*() const { return &m_value; }
17373
+ template <class T, class Reference >
17374
+ struct PySequence_InputIterator
17376
+ typedef PySequence_InputIterator<T, Reference > self;
17378
+ typedef std::random_access_iterator_tag iterator_category;
17379
+ typedef Reference reference;
17380
+ typedef T value_type;
17381
+ typedef T* pointer;
17382
+ typedef int difference_type;
17384
+ PySequence_InputIterator()
17388
+ PySequence_InputIterator(PyObject* seq, int index)
17389
+ : _seq(seq), _index(index)
17393
+ reference operator*() const
17395
+ return reference(_seq, _index);
17398
+ PySequence_ArrowProxy<T>
17399
+ operator->() const {
17400
+ return PySequence_ArrowProxy<T>(operator*());
17403
+ bool operator==(const self& ri) const
17405
+ return (_index == ri._index) && (_seq == ri._seq);
17408
+ bool operator!=(const self& ri) const
17410
+ return !(operator==(ri));
17413
+ self& operator ++ ()
17419
+ self& operator -- ()
17425
+ self& operator += (difference_type n)
17431
+ self operator +(difference_type n) const
17433
+ return self(_seq, _index + n);
17436
+ self& operator -= (difference_type n)
17442
+ self operator -(difference_type n) const
17444
+ return self(_seq, _index - n);
17447
+ difference_type operator - (const self& ri) const
17449
+ return _index - ri._index;
17452
+ bool operator < (const self& ri) const
17454
+ return _index < ri._index;
17458
+ operator[](difference_type n) const
17460
+ return reference(_seq, _index + n);
17465
+ difference_type _index;
17468
+ template <class T>
17469
+ struct PySequence_Cont
17471
+ typedef PySequence_Ref<T> reference;
17472
+ typedef const PySequence_Ref<T> const_reference;
17473
+ typedef T value_type;
17474
+ typedef T* pointer;
17475
+ typedef int difference_type;
17476
+ typedef int size_type;
17477
+ typedef const pointer const_pointer;
17478
+ typedef PySequence_InputIterator<T, reference> iterator;
17479
+ typedef PySequence_InputIterator<T, const_reference> const_iterator;
17481
+ PySequence_Cont(PyObject* seq) : _seq(0)
17483
+ if (!PySequence_Check(seq)) {
17484
+ throw std::invalid_argument("a sequence is expected");
17490
+ ~PySequence_Cont()
17492
+ Py_XDECREF(_seq);
17495
+ size_type size() const
17497
+ return static_cast<size_type>(PySequence_Size(_seq));
17500
+ bool empty() const
17502
+ return size() == 0;
17507
+ return iterator(_seq, 0);
17510
+ const_iterator begin() const
17512
+ return const_iterator(_seq, 0);
17517
+ return iterator(_seq, size());
17520
+ const_iterator end() const
17522
+ return const_iterator(_seq, size());
17525
+ reference operator[](difference_type n)
17527
+ return reference(_seq, n);
17530
+ const_reference operator[](difference_type n) const
17532
+ return const_reference(_seq, n);
17535
+ bool check(bool set_err = true) const
17538
+ for (int i = 0; i < s; ++i) {
17539
+ swig::PyObject_var item = PySequence_GetItem(_seq, i);
17540
+ if (!swig::check<value_type>(item)) {
17543
+ sprintf(msg, "in sequence element %d", i);
17544
+ SWIG_Error(SWIG_RuntimeError, msg);
17559
+#include <limits.h>
17560
+#if !defined(SWIG_NO_LLONG_MAX)
17561
+# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
17562
+# define LLONG_MAX __LONG_LONG_MAX__
17563
+# define LLONG_MIN (-LLONG_MAX - 1LL)
17564
+# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
17570
+SWIG_AsVal_int (PyObject * obj, int *val)
17573
+ int res = SWIG_AsVal_long (obj, &v);
17574
+ if (SWIG_IsOK(res)) {
17575
+ if ((v < INT_MIN || v > INT_MAX)) {
17576
+ return SWIG_OverflowError;
17578
+ if (val) *val = static_cast< int >(v);
17585
+SWIGINTERNINLINE PyObject *
17586
+SWIG_From_int (int value)
17588
+ return SWIG_From_long (value);
17593
+ template <> struct traits<int > {
17594
+ typedef value_category category;
17595
+ static const char* type_name() { return"int"; }
17597
+ template <> struct traits_asval<int > {
17598
+ typedef int value_type;
17599
+ static int asval(PyObject *obj, value_type *val) {
17600
+ return SWIG_AsVal_int (obj, val);
17603
+ template <> struct traits_from<int > {
17604
+ typedef int value_type;
17605
+ static PyObject *from(const value_type& val) {
17606
+ return SWIG_From_int (val);
17613
+ template <class PySeq, class Seq>
17615
+ assign(const PySeq& pyseq, Seq* seq) {
17616
+ // seq->assign(pyseq.begin(), pyseq.end()); // not used as not always implemented
17617
+ typedef typename PySeq::value_type value_type;
17618
+ typename PySeq::const_iterator it = pyseq.begin();
17619
+ for (;it != pyseq.end(); ++it) {
17620
+ seq->insert(seq->end(),(value_type)(*it));
17624
+ template <class Seq, class T = typename Seq::value_type >
17625
+ struct traits_asptr_stdseq {
17626
+ typedef Seq sequence;
17627
+ typedef T value_type;
17629
+ static int asptr(PyObject *obj, sequence **seq) {
17630
+ if (obj == Py_None || SWIG_Python_GetSwigThis(obj)) {
17632
+ if (::SWIG_ConvertPtr(obj,(void**)&p,
17633
+ swig::type_info<sequence>(),0) == SWIG_OK) {
17634
+ if (seq) *seq = p;
17635
+ return SWIG_OLDOBJ;
17637
+ } else if (PySequence_Check(obj)) {
17639
+ PySequence_Cont<value_type> pyseq(obj);
17641
+ sequence *pseq = new sequence();
17642
+ assign(pyseq, pseq);
17644
+ return SWIG_NEWOBJ;
17646
+ return pyseq.check() ? SWIG_OK : SWIG_ERROR;
17648
+ } catch (std::exception& e) {
17650
+ if (!PyErr_Occurred()) {
17651
+ PyErr_SetString(PyExc_TypeError, e.what());
17654
+ return SWIG_ERROR;
17657
+ return SWIG_ERROR;
17661
+ template <class Seq, class T = typename Seq::value_type >
17662
+ struct traits_from_stdseq {
17663
+ typedef Seq sequence;
17664
+ typedef T value_type;
17665
+ typedef typename Seq::size_type size_type;
17666
+ typedef typename sequence::const_iterator const_iterator;
17668
+ static PyObject *from(const sequence& seq) {
17669
+#ifdef SWIG_PYTHON_EXTRA_NATIVE_CONTAINERS
17670
+ swig_type_info *desc = swig::type_info<sequence>();
17671
+ if (desc && desc->clientdata) {
17672
+ return SWIG_NewPointerObj(new sequence(seq), desc, SWIG_POINTER_OWN);
17675
+ size_type size = seq.size();
17676
+ if (size <= (size_type)INT_MAX) {
17677
+ PyObject *obj = PyTuple_New((int)size);
17679
+ for (const_iterator it = seq.begin();
17680
+ it != seq.end(); ++it, ++i) {
17681
+ PyTuple_SetItem(obj,i,swig::from<value_type>(*it));
17685
+ PyErr_SetString(PyExc_OverflowError,"sequence size not valid in python");
17694
+ template <class T>
17695
+ struct traits_asptr<std::vector<T> > {
17696
+ static int asptr(PyObject *obj, std::vector<T> **vec) {
17697
+ return traits_asptr_stdseq<std::vector<T> >::asptr(obj, vec);
17701
+ template <class T>
17702
+ struct traits_from<std::vector<T> > {
17703
+ static PyObject *from(const std::vector<T>& vec) {
17704
+ return traits_from_stdseq<std::vector<T> >::from(vec);
17711
+ template <> struct traits<std::vector<int, std::allocator< int > > > {
17712
+ typedef pointer_category category;
17713
+ static const char* type_name() {
17714
+ return "std::vector<" "int" "," "std::allocator< int >" " >";
17719
+SWIGINTERN swig::PySwigIterator *std_vector_Sl_int_Sg__iterator(std::vector< int > *self,PyObject **PYTHON_SELF){
17720
+ return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
17722
+SWIGINTERN bool std_vector_Sl_int_Sg____nonzero__(std::vector< int > const *self){
17723
+ return !(self->empty());
17725
+SWIGINTERN std::vector< int >::size_type std_vector_Sl_int_Sg____len__(std::vector< int > const *self){
17726
+ return self->size();
17729
+SWIGINTERNINLINE PyObject*
17730
+SWIG_From_unsigned_SS_long (unsigned long value)
17732
+ return (value > LONG_MAX) ?
17733
+ PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
17737
+SWIGINTERNINLINE PyObject *
17738
+SWIG_From_size_t (size_t value)
17740
+ return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
17743
+SWIGINTERN std::vector< int >::value_type std_vector_Sl_int_Sg__pop(std::vector< int > *self){
17744
+ if (self->size() == 0)
17745
+ throw std::out_of_range("pop from empty container");
17746
+ std::vector<int,std::allocator< int > >::value_type x = self->back();
17747
+ self->pop_back();
17750
+SWIGINTERN std::vector< int,std::allocator< int > > *std_vector_Sl_int_Sg____getslice__(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::difference_type j){
17751
+ return swig::getslice(self, i, j);
17753
+SWIGINTERN void std_vector_Sl_int_Sg____setslice__(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::difference_type j,std::vector< int,std::allocator< int > > const &v){
17754
+ swig::setslice(self, i, j, v);
17756
+SWIGINTERN void std_vector_Sl_int_Sg____delslice__(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::difference_type j){
17757
+ swig::delslice(self, i, j);
17759
+SWIGINTERN void std_vector_Sl_int_Sg____delitem__(std::vector< int > *self,std::vector< int >::difference_type i){
17760
+ self->erase(swig::getpos(self,i));
17762
+SWIGINTERN std::vector< int >::value_type const &std_vector_Sl_int_Sg____getitem__(std::vector< int > const *self,std::vector< int >::difference_type i){
17763
+ return *(swig::cgetpos(self, i));
17765
+SWIGINTERN void std_vector_Sl_int_Sg____setitem__(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::value_type const &x){
17766
+ *(swig::getpos(self,i)) = x;
17768
+SWIGINTERN void std_vector_Sl_int_Sg__append(std::vector< int > *self,std::vector< int >::value_type const &x){
17769
+ self->push_back(x);
17772
+ #define SWIG_From_double PyFloat_FromDouble
17776
+ template <> struct traits<double > {
17777
+ typedef value_category category;
17778
+ static const char* type_name() { return"double"; }
17780
+ template <> struct traits_asval<double > {
17781
+ typedef double value_type;
17782
+ static int asval(PyObject *obj, value_type *val) {
17783
+ return SWIG_AsVal_double (obj, val);
17786
+ template <> struct traits_from<double > {
17787
+ typedef double value_type;
17788
+ static PyObject *from(const value_type& val) {
17789
+ return SWIG_From_double (val);
17796
+ template <> struct traits<std::vector<double, std::allocator< double > > > {
17797
+ typedef pointer_category category;
17798
+ static const char* type_name() {
17799
+ return "std::vector<" "double" "," "std::allocator< double >" " >";
17804
+SWIGINTERN swig::PySwigIterator *std_vector_Sl_double_Sg__iterator(std::vector< double > *self,PyObject **PYTHON_SELF){
17805
+ return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
17807
+SWIGINTERN bool std_vector_Sl_double_Sg____nonzero__(std::vector< double > const *self){
17808
+ return !(self->empty());
17810
+SWIGINTERN std::vector< double >::size_type std_vector_Sl_double_Sg____len__(std::vector< double > const *self){
17811
+ return self->size();
17813
+SWIGINTERN std::vector< double >::value_type std_vector_Sl_double_Sg__pop(std::vector< double > *self){
17814
+ if (self->size() == 0)
17815
+ throw std::out_of_range("pop from empty container");
17816
+ std::vector<double,std::allocator< double > >::value_type x = self->back();
17817
+ self->pop_back();
17820
+SWIGINTERN std::vector< double,std::allocator< double > > *std_vector_Sl_double_Sg____getslice__(std::vector< double > *self,std::vector< double >::difference_type i,std::vector< double >::difference_type j){
17821
+ return swig::getslice(self, i, j);
17823
+SWIGINTERN void std_vector_Sl_double_Sg____setslice__(std::vector< double > *self,std::vector< double >::difference_type i,std::vector< double >::difference_type j,std::vector< double,std::allocator< double > > const &v){
17824
+ swig::setslice(self, i, j, v);
17826
+SWIGINTERN void std_vector_Sl_double_Sg____delslice__(std::vector< double > *self,std::vector< double >::difference_type i,std::vector< double >::difference_type j){
17827
+ swig::delslice(self, i, j);
17829
+SWIGINTERN void std_vector_Sl_double_Sg____delitem__(std::vector< double > *self,std::vector< double >::difference_type i){
17830
+ self->erase(swig::getpos(self,i));
17832
+SWIGINTERN std::vector< double >::value_type const &std_vector_Sl_double_Sg____getitem__(std::vector< double > const *self,std::vector< double >::difference_type i){
17833
+ return *(swig::cgetpos(self, i));
17835
+SWIGINTERN void std_vector_Sl_double_Sg____setitem__(std::vector< double > *self,std::vector< double >::difference_type i,std::vector< double >::value_type const &x){
17836
+ *(swig::getpos(self,i)) = x;
17838
+SWIGINTERN void std_vector_Sl_double_Sg__append(std::vector< double > *self,std::vector< double >::value_type const &x){
17839
+ self->push_back(x);
17842
+#include <utility>
17846
+#include <algorithm>
17847
+#include <stdexcept>
17900
+ template <class T, class U >
17901
+ struct traits_asptr<std::pair<T,U> > {
17902
+ typedef std::pair<T,U> value_type;
17904
+ static int get_pair(PyObject* first, PyObject* second,
17905
+ std::pair<T,U> **val)
17908
+ value_type *vp = (new std::pair<T,U>);
17909
+ T *pfirst = &(vp->first);
17910
+ int res1 = swig::asval((PyObject*)first, pfirst);
17911
+ if (!SWIG_IsOK(res1)) return res1;
17912
+ U *psecond = &(vp->second);
17913
+ int res2 = swig::asval((PyObject*)second, psecond);
17914
+ if (!SWIG_IsOK(res2)) return res2;
17916
+ return SWIG_AddNewMask(res1 > res2 ? res1 : res2);
17919
+ int res1 = swig::asval((PyObject*)first, pfirst);
17920
+ if (!SWIG_IsOK(res1)) return res1;
17922
+ int res2 = swig::asval((PyObject*)second, psecond);
17923
+ if (!SWIG_IsOK(res2)) return res2;
17924
+ return res1 > res2 ? res1 : res2;
17928
+ static int asptr(PyObject *obj, std::pair<T,U> **val) {
17929
+ int res = SWIG_ERROR;
17930
+ if (PyTuple_Check(obj)) {
17931
+ if (PyTuple_GET_SIZE(obj) == 2) {
17932
+ res = get_pair(PyTuple_GET_ITEM(obj,0),PyTuple_GET_ITEM(obj,1), val);
17934
+ } else if (PySequence_Check(obj)) {
17935
+ if (PySequence_Size(obj) == 2) {
17936
+ swig::PyObject_var first = PySequence_GetItem(obj,0);
17937
+ swig::PyObject_var second = PySequence_GetItem(obj,1);
17938
+ res = get_pair(first, second, val);
17942
+ res = SWIG_ConvertPtr(obj,(void**)&p,swig::type_info<value_type>(),0);
17943
+ if (SWIG_IsOK(res) && val) *val = p;
17950
+ template <class T, class U >
17951
+ struct traits_from<std::pair<T,U> > {
17952
+ static PyObject *from(const std::pair<T,U>& val) {
17953
+ PyObject* obj = PyTuple_New(2);
17954
+ PyTuple_SetItem(obj,0,swig::from(val.first));
17955
+ PyTuple_SetItem(obj,1,swig::from(val.second));
17963
+ template <> struct traits<std::pair< int, std::vector< int,std::allocator< int > > > > {
17964
+ typedef pointer_category category;
17965
+ static const char* type_name() {
17966
+ return "std::pair<" "int" "," "std::vector< int,std::allocator< int > >" " >";
17973
+ template <class PySeq, class K, class T >
17975
+ assign(const PySeq& pyseq, std::map<K,T > *map) {
17976
+ typedef typename std::map<K,T>::value_type value_type;
17977
+ typename PySeq::const_iterator it = pyseq.begin();
17978
+ for (;it != pyseq.end(); ++it) {
17979
+ map->insert(value_type(it->first, it->second));
17983
+ template <class K, class T>
17984
+ struct traits_asptr<std::map<K,T> > {
17985
+ typedef std::map<K,T> map_type;
17986
+ static int asptr(PyObject *obj, map_type **val) {
17987
+ int res = SWIG_ERROR;
17988
+ if (PyDict_Check(obj)) {
17989
+ PyObject_var items = PyObject_CallMethod(obj,(char *)"items",NULL);
17990
+ res = traits_asptr_stdseq<std::map<K,T>, std::pair<K, T> >::asptr(items, val);
17993
+ res = SWIG_ConvertPtr(obj,(void**)&p,swig::type_info<map_type>(),0);
17994
+ if (SWIG_IsOK(res) && val) *val = p;
18000
+ template <class K, class T >
18001
+ struct traits_from<std::map<K,T> > {
18002
+ typedef std::map<K,T> map_type;
18003
+ typedef typename map_type::const_iterator const_iterator;
18004
+ typedef typename map_type::size_type size_type;
18006
+ static PyObject *from(const map_type& map) {
18007
+ swig_type_info *desc = swig::type_info<map_type>();
18008
+ if (desc && desc->clientdata) {
18009
+ return SWIG_NewPointerObj(new map_type(map), desc, SWIG_POINTER_OWN);
18011
+ size_type size = map.size();
18012
+ int pysize = (size <= (size_type) INT_MAX) ? (int) size : -1;
18013
+ if (pysize < 0) {
18014
+ SWIG_PYTHON_THREAD_BEGIN_BLOCK;
18015
+ PyErr_SetString(PyExc_OverflowError,
18016
+ "map size not valid in python");
18017
+ SWIG_PYTHON_THREAD_END_BLOCK;
18020
+ PyObject *obj = PyDict_New();
18021
+ for (const_iterator i= map.begin(); i!= map.end(); ++i) {
18022
+ swig::PyObject_var key = swig::from(i->first);
18023
+ swig::PyObject_var val = swig::from(i->second);
18024
+ PyDict_SetItem(obj, key, val);
18031
+ template <class ValueType>
18032
+ struct from_key_oper
18034
+ typedef const ValueType& argument_type;
18035
+ typedef PyObject *result_type;
18036
+ result_type operator()(argument_type v) const
18038
+ return swig::from(v.first);
18042
+ template <class ValueType>
18043
+ struct from_value_oper
18045
+ typedef const ValueType& argument_type;
18046
+ typedef PyObject *result_type;
18047
+ result_type operator()(argument_type v) const
18049
+ return swig::from(v.second);
18053
+ template<class OutIterator, class FromOper, class ValueType = typename OutIterator::value_type>
18054
+ struct PyMapIterator_T : PySwigIteratorClosed_T<OutIterator, ValueType, FromOper>
18056
+ PyMapIterator_T(OutIterator curr, OutIterator first, OutIterator last, PyObject *seq)
18057
+ : PySwigIteratorClosed_T<OutIterator,ValueType,FromOper>(curr, first, last, seq)
18063
+ template<class OutIterator,
18064
+ class FromOper = from_key_oper<typename OutIterator::value_type> >
18065
+ struct PyMapKeyIterator_T : PyMapIterator_T<OutIterator, FromOper>
18067
+ PyMapKeyIterator_T(OutIterator curr, OutIterator first, OutIterator last, PyObject *seq)
18068
+ : PyMapIterator_T<OutIterator, FromOper>(curr, first, last, seq)
18073
+ template<typename OutIter>
18074
+ inline PySwigIterator*
18075
+ make_output_key_iterator(const OutIter& current, const OutIter& begin, const OutIter& end, PyObject *seq = 0)
18077
+ return new PyMapKeyIterator_T<OutIter>(current, begin, end, seq);
18080
+ template<class OutIterator,
18081
+ class FromOper = from_value_oper<typename OutIterator::value_type> >
18082
+ struct PyMapValueIterator_T : PyMapIterator_T<OutIterator, FromOper>
18084
+ PyMapValueIterator_T(OutIterator curr, OutIterator first, OutIterator last, PyObject *seq)
18085
+ : PyMapIterator_T<OutIterator, FromOper>(curr, first, last, seq)
18091
+ template<typename OutIter>
18092
+ inline PySwigIterator*
18093
+ make_output_value_iterator(const OutIter& current, const OutIter& begin, const OutIter& end, PyObject *seq = 0)
18095
+ return new PyMapValueIterator_T<OutIter>(current, begin, end, seq);
18101
+ template <> struct traits<std::map<int, std::vector< int,std::allocator< int > >, std::less< int >, std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > > > {
18102
+ typedef pointer_category category;
18103
+ static const char* type_name() {
18104
+ return "std::map<" "int" "," "std::vector< int,std::allocator< int > >" "," "std::less< int >" "," "std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > >" " >";
18109
+SWIGINTERN swig::PySwigIterator *std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg__iterator(std::map< int,std::vector< int > > *self,PyObject **PYTHON_SELF){
18110
+ return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
18112
+SWIGINTERN bool std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg____nonzero__(std::map< int,std::vector< int > > const *self){
18113
+ return !(self->empty());
18115
+SWIGINTERN std::map< int,std::vector< int > >::size_type std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg____len__(std::map< int,std::vector< int > > const *self){
18116
+ return self->size();
18118
+SWIGINTERN std::map< int,std::vector< int > >::mapped_type std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg____getitem__(std::map< int,std::vector< int > > const *self,std::map< int,std::vector< int > >::key_type const &key){
18119
+ std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > >::const_iterator i = self->find(key);
18120
+ if (i != self->end())
18121
+ return i->second;
18123
+ throw std::out_of_range("key not found");
18125
+SWIGINTERN void std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg____delitem__(std::map< int,std::vector< int > > *self,std::map< int,std::vector< int > >::key_type const &key){
18126
+ std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > >::iterator i = self->find(key);
18127
+ if (i != self->end())
18130
+ throw std::out_of_range("key not found");
18132
+SWIGINTERN bool std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg__has_key(std::map< int,std::vector< int > > const *self,std::map< int,std::vector< int > >::key_type const &key){
18133
+ std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > >::const_iterator i = self->find(key);
18134
+ return i != self->end();
18136
+SWIGINTERN PyObject *std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg__keys(std::map< int,std::vector< int > > *self){
18137
+ std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > >::size_type size = self->size();
18138
+ int pysize = (size <= (std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > >::size_type) INT_MAX) ? (int) size : -1;
18139
+ if (pysize < 0) {
18140
+ SWIG_PYTHON_THREAD_BEGIN_BLOCK;
18141
+ PyErr_SetString(PyExc_OverflowError,
18142
+ "map size not valid in python");
18143
+ SWIG_PYTHON_THREAD_END_BLOCK;
18146
+ PyObject* keyList = PyList_New(pysize);
18147
+ std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > >::const_iterator i = self->begin();
18148
+ for (int j = 0; j < pysize; ++i, ++j) {
18149
+ PyList_SET_ITEM(keyList, j, swig::from(i->first));
18153
+SWIGINTERN PyObject *std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg__values(std::map< int,std::vector< int > > *self){
18154
+ std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > >::size_type size = self->size();
18155
+ int pysize = (size <= (std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > >::size_type) INT_MAX) ? (int) size : -1;
18156
+ if (pysize < 0) {
18157
+ SWIG_PYTHON_THREAD_BEGIN_BLOCK;
18158
+ PyErr_SetString(PyExc_OverflowError,
18159
+ "map size not valid in python");
18160
+ SWIG_PYTHON_THREAD_END_BLOCK;
18163
+ PyObject* valList = PyList_New(pysize);
18164
+ std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > >::const_iterator i = self->begin();
18165
+ for (int j = 0; j < pysize; ++i, ++j) {
18166
+ PyList_SET_ITEM(valList, j, swig::from(i->second));
18170
+SWIGINTERN PyObject *std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg__items(std::map< int,std::vector< int > > *self){
18171
+ std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > >::size_type size = self->size();
18172
+ int pysize = (size <= (std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > >::size_type) INT_MAX) ? (int) size : -1;
18173
+ if (pysize < 0) {
18174
+ SWIG_PYTHON_THREAD_BEGIN_BLOCK;
18175
+ PyErr_SetString(PyExc_OverflowError,
18176
+ "map size not valid in python");
18177
+ SWIG_PYTHON_THREAD_END_BLOCK;
18180
+ PyObject* itemList = PyList_New(pysize);
18181
+ std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > >::const_iterator i = self->begin();
18182
+ for (int j = 0; j < pysize; ++i, ++j) {
18183
+ PyList_SET_ITEM(itemList, j, swig::from(*i));
18187
+SWIGINTERN bool std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg____contains__(std::map< int,std::vector< int > > *self,std::map< int,std::vector< int > >::key_type const &key){
18188
+ return self->find(key) != self->end();
18190
+SWIGINTERN swig::PySwigIterator *std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg__key_iterator(std::map< int,std::vector< int > > *self,PyObject **PYTHON_SELF){
18191
+ return swig::make_output_key_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
18193
+SWIGINTERN swig::PySwigIterator *std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg__value_iterator(std::map< int,std::vector< int > > *self,PyObject **PYTHON_SELF){
18194
+ return swig::make_output_value_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
18196
+SWIGINTERN void std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg____setitem__(std::map< int,std::vector< int > > *self,std::map< int,std::vector< int > >::key_type const &key,std::map< int,std::vector< int > >::mapped_type const &x){
18197
+ (*self)[key] = x;
18201
+ template <> struct traits<std::pair< int, std::vector< double,std::allocator< double > > > > {
18202
+ typedef pointer_category category;
18203
+ static const char* type_name() {
18204
+ return "std::pair<" "int" "," "std::vector< double,std::allocator< double > >" " >";
18211
+ template <> struct traits<std::map<int, std::vector< double,std::allocator< double > >, std::less< int >, std::allocator< std::pair< int const,std::vector< double,std::allocator< double > > > > > > {
18212
+ typedef pointer_category category;
18213
+ static const char* type_name() {
18214
+ return "std::map<" "int" "," "std::vector< double,std::allocator< double > >" "," "std::less< int >" "," "std::allocator< std::pair< int const,std::vector< double,std::allocator< double > > > >" " >";
18219
+SWIGINTERN swig::PySwigIterator *std_map_Sl_int_Sc_std_vector_Sl_double_Sg__Sg__iterator(std::map< int,std::vector< double > > *self,PyObject **PYTHON_SELF){
18220
+ return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
18222
+SWIGINTERN bool std_map_Sl_int_Sc_std_vector_Sl_double_Sg__Sg____nonzero__(std::map< int,std::vector< double > > const *self){
18223
+ return !(self->empty());
18225
+SWIGINTERN std::map< int,std::vector< double > >::size_type std_map_Sl_int_Sc_std_vector_Sl_double_Sg__Sg____len__(std::map< int,std::vector< double > > const *self){
18226
+ return self->size();
18228
+SWIGINTERN std::map< int,std::vector< double > >::mapped_type std_map_Sl_int_Sc_std_vector_Sl_double_Sg__Sg____getitem__(std::map< int,std::vector< double > > const *self,std::map< int,std::vector< double > >::key_type const &key){
18229
+ std::map<int,std::vector< double,std::allocator< double > >,std::less< int >,std::allocator< std::pair< int const,std::vector< double,std::allocator< double > > > > >::const_iterator i = self->find(key);
18230
+ if (i != self->end())
18231
+ return i->second;
18233
+ throw std::out_of_range("key not found");
18235
+SWIGINTERN void std_map_Sl_int_Sc_std_vector_Sl_double_Sg__Sg____delitem__(std::map< int,std::vector< double > > *self,std::map< int,std::vector< double > >::key_type const &key){
18236
+ std::map<int,std::vector< double,std::allocator< double > >,std::less< int >,std::allocator< std::pair< int const,std::vector< double,std::allocator< double > > > > >::iterator i = self->find(key);
18237
+ if (i != self->end())
18240
+ throw std::out_of_range("key not found");
18242
+SWIGINTERN bool std_map_Sl_int_Sc_std_vector_Sl_double_Sg__Sg__has_key(std::map< int,std::vector< double > > const *self,std::map< int,std::vector< double > >::key_type const &key){
18243
+ std::map<int,std::vector< double,std::allocator< double > >,std::less< int >,std::allocator< std::pair< int const,std::vector< double,std::allocator< double > > > > >::const_iterator i = self->find(key);
18244
+ return i != self->end();
18246
+SWIGINTERN PyObject *std_map_Sl_int_Sc_std_vector_Sl_double_Sg__Sg__keys(std::map< int,std::vector< double > > *self){
18247
+ std::map<int,std::vector< double,std::allocator< double > >,std::less< int >,std::allocator< std::pair< int const,std::vector< double,std::allocator< double > > > > >::size_type size = self->size();
18248
+ int pysize = (size <= (std::map<int,std::vector< double,std::allocator< double > >,std::less< int >,std::allocator< std::pair< int const,std::vector< double,std::allocator< double > > > > >::size_type) INT_MAX) ? (int) size : -1;
18249
+ if (pysize < 0) {
18250
+ SWIG_PYTHON_THREAD_BEGIN_BLOCK;
18251
+ PyErr_SetString(PyExc_OverflowError,
18252
+ "map size not valid in python");
18253
+ SWIG_PYTHON_THREAD_END_BLOCK;
18256
+ PyObject* keyList = PyList_New(pysize);
18257
+ std::map<int,std::vector< double,std::allocator< double > >,std::less< int >,std::allocator< std::pair< int const,std::vector< double,std::allocator< double > > > > >::const_iterator i = self->begin();
18258
+ for (int j = 0; j < pysize; ++i, ++j) {
18259
+ PyList_SET_ITEM(keyList, j, swig::from(i->first));
18263
+SWIGINTERN PyObject *std_map_Sl_int_Sc_std_vector_Sl_double_Sg__Sg__values(std::map< int,std::vector< double > > *self){
18264
+ std::map<int,std::vector< double,std::allocator< double > >,std::less< int >,std::allocator< std::pair< int const,std::vector< double,std::allocator< double > > > > >::size_type size = self->size();
18265
+ int pysize = (size <= (std::map<int,std::vector< double,std::allocator< double > >,std::less< int >,std::allocator< std::pair< int const,std::vector< double,std::allocator< double > > > > >::size_type) INT_MAX) ? (int) size : -1;
18266
+ if (pysize < 0) {
18267
+ SWIG_PYTHON_THREAD_BEGIN_BLOCK;
18268
+ PyErr_SetString(PyExc_OverflowError,
18269
+ "map size not valid in python");
18270
+ SWIG_PYTHON_THREAD_END_BLOCK;
18273
+ PyObject* valList = PyList_New(pysize);
18274
+ std::map<int,std::vector< double,std::allocator< double > >,std::less< int >,std::allocator< std::pair< int const,std::vector< double,std::allocator< double > > > > >::const_iterator i = self->begin();
18275
+ for (int j = 0; j < pysize; ++i, ++j) {
18276
+ PyList_SET_ITEM(valList, j, swig::from(i->second));
18280
+SWIGINTERN PyObject *std_map_Sl_int_Sc_std_vector_Sl_double_Sg__Sg__items(std::map< int,std::vector< double > > *self){
18281
+ std::map<int,std::vector< double,std::allocator< double > >,std::less< int >,std::allocator< std::pair< int const,std::vector< double,std::allocator< double > > > > >::size_type size = self->size();
18282
+ int pysize = (size <= (std::map<int,std::vector< double,std::allocator< double > >,std::less< int >,std::allocator< std::pair< int const,std::vector< double,std::allocator< double > > > > >::size_type) INT_MAX) ? (int) size : -1;
18283
+ if (pysize < 0) {
18284
+ SWIG_PYTHON_THREAD_BEGIN_BLOCK;
18285
+ PyErr_SetString(PyExc_OverflowError,
18286
+ "map size not valid in python");
18287
+ SWIG_PYTHON_THREAD_END_BLOCK;
18290
+ PyObject* itemList = PyList_New(pysize);
18291
+ std::map<int,std::vector< double,std::allocator< double > >,std::less< int >,std::allocator< std::pair< int const,std::vector< double,std::allocator< double > > > > >::const_iterator i = self->begin();
18292
+ for (int j = 0; j < pysize; ++i, ++j) {
18293
+ PyList_SET_ITEM(itemList, j, swig::from(*i));
18297
+SWIGINTERN bool std_map_Sl_int_Sc_std_vector_Sl_double_Sg__Sg____contains__(std::map< int,std::vector< double > > *self,std::map< int,std::vector< double > >::key_type const &key){
18298
+ return self->find(key) != self->end();
18300
+SWIGINTERN swig::PySwigIterator *std_map_Sl_int_Sc_std_vector_Sl_double_Sg__Sg__key_iterator(std::map< int,std::vector< double > > *self,PyObject **PYTHON_SELF){
18301
+ return swig::make_output_key_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
18303
+SWIGINTERN swig::PySwigIterator *std_map_Sl_int_Sc_std_vector_Sl_double_Sg__Sg__value_iterator(std::map< int,std::vector< double > > *self,PyObject **PYTHON_SELF){
18304
+ return swig::make_output_value_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
18306
+SWIGINTERN void std_map_Sl_int_Sc_std_vector_Sl_double_Sg__Sg____setitem__(std::map< int,std::vector< double > > *self,std::map< int,std::vector< double > >::key_type const &key,std::map< int,std::vector< double > >::mapped_type const &x){
18307
+ (*self)[key] = x;
18311
+SWIG_AsVal_bool (PyObject *obj, bool *val)
18313
+ int r = PyObject_IsTrue(obj);
18315
+ return SWIG_ERROR;
18316
+ if (val) *val = r ? true : false;
18321
+SWIGINTERN swig_type_info*
18322
+SWIG_pchar_descriptor(void)
18324
+ static int init = 0;
18325
+ static swig_type_info* info = 0;
18327
+ info = SWIG_TypeQuery("_p_char");
18335
+SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
18337
+ if (PyString_Check(obj)) {
18338
+ char *cstr; Py_ssize_t len;
18339
+ PyString_AsStringAndSize(obj, &cstr, &len);
18343
+ In python the user should not be able to modify the inner
18344
+ string representation. To warranty that, if you define
18345
+ SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string
18346
+ buffer is always returned.
18348
+ The default behavior is just to return the pointer value,
18351
+#if defined(SWIG_PYTHON_SAFE_CSTRINGS)
18352
+ if (*alloc != SWIG_OLDOBJ)
18354
+ if (*alloc == SWIG_NEWOBJ)
18357
+ *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1)));
18358
+ *alloc = SWIG_NEWOBJ;
18362
+ *alloc = SWIG_OLDOBJ;
18365
+ *cptr = PyString_AsString(obj);
18368
+ if (psize) *psize = len + 1;
18371
+ swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
18372
+ if (pchar_descriptor) {
18374
+ if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
18375
+ if (cptr) *cptr = (char *) vptr;
18376
+ if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
18377
+ if (alloc) *alloc = SWIG_OLDOBJ;
18382
+ return SWIG_TypeError;
18389
+#include <wx/wxPython/wxPython.h>
18390
+#include <wx/wxPython/pyclasses.h>
18393
+#include "pseudodc.h"
18395
+SWIGINTERN void gwxPseudoDC_DrawToDC(gwxPseudoDC *self,void *dc){
18396
+ self->DrawToDC((wxDC *) dc);
18398
+SWIGINTERN void gwxPseudoDC_DrawToDCClipped(gwxPseudoDC *self,void *dc,wxRect const &rect){
18399
+ self->DrawToDCClipped((wxDC *) dc, rect);
18401
+SWIGINTERN wxRect gwxPseudoDC_GetIdBounds(gwxPseudoDC *self,int id){
18403
+ self->GetIdBounds(id, rect);
18406
+#ifdef __cplusplus
18409
+SWIGINTERN PyObject *_wrap_delete_PySwigIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18410
+ PyObject *resultobj = 0;
18411
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
18412
+ void *argp1 = 0 ;
18414
+ PyObject * obj0 = 0 ;
18416
+ if (!PyArg_ParseTuple(args,(char *)"O:delete_PySwigIterator",&obj0)) SWIG_fail;
18417
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_DISOWN | 0 );
18418
+ if (!SWIG_IsOK(res1)) {
18419
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PySwigIterator" "', argument " "1"" of type '" "swig::PySwigIterator *""'");
18421
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
18423
+ resultobj = SWIG_Py_Void();
18424
+ return resultobj;
18430
+SWIGINTERN PyObject *_wrap_PySwigIterator_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18431
+ PyObject *resultobj = 0;
18432
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
18433
+ void *argp1 = 0 ;
18435
+ PyObject * obj0 = 0 ;
18436
+ PyObject *result = 0 ;
18438
+ if (!PyArg_ParseTuple(args,(char *)"O:PySwigIterator_value",&obj0)) SWIG_fail;
18439
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
18440
+ if (!SWIG_IsOK(res1)) {
18441
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator_value" "', argument " "1"" of type '" "swig::PySwigIterator const *""'");
18443
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
18445
+ result = (PyObject *)((swig::PySwigIterator const *)arg1)->value();
18447
+ catch(swig::stop_iteration &_e) {
18450
+ SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
18455
+ resultobj = result;
18456
+ return resultobj;
18462
+SWIGINTERN PyObject *_wrap_PySwigIterator_incr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18463
+ PyObject *resultobj = 0;
18464
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
18466
+ void *argp1 = 0 ;
18470
+ PyObject * obj0 = 0 ;
18471
+ PyObject * obj1 = 0 ;
18472
+ swig::PySwigIterator *result = 0 ;
18474
+ if (!PyArg_ParseTuple(args,(char *)"OO:PySwigIterator_incr",&obj0,&obj1)) SWIG_fail;
18475
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
18476
+ if (!SWIG_IsOK(res1)) {
18477
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator_incr" "', argument " "1"" of type '" "swig::PySwigIterator *""'");
18479
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
18480
+ ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18481
+ if (!SWIG_IsOK(ecode2)) {
18482
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PySwigIterator_incr" "', argument " "2"" of type '" "size_t""'");
18484
+ arg2 = static_cast< size_t >(val2);
18486
+ result = (swig::PySwigIterator *)(arg1)->incr(arg2);
18488
+ catch(swig::stop_iteration &_e) {
18491
+ SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
18496
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
18497
+ return resultobj;
18503
+SWIGINTERN PyObject *_wrap_PySwigIterator_incr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18504
+ PyObject *resultobj = 0;
18505
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
18506
+ void *argp1 = 0 ;
18508
+ PyObject * obj0 = 0 ;
18509
+ swig::PySwigIterator *result = 0 ;
18511
+ if (!PyArg_ParseTuple(args,(char *)"O:PySwigIterator_incr",&obj0)) SWIG_fail;
18512
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
18513
+ if (!SWIG_IsOK(res1)) {
18514
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator_incr" "', argument " "1"" of type '" "swig::PySwigIterator *""'");
18516
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
18518
+ result = (swig::PySwigIterator *)(arg1)->incr();
18520
+ catch(swig::stop_iteration &_e) {
18523
+ SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
18528
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
18529
+ return resultobj;
18535
+SWIGINTERN PyObject *_wrap_PySwigIterator_incr(PyObject *self, PyObject *args) {
18537
+ PyObject *argv[3];
18540
+ if (!PyTuple_Check(args)) SWIG_fail;
18541
+ argc = (int)PyObject_Length(args);
18542
+ for (ii = 0; (ii < argc) && (ii < 2); ii++) {
18543
+ argv[ii] = PyTuple_GET_ITEM(args,ii);
18548
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__PySwigIterator, 0);
18549
+ _v = SWIG_CheckState(res);
18551
+ return _wrap_PySwigIterator_incr__SWIG_1(self, args);
18557
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__PySwigIterator, 0);
18558
+ _v = SWIG_CheckState(res);
18561
+ int res = SWIG_AsVal_size_t(argv[1], NULL);
18562
+ _v = SWIG_CheckState(res);
18565
+ return _wrap_PySwigIterator_incr__SWIG_0(self, args);
18571
+ SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'PySwigIterator_incr'.\n"
18572
+ " Possible C/C++ prototypes are:\n"
18573
+ " incr(swig::PySwigIterator *,size_t)\n"
18574
+ " incr(swig::PySwigIterator *)\n");
18579
+SWIGINTERN PyObject *_wrap_PySwigIterator_decr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18580
+ PyObject *resultobj = 0;
18581
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
18583
+ void *argp1 = 0 ;
18587
+ PyObject * obj0 = 0 ;
18588
+ PyObject * obj1 = 0 ;
18589
+ swig::PySwigIterator *result = 0 ;
18591
+ if (!PyArg_ParseTuple(args,(char *)"OO:PySwigIterator_decr",&obj0,&obj1)) SWIG_fail;
18592
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
18593
+ if (!SWIG_IsOK(res1)) {
18594
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator_decr" "', argument " "1"" of type '" "swig::PySwigIterator *""'");
18596
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
18597
+ ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18598
+ if (!SWIG_IsOK(ecode2)) {
18599
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PySwigIterator_decr" "', argument " "2"" of type '" "size_t""'");
18601
+ arg2 = static_cast< size_t >(val2);
18603
+ result = (swig::PySwigIterator *)(arg1)->decr(arg2);
18605
+ catch(swig::stop_iteration &_e) {
18608
+ SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
18613
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
18614
+ return resultobj;
18620
+SWIGINTERN PyObject *_wrap_PySwigIterator_decr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18621
+ PyObject *resultobj = 0;
18622
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
18623
+ void *argp1 = 0 ;
18625
+ PyObject * obj0 = 0 ;
18626
+ swig::PySwigIterator *result = 0 ;
18628
+ if (!PyArg_ParseTuple(args,(char *)"O:PySwigIterator_decr",&obj0)) SWIG_fail;
18629
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
18630
+ if (!SWIG_IsOK(res1)) {
18631
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator_decr" "', argument " "1"" of type '" "swig::PySwigIterator *""'");
18633
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
18635
+ result = (swig::PySwigIterator *)(arg1)->decr();
18637
+ catch(swig::stop_iteration &_e) {
18640
+ SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
18645
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
18646
+ return resultobj;
18652
+SWIGINTERN PyObject *_wrap_PySwigIterator_decr(PyObject *self, PyObject *args) {
18654
+ PyObject *argv[3];
18657
+ if (!PyTuple_Check(args)) SWIG_fail;
18658
+ argc = (int)PyObject_Length(args);
18659
+ for (ii = 0; (ii < argc) && (ii < 2); ii++) {
18660
+ argv[ii] = PyTuple_GET_ITEM(args,ii);
18665
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__PySwigIterator, 0);
18666
+ _v = SWIG_CheckState(res);
18668
+ return _wrap_PySwigIterator_decr__SWIG_1(self, args);
18674
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__PySwigIterator, 0);
18675
+ _v = SWIG_CheckState(res);
18678
+ int res = SWIG_AsVal_size_t(argv[1], NULL);
18679
+ _v = SWIG_CheckState(res);
18682
+ return _wrap_PySwigIterator_decr__SWIG_0(self, args);
18688
+ SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'PySwigIterator_decr'.\n"
18689
+ " Possible C/C++ prototypes are:\n"
18690
+ " decr(swig::PySwigIterator *,size_t)\n"
18691
+ " decr(swig::PySwigIterator *)\n");
18696
+SWIGINTERN PyObject *_wrap_PySwigIterator_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18697
+ PyObject *resultobj = 0;
18698
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
18699
+ swig::PySwigIterator *arg2 = 0 ;
18700
+ void *argp1 = 0 ;
18702
+ void *argp2 = 0 ;
18704
+ PyObject * obj0 = 0 ;
18705
+ PyObject * obj1 = 0 ;
18706
+ ptrdiff_t result;
18708
+ if (!PyArg_ParseTuple(args,(char *)"OO:PySwigIterator_distance",&obj0,&obj1)) SWIG_fail;
18709
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
18710
+ if (!SWIG_IsOK(res1)) {
18711
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator_distance" "', argument " "1"" of type '" "swig::PySwigIterator const *""'");
18713
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
18714
+ res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__PySwigIterator, 0 | 0);
18715
+ if (!SWIG_IsOK(res2)) {
18716
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PySwigIterator_distance" "', argument " "2"" of type '" "swig::PySwigIterator const &""'");
18719
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PySwigIterator_distance" "', argument " "2"" of type '" "swig::PySwigIterator const &""'");
18721
+ arg2 = reinterpret_cast< swig::PySwigIterator * >(argp2);
18723
+ result = ((swig::PySwigIterator const *)arg1)->distance((swig::PySwigIterator const &)*arg2);
18725
+ catch(std::invalid_argument &_e) {
18726
+ SWIG_Python_Raise(SWIG_NewPointerObj((new std::invalid_argument(static_cast< const std::invalid_argument& >(_e))),SWIGTYPE_p_std__invalid_argument,SWIG_POINTER_OWN), "std::invalid_argument", SWIGTYPE_p_std__invalid_argument); SWIG_fail;
18729
+ resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
18730
+ return resultobj;
18736
+SWIGINTERN PyObject *_wrap_PySwigIterator_equal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18737
+ PyObject *resultobj = 0;
18738
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
18739
+ swig::PySwigIterator *arg2 = 0 ;
18740
+ void *argp1 = 0 ;
18742
+ void *argp2 = 0 ;
18744
+ PyObject * obj0 = 0 ;
18745
+ PyObject * obj1 = 0 ;
18748
+ if (!PyArg_ParseTuple(args,(char *)"OO:PySwigIterator_equal",&obj0,&obj1)) SWIG_fail;
18749
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
18750
+ if (!SWIG_IsOK(res1)) {
18751
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator_equal" "', argument " "1"" of type '" "swig::PySwigIterator const *""'");
18753
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
18754
+ res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__PySwigIterator, 0 | 0);
18755
+ if (!SWIG_IsOK(res2)) {
18756
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PySwigIterator_equal" "', argument " "2"" of type '" "swig::PySwigIterator const &""'");
18759
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PySwigIterator_equal" "', argument " "2"" of type '" "swig::PySwigIterator const &""'");
18761
+ arg2 = reinterpret_cast< swig::PySwigIterator * >(argp2);
18763
+ result = (bool)((swig::PySwigIterator const *)arg1)->equal((swig::PySwigIterator const &)*arg2);
18765
+ catch(std::invalid_argument &_e) {
18766
+ SWIG_Python_Raise(SWIG_NewPointerObj((new std::invalid_argument(static_cast< const std::invalid_argument& >(_e))),SWIGTYPE_p_std__invalid_argument,SWIG_POINTER_OWN), "std::invalid_argument", SWIGTYPE_p_std__invalid_argument); SWIG_fail;
18769
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
18770
+ return resultobj;
18776
+SWIGINTERN PyObject *_wrap_PySwigIterator_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18777
+ PyObject *resultobj = 0;
18778
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
18779
+ void *argp1 = 0 ;
18781
+ PyObject * obj0 = 0 ;
18782
+ swig::PySwigIterator *result = 0 ;
18784
+ if (!PyArg_ParseTuple(args,(char *)"O:PySwigIterator_copy",&obj0)) SWIG_fail;
18785
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
18786
+ if (!SWIG_IsOK(res1)) {
18787
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator_copy" "', argument " "1"" of type '" "swig::PySwigIterator const *""'");
18789
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
18790
+ result = (swig::PySwigIterator *)((swig::PySwigIterator const *)arg1)->copy();
18791
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_OWN | 0 );
18792
+ return resultobj;
18798
+SWIGINTERN PyObject *_wrap_PySwigIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18799
+ PyObject *resultobj = 0;
18800
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
18801
+ void *argp1 = 0 ;
18803
+ PyObject * obj0 = 0 ;
18804
+ PyObject *result = 0 ;
18806
+ if (!PyArg_ParseTuple(args,(char *)"O:PySwigIterator_next",&obj0)) SWIG_fail;
18807
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
18808
+ if (!SWIG_IsOK(res1)) {
18809
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator_next" "', argument " "1"" of type '" "swig::PySwigIterator *""'");
18811
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
18813
+ result = (PyObject *)(arg1)->next();
18815
+ catch(swig::stop_iteration &_e) {
18818
+ SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
18823
+ resultobj = result;
18824
+ return resultobj;
18830
+SWIGINTERN PyObject *_wrap_PySwigIterator_previous(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18831
+ PyObject *resultobj = 0;
18832
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
18833
+ void *argp1 = 0 ;
18835
+ PyObject * obj0 = 0 ;
18836
+ PyObject *result = 0 ;
18838
+ if (!PyArg_ParseTuple(args,(char *)"O:PySwigIterator_previous",&obj0)) SWIG_fail;
18839
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
18840
+ if (!SWIG_IsOK(res1)) {
18841
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator_previous" "', argument " "1"" of type '" "swig::PySwigIterator *""'");
18843
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
18845
+ result = (PyObject *)(arg1)->previous();
18847
+ catch(swig::stop_iteration &_e) {
18850
+ SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
18855
+ resultobj = result;
18856
+ return resultobj;
18862
+SWIGINTERN PyObject *_wrap_PySwigIterator_advance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18863
+ PyObject *resultobj = 0;
18864
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
18866
+ void *argp1 = 0 ;
18870
+ PyObject * obj0 = 0 ;
18871
+ PyObject * obj1 = 0 ;
18872
+ swig::PySwigIterator *result = 0 ;
18874
+ if (!PyArg_ParseTuple(args,(char *)"OO:PySwigIterator_advance",&obj0,&obj1)) SWIG_fail;
18875
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
18876
+ if (!SWIG_IsOK(res1)) {
18877
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator_advance" "', argument " "1"" of type '" "swig::PySwigIterator *""'");
18879
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
18880
+ ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
18881
+ if (!SWIG_IsOK(ecode2)) {
18882
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PySwigIterator_advance" "', argument " "2"" of type '" "ptrdiff_t""'");
18884
+ arg2 = static_cast< ptrdiff_t >(val2);
18886
+ result = (swig::PySwigIterator *)(arg1)->advance(arg2);
18888
+ catch(swig::stop_iteration &_e) {
18891
+ SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
18896
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
18897
+ return resultobj;
18903
+SWIGINTERN PyObject *_wrap_PySwigIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18904
+ PyObject *resultobj = 0;
18905
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
18906
+ swig::PySwigIterator *arg2 = 0 ;
18907
+ void *argp1 = 0 ;
18909
+ void *argp2 = 0 ;
18911
+ PyObject * obj0 = 0 ;
18912
+ PyObject * obj1 = 0 ;
18915
+ if (!PyArg_ParseTuple(args,(char *)"OO:PySwigIterator___eq__",&obj0,&obj1)) SWIG_fail;
18916
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
18917
+ if (!SWIG_IsOK(res1)) {
18918
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator___eq__" "', argument " "1"" of type '" "swig::PySwigIterator const *""'");
18920
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
18921
+ res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__PySwigIterator, 0 | 0);
18922
+ if (!SWIG_IsOK(res2)) {
18923
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PySwigIterator___eq__" "', argument " "2"" of type '" "swig::PySwigIterator const &""'");
18926
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PySwigIterator___eq__" "', argument " "2"" of type '" "swig::PySwigIterator const &""'");
18928
+ arg2 = reinterpret_cast< swig::PySwigIterator * >(argp2);
18929
+ result = (bool)((swig::PySwigIterator const *)arg1)->operator ==((swig::PySwigIterator const &)*arg2);
18930
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
18931
+ return resultobj;
18937
+SWIGINTERN PyObject *_wrap_PySwigIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18938
+ PyObject *resultobj = 0;
18939
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
18940
+ swig::PySwigIterator *arg2 = 0 ;
18941
+ void *argp1 = 0 ;
18943
+ void *argp2 = 0 ;
18945
+ PyObject * obj0 = 0 ;
18946
+ PyObject * obj1 = 0 ;
18949
+ if (!PyArg_ParseTuple(args,(char *)"OO:PySwigIterator___ne__",&obj0,&obj1)) SWIG_fail;
18950
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
18951
+ if (!SWIG_IsOK(res1)) {
18952
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator___ne__" "', argument " "1"" of type '" "swig::PySwigIterator const *""'");
18954
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
18955
+ res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__PySwigIterator, 0 | 0);
18956
+ if (!SWIG_IsOK(res2)) {
18957
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PySwigIterator___ne__" "', argument " "2"" of type '" "swig::PySwigIterator const &""'");
18960
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PySwigIterator___ne__" "', argument " "2"" of type '" "swig::PySwigIterator const &""'");
18962
+ arg2 = reinterpret_cast< swig::PySwigIterator * >(argp2);
18963
+ result = (bool)((swig::PySwigIterator const *)arg1)->operator !=((swig::PySwigIterator const &)*arg2);
18964
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
18965
+ return resultobj;
18971
+SWIGINTERN PyObject *_wrap_PySwigIterator___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18972
+ PyObject *resultobj = 0;
18973
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
18975
+ void *argp1 = 0 ;
18979
+ PyObject * obj0 = 0 ;
18980
+ PyObject * obj1 = 0 ;
18981
+ swig::PySwigIterator *result = 0 ;
18983
+ if (!PyArg_ParseTuple(args,(char *)"OO:PySwigIterator___iadd__",&obj0,&obj1)) SWIG_fail;
18984
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_DISOWN | 0 );
18985
+ if (!SWIG_IsOK(res1)) {
18986
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator___iadd__" "', argument " "1"" of type '" "swig::PySwigIterator *""'");
18988
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
18989
+ ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
18990
+ if (!SWIG_IsOK(ecode2)) {
18991
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PySwigIterator___iadd__" "', argument " "2"" of type '" "ptrdiff_t""'");
18993
+ arg2 = static_cast< ptrdiff_t >(val2);
18996
+ swig::PySwigIterator &_result_ref = (arg1)->operator +=(arg2);
18997
+ result = (swig::PySwigIterator *) &_result_ref;
19000
+ catch(swig::stop_iteration &_e) {
19003
+ SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
19008
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_OWN | 0 );
19009
+ return resultobj;
19015
+SWIGINTERN PyObject *_wrap_PySwigIterator___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19016
+ PyObject *resultobj = 0;
19017
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
19019
+ void *argp1 = 0 ;
19023
+ PyObject * obj0 = 0 ;
19024
+ PyObject * obj1 = 0 ;
19025
+ swig::PySwigIterator *result = 0 ;
19027
+ if (!PyArg_ParseTuple(args,(char *)"OO:PySwigIterator___isub__",&obj0,&obj1)) SWIG_fail;
19028
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_DISOWN | 0 );
19029
+ if (!SWIG_IsOK(res1)) {
19030
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator___isub__" "', argument " "1"" of type '" "swig::PySwigIterator *""'");
19032
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
19033
+ ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
19034
+ if (!SWIG_IsOK(ecode2)) {
19035
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PySwigIterator___isub__" "', argument " "2"" of type '" "ptrdiff_t""'");
19037
+ arg2 = static_cast< ptrdiff_t >(val2);
19040
+ swig::PySwigIterator &_result_ref = (arg1)->operator -=(arg2);
19041
+ result = (swig::PySwigIterator *) &_result_ref;
19044
+ catch(swig::stop_iteration &_e) {
19047
+ SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
19052
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_OWN | 0 );
19053
+ return resultobj;
19059
+SWIGINTERN PyObject *_wrap_PySwigIterator___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19060
+ PyObject *resultobj = 0;
19061
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
19063
+ void *argp1 = 0 ;
19067
+ PyObject * obj0 = 0 ;
19068
+ PyObject * obj1 = 0 ;
19069
+ swig::PySwigIterator *result = 0 ;
19071
+ if (!PyArg_ParseTuple(args,(char *)"OO:PySwigIterator___add__",&obj0,&obj1)) SWIG_fail;
19072
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
19073
+ if (!SWIG_IsOK(res1)) {
19074
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator___add__" "', argument " "1"" of type '" "swig::PySwigIterator const *""'");
19076
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
19077
+ ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
19078
+ if (!SWIG_IsOK(ecode2)) {
19079
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PySwigIterator___add__" "', argument " "2"" of type '" "ptrdiff_t""'");
19081
+ arg2 = static_cast< ptrdiff_t >(val2);
19083
+ result = (swig::PySwigIterator *)((swig::PySwigIterator const *)arg1)->operator +(arg2);
19085
+ catch(swig::stop_iteration &_e) {
19088
+ SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
19093
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_OWN | 0 );
19094
+ return resultobj;
19100
+SWIGINTERN PyObject *_wrap_PySwigIterator___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19101
+ PyObject *resultobj = 0;
19102
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
19104
+ void *argp1 = 0 ;
19108
+ PyObject * obj0 = 0 ;
19109
+ PyObject * obj1 = 0 ;
19110
+ swig::PySwigIterator *result = 0 ;
19112
+ if (!PyArg_ParseTuple(args,(char *)"OO:PySwigIterator___sub__",&obj0,&obj1)) SWIG_fail;
19113
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
19114
+ if (!SWIG_IsOK(res1)) {
19115
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator___sub__" "', argument " "1"" of type '" "swig::PySwigIterator const *""'");
19117
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
19118
+ ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
19119
+ if (!SWIG_IsOK(ecode2)) {
19120
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PySwigIterator___sub__" "', argument " "2"" of type '" "ptrdiff_t""'");
19122
+ arg2 = static_cast< ptrdiff_t >(val2);
19124
+ result = (swig::PySwigIterator *)((swig::PySwigIterator const *)arg1)->operator -(arg2);
19126
+ catch(swig::stop_iteration &_e) {
19129
+ SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
19134
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_OWN | 0 );
19135
+ return resultobj;
19141
+SWIGINTERN PyObject *_wrap_PySwigIterator___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19142
+ PyObject *resultobj = 0;
19143
+ swig::PySwigIterator *arg1 = (swig::PySwigIterator *) 0 ;
19144
+ swig::PySwigIterator *arg2 = 0 ;
19145
+ void *argp1 = 0 ;
19147
+ void *argp2 = 0 ;
19149
+ PyObject * obj0 = 0 ;
19150
+ PyObject * obj1 = 0 ;
19151
+ ptrdiff_t result;
19153
+ if (!PyArg_ParseTuple(args,(char *)"OO:PySwigIterator___sub__",&obj0,&obj1)) SWIG_fail;
19154
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__PySwigIterator, 0 | 0 );
19155
+ if (!SWIG_IsOK(res1)) {
19156
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySwigIterator___sub__" "', argument " "1"" of type '" "swig::PySwigIterator const *""'");
19158
+ arg1 = reinterpret_cast< swig::PySwigIterator * >(argp1);
19159
+ res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__PySwigIterator, 0 | 0);
19160
+ if (!SWIG_IsOK(res2)) {
19161
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PySwigIterator___sub__" "', argument " "2"" of type '" "swig::PySwigIterator const &""'");
19164
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PySwigIterator___sub__" "', argument " "2"" of type '" "swig::PySwigIterator const &""'");
19166
+ arg2 = reinterpret_cast< swig::PySwigIterator * >(argp2);
19167
+ result = ((swig::PySwigIterator const *)arg1)->operator -((swig::PySwigIterator const &)*arg2);
19168
+ resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
19169
+ return resultobj;
19175
+SWIGINTERN PyObject *_wrap_PySwigIterator___sub__(PyObject *self, PyObject *args) {
19177
+ PyObject *argv[3];
19180
+ if (!PyTuple_Check(args)) SWIG_fail;
19181
+ argc = (int)PyObject_Length(args);
19182
+ for (ii = 0; (ii < argc) && (ii < 2); ii++) {
19183
+ argv[ii] = PyTuple_GET_ITEM(args,ii);
19188
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__PySwigIterator, 0);
19189
+ _v = SWIG_CheckState(res);
19191
+ int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_swig__PySwigIterator, 0);
19192
+ _v = SWIG_CheckState(res);
19194
+ return _wrap_PySwigIterator___sub____SWIG_1(self, args);
19201
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__PySwigIterator, 0);
19202
+ _v = SWIG_CheckState(res);
19205
+ int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
19206
+ _v = SWIG_CheckState(res);
19209
+ return _wrap_PySwigIterator___sub____SWIG_0(self, args);
19215
+ Py_INCREF(Py_NotImplemented);
19216
+ return Py_NotImplemented;
19220
+SWIGINTERN PyObject *PySwigIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19222
+ if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
19223
+ SWIG_TypeNewClientData(SWIGTYPE_p_swig__PySwigIterator, SWIG_NewClientData(obj));
19224
+ return SWIG_Py_Void();
19227
+SWIGINTERN PyObject *_wrap_IntVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19228
+ PyObject *resultobj = 0;
19229
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
19230
+ PyObject **arg2 = (PyObject **) 0 ;
19231
+ void *argp1 = 0 ;
19233
+ PyObject * obj0 = 0 ;
19234
+ swig::PySwigIterator *result = 0 ;
19237
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVector_iterator",&obj0)) SWIG_fail;
19238
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
19239
+ if (!SWIG_IsOK(res1)) {
19240
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_iterator" "', argument " "1"" of type '" "std::vector< int > *""'");
19242
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
19243
+ result = (swig::PySwigIterator *)std_vector_Sl_int_Sg__iterator(arg1,arg2);
19244
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_OWN | 0 );
19245
+ return resultobj;
19251
+SWIGINTERN PyObject *_wrap_IntVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19252
+ PyObject *resultobj = 0;
19253
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
19254
+ void *argp1 = 0 ;
19256
+ PyObject * obj0 = 0 ;
19259
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVector___nonzero__",&obj0)) SWIG_fail;
19260
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
19261
+ if (!SWIG_IsOK(res1)) {
19262
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___nonzero__" "', argument " "1"" of type '" "std::vector< int > const *""'");
19264
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
19265
+ result = (bool)std_vector_Sl_int_Sg____nonzero__((std::vector< int > const *)arg1);
19266
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
19267
+ return resultobj;
19273
+SWIGINTERN PyObject *_wrap_IntVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19274
+ PyObject *resultobj = 0;
19275
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
19276
+ void *argp1 = 0 ;
19278
+ PyObject * obj0 = 0 ;
19279
+ std::vector< int >::size_type result;
19281
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVector___len__",&obj0)) SWIG_fail;
19282
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
19283
+ if (!SWIG_IsOK(res1)) {
19284
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___len__" "', argument " "1"" of type '" "std::vector< int > const *""'");
19286
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
19287
+ result = std_vector_Sl_int_Sg____len__((std::vector< int > const *)arg1);
19288
+ resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19289
+ return resultobj;
19295
+SWIGINTERN PyObject *_wrap_IntVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19296
+ PyObject *resultobj = 0;
19297
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
19298
+ void *argp1 = 0 ;
19300
+ PyObject * obj0 = 0 ;
19301
+ std::vector< int >::value_type result;
19303
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVector_pop",&obj0)) SWIG_fail;
19304
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
19305
+ if (!SWIG_IsOK(res1)) {
19306
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_pop" "', argument " "1"" of type '" "std::vector< int > *""'");
19308
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
19310
+ result = (std::vector< int >::value_type)std_vector_Sl_int_Sg__pop(arg1);
19312
+ catch(std::out_of_range &_e) {
19313
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
19316
+ resultobj = SWIG_From_int(static_cast< int >(result));
19317
+ return resultobj;
19323
+SWIGINTERN PyObject *_wrap_IntVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19324
+ PyObject *resultobj = 0;
19325
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
19326
+ std::vector< int >::difference_type arg2 ;
19327
+ std::vector< int >::difference_type arg3 ;
19328
+ void *argp1 = 0 ;
19334
+ PyObject * obj0 = 0 ;
19335
+ PyObject * obj1 = 0 ;
19336
+ PyObject * obj2 = 0 ;
19337
+ std::vector< int,std::allocator< int > > *result = 0 ;
19339
+ if (!PyArg_ParseTuple(args,(char *)"OOO:IntVector___getslice__",&obj0,&obj1,&obj2)) SWIG_fail;
19340
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
19341
+ if (!SWIG_IsOK(res1)) {
19342
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___getslice__" "', argument " "1"" of type '" "std::vector< int > *""'");
19344
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
19345
+ ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
19346
+ if (!SWIG_IsOK(ecode2)) {
19347
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___getslice__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'");
19349
+ arg2 = static_cast< std::vector< int >::difference_type >(val2);
19350
+ ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
19351
+ if (!SWIG_IsOK(ecode3)) {
19352
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector___getslice__" "', argument " "3"" of type '" "std::vector< int >::difference_type""'");
19354
+ arg3 = static_cast< std::vector< int >::difference_type >(val3);
19356
+ result = (std::vector< int,std::allocator< int > > *)std_vector_Sl_int_Sg____getslice__(arg1,arg2,arg3);
19358
+ catch(std::out_of_range &_e) {
19359
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
19362
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_OWN | 0 );
19363
+ return resultobj;
19369
+SWIGINTERN PyObject *_wrap_IntVector___setslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19370
+ PyObject *resultobj = 0;
19371
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
19372
+ std::vector< int >::difference_type arg2 ;
19373
+ std::vector< int >::difference_type arg3 ;
19374
+ std::vector< int,std::allocator< int > > *arg4 = 0 ;
19375
+ void *argp1 = 0 ;
19381
+ int res4 = SWIG_OLDOBJ ;
19382
+ PyObject * obj0 = 0 ;
19383
+ PyObject * obj1 = 0 ;
19384
+ PyObject * obj2 = 0 ;
19385
+ PyObject * obj3 = 0 ;
19387
+ if (!PyArg_ParseTuple(args,(char *)"OOOO:IntVector___setslice__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19388
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
19389
+ if (!SWIG_IsOK(res1)) {
19390
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___setslice__" "', argument " "1"" of type '" "std::vector< int > *""'");
19392
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
19393
+ ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
19394
+ if (!SWIG_IsOK(ecode2)) {
19395
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___setslice__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'");
19397
+ arg2 = static_cast< std::vector< int >::difference_type >(val2);
19398
+ ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
19399
+ if (!SWIG_IsOK(ecode3)) {
19400
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector___setslice__" "', argument " "3"" of type '" "std::vector< int >::difference_type""'");
19402
+ arg3 = static_cast< std::vector< int >::difference_type >(val3);
19404
+ std::vector<int,std::allocator< int > > *ptr = (std::vector<int,std::allocator< int > > *)0;
19405
+ res4 = swig::asptr(obj3, &ptr);
19406
+ if (!SWIG_IsOK(res4)) {
19407
+ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "IntVector___setslice__" "', argument " "4"" of type '" "std::vector< int,std::allocator< int > > const &""'");
19410
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntVector___setslice__" "', argument " "4"" of type '" "std::vector< int,std::allocator< int > > const &""'");
19415
+ std_vector_Sl_int_Sg____setslice__(arg1,arg2,arg3,(std::vector< int,std::allocator< int > > const &)*arg4);
19417
+ catch(std::out_of_range &_e) {
19418
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
19420
+ catch(std::invalid_argument &_e) {
19421
+ SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
19424
+ resultobj = SWIG_Py_Void();
19425
+ if (SWIG_IsNewObj(res4)) delete arg4;
19426
+ return resultobj;
19428
+ if (SWIG_IsNewObj(res4)) delete arg4;
19433
+SWIGINTERN PyObject *_wrap_IntVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19434
+ PyObject *resultobj = 0;
19435
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
19436
+ std::vector< int >::difference_type arg2 ;
19437
+ std::vector< int >::difference_type arg3 ;
19438
+ void *argp1 = 0 ;
19444
+ PyObject * obj0 = 0 ;
19445
+ PyObject * obj1 = 0 ;
19446
+ PyObject * obj2 = 0 ;
19448
+ if (!PyArg_ParseTuple(args,(char *)"OOO:IntVector___delslice__",&obj0,&obj1,&obj2)) SWIG_fail;
19449
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
19450
+ if (!SWIG_IsOK(res1)) {
19451
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___delslice__" "', argument " "1"" of type '" "std::vector< int > *""'");
19453
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
19454
+ ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
19455
+ if (!SWIG_IsOK(ecode2)) {
19456
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___delslice__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'");
19458
+ arg2 = static_cast< std::vector< int >::difference_type >(val2);
19459
+ ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
19460
+ if (!SWIG_IsOK(ecode3)) {
19461
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector___delslice__" "', argument " "3"" of type '" "std::vector< int >::difference_type""'");
19463
+ arg3 = static_cast< std::vector< int >::difference_type >(val3);
19465
+ std_vector_Sl_int_Sg____delslice__(arg1,arg2,arg3);
19467
+ catch(std::out_of_range &_e) {
19468
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
19471
+ resultobj = SWIG_Py_Void();
19472
+ return resultobj;
19478
+SWIGINTERN PyObject *_wrap_IntVector___delitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19479
+ PyObject *resultobj = 0;
19480
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
19481
+ std::vector< int >::difference_type arg2 ;
19482
+ void *argp1 = 0 ;
19486
+ PyObject * obj0 = 0 ;
19487
+ PyObject * obj1 = 0 ;
19489
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVector___delitem__",&obj0,&obj1)) SWIG_fail;
19490
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
19491
+ if (!SWIG_IsOK(res1)) {
19492
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___delitem__" "', argument " "1"" of type '" "std::vector< int > *""'");
19494
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
19495
+ ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
19496
+ if (!SWIG_IsOK(ecode2)) {
19497
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___delitem__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'");
19499
+ arg2 = static_cast< std::vector< int >::difference_type >(val2);
19501
+ std_vector_Sl_int_Sg____delitem__(arg1,arg2);
19503
+ catch(std::out_of_range &_e) {
19504
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
19507
+ resultobj = SWIG_Py_Void();
19508
+ return resultobj;
19514
+SWIGINTERN PyObject *_wrap_IntVector___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19515
+ PyObject *resultobj = 0;
19516
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
19517
+ std::vector< int >::difference_type arg2 ;
19518
+ void *argp1 = 0 ;
19522
+ PyObject * obj0 = 0 ;
19523
+ PyObject * obj1 = 0 ;
19524
+ std::vector< int >::value_type *result = 0 ;
19526
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVector___getitem__",&obj0,&obj1)) SWIG_fail;
19527
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
19528
+ if (!SWIG_IsOK(res1)) {
19529
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___getitem__" "', argument " "1"" of type '" "std::vector< int > const *""'");
19531
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
19532
+ ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
19533
+ if (!SWIG_IsOK(ecode2)) {
19534
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___getitem__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'");
19536
+ arg2 = static_cast< std::vector< int >::difference_type >(val2);
19539
+ std::vector< int >::value_type const &_result_ref = std_vector_Sl_int_Sg____getitem__((std::vector< int > const *)arg1,arg2);
19540
+ result = (std::vector< int >::value_type *) &_result_ref;
19543
+ catch(std::out_of_range &_e) {
19544
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
19547
+ resultobj = SWIG_From_int(static_cast< int >(*result));
19548
+ return resultobj;
19554
+SWIGINTERN PyObject *_wrap_IntVector___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19555
+ PyObject *resultobj = 0;
19556
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
19557
+ std::vector< int >::difference_type arg2 ;
19558
+ std::vector< int >::value_type *arg3 = 0 ;
19559
+ void *argp1 = 0 ;
19563
+ std::vector< int >::value_type temp3 ;
19566
+ PyObject * obj0 = 0 ;
19567
+ PyObject * obj1 = 0 ;
19568
+ PyObject * obj2 = 0 ;
19570
+ if (!PyArg_ParseTuple(args,(char *)"OOO:IntVector___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
19571
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
19572
+ if (!SWIG_IsOK(res1)) {
19573
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector___setitem__" "', argument " "1"" of type '" "std::vector< int > *""'");
19575
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
19576
+ ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
19577
+ if (!SWIG_IsOK(ecode2)) {
19578
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector___setitem__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'");
19580
+ arg2 = static_cast< std::vector< int >::difference_type >(val2);
19581
+ ecode3 = SWIG_AsVal_int(obj2, &val3);
19582
+ if (!SWIG_IsOK(ecode3)) {
19583
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector___setitem__" "', argument " "3"" of type '" "std::vector< int >::value_type""'");
19585
+ temp3 = static_cast< std::vector< int >::value_type >(val3);
19588
+ std_vector_Sl_int_Sg____setitem__(arg1,arg2,(int const &)*arg3);
19590
+ catch(std::out_of_range &_e) {
19591
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
19594
+ resultobj = SWIG_Py_Void();
19595
+ return resultobj;
19601
+SWIGINTERN PyObject *_wrap_IntVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19602
+ PyObject *resultobj = 0;
19603
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
19604
+ std::vector< int >::value_type *arg2 = 0 ;
19605
+ void *argp1 = 0 ;
19607
+ std::vector< int >::value_type temp2 ;
19610
+ PyObject * obj0 = 0 ;
19611
+ PyObject * obj1 = 0 ;
19613
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVector_append",&obj0,&obj1)) SWIG_fail;
19614
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
19615
+ if (!SWIG_IsOK(res1)) {
19616
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_append" "', argument " "1"" of type '" "std::vector< int > *""'");
19618
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
19619
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
19620
+ if (!SWIG_IsOK(ecode2)) {
19621
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector_append" "', argument " "2"" of type '" "std::vector< int >::value_type""'");
19623
+ temp2 = static_cast< std::vector< int >::value_type >(val2);
19625
+ std_vector_Sl_int_Sg__append(arg1,(int const &)*arg2);
19626
+ resultobj = SWIG_Py_Void();
19627
+ return resultobj;
19633
+SWIGINTERN PyObject *_wrap_new_IntVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19634
+ PyObject *resultobj = 0;
19635
+ std::vector< int > *result = 0 ;
19637
+ if (!PyArg_ParseTuple(args,(char *)":new_IntVector")) SWIG_fail;
19638
+ result = (std::vector< int > *)new std::vector< int >();
19639
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_NEW | 0 );
19640
+ return resultobj;
19646
+SWIGINTERN PyObject *_wrap_new_IntVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19647
+ PyObject *resultobj = 0;
19648
+ std::vector< int > *arg1 = 0 ;
19649
+ int res1 = SWIG_OLDOBJ ;
19650
+ PyObject * obj0 = 0 ;
19651
+ std::vector< int > *result = 0 ;
19653
+ if (!PyArg_ParseTuple(args,(char *)"O:new_IntVector",&obj0)) SWIG_fail;
19655
+ std::vector<int,std::allocator< int > > *ptr = (std::vector<int,std::allocator< int > > *)0;
19656
+ res1 = swig::asptr(obj0, &ptr);
19657
+ if (!SWIG_IsOK(res1)) {
19658
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IntVector" "', argument " "1"" of type '" "std::vector< int > const &""'");
19661
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IntVector" "', argument " "1"" of type '" "std::vector< int > const &""'");
19665
+ result = (std::vector< int > *)new std::vector< int >((std::vector< int > const &)*arg1);
19666
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_NEW | 0 );
19667
+ if (SWIG_IsNewObj(res1)) delete arg1;
19668
+ return resultobj;
19670
+ if (SWIG_IsNewObj(res1)) delete arg1;
19675
+SWIGINTERN PyObject *_wrap_IntVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19676
+ PyObject *resultobj = 0;
19677
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
19678
+ void *argp1 = 0 ;
19680
+ PyObject * obj0 = 0 ;
19683
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVector_empty",&obj0)) SWIG_fail;
19684
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
19685
+ if (!SWIG_IsOK(res1)) {
19686
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_empty" "', argument " "1"" of type '" "std::vector< int > const *""'");
19688
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
19689
+ result = (bool)((std::vector< int > const *)arg1)->empty();
19690
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
19691
+ return resultobj;
19697
+SWIGINTERN PyObject *_wrap_IntVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19698
+ PyObject *resultobj = 0;
19699
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
19700
+ void *argp1 = 0 ;
19702
+ PyObject * obj0 = 0 ;
19703
+ std::vector< int >::size_type result;
19705
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVector_size",&obj0)) SWIG_fail;
19706
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
19707
+ if (!SWIG_IsOK(res1)) {
19708
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_size" "', argument " "1"" of type '" "std::vector< int > const *""'");
19710
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
19711
+ result = ((std::vector< int > const *)arg1)->size();
19712
+ resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19713
+ return resultobj;
19719
+SWIGINTERN PyObject *_wrap_IntVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19720
+ PyObject *resultobj = 0;
19721
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
19722
+ void *argp1 = 0 ;
19724
+ PyObject * obj0 = 0 ;
19726
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVector_clear",&obj0)) SWIG_fail;
19727
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
19728
+ if (!SWIG_IsOK(res1)) {
19729
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_clear" "', argument " "1"" of type '" "std::vector< int > *""'");
19731
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
19733
+ resultobj = SWIG_Py_Void();
19734
+ return resultobj;
19740
+SWIGINTERN PyObject *_wrap_IntVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19741
+ PyObject *resultobj = 0;
19742
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
19743
+ std::vector< int > *arg2 = 0 ;
19744
+ void *argp1 = 0 ;
19746
+ void *argp2 = 0 ;
19748
+ PyObject * obj0 = 0 ;
19749
+ PyObject * obj1 = 0 ;
19751
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVector_swap",&obj0,&obj1)) SWIG_fail;
19752
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
19753
+ if (!SWIG_IsOK(res1)) {
19754
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_swap" "', argument " "1"" of type '" "std::vector< int > *""'");
19756
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
19757
+ res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 );
19758
+ if (!SWIG_IsOK(res2)) {
19759
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntVector_swap" "', argument " "2"" of type '" "std::vector< int > &""'");
19762
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntVector_swap" "', argument " "2"" of type '" "std::vector< int > &""'");
19764
+ arg2 = reinterpret_cast< std::vector< int > * >(argp2);
19765
+ (arg1)->swap(*arg2);
19766
+ resultobj = SWIG_Py_Void();
19767
+ return resultobj;
19773
+SWIGINTERN PyObject *_wrap_IntVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19774
+ PyObject *resultobj = 0;
19775
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
19776
+ void *argp1 = 0 ;
19778
+ PyObject * obj0 = 0 ;
19779
+ SwigValueWrapper< std::allocator< int > > result;
19781
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVector_get_allocator",&obj0)) SWIG_fail;
19782
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
19783
+ if (!SWIG_IsOK(res1)) {
19784
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_get_allocator" "', argument " "1"" of type '" "std::vector< int > const *""'");
19786
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
19787
+ result = ((std::vector< int > const *)arg1)->get_allocator();
19788
+ resultobj = SWIG_NewPointerObj((new std::vector< int >::allocator_type(static_cast< const std::vector< int >::allocator_type& >(result))), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t__allocator_type, SWIG_POINTER_OWN | 0 );
19789
+ return resultobj;
19795
+SWIGINTERN PyObject *_wrap_IntVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19796
+ PyObject *resultobj = 0;
19797
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
19798
+ void *argp1 = 0 ;
19800
+ PyObject * obj0 = 0 ;
19801
+ std::vector< int >::const_iterator result;
19803
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVector_begin",&obj0)) SWIG_fail;
19804
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
19805
+ if (!SWIG_IsOK(res1)) {
19806
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_begin" "', argument " "1"" of type '" "std::vector< int > const *""'");
19808
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
19809
+ result = ((std::vector< int > const *)arg1)->begin();
19810
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::const_iterator & >(result)),
19811
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
19812
+ return resultobj;
19818
+SWIGINTERN PyObject *_wrap_IntVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19819
+ PyObject *resultobj = 0;
19820
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
19821
+ void *argp1 = 0 ;
19823
+ PyObject * obj0 = 0 ;
19824
+ std::vector< int >::const_iterator result;
19826
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVector_end",&obj0)) SWIG_fail;
19827
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
19828
+ if (!SWIG_IsOK(res1)) {
19829
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_end" "', argument " "1"" of type '" "std::vector< int > const *""'");
19831
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
19832
+ result = ((std::vector< int > const *)arg1)->end();
19833
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::const_iterator & >(result)),
19834
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
19835
+ return resultobj;
19841
+SWIGINTERN PyObject *_wrap_IntVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19842
+ PyObject *resultobj = 0;
19843
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
19844
+ void *argp1 = 0 ;
19846
+ PyObject * obj0 = 0 ;
19847
+ std::vector< int >::const_reverse_iterator result;
19849
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVector_rbegin",&obj0)) SWIG_fail;
19850
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
19851
+ if (!SWIG_IsOK(res1)) {
19852
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_rbegin" "', argument " "1"" of type '" "std::vector< int > const *""'");
19854
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
19855
+ result = ((std::vector< int > const *)arg1)->rbegin();
19856
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::const_reverse_iterator & >(result)),
19857
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
19858
+ return resultobj;
19864
+SWIGINTERN PyObject *_wrap_IntVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19865
+ PyObject *resultobj = 0;
19866
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
19867
+ void *argp1 = 0 ;
19869
+ PyObject * obj0 = 0 ;
19870
+ std::vector< int >::const_reverse_iterator result;
19872
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVector_rend",&obj0)) SWIG_fail;
19873
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
19874
+ if (!SWIG_IsOK(res1)) {
19875
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_rend" "', argument " "1"" of type '" "std::vector< int > const *""'");
19877
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
19878
+ result = ((std::vector< int > const *)arg1)->rend();
19879
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::const_reverse_iterator & >(result)),
19880
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
19881
+ return resultobj;
19887
+SWIGINTERN PyObject *_wrap_new_IntVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19888
+ PyObject *resultobj = 0;
19889
+ std::vector< int >::size_type arg1 ;
19892
+ PyObject * obj0 = 0 ;
19893
+ std::vector< int > *result = 0 ;
19895
+ if (!PyArg_ParseTuple(args,(char *)"O:new_IntVector",&obj0)) SWIG_fail;
19896
+ ecode1 = SWIG_AsVal_size_t(obj0, &val1);
19897
+ if (!SWIG_IsOK(ecode1)) {
19898
+ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_IntVector" "', argument " "1"" of type '" "std::vector< int >::size_type""'");
19900
+ arg1 = static_cast< std::vector< int >::size_type >(val1);
19901
+ result = (std::vector< int > *)new std::vector< int >(arg1);
19902
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_NEW | 0 );
19903
+ return resultobj;
19909
+SWIGINTERN PyObject *_wrap_IntVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19910
+ PyObject *resultobj = 0;
19911
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
19912
+ void *argp1 = 0 ;
19914
+ PyObject * obj0 = 0 ;
19916
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVector_pop_back",&obj0)) SWIG_fail;
19917
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
19918
+ if (!SWIG_IsOK(res1)) {
19919
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_pop_back" "', argument " "1"" of type '" "std::vector< int > *""'");
19921
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
19922
+ (arg1)->pop_back();
19923
+ resultobj = SWIG_Py_Void();
19924
+ return resultobj;
19930
+SWIGINTERN PyObject *_wrap_IntVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19931
+ PyObject *resultobj = 0;
19932
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
19933
+ std::vector< int >::size_type arg2 ;
19934
+ void *argp1 = 0 ;
19938
+ PyObject * obj0 = 0 ;
19939
+ PyObject * obj1 = 0 ;
19941
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVector_resize",&obj0,&obj1)) SWIG_fail;
19942
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
19943
+ if (!SWIG_IsOK(res1)) {
19944
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_resize" "', argument " "1"" of type '" "std::vector< int > *""'");
19946
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
19947
+ ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19948
+ if (!SWIG_IsOK(ecode2)) {
19949
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector_resize" "', argument " "2"" of type '" "std::vector< int >::size_type""'");
19951
+ arg2 = static_cast< std::vector< int >::size_type >(val2);
19952
+ (arg1)->resize(arg2);
19953
+ resultobj = SWIG_Py_Void();
19954
+ return resultobj;
19960
+SWIGINTERN PyObject *_wrap_IntVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19961
+ PyObject *resultobj = 0;
19962
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
19963
+ std::vector< int >::iterator arg2 ;
19964
+ void *argp1 = 0 ;
19966
+ swig::PySwigIterator *iter2 = 0 ;
19968
+ PyObject * obj0 = 0 ;
19969
+ PyObject * obj1 = 0 ;
19970
+ std::vector< int >::iterator result;
19972
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVector_erase",&obj0,&obj1)) SWIG_fail;
19973
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
19974
+ if (!SWIG_IsOK(res1)) {
19975
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_erase" "', argument " "1"" of type '" "std::vector< int > *""'");
19977
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
19978
+ res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::PySwigIterator::descriptor(), 0);
19979
+ if (!SWIG_IsOK(res2) || !iter2) {
19980
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_erase" "', argument " "2"" of type '" "std::vector< int >::iterator""'");
19982
+ swig::PySwigIterator_T<std::vector< int >::iterator > *iter_t = dynamic_cast<swig::PySwigIterator_T<std::vector< int >::iterator > *>(iter2);
19984
+ arg2 = iter_t->get_current();
19986
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_erase" "', argument " "2"" of type '" "std::vector< int >::iterator""'");
19989
+ result = (arg1)->erase(arg2);
19990
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::iterator & >(result)),
19991
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
19992
+ return resultobj;
19998
+SWIGINTERN PyObject *_wrap_IntVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19999
+ PyObject *resultobj = 0;
20000
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
20001
+ std::vector< int >::iterator arg2 ;
20002
+ std::vector< int >::iterator arg3 ;
20003
+ void *argp1 = 0 ;
20005
+ swig::PySwigIterator *iter2 = 0 ;
20007
+ swig::PySwigIterator *iter3 = 0 ;
20009
+ PyObject * obj0 = 0 ;
20010
+ PyObject * obj1 = 0 ;
20011
+ PyObject * obj2 = 0 ;
20012
+ std::vector< int >::iterator result;
20014
+ if (!PyArg_ParseTuple(args,(char *)"OOO:IntVector_erase",&obj0,&obj1,&obj2)) SWIG_fail;
20015
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
20016
+ if (!SWIG_IsOK(res1)) {
20017
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_erase" "', argument " "1"" of type '" "std::vector< int > *""'");
20019
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
20020
+ res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::PySwigIterator::descriptor(), 0);
20021
+ if (!SWIG_IsOK(res2) || !iter2) {
20022
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_erase" "', argument " "2"" of type '" "std::vector< int >::iterator""'");
20024
+ swig::PySwigIterator_T<std::vector< int >::iterator > *iter_t = dynamic_cast<swig::PySwigIterator_T<std::vector< int >::iterator > *>(iter2);
20026
+ arg2 = iter_t->get_current();
20028
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_erase" "', argument " "2"" of type '" "std::vector< int >::iterator""'");
20031
+ res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::PySwigIterator::descriptor(), 0);
20032
+ if (!SWIG_IsOK(res3) || !iter3) {
20033
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_erase" "', argument " "3"" of type '" "std::vector< int >::iterator""'");
20035
+ swig::PySwigIterator_T<std::vector< int >::iterator > *iter_t = dynamic_cast<swig::PySwigIterator_T<std::vector< int >::iterator > *>(iter3);
20037
+ arg3 = iter_t->get_current();
20039
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_erase" "', argument " "3"" of type '" "std::vector< int >::iterator""'");
20042
+ result = (arg1)->erase(arg2,arg3);
20043
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::iterator & >(result)),
20044
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
20045
+ return resultobj;
20051
+SWIGINTERN PyObject *_wrap_IntVector_erase(PyObject *self, PyObject *args) {
20053
+ PyObject *argv[4];
20056
+ if (!PyTuple_Check(args)) SWIG_fail;
20057
+ argc = (int)PyObject_Length(args);
20058
+ for (ii = 0; (ii < argc) && (ii < 3); ii++) {
20059
+ argv[ii] = PyTuple_GET_ITEM(args,ii);
20063
+ int res = swig::asptr(argv[0], (std::vector<int,std::allocator< int > >**)(0));
20064
+ _v = SWIG_CheckState(res);
20066
+ swig::PySwigIterator *iter = 0;
20067
+ int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::PySwigIterator::descriptor(), 0);
20068
+ _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::PySwigIterator_T<std::vector< int >::iterator > *>(iter) != 0));
20070
+ return _wrap_IntVector_erase__SWIG_0(self, args);
20076
+ int res = swig::asptr(argv[0], (std::vector<int,std::allocator< int > >**)(0));
20077
+ _v = SWIG_CheckState(res);
20079
+ swig::PySwigIterator *iter = 0;
20080
+ int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::PySwigIterator::descriptor(), 0);
20081
+ _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::PySwigIterator_T<std::vector< int >::iterator > *>(iter) != 0));
20083
+ swig::PySwigIterator *iter = 0;
20084
+ int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::PySwigIterator::descriptor(), 0);
20085
+ _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::PySwigIterator_T<std::vector< int >::iterator > *>(iter) != 0));
20087
+ return _wrap_IntVector_erase__SWIG_1(self, args);
20094
+ SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IntVector_erase'.\n"
20095
+ " Possible C/C++ prototypes are:\n"
20096
+ " erase(std::vector< int > *,std::vector< int >::iterator)\n"
20097
+ " erase(std::vector< int > *,std::vector< int >::iterator,std::vector< int >::iterator)\n");
20102
+SWIGINTERN PyObject *_wrap_new_IntVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20103
+ PyObject *resultobj = 0;
20104
+ std::vector< int >::size_type arg1 ;
20105
+ std::vector< int >::value_type *arg2 = 0 ;
20108
+ std::vector< int >::value_type temp2 ;
20111
+ PyObject * obj0 = 0 ;
20112
+ PyObject * obj1 = 0 ;
20113
+ std::vector< int > *result = 0 ;
20115
+ if (!PyArg_ParseTuple(args,(char *)"OO:new_IntVector",&obj0,&obj1)) SWIG_fail;
20116
+ ecode1 = SWIG_AsVal_size_t(obj0, &val1);
20117
+ if (!SWIG_IsOK(ecode1)) {
20118
+ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_IntVector" "', argument " "1"" of type '" "std::vector< int >::size_type""'");
20120
+ arg1 = static_cast< std::vector< int >::size_type >(val1);
20121
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
20122
+ if (!SWIG_IsOK(ecode2)) {
20123
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IntVector" "', argument " "2"" of type '" "std::vector< int >::value_type""'");
20125
+ temp2 = static_cast< std::vector< int >::value_type >(val2);
20127
+ result = (std::vector< int > *)new std::vector< int >(arg1,(std::vector< int >::value_type const &)*arg2);
20128
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_NEW | 0 );
20129
+ return resultobj;
20135
+SWIGINTERN PyObject *_wrap_new_IntVector(PyObject *self, PyObject *args) {
20137
+ PyObject *argv[3];
20140
+ if (!PyTuple_Check(args)) SWIG_fail;
20141
+ argc = (int)PyObject_Length(args);
20142
+ for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20143
+ argv[ii] = PyTuple_GET_ITEM(args,ii);
20146
+ return _wrap_new_IntVector__SWIG_0(self, args);
20151
+ int res = SWIG_AsVal_size_t(argv[0], NULL);
20152
+ _v = SWIG_CheckState(res);
20155
+ return _wrap_new_IntVector__SWIG_2(self, args);
20160
+ int res = swig::asptr(argv[0], (std::vector<int,std::allocator< int > >**)(0));
20161
+ _v = SWIG_CheckState(res);
20163
+ return _wrap_new_IntVector__SWIG_1(self, args);
20169
+ int res = SWIG_AsVal_size_t(argv[0], NULL);
20170
+ _v = SWIG_CheckState(res);
20174
+ int res = SWIG_AsVal_int(argv[1], NULL);
20175
+ _v = SWIG_CheckState(res);
20178
+ return _wrap_new_IntVector__SWIG_3(self, args);
20184
+ SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_IntVector'.\n"
20185
+ " Possible C/C++ prototypes are:\n"
20186
+ " std::vector< int >()\n"
20187
+ " std::vector< int >(std::vector< int > const &)\n"
20188
+ " std::vector< int >(std::vector< int >::size_type)\n"
20189
+ " std::vector< int >(std::vector< int >::size_type,std::vector< int >::value_type const &)\n");
20194
+SWIGINTERN PyObject *_wrap_IntVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20195
+ PyObject *resultobj = 0;
20196
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
20197
+ std::vector< int >::value_type *arg2 = 0 ;
20198
+ void *argp1 = 0 ;
20200
+ std::vector< int >::value_type temp2 ;
20203
+ PyObject * obj0 = 0 ;
20204
+ PyObject * obj1 = 0 ;
20206
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVector_push_back",&obj0,&obj1)) SWIG_fail;
20207
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
20208
+ if (!SWIG_IsOK(res1)) {
20209
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_push_back" "', argument " "1"" of type '" "std::vector< int > *""'");
20211
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
20212
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
20213
+ if (!SWIG_IsOK(ecode2)) {
20214
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector_push_back" "', argument " "2"" of type '" "std::vector< int >::value_type""'");
20216
+ temp2 = static_cast< std::vector< int >::value_type >(val2);
20218
+ (arg1)->push_back((std::vector< int >::value_type const &)*arg2);
20219
+ resultobj = SWIG_Py_Void();
20220
+ return resultobj;
20226
+SWIGINTERN PyObject *_wrap_IntVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20227
+ PyObject *resultobj = 0;
20228
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
20229
+ void *argp1 = 0 ;
20231
+ PyObject * obj0 = 0 ;
20232
+ std::vector< int >::value_type *result = 0 ;
20234
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVector_front",&obj0)) SWIG_fail;
20235
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
20236
+ if (!SWIG_IsOK(res1)) {
20237
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_front" "', argument " "1"" of type '" "std::vector< int > const *""'");
20239
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
20241
+ std::vector< int >::value_type const &_result_ref = ((std::vector< int > const *)arg1)->front();
20242
+ result = (std::vector< int >::value_type *) &_result_ref;
20244
+ resultobj = SWIG_From_int(static_cast< int >(*result));
20245
+ return resultobj;
20251
+SWIGINTERN PyObject *_wrap_IntVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20252
+ PyObject *resultobj = 0;
20253
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
20254
+ void *argp1 = 0 ;
20256
+ PyObject * obj0 = 0 ;
20257
+ std::vector< int >::value_type *result = 0 ;
20259
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVector_back",&obj0)) SWIG_fail;
20260
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
20261
+ if (!SWIG_IsOK(res1)) {
20262
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_back" "', argument " "1"" of type '" "std::vector< int > const *""'");
20264
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
20266
+ std::vector< int >::value_type const &_result_ref = ((std::vector< int > const *)arg1)->back();
20267
+ result = (std::vector< int >::value_type *) &_result_ref;
20269
+ resultobj = SWIG_From_int(static_cast< int >(*result));
20270
+ return resultobj;
20276
+SWIGINTERN PyObject *_wrap_IntVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20277
+ PyObject *resultobj = 0;
20278
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
20279
+ std::vector< int >::size_type arg2 ;
20280
+ std::vector< int >::value_type *arg3 = 0 ;
20281
+ void *argp1 = 0 ;
20285
+ std::vector< int >::value_type temp3 ;
20288
+ PyObject * obj0 = 0 ;
20289
+ PyObject * obj1 = 0 ;
20290
+ PyObject * obj2 = 0 ;
20292
+ if (!PyArg_ParseTuple(args,(char *)"OOO:IntVector_assign",&obj0,&obj1,&obj2)) SWIG_fail;
20293
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
20294
+ if (!SWIG_IsOK(res1)) {
20295
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_assign" "', argument " "1"" of type '" "std::vector< int > *""'");
20297
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
20298
+ ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20299
+ if (!SWIG_IsOK(ecode2)) {
20300
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector_assign" "', argument " "2"" of type '" "std::vector< int >::size_type""'");
20302
+ arg2 = static_cast< std::vector< int >::size_type >(val2);
20303
+ ecode3 = SWIG_AsVal_int(obj2, &val3);
20304
+ if (!SWIG_IsOK(ecode3)) {
20305
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector_assign" "', argument " "3"" of type '" "std::vector< int >::value_type""'");
20307
+ temp3 = static_cast< std::vector< int >::value_type >(val3);
20309
+ (arg1)->assign(arg2,(std::vector< int >::value_type const &)*arg3);
20310
+ resultobj = SWIG_Py_Void();
20311
+ return resultobj;
20317
+SWIGINTERN PyObject *_wrap_IntVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20318
+ PyObject *resultobj = 0;
20319
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
20320
+ std::vector< int >::size_type arg2 ;
20321
+ std::vector< int >::value_type *arg3 = 0 ;
20322
+ void *argp1 = 0 ;
20326
+ std::vector< int >::value_type temp3 ;
20329
+ PyObject * obj0 = 0 ;
20330
+ PyObject * obj1 = 0 ;
20331
+ PyObject * obj2 = 0 ;
20333
+ if (!PyArg_ParseTuple(args,(char *)"OOO:IntVector_resize",&obj0,&obj1,&obj2)) SWIG_fail;
20334
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
20335
+ if (!SWIG_IsOK(res1)) {
20336
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_resize" "', argument " "1"" of type '" "std::vector< int > *""'");
20338
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
20339
+ ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20340
+ if (!SWIG_IsOK(ecode2)) {
20341
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector_resize" "', argument " "2"" of type '" "std::vector< int >::size_type""'");
20343
+ arg2 = static_cast< std::vector< int >::size_type >(val2);
20344
+ ecode3 = SWIG_AsVal_int(obj2, &val3);
20345
+ if (!SWIG_IsOK(ecode3)) {
20346
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector_resize" "', argument " "3"" of type '" "std::vector< int >::value_type""'");
20348
+ temp3 = static_cast< std::vector< int >::value_type >(val3);
20350
+ (arg1)->resize(arg2,(std::vector< int >::value_type const &)*arg3);
20351
+ resultobj = SWIG_Py_Void();
20352
+ return resultobj;
20358
+SWIGINTERN PyObject *_wrap_IntVector_resize(PyObject *self, PyObject *args) {
20360
+ PyObject *argv[4];
20363
+ if (!PyTuple_Check(args)) SWIG_fail;
20364
+ argc = (int)PyObject_Length(args);
20365
+ for (ii = 0; (ii < argc) && (ii < 3); ii++) {
20366
+ argv[ii] = PyTuple_GET_ITEM(args,ii);
20370
+ int res = swig::asptr(argv[0], (std::vector<int,std::allocator< int > >**)(0));
20371
+ _v = SWIG_CheckState(res);
20374
+ int res = SWIG_AsVal_size_t(argv[1], NULL);
20375
+ _v = SWIG_CheckState(res);
20378
+ return _wrap_IntVector_resize__SWIG_0(self, args);
20384
+ int res = swig::asptr(argv[0], (std::vector<int,std::allocator< int > >**)(0));
20385
+ _v = SWIG_CheckState(res);
20388
+ int res = SWIG_AsVal_size_t(argv[1], NULL);
20389
+ _v = SWIG_CheckState(res);
20393
+ int res = SWIG_AsVal_int(argv[2], NULL);
20394
+ _v = SWIG_CheckState(res);
20397
+ return _wrap_IntVector_resize__SWIG_1(self, args);
20404
+ SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IntVector_resize'.\n"
20405
+ " Possible C/C++ prototypes are:\n"
20406
+ " resize(std::vector< int > *,std::vector< int >::size_type)\n"
20407
+ " resize(std::vector< int > *,std::vector< int >::size_type,std::vector< int >::value_type const &)\n");
20412
+SWIGINTERN PyObject *_wrap_IntVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20413
+ PyObject *resultobj = 0;
20414
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
20415
+ std::vector< int >::iterator arg2 ;
20416
+ std::vector< int >::value_type *arg3 = 0 ;
20417
+ void *argp1 = 0 ;
20419
+ swig::PySwigIterator *iter2 = 0 ;
20421
+ std::vector< int >::value_type temp3 ;
20424
+ PyObject * obj0 = 0 ;
20425
+ PyObject * obj1 = 0 ;
20426
+ PyObject * obj2 = 0 ;
20427
+ std::vector< int >::iterator result;
20429
+ if (!PyArg_ParseTuple(args,(char *)"OOO:IntVector_insert",&obj0,&obj1,&obj2)) SWIG_fail;
20430
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
20431
+ if (!SWIG_IsOK(res1)) {
20432
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_insert" "', argument " "1"" of type '" "std::vector< int > *""'");
20434
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
20435
+ res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::PySwigIterator::descriptor(), 0);
20436
+ if (!SWIG_IsOK(res2) || !iter2) {
20437
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_insert" "', argument " "2"" of type '" "std::vector< int >::iterator""'");
20439
+ swig::PySwigIterator_T<std::vector< int >::iterator > *iter_t = dynamic_cast<swig::PySwigIterator_T<std::vector< int >::iterator > *>(iter2);
20441
+ arg2 = iter_t->get_current();
20443
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_insert" "', argument " "2"" of type '" "std::vector< int >::iterator""'");
20446
+ ecode3 = SWIG_AsVal_int(obj2, &val3);
20447
+ if (!SWIG_IsOK(ecode3)) {
20448
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector_insert" "', argument " "3"" of type '" "std::vector< int >::value_type""'");
20450
+ temp3 = static_cast< std::vector< int >::value_type >(val3);
20452
+ result = (arg1)->insert(arg2,(std::vector< int >::value_type const &)*arg3);
20453
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::iterator & >(result)),
20454
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
20455
+ return resultobj;
20461
+SWIGINTERN PyObject *_wrap_IntVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20462
+ PyObject *resultobj = 0;
20463
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
20464
+ std::vector< int >::iterator arg2 ;
20465
+ std::vector< int >::size_type arg3 ;
20466
+ std::vector< int >::value_type *arg4 = 0 ;
20467
+ void *argp1 = 0 ;
20469
+ swig::PySwigIterator *iter2 = 0 ;
20473
+ std::vector< int >::value_type temp4 ;
20476
+ PyObject * obj0 = 0 ;
20477
+ PyObject * obj1 = 0 ;
20478
+ PyObject * obj2 = 0 ;
20479
+ PyObject * obj3 = 0 ;
20481
+ if (!PyArg_ParseTuple(args,(char *)"OOOO:IntVector_insert",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20482
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
20483
+ if (!SWIG_IsOK(res1)) {
20484
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_insert" "', argument " "1"" of type '" "std::vector< int > *""'");
20486
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
20487
+ res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::PySwigIterator::descriptor(), 0);
20488
+ if (!SWIG_IsOK(res2) || !iter2) {
20489
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_insert" "', argument " "2"" of type '" "std::vector< int >::iterator""'");
20491
+ swig::PySwigIterator_T<std::vector< int >::iterator > *iter_t = dynamic_cast<swig::PySwigIterator_T<std::vector< int >::iterator > *>(iter2);
20493
+ arg2 = iter_t->get_current();
20495
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVector_insert" "', argument " "2"" of type '" "std::vector< int >::iterator""'");
20498
+ ecode3 = SWIG_AsVal_size_t(obj2, &val3);
20499
+ if (!SWIG_IsOK(ecode3)) {
20500
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IntVector_insert" "', argument " "3"" of type '" "std::vector< int >::size_type""'");
20502
+ arg3 = static_cast< std::vector< int >::size_type >(val3);
20503
+ ecode4 = SWIG_AsVal_int(obj3, &val4);
20504
+ if (!SWIG_IsOK(ecode4)) {
20505
+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "IntVector_insert" "', argument " "4"" of type '" "std::vector< int >::value_type""'");
20507
+ temp4 = static_cast< std::vector< int >::value_type >(val4);
20509
+ (arg1)->insert(arg2,arg3,(std::vector< int >::value_type const &)*arg4);
20510
+ resultobj = SWIG_Py_Void();
20511
+ return resultobj;
20517
+SWIGINTERN PyObject *_wrap_IntVector_insert(PyObject *self, PyObject *args) {
20519
+ PyObject *argv[5];
20522
+ if (!PyTuple_Check(args)) SWIG_fail;
20523
+ argc = (int)PyObject_Length(args);
20524
+ for (ii = 0; (ii < argc) && (ii < 4); ii++) {
20525
+ argv[ii] = PyTuple_GET_ITEM(args,ii);
20529
+ int res = swig::asptr(argv[0], (std::vector<int,std::allocator< int > >**)(0));
20530
+ _v = SWIG_CheckState(res);
20532
+ swig::PySwigIterator *iter = 0;
20533
+ int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::PySwigIterator::descriptor(), 0);
20534
+ _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::PySwigIterator_T<std::vector< int >::iterator > *>(iter) != 0));
20537
+ int res = SWIG_AsVal_int(argv[2], NULL);
20538
+ _v = SWIG_CheckState(res);
20541
+ return _wrap_IntVector_insert__SWIG_0(self, args);
20548
+ int res = swig::asptr(argv[0], (std::vector<int,std::allocator< int > >**)(0));
20549
+ _v = SWIG_CheckState(res);
20551
+ swig::PySwigIterator *iter = 0;
20552
+ int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::PySwigIterator::descriptor(), 0);
20553
+ _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::PySwigIterator_T<std::vector< int >::iterator > *>(iter) != 0));
20556
+ int res = SWIG_AsVal_size_t(argv[2], NULL);
20557
+ _v = SWIG_CheckState(res);
20561
+ int res = SWIG_AsVal_int(argv[3], NULL);
20562
+ _v = SWIG_CheckState(res);
20565
+ return _wrap_IntVector_insert__SWIG_1(self, args);
20573
+ SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IntVector_insert'.\n"
20574
+ " Possible C/C++ prototypes are:\n"
20575
+ " insert(std::vector< int > *,std::vector< int >::iterator,std::vector< int >::value_type const &)\n"
20576
+ " insert(std::vector< int > *,std::vector< int >::iterator,std::vector< int >::size_type,std::vector< int >::value_type const &)\n");
20581
+SWIGINTERN PyObject *_wrap_IntVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20582
+ PyObject *resultobj = 0;
20583
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
20584
+ std::vector< int >::size_type arg2 ;
20585
+ void *argp1 = 0 ;
20589
+ PyObject * obj0 = 0 ;
20590
+ PyObject * obj1 = 0 ;
20592
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVector_reserve",&obj0,&obj1)) SWIG_fail;
20593
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
20594
+ if (!SWIG_IsOK(res1)) {
20595
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_reserve" "', argument " "1"" of type '" "std::vector< int > *""'");
20597
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
20598
+ ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20599
+ if (!SWIG_IsOK(ecode2)) {
20600
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVector_reserve" "', argument " "2"" of type '" "std::vector< int >::size_type""'");
20602
+ arg2 = static_cast< std::vector< int >::size_type >(val2);
20603
+ (arg1)->reserve(arg2);
20604
+ resultobj = SWIG_Py_Void();
20605
+ return resultobj;
20611
+SWIGINTERN PyObject *_wrap_IntVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20612
+ PyObject *resultobj = 0;
20613
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
20614
+ void *argp1 = 0 ;
20616
+ PyObject * obj0 = 0 ;
20617
+ std::vector< int >::size_type result;
20619
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVector_capacity",&obj0)) SWIG_fail;
20620
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 );
20621
+ if (!SWIG_IsOK(res1)) {
20622
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVector_capacity" "', argument " "1"" of type '" "std::vector< int > const *""'");
20624
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
20625
+ result = ((std::vector< int > const *)arg1)->capacity();
20626
+ resultobj = SWIG_From_size_t(static_cast< size_t >(result));
20627
+ return resultobj;
20633
+SWIGINTERN PyObject *_wrap_delete_IntVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20634
+ PyObject *resultobj = 0;
20635
+ std::vector< int > *arg1 = (std::vector< int > *) 0 ;
20636
+ void *argp1 = 0 ;
20638
+ PyObject * obj0 = 0 ;
20640
+ if (!PyArg_ParseTuple(args,(char *)"O:delete_IntVector",&obj0)) SWIG_fail;
20641
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_DISOWN | 0 );
20642
+ if (!SWIG_IsOK(res1)) {
20643
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IntVector" "', argument " "1"" of type '" "std::vector< int > *""'");
20645
+ arg1 = reinterpret_cast< std::vector< int > * >(argp1);
20647
+ resultobj = SWIG_Py_Void();
20648
+ return resultobj;
20654
+SWIGINTERN PyObject *IntVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20656
+ if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
20657
+ SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_NewClientData(obj));
20658
+ return SWIG_Py_Void();
20661
+SWIGINTERN PyObject *_wrap_DoubleVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20662
+ PyObject *resultobj = 0;
20663
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
20664
+ PyObject **arg2 = (PyObject **) 0 ;
20665
+ void *argp1 = 0 ;
20667
+ PyObject * obj0 = 0 ;
20668
+ swig::PySwigIterator *result = 0 ;
20671
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVector_iterator",&obj0)) SWIG_fail;
20672
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
20673
+ if (!SWIG_IsOK(res1)) {
20674
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_iterator" "', argument " "1"" of type '" "std::vector< double > *""'");
20676
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
20677
+ result = (swig::PySwigIterator *)std_vector_Sl_double_Sg__iterator(arg1,arg2);
20678
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_OWN | 0 );
20679
+ return resultobj;
20685
+SWIGINTERN PyObject *_wrap_DoubleVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20686
+ PyObject *resultobj = 0;
20687
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
20688
+ void *argp1 = 0 ;
20690
+ PyObject * obj0 = 0 ;
20693
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVector___nonzero__",&obj0)) SWIG_fail;
20694
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
20695
+ if (!SWIG_IsOK(res1)) {
20696
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___nonzero__" "', argument " "1"" of type '" "std::vector< double > const *""'");
20698
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
20699
+ result = (bool)std_vector_Sl_double_Sg____nonzero__((std::vector< double > const *)arg1);
20700
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
20701
+ return resultobj;
20707
+SWIGINTERN PyObject *_wrap_DoubleVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20708
+ PyObject *resultobj = 0;
20709
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
20710
+ void *argp1 = 0 ;
20712
+ PyObject * obj0 = 0 ;
20713
+ std::vector< double >::size_type result;
20715
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVector___len__",&obj0)) SWIG_fail;
20716
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
20717
+ if (!SWIG_IsOK(res1)) {
20718
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___len__" "', argument " "1"" of type '" "std::vector< double > const *""'");
20720
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
20721
+ result = std_vector_Sl_double_Sg____len__((std::vector< double > const *)arg1);
20722
+ resultobj = SWIG_From_size_t(static_cast< size_t >(result));
20723
+ return resultobj;
20729
+SWIGINTERN PyObject *_wrap_DoubleVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20730
+ PyObject *resultobj = 0;
20731
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
20732
+ void *argp1 = 0 ;
20734
+ PyObject * obj0 = 0 ;
20735
+ std::vector< double >::value_type result;
20737
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVector_pop",&obj0)) SWIG_fail;
20738
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
20739
+ if (!SWIG_IsOK(res1)) {
20740
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_pop" "', argument " "1"" of type '" "std::vector< double > *""'");
20742
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
20744
+ result = (std::vector< double >::value_type)std_vector_Sl_double_Sg__pop(arg1);
20746
+ catch(std::out_of_range &_e) {
20747
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
20750
+ resultobj = SWIG_From_double(static_cast< double >(result));
20751
+ return resultobj;
20757
+SWIGINTERN PyObject *_wrap_DoubleVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20758
+ PyObject *resultobj = 0;
20759
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
20760
+ std::vector< double >::difference_type arg2 ;
20761
+ std::vector< double >::difference_type arg3 ;
20762
+ void *argp1 = 0 ;
20768
+ PyObject * obj0 = 0 ;
20769
+ PyObject * obj1 = 0 ;
20770
+ PyObject * obj2 = 0 ;
20771
+ std::vector< double,std::allocator< double > > *result = 0 ;
20773
+ if (!PyArg_ParseTuple(args,(char *)"OOO:DoubleVector___getslice__",&obj0,&obj1,&obj2)) SWIG_fail;
20774
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
20775
+ if (!SWIG_IsOK(res1)) {
20776
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___getslice__" "', argument " "1"" of type '" "std::vector< double > *""'");
20778
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
20779
+ ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
20780
+ if (!SWIG_IsOK(ecode2)) {
20781
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector___getslice__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'");
20783
+ arg2 = static_cast< std::vector< double >::difference_type >(val2);
20784
+ ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
20785
+ if (!SWIG_IsOK(ecode3)) {
20786
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleVector___getslice__" "', argument " "3"" of type '" "std::vector< double >::difference_type""'");
20788
+ arg3 = static_cast< std::vector< double >::difference_type >(val3);
20790
+ result = (std::vector< double,std::allocator< double > > *)std_vector_Sl_double_Sg____getslice__(arg1,arg2,arg3);
20792
+ catch(std::out_of_range &_e) {
20793
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
20796
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_POINTER_OWN | 0 );
20797
+ return resultobj;
20803
+SWIGINTERN PyObject *_wrap_DoubleVector___setslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20804
+ PyObject *resultobj = 0;
20805
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
20806
+ std::vector< double >::difference_type arg2 ;
20807
+ std::vector< double >::difference_type arg3 ;
20808
+ std::vector< double,std::allocator< double > > *arg4 = 0 ;
20809
+ void *argp1 = 0 ;
20815
+ int res4 = SWIG_OLDOBJ ;
20816
+ PyObject * obj0 = 0 ;
20817
+ PyObject * obj1 = 0 ;
20818
+ PyObject * obj2 = 0 ;
20819
+ PyObject * obj3 = 0 ;
20821
+ if (!PyArg_ParseTuple(args,(char *)"OOOO:DoubleVector___setslice__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20822
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
20823
+ if (!SWIG_IsOK(res1)) {
20824
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___setslice__" "', argument " "1"" of type '" "std::vector< double > *""'");
20826
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
20827
+ ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
20828
+ if (!SWIG_IsOK(ecode2)) {
20829
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector___setslice__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'");
20831
+ arg2 = static_cast< std::vector< double >::difference_type >(val2);
20832
+ ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
20833
+ if (!SWIG_IsOK(ecode3)) {
20834
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleVector___setslice__" "', argument " "3"" of type '" "std::vector< double >::difference_type""'");
20836
+ arg3 = static_cast< std::vector< double >::difference_type >(val3);
20838
+ std::vector<double,std::allocator< double > > *ptr = (std::vector<double,std::allocator< double > > *)0;
20839
+ res4 = swig::asptr(obj3, &ptr);
20840
+ if (!SWIG_IsOK(res4)) {
20841
+ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DoubleVector___setslice__" "', argument " "4"" of type '" "std::vector< double,std::allocator< double > > const &""'");
20844
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DoubleVector___setslice__" "', argument " "4"" of type '" "std::vector< double,std::allocator< double > > const &""'");
20849
+ std_vector_Sl_double_Sg____setslice__(arg1,arg2,arg3,(std::vector< double,std::allocator< double > > const &)*arg4);
20851
+ catch(std::out_of_range &_e) {
20852
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
20854
+ catch(std::invalid_argument &_e) {
20855
+ SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
20858
+ resultobj = SWIG_Py_Void();
20859
+ if (SWIG_IsNewObj(res4)) delete arg4;
20860
+ return resultobj;
20862
+ if (SWIG_IsNewObj(res4)) delete arg4;
20867
+SWIGINTERN PyObject *_wrap_DoubleVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20868
+ PyObject *resultobj = 0;
20869
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
20870
+ std::vector< double >::difference_type arg2 ;
20871
+ std::vector< double >::difference_type arg3 ;
20872
+ void *argp1 = 0 ;
20878
+ PyObject * obj0 = 0 ;
20879
+ PyObject * obj1 = 0 ;
20880
+ PyObject * obj2 = 0 ;
20882
+ if (!PyArg_ParseTuple(args,(char *)"OOO:DoubleVector___delslice__",&obj0,&obj1,&obj2)) SWIG_fail;
20883
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
20884
+ if (!SWIG_IsOK(res1)) {
20885
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___delslice__" "', argument " "1"" of type '" "std::vector< double > *""'");
20887
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
20888
+ ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
20889
+ if (!SWIG_IsOK(ecode2)) {
20890
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector___delslice__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'");
20892
+ arg2 = static_cast< std::vector< double >::difference_type >(val2);
20893
+ ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
20894
+ if (!SWIG_IsOK(ecode3)) {
20895
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleVector___delslice__" "', argument " "3"" of type '" "std::vector< double >::difference_type""'");
20897
+ arg3 = static_cast< std::vector< double >::difference_type >(val3);
20899
+ std_vector_Sl_double_Sg____delslice__(arg1,arg2,arg3);
20901
+ catch(std::out_of_range &_e) {
20902
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
20905
+ resultobj = SWIG_Py_Void();
20906
+ return resultobj;
20912
+SWIGINTERN PyObject *_wrap_DoubleVector___delitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20913
+ PyObject *resultobj = 0;
20914
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
20915
+ std::vector< double >::difference_type arg2 ;
20916
+ void *argp1 = 0 ;
20920
+ PyObject * obj0 = 0 ;
20921
+ PyObject * obj1 = 0 ;
20923
+ if (!PyArg_ParseTuple(args,(char *)"OO:DoubleVector___delitem__",&obj0,&obj1)) SWIG_fail;
20924
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
20925
+ if (!SWIG_IsOK(res1)) {
20926
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___delitem__" "', argument " "1"" of type '" "std::vector< double > *""'");
20928
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
20929
+ ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
20930
+ if (!SWIG_IsOK(ecode2)) {
20931
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector___delitem__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'");
20933
+ arg2 = static_cast< std::vector< double >::difference_type >(val2);
20935
+ std_vector_Sl_double_Sg____delitem__(arg1,arg2);
20937
+ catch(std::out_of_range &_e) {
20938
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
20941
+ resultobj = SWIG_Py_Void();
20942
+ return resultobj;
20948
+SWIGINTERN PyObject *_wrap_DoubleVector___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20949
+ PyObject *resultobj = 0;
20950
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
20951
+ std::vector< double >::difference_type arg2 ;
20952
+ void *argp1 = 0 ;
20956
+ PyObject * obj0 = 0 ;
20957
+ PyObject * obj1 = 0 ;
20958
+ std::vector< double >::value_type *result = 0 ;
20960
+ if (!PyArg_ParseTuple(args,(char *)"OO:DoubleVector___getitem__",&obj0,&obj1)) SWIG_fail;
20961
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
20962
+ if (!SWIG_IsOK(res1)) {
20963
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___getitem__" "', argument " "1"" of type '" "std::vector< double > const *""'");
20965
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
20966
+ ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
20967
+ if (!SWIG_IsOK(ecode2)) {
20968
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector___getitem__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'");
20970
+ arg2 = static_cast< std::vector< double >::difference_type >(val2);
20973
+ std::vector< double >::value_type const &_result_ref = std_vector_Sl_double_Sg____getitem__((std::vector< double > const *)arg1,arg2);
20974
+ result = (std::vector< double >::value_type *) &_result_ref;
20977
+ catch(std::out_of_range &_e) {
20978
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
20981
+ resultobj = SWIG_From_double(static_cast< double >(*result));
20982
+ return resultobj;
20988
+SWIGINTERN PyObject *_wrap_DoubleVector___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20989
+ PyObject *resultobj = 0;
20990
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
20991
+ std::vector< double >::difference_type arg2 ;
20992
+ std::vector< double >::value_type *arg3 = 0 ;
20993
+ void *argp1 = 0 ;
20997
+ std::vector< double >::value_type temp3 ;
21000
+ PyObject * obj0 = 0 ;
21001
+ PyObject * obj1 = 0 ;
21002
+ PyObject * obj2 = 0 ;
21004
+ if (!PyArg_ParseTuple(args,(char *)"OOO:DoubleVector___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
21005
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
21006
+ if (!SWIG_IsOK(res1)) {
21007
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector___setitem__" "', argument " "1"" of type '" "std::vector< double > *""'");
21009
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
21010
+ ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
21011
+ if (!SWIG_IsOK(ecode2)) {
21012
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector___setitem__" "', argument " "2"" of type '" "std::vector< double >::difference_type""'");
21014
+ arg2 = static_cast< std::vector< double >::difference_type >(val2);
21015
+ ecode3 = SWIG_AsVal_double(obj2, &val3);
21016
+ if (!SWIG_IsOK(ecode3)) {
21017
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleVector___setitem__" "', argument " "3"" of type '" "std::vector< double >::value_type""'");
21019
+ temp3 = static_cast< std::vector< double >::value_type >(val3);
21022
+ std_vector_Sl_double_Sg____setitem__(arg1,arg2,(double const &)*arg3);
21024
+ catch(std::out_of_range &_e) {
21025
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
21028
+ resultobj = SWIG_Py_Void();
21029
+ return resultobj;
21035
+SWIGINTERN PyObject *_wrap_DoubleVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21036
+ PyObject *resultobj = 0;
21037
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
21038
+ std::vector< double >::value_type *arg2 = 0 ;
21039
+ void *argp1 = 0 ;
21041
+ std::vector< double >::value_type temp2 ;
21044
+ PyObject * obj0 = 0 ;
21045
+ PyObject * obj1 = 0 ;
21047
+ if (!PyArg_ParseTuple(args,(char *)"OO:DoubleVector_append",&obj0,&obj1)) SWIG_fail;
21048
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
21049
+ if (!SWIG_IsOK(res1)) {
21050
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_append" "', argument " "1"" of type '" "std::vector< double > *""'");
21052
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
21053
+ ecode2 = SWIG_AsVal_double(obj1, &val2);
21054
+ if (!SWIG_IsOK(ecode2)) {
21055
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector_append" "', argument " "2"" of type '" "std::vector< double >::value_type""'");
21057
+ temp2 = static_cast< std::vector< double >::value_type >(val2);
21059
+ std_vector_Sl_double_Sg__append(arg1,(double const &)*arg2);
21060
+ resultobj = SWIG_Py_Void();
21061
+ return resultobj;
21067
+SWIGINTERN PyObject *_wrap_new_DoubleVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21068
+ PyObject *resultobj = 0;
21069
+ std::vector< double > *result = 0 ;
21071
+ if (!PyArg_ParseTuple(args,(char *)":new_DoubleVector")) SWIG_fail;
21072
+ result = (std::vector< double > *)new std::vector< double >();
21073
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_POINTER_NEW | 0 );
21074
+ return resultobj;
21080
+SWIGINTERN PyObject *_wrap_new_DoubleVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21081
+ PyObject *resultobj = 0;
21082
+ std::vector< double > *arg1 = 0 ;
21083
+ int res1 = SWIG_OLDOBJ ;
21084
+ PyObject * obj0 = 0 ;
21085
+ std::vector< double > *result = 0 ;
21087
+ if (!PyArg_ParseTuple(args,(char *)"O:new_DoubleVector",&obj0)) SWIG_fail;
21089
+ std::vector<double,std::allocator< double > > *ptr = (std::vector<double,std::allocator< double > > *)0;
21090
+ res1 = swig::asptr(obj0, &ptr);
21091
+ if (!SWIG_IsOK(res1)) {
21092
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DoubleVector" "', argument " "1"" of type '" "std::vector< double > const &""'");
21095
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DoubleVector" "', argument " "1"" of type '" "std::vector< double > const &""'");
21099
+ result = (std::vector< double > *)new std::vector< double >((std::vector< double > const &)*arg1);
21100
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_POINTER_NEW | 0 );
21101
+ if (SWIG_IsNewObj(res1)) delete arg1;
21102
+ return resultobj;
21104
+ if (SWIG_IsNewObj(res1)) delete arg1;
21109
+SWIGINTERN PyObject *_wrap_DoubleVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21110
+ PyObject *resultobj = 0;
21111
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
21112
+ void *argp1 = 0 ;
21114
+ PyObject * obj0 = 0 ;
21117
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVector_empty",&obj0)) SWIG_fail;
21118
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
21119
+ if (!SWIG_IsOK(res1)) {
21120
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_empty" "', argument " "1"" of type '" "std::vector< double > const *""'");
21122
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
21123
+ result = (bool)((std::vector< double > const *)arg1)->empty();
21124
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
21125
+ return resultobj;
21131
+SWIGINTERN PyObject *_wrap_DoubleVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21132
+ PyObject *resultobj = 0;
21133
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
21134
+ void *argp1 = 0 ;
21136
+ PyObject * obj0 = 0 ;
21137
+ std::vector< double >::size_type result;
21139
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVector_size",&obj0)) SWIG_fail;
21140
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
21141
+ if (!SWIG_IsOK(res1)) {
21142
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_size" "', argument " "1"" of type '" "std::vector< double > const *""'");
21144
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
21145
+ result = ((std::vector< double > const *)arg1)->size();
21146
+ resultobj = SWIG_From_size_t(static_cast< size_t >(result));
21147
+ return resultobj;
21153
+SWIGINTERN PyObject *_wrap_DoubleVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21154
+ PyObject *resultobj = 0;
21155
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
21156
+ void *argp1 = 0 ;
21158
+ PyObject * obj0 = 0 ;
21160
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVector_clear",&obj0)) SWIG_fail;
21161
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
21162
+ if (!SWIG_IsOK(res1)) {
21163
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_clear" "', argument " "1"" of type '" "std::vector< double > *""'");
21165
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
21167
+ resultobj = SWIG_Py_Void();
21168
+ return resultobj;
21174
+SWIGINTERN PyObject *_wrap_DoubleVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21175
+ PyObject *resultobj = 0;
21176
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
21177
+ std::vector< double > *arg2 = 0 ;
21178
+ void *argp1 = 0 ;
21180
+ void *argp2 = 0 ;
21182
+ PyObject * obj0 = 0 ;
21183
+ PyObject * obj1 = 0 ;
21185
+ if (!PyArg_ParseTuple(args,(char *)"OO:DoubleVector_swap",&obj0,&obj1)) SWIG_fail;
21186
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
21187
+ if (!SWIG_IsOK(res1)) {
21188
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_swap" "', argument " "1"" of type '" "std::vector< double > *""'");
21190
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
21191
+ res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 );
21192
+ if (!SWIG_IsOK(res2)) {
21193
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DoubleVector_swap" "', argument " "2"" of type '" "std::vector< double > &""'");
21196
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DoubleVector_swap" "', argument " "2"" of type '" "std::vector< double > &""'");
21198
+ arg2 = reinterpret_cast< std::vector< double > * >(argp2);
21199
+ (arg1)->swap(*arg2);
21200
+ resultobj = SWIG_Py_Void();
21201
+ return resultobj;
21207
+SWIGINTERN PyObject *_wrap_DoubleVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21208
+ PyObject *resultobj = 0;
21209
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
21210
+ void *argp1 = 0 ;
21212
+ PyObject * obj0 = 0 ;
21213
+ SwigValueWrapper< std::allocator< double > > result;
21215
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVector_get_allocator",&obj0)) SWIG_fail;
21216
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
21217
+ if (!SWIG_IsOK(res1)) {
21218
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_get_allocator" "', argument " "1"" of type '" "std::vector< double > const *""'");
21220
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
21221
+ result = ((std::vector< double > const *)arg1)->get_allocator();
21222
+ resultobj = SWIG_NewPointerObj((new std::vector< double >::allocator_type(static_cast< const std::vector< double >::allocator_type& >(result))), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t__allocator_type, SWIG_POINTER_OWN | 0 );
21223
+ return resultobj;
21229
+SWIGINTERN PyObject *_wrap_DoubleVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21230
+ PyObject *resultobj = 0;
21231
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
21232
+ void *argp1 = 0 ;
21234
+ PyObject * obj0 = 0 ;
21235
+ std::vector< double >::const_iterator result;
21237
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVector_begin",&obj0)) SWIG_fail;
21238
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
21239
+ if (!SWIG_IsOK(res1)) {
21240
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_begin" "', argument " "1"" of type '" "std::vector< double > const *""'");
21242
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
21243
+ result = ((std::vector< double > const *)arg1)->begin();
21244
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::const_iterator & >(result)),
21245
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
21246
+ return resultobj;
21252
+SWIGINTERN PyObject *_wrap_DoubleVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21253
+ PyObject *resultobj = 0;
21254
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
21255
+ void *argp1 = 0 ;
21257
+ PyObject * obj0 = 0 ;
21258
+ std::vector< double >::const_iterator result;
21260
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVector_end",&obj0)) SWIG_fail;
21261
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
21262
+ if (!SWIG_IsOK(res1)) {
21263
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_end" "', argument " "1"" of type '" "std::vector< double > const *""'");
21265
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
21266
+ result = ((std::vector< double > const *)arg1)->end();
21267
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::const_iterator & >(result)),
21268
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
21269
+ return resultobj;
21275
+SWIGINTERN PyObject *_wrap_DoubleVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21276
+ PyObject *resultobj = 0;
21277
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
21278
+ void *argp1 = 0 ;
21280
+ PyObject * obj0 = 0 ;
21281
+ std::vector< double >::const_reverse_iterator result;
21283
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVector_rbegin",&obj0)) SWIG_fail;
21284
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
21285
+ if (!SWIG_IsOK(res1)) {
21286
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_rbegin" "', argument " "1"" of type '" "std::vector< double > const *""'");
21288
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
21289
+ result = ((std::vector< double > const *)arg1)->rbegin();
21290
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::const_reverse_iterator & >(result)),
21291
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
21292
+ return resultobj;
21298
+SWIGINTERN PyObject *_wrap_DoubleVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21299
+ PyObject *resultobj = 0;
21300
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
21301
+ void *argp1 = 0 ;
21303
+ PyObject * obj0 = 0 ;
21304
+ std::vector< double >::const_reverse_iterator result;
21306
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVector_rend",&obj0)) SWIG_fail;
21307
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
21308
+ if (!SWIG_IsOK(res1)) {
21309
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_rend" "', argument " "1"" of type '" "std::vector< double > const *""'");
21311
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
21312
+ result = ((std::vector< double > const *)arg1)->rend();
21313
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::const_reverse_iterator & >(result)),
21314
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
21315
+ return resultobj;
21321
+SWIGINTERN PyObject *_wrap_new_DoubleVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21322
+ PyObject *resultobj = 0;
21323
+ std::vector< double >::size_type arg1 ;
21326
+ PyObject * obj0 = 0 ;
21327
+ std::vector< double > *result = 0 ;
21329
+ if (!PyArg_ParseTuple(args,(char *)"O:new_DoubleVector",&obj0)) SWIG_fail;
21330
+ ecode1 = SWIG_AsVal_size_t(obj0, &val1);
21331
+ if (!SWIG_IsOK(ecode1)) {
21332
+ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DoubleVector" "', argument " "1"" of type '" "std::vector< double >::size_type""'");
21334
+ arg1 = static_cast< std::vector< double >::size_type >(val1);
21335
+ result = (std::vector< double > *)new std::vector< double >(arg1);
21336
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_POINTER_NEW | 0 );
21337
+ return resultobj;
21343
+SWIGINTERN PyObject *_wrap_DoubleVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21344
+ PyObject *resultobj = 0;
21345
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
21346
+ void *argp1 = 0 ;
21348
+ PyObject * obj0 = 0 ;
21350
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVector_pop_back",&obj0)) SWIG_fail;
21351
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
21352
+ if (!SWIG_IsOK(res1)) {
21353
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_pop_back" "', argument " "1"" of type '" "std::vector< double > *""'");
21355
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
21356
+ (arg1)->pop_back();
21357
+ resultobj = SWIG_Py_Void();
21358
+ return resultobj;
21364
+SWIGINTERN PyObject *_wrap_DoubleVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21365
+ PyObject *resultobj = 0;
21366
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
21367
+ std::vector< double >::size_type arg2 ;
21368
+ void *argp1 = 0 ;
21372
+ PyObject * obj0 = 0 ;
21373
+ PyObject * obj1 = 0 ;
21375
+ if (!PyArg_ParseTuple(args,(char *)"OO:DoubleVector_resize",&obj0,&obj1)) SWIG_fail;
21376
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
21377
+ if (!SWIG_IsOK(res1)) {
21378
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_resize" "', argument " "1"" of type '" "std::vector< double > *""'");
21380
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
21381
+ ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21382
+ if (!SWIG_IsOK(ecode2)) {
21383
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector_resize" "', argument " "2"" of type '" "std::vector< double >::size_type""'");
21385
+ arg2 = static_cast< std::vector< double >::size_type >(val2);
21386
+ (arg1)->resize(arg2);
21387
+ resultobj = SWIG_Py_Void();
21388
+ return resultobj;
21394
+SWIGINTERN PyObject *_wrap_DoubleVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21395
+ PyObject *resultobj = 0;
21396
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
21397
+ std::vector< double >::iterator arg2 ;
21398
+ void *argp1 = 0 ;
21400
+ swig::PySwigIterator *iter2 = 0 ;
21402
+ PyObject * obj0 = 0 ;
21403
+ PyObject * obj1 = 0 ;
21404
+ std::vector< double >::iterator result;
21406
+ if (!PyArg_ParseTuple(args,(char *)"OO:DoubleVector_erase",&obj0,&obj1)) SWIG_fail;
21407
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
21408
+ if (!SWIG_IsOK(res1)) {
21409
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_erase" "', argument " "1"" of type '" "std::vector< double > *""'");
21411
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
21412
+ res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::PySwigIterator::descriptor(), 0);
21413
+ if (!SWIG_IsOK(res2) || !iter2) {
21414
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_erase" "', argument " "2"" of type '" "std::vector< double >::iterator""'");
21416
+ swig::PySwigIterator_T<std::vector< double >::iterator > *iter_t = dynamic_cast<swig::PySwigIterator_T<std::vector< double >::iterator > *>(iter2);
21418
+ arg2 = iter_t->get_current();
21420
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_erase" "', argument " "2"" of type '" "std::vector< double >::iterator""'");
21423
+ result = (arg1)->erase(arg2);
21424
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::iterator & >(result)),
21425
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
21426
+ return resultobj;
21432
+SWIGINTERN PyObject *_wrap_DoubleVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21433
+ PyObject *resultobj = 0;
21434
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
21435
+ std::vector< double >::iterator arg2 ;
21436
+ std::vector< double >::iterator arg3 ;
21437
+ void *argp1 = 0 ;
21439
+ swig::PySwigIterator *iter2 = 0 ;
21441
+ swig::PySwigIterator *iter3 = 0 ;
21443
+ PyObject * obj0 = 0 ;
21444
+ PyObject * obj1 = 0 ;
21445
+ PyObject * obj2 = 0 ;
21446
+ std::vector< double >::iterator result;
21448
+ if (!PyArg_ParseTuple(args,(char *)"OOO:DoubleVector_erase",&obj0,&obj1,&obj2)) SWIG_fail;
21449
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
21450
+ if (!SWIG_IsOK(res1)) {
21451
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_erase" "', argument " "1"" of type '" "std::vector< double > *""'");
21453
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
21454
+ res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::PySwigIterator::descriptor(), 0);
21455
+ if (!SWIG_IsOK(res2) || !iter2) {
21456
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_erase" "', argument " "2"" of type '" "std::vector< double >::iterator""'");
21458
+ swig::PySwigIterator_T<std::vector< double >::iterator > *iter_t = dynamic_cast<swig::PySwigIterator_T<std::vector< double >::iterator > *>(iter2);
21460
+ arg2 = iter_t->get_current();
21462
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_erase" "', argument " "2"" of type '" "std::vector< double >::iterator""'");
21465
+ res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::PySwigIterator::descriptor(), 0);
21466
+ if (!SWIG_IsOK(res3) || !iter3) {
21467
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_erase" "', argument " "3"" of type '" "std::vector< double >::iterator""'");
21469
+ swig::PySwigIterator_T<std::vector< double >::iterator > *iter_t = dynamic_cast<swig::PySwigIterator_T<std::vector< double >::iterator > *>(iter3);
21471
+ arg3 = iter_t->get_current();
21473
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_erase" "', argument " "3"" of type '" "std::vector< double >::iterator""'");
21476
+ result = (arg1)->erase(arg2,arg3);
21477
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::iterator & >(result)),
21478
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
21479
+ return resultobj;
21485
+SWIGINTERN PyObject *_wrap_DoubleVector_erase(PyObject *self, PyObject *args) {
21487
+ PyObject *argv[4];
21490
+ if (!PyTuple_Check(args)) SWIG_fail;
21491
+ argc = (int)PyObject_Length(args);
21492
+ for (ii = 0; (ii < argc) && (ii < 3); ii++) {
21493
+ argv[ii] = PyTuple_GET_ITEM(args,ii);
21497
+ int res = swig::asptr(argv[0], (std::vector<double,std::allocator< double > >**)(0));
21498
+ _v = SWIG_CheckState(res);
21500
+ swig::PySwigIterator *iter = 0;
21501
+ int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::PySwigIterator::descriptor(), 0);
21502
+ _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::PySwigIterator_T<std::vector< double >::iterator > *>(iter) != 0));
21504
+ return _wrap_DoubleVector_erase__SWIG_0(self, args);
21510
+ int res = swig::asptr(argv[0], (std::vector<double,std::allocator< double > >**)(0));
21511
+ _v = SWIG_CheckState(res);
21513
+ swig::PySwigIterator *iter = 0;
21514
+ int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::PySwigIterator::descriptor(), 0);
21515
+ _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::PySwigIterator_T<std::vector< double >::iterator > *>(iter) != 0));
21517
+ swig::PySwigIterator *iter = 0;
21518
+ int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::PySwigIterator::descriptor(), 0);
21519
+ _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::PySwigIterator_T<std::vector< double >::iterator > *>(iter) != 0));
21521
+ return _wrap_DoubleVector_erase__SWIG_1(self, args);
21528
+ SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'DoubleVector_erase'.\n"
21529
+ " Possible C/C++ prototypes are:\n"
21530
+ " erase(std::vector< double > *,std::vector< double >::iterator)\n"
21531
+ " erase(std::vector< double > *,std::vector< double >::iterator,std::vector< double >::iterator)\n");
21536
+SWIGINTERN PyObject *_wrap_new_DoubleVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21537
+ PyObject *resultobj = 0;
21538
+ std::vector< double >::size_type arg1 ;
21539
+ std::vector< double >::value_type *arg2 = 0 ;
21542
+ std::vector< double >::value_type temp2 ;
21545
+ PyObject * obj0 = 0 ;
21546
+ PyObject * obj1 = 0 ;
21547
+ std::vector< double > *result = 0 ;
21549
+ if (!PyArg_ParseTuple(args,(char *)"OO:new_DoubleVector",&obj0,&obj1)) SWIG_fail;
21550
+ ecode1 = SWIG_AsVal_size_t(obj0, &val1);
21551
+ if (!SWIG_IsOK(ecode1)) {
21552
+ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DoubleVector" "', argument " "1"" of type '" "std::vector< double >::size_type""'");
21554
+ arg1 = static_cast< std::vector< double >::size_type >(val1);
21555
+ ecode2 = SWIG_AsVal_double(obj1, &val2);
21556
+ if (!SWIG_IsOK(ecode2)) {
21557
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DoubleVector" "', argument " "2"" of type '" "std::vector< double >::value_type""'");
21559
+ temp2 = static_cast< std::vector< double >::value_type >(val2);
21561
+ result = (std::vector< double > *)new std::vector< double >(arg1,(std::vector< double >::value_type const &)*arg2);
21562
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_POINTER_NEW | 0 );
21563
+ return resultobj;
21569
+SWIGINTERN PyObject *_wrap_new_DoubleVector(PyObject *self, PyObject *args) {
21571
+ PyObject *argv[3];
21574
+ if (!PyTuple_Check(args)) SWIG_fail;
21575
+ argc = (int)PyObject_Length(args);
21576
+ for (ii = 0; (ii < argc) && (ii < 2); ii++) {
21577
+ argv[ii] = PyTuple_GET_ITEM(args,ii);
21580
+ return _wrap_new_DoubleVector__SWIG_0(self, args);
21585
+ int res = SWIG_AsVal_size_t(argv[0], NULL);
21586
+ _v = SWIG_CheckState(res);
21589
+ return _wrap_new_DoubleVector__SWIG_2(self, args);
21594
+ int res = swig::asptr(argv[0], (std::vector<double,std::allocator< double > >**)(0));
21595
+ _v = SWIG_CheckState(res);
21597
+ return _wrap_new_DoubleVector__SWIG_1(self, args);
21603
+ int res = SWIG_AsVal_size_t(argv[0], NULL);
21604
+ _v = SWIG_CheckState(res);
21608
+ int res = SWIG_AsVal_double(argv[1], NULL);
21609
+ _v = SWIG_CheckState(res);
21612
+ return _wrap_new_DoubleVector__SWIG_3(self, args);
21618
+ SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_DoubleVector'.\n"
21619
+ " Possible C/C++ prototypes are:\n"
21620
+ " std::vector< double >()\n"
21621
+ " std::vector< double >(std::vector< double > const &)\n"
21622
+ " std::vector< double >(std::vector< double >::size_type)\n"
21623
+ " std::vector< double >(std::vector< double >::size_type,std::vector< double >::value_type const &)\n");
21628
+SWIGINTERN PyObject *_wrap_DoubleVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21629
+ PyObject *resultobj = 0;
21630
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
21631
+ std::vector< double >::value_type *arg2 = 0 ;
21632
+ void *argp1 = 0 ;
21634
+ std::vector< double >::value_type temp2 ;
21637
+ PyObject * obj0 = 0 ;
21638
+ PyObject * obj1 = 0 ;
21640
+ if (!PyArg_ParseTuple(args,(char *)"OO:DoubleVector_push_back",&obj0,&obj1)) SWIG_fail;
21641
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
21642
+ if (!SWIG_IsOK(res1)) {
21643
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_push_back" "', argument " "1"" of type '" "std::vector< double > *""'");
21645
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
21646
+ ecode2 = SWIG_AsVal_double(obj1, &val2);
21647
+ if (!SWIG_IsOK(ecode2)) {
21648
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector_push_back" "', argument " "2"" of type '" "std::vector< double >::value_type""'");
21650
+ temp2 = static_cast< std::vector< double >::value_type >(val2);
21652
+ (arg1)->push_back((std::vector< double >::value_type const &)*arg2);
21653
+ resultobj = SWIG_Py_Void();
21654
+ return resultobj;
21660
+SWIGINTERN PyObject *_wrap_DoubleVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21661
+ PyObject *resultobj = 0;
21662
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
21663
+ void *argp1 = 0 ;
21665
+ PyObject * obj0 = 0 ;
21666
+ std::vector< double >::value_type *result = 0 ;
21668
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVector_front",&obj0)) SWIG_fail;
21669
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
21670
+ if (!SWIG_IsOK(res1)) {
21671
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_front" "', argument " "1"" of type '" "std::vector< double > const *""'");
21673
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
21675
+ std::vector< double >::value_type const &_result_ref = ((std::vector< double > const *)arg1)->front();
21676
+ result = (std::vector< double >::value_type *) &_result_ref;
21678
+ resultobj = SWIG_From_double(static_cast< double >(*result));
21679
+ return resultobj;
21685
+SWIGINTERN PyObject *_wrap_DoubleVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21686
+ PyObject *resultobj = 0;
21687
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
21688
+ void *argp1 = 0 ;
21690
+ PyObject * obj0 = 0 ;
21691
+ std::vector< double >::value_type *result = 0 ;
21693
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVector_back",&obj0)) SWIG_fail;
21694
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
21695
+ if (!SWIG_IsOK(res1)) {
21696
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_back" "', argument " "1"" of type '" "std::vector< double > const *""'");
21698
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
21700
+ std::vector< double >::value_type const &_result_ref = ((std::vector< double > const *)arg1)->back();
21701
+ result = (std::vector< double >::value_type *) &_result_ref;
21703
+ resultobj = SWIG_From_double(static_cast< double >(*result));
21704
+ return resultobj;
21710
+SWIGINTERN PyObject *_wrap_DoubleVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21711
+ PyObject *resultobj = 0;
21712
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
21713
+ std::vector< double >::size_type arg2 ;
21714
+ std::vector< double >::value_type *arg3 = 0 ;
21715
+ void *argp1 = 0 ;
21719
+ std::vector< double >::value_type temp3 ;
21722
+ PyObject * obj0 = 0 ;
21723
+ PyObject * obj1 = 0 ;
21724
+ PyObject * obj2 = 0 ;
21726
+ if (!PyArg_ParseTuple(args,(char *)"OOO:DoubleVector_assign",&obj0,&obj1,&obj2)) SWIG_fail;
21727
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
21728
+ if (!SWIG_IsOK(res1)) {
21729
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_assign" "', argument " "1"" of type '" "std::vector< double > *""'");
21731
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
21732
+ ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21733
+ if (!SWIG_IsOK(ecode2)) {
21734
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector_assign" "', argument " "2"" of type '" "std::vector< double >::size_type""'");
21736
+ arg2 = static_cast< std::vector< double >::size_type >(val2);
21737
+ ecode3 = SWIG_AsVal_double(obj2, &val3);
21738
+ if (!SWIG_IsOK(ecode3)) {
21739
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleVector_assign" "', argument " "3"" of type '" "std::vector< double >::value_type""'");
21741
+ temp3 = static_cast< std::vector< double >::value_type >(val3);
21743
+ (arg1)->assign(arg2,(std::vector< double >::value_type const &)*arg3);
21744
+ resultobj = SWIG_Py_Void();
21745
+ return resultobj;
21751
+SWIGINTERN PyObject *_wrap_DoubleVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21752
+ PyObject *resultobj = 0;
21753
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
21754
+ std::vector< double >::size_type arg2 ;
21755
+ std::vector< double >::value_type *arg3 = 0 ;
21756
+ void *argp1 = 0 ;
21760
+ std::vector< double >::value_type temp3 ;
21763
+ PyObject * obj0 = 0 ;
21764
+ PyObject * obj1 = 0 ;
21765
+ PyObject * obj2 = 0 ;
21767
+ if (!PyArg_ParseTuple(args,(char *)"OOO:DoubleVector_resize",&obj0,&obj1,&obj2)) SWIG_fail;
21768
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
21769
+ if (!SWIG_IsOK(res1)) {
21770
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_resize" "', argument " "1"" of type '" "std::vector< double > *""'");
21772
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
21773
+ ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21774
+ if (!SWIG_IsOK(ecode2)) {
21775
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector_resize" "', argument " "2"" of type '" "std::vector< double >::size_type""'");
21777
+ arg2 = static_cast< std::vector< double >::size_type >(val2);
21778
+ ecode3 = SWIG_AsVal_double(obj2, &val3);
21779
+ if (!SWIG_IsOK(ecode3)) {
21780
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleVector_resize" "', argument " "3"" of type '" "std::vector< double >::value_type""'");
21782
+ temp3 = static_cast< std::vector< double >::value_type >(val3);
21784
+ (arg1)->resize(arg2,(std::vector< double >::value_type const &)*arg3);
21785
+ resultobj = SWIG_Py_Void();
21786
+ return resultobj;
21792
+SWIGINTERN PyObject *_wrap_DoubleVector_resize(PyObject *self, PyObject *args) {
21794
+ PyObject *argv[4];
21797
+ if (!PyTuple_Check(args)) SWIG_fail;
21798
+ argc = (int)PyObject_Length(args);
21799
+ for (ii = 0; (ii < argc) && (ii < 3); ii++) {
21800
+ argv[ii] = PyTuple_GET_ITEM(args,ii);
21804
+ int res = swig::asptr(argv[0], (std::vector<double,std::allocator< double > >**)(0));
21805
+ _v = SWIG_CheckState(res);
21808
+ int res = SWIG_AsVal_size_t(argv[1], NULL);
21809
+ _v = SWIG_CheckState(res);
21812
+ return _wrap_DoubleVector_resize__SWIG_0(self, args);
21818
+ int res = swig::asptr(argv[0], (std::vector<double,std::allocator< double > >**)(0));
21819
+ _v = SWIG_CheckState(res);
21822
+ int res = SWIG_AsVal_size_t(argv[1], NULL);
21823
+ _v = SWIG_CheckState(res);
21827
+ int res = SWIG_AsVal_double(argv[2], NULL);
21828
+ _v = SWIG_CheckState(res);
21831
+ return _wrap_DoubleVector_resize__SWIG_1(self, args);
21838
+ SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'DoubleVector_resize'.\n"
21839
+ " Possible C/C++ prototypes are:\n"
21840
+ " resize(std::vector< double > *,std::vector< double >::size_type)\n"
21841
+ " resize(std::vector< double > *,std::vector< double >::size_type,std::vector< double >::value_type const &)\n");
21846
+SWIGINTERN PyObject *_wrap_DoubleVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21847
+ PyObject *resultobj = 0;
21848
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
21849
+ std::vector< double >::iterator arg2 ;
21850
+ std::vector< double >::value_type *arg3 = 0 ;
21851
+ void *argp1 = 0 ;
21853
+ swig::PySwigIterator *iter2 = 0 ;
21855
+ std::vector< double >::value_type temp3 ;
21858
+ PyObject * obj0 = 0 ;
21859
+ PyObject * obj1 = 0 ;
21860
+ PyObject * obj2 = 0 ;
21861
+ std::vector< double >::iterator result;
21863
+ if (!PyArg_ParseTuple(args,(char *)"OOO:DoubleVector_insert",&obj0,&obj1,&obj2)) SWIG_fail;
21864
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
21865
+ if (!SWIG_IsOK(res1)) {
21866
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_insert" "', argument " "1"" of type '" "std::vector< double > *""'");
21868
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
21869
+ res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::PySwigIterator::descriptor(), 0);
21870
+ if (!SWIG_IsOK(res2) || !iter2) {
21871
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_insert" "', argument " "2"" of type '" "std::vector< double >::iterator""'");
21873
+ swig::PySwigIterator_T<std::vector< double >::iterator > *iter_t = dynamic_cast<swig::PySwigIterator_T<std::vector< double >::iterator > *>(iter2);
21875
+ arg2 = iter_t->get_current();
21877
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_insert" "', argument " "2"" of type '" "std::vector< double >::iterator""'");
21880
+ ecode3 = SWIG_AsVal_double(obj2, &val3);
21881
+ if (!SWIG_IsOK(ecode3)) {
21882
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleVector_insert" "', argument " "3"" of type '" "std::vector< double >::value_type""'");
21884
+ temp3 = static_cast< std::vector< double >::value_type >(val3);
21886
+ result = (arg1)->insert(arg2,(std::vector< double >::value_type const &)*arg3);
21887
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< double >::iterator & >(result)),
21888
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
21889
+ return resultobj;
21895
+SWIGINTERN PyObject *_wrap_DoubleVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21896
+ PyObject *resultobj = 0;
21897
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
21898
+ std::vector< double >::iterator arg2 ;
21899
+ std::vector< double >::size_type arg3 ;
21900
+ std::vector< double >::value_type *arg4 = 0 ;
21901
+ void *argp1 = 0 ;
21903
+ swig::PySwigIterator *iter2 = 0 ;
21907
+ std::vector< double >::value_type temp4 ;
21910
+ PyObject * obj0 = 0 ;
21911
+ PyObject * obj1 = 0 ;
21912
+ PyObject * obj2 = 0 ;
21913
+ PyObject * obj3 = 0 ;
21915
+ if (!PyArg_ParseTuple(args,(char *)"OOOO:DoubleVector_insert",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21916
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
21917
+ if (!SWIG_IsOK(res1)) {
21918
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_insert" "', argument " "1"" of type '" "std::vector< double > *""'");
21920
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
21921
+ res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::PySwigIterator::descriptor(), 0);
21922
+ if (!SWIG_IsOK(res2) || !iter2) {
21923
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_insert" "', argument " "2"" of type '" "std::vector< double >::iterator""'");
21925
+ swig::PySwigIterator_T<std::vector< double >::iterator > *iter_t = dynamic_cast<swig::PySwigIterator_T<std::vector< double >::iterator > *>(iter2);
21927
+ arg2 = iter_t->get_current();
21929
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVector_insert" "', argument " "2"" of type '" "std::vector< double >::iterator""'");
21932
+ ecode3 = SWIG_AsVal_size_t(obj2, &val3);
21933
+ if (!SWIG_IsOK(ecode3)) {
21934
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DoubleVector_insert" "', argument " "3"" of type '" "std::vector< double >::size_type""'");
21936
+ arg3 = static_cast< std::vector< double >::size_type >(val3);
21937
+ ecode4 = SWIG_AsVal_double(obj3, &val4);
21938
+ if (!SWIG_IsOK(ecode4)) {
21939
+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DoubleVector_insert" "', argument " "4"" of type '" "std::vector< double >::value_type""'");
21941
+ temp4 = static_cast< std::vector< double >::value_type >(val4);
21943
+ (arg1)->insert(arg2,arg3,(std::vector< double >::value_type const &)*arg4);
21944
+ resultobj = SWIG_Py_Void();
21945
+ return resultobj;
21951
+SWIGINTERN PyObject *_wrap_DoubleVector_insert(PyObject *self, PyObject *args) {
21953
+ PyObject *argv[5];
21956
+ if (!PyTuple_Check(args)) SWIG_fail;
21957
+ argc = (int)PyObject_Length(args);
21958
+ for (ii = 0; (ii < argc) && (ii < 4); ii++) {
21959
+ argv[ii] = PyTuple_GET_ITEM(args,ii);
21963
+ int res = swig::asptr(argv[0], (std::vector<double,std::allocator< double > >**)(0));
21964
+ _v = SWIG_CheckState(res);
21966
+ swig::PySwigIterator *iter = 0;
21967
+ int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::PySwigIterator::descriptor(), 0);
21968
+ _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::PySwigIterator_T<std::vector< double >::iterator > *>(iter) != 0));
21971
+ int res = SWIG_AsVal_double(argv[2], NULL);
21972
+ _v = SWIG_CheckState(res);
21975
+ return _wrap_DoubleVector_insert__SWIG_0(self, args);
21982
+ int res = swig::asptr(argv[0], (std::vector<double,std::allocator< double > >**)(0));
21983
+ _v = SWIG_CheckState(res);
21985
+ swig::PySwigIterator *iter = 0;
21986
+ int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::PySwigIterator::descriptor(), 0);
21987
+ _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::PySwigIterator_T<std::vector< double >::iterator > *>(iter) != 0));
21990
+ int res = SWIG_AsVal_size_t(argv[2], NULL);
21991
+ _v = SWIG_CheckState(res);
21995
+ int res = SWIG_AsVal_double(argv[3], NULL);
21996
+ _v = SWIG_CheckState(res);
21999
+ return _wrap_DoubleVector_insert__SWIG_1(self, args);
22007
+ SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'DoubleVector_insert'.\n"
22008
+ " Possible C/C++ prototypes are:\n"
22009
+ " insert(std::vector< double > *,std::vector< double >::iterator,std::vector< double >::value_type const &)\n"
22010
+ " insert(std::vector< double > *,std::vector< double >::iterator,std::vector< double >::size_type,std::vector< double >::value_type const &)\n");
22015
+SWIGINTERN PyObject *_wrap_DoubleVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22016
+ PyObject *resultobj = 0;
22017
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
22018
+ std::vector< double >::size_type arg2 ;
22019
+ void *argp1 = 0 ;
22023
+ PyObject * obj0 = 0 ;
22024
+ PyObject * obj1 = 0 ;
22026
+ if (!PyArg_ParseTuple(args,(char *)"OO:DoubleVector_reserve",&obj0,&obj1)) SWIG_fail;
22027
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
22028
+ if (!SWIG_IsOK(res1)) {
22029
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_reserve" "', argument " "1"" of type '" "std::vector< double > *""'");
22031
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
22032
+ ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22033
+ if (!SWIG_IsOK(ecode2)) {
22034
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVector_reserve" "', argument " "2"" of type '" "std::vector< double >::size_type""'");
22036
+ arg2 = static_cast< std::vector< double >::size_type >(val2);
22037
+ (arg1)->reserve(arg2);
22038
+ resultobj = SWIG_Py_Void();
22039
+ return resultobj;
22045
+SWIGINTERN PyObject *_wrap_DoubleVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22046
+ PyObject *resultobj = 0;
22047
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
22048
+ void *argp1 = 0 ;
22050
+ PyObject * obj0 = 0 ;
22051
+ std::vector< double >::size_type result;
22053
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVector_capacity",&obj0)) SWIG_fail;
22054
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, 0 | 0 );
22055
+ if (!SWIG_IsOK(res1)) {
22056
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVector_capacity" "', argument " "1"" of type '" "std::vector< double > const *""'");
22058
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
22059
+ result = ((std::vector< double > const *)arg1)->capacity();
22060
+ resultobj = SWIG_From_size_t(static_cast< size_t >(result));
22061
+ return resultobj;
22067
+SWIGINTERN PyObject *_wrap_delete_DoubleVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22068
+ PyObject *resultobj = 0;
22069
+ std::vector< double > *arg1 = (std::vector< double > *) 0 ;
22070
+ void *argp1 = 0 ;
22072
+ PyObject * obj0 = 0 ;
22074
+ if (!PyArg_ParseTuple(args,(char *)"O:delete_DoubleVector",&obj0)) SWIG_fail;
22075
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_POINTER_DISOWN | 0 );
22076
+ if (!SWIG_IsOK(res1)) {
22077
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DoubleVector" "', argument " "1"" of type '" "std::vector< double > *""'");
22079
+ arg1 = reinterpret_cast< std::vector< double > * >(argp1);
22081
+ resultobj = SWIG_Py_Void();
22082
+ return resultobj;
22088
+SWIGINTERN PyObject *DoubleVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22090
+ if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
22091
+ SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t, SWIG_NewClientData(obj));
22092
+ return SWIG_Py_Void();
22095
+SWIGINTERN PyObject *_wrap_new_IntVecIntMap__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22096
+ PyObject *resultobj = 0;
22097
+ std::less< int > *arg1 = 0 ;
22098
+ void *argp1 = 0 ;
22100
+ PyObject * obj0 = 0 ;
22101
+ std::map< int,std::vector< int > > *result = 0 ;
22103
+ if (!PyArg_ParseTuple(args,(char *)"O:new_IntVecIntMap",&obj0)) SWIG_fail;
22104
+ res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__lessT_int_t, 0 | 0);
22105
+ if (!SWIG_IsOK(res1)) {
22106
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IntVecIntMap" "', argument " "1"" of type '" "std::less< int > const &""'");
22109
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IntVecIntMap" "', argument " "1"" of type '" "std::less< int > const &""'");
22111
+ arg1 = reinterpret_cast< std::less< int > * >(argp1);
22112
+ result = (std::map< int,std::vector< int > > *)new std::map< int,std::vector< int > >((std::less< int > const &)*arg1);
22113
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, SWIG_POINTER_NEW | 0 );
22114
+ return resultobj;
22120
+SWIGINTERN PyObject *_wrap_IntVecIntMap_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22121
+ PyObject *resultobj = 0;
22122
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
22123
+ PyObject **arg2 = (PyObject **) 0 ;
22124
+ void *argp1 = 0 ;
22126
+ PyObject * obj0 = 0 ;
22127
+ swig::PySwigIterator *result = 0 ;
22130
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVecIntMap_iterator",&obj0)) SWIG_fail;
22131
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
22132
+ if (!SWIG_IsOK(res1)) {
22133
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_iterator" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
22135
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
22136
+ result = (swig::PySwigIterator *)std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg__iterator(arg1,arg2);
22137
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_OWN | 0 );
22138
+ return resultobj;
22144
+SWIGINTERN PyObject *_wrap_IntVecIntMap___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22145
+ PyObject *resultobj = 0;
22146
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
22147
+ void *argp1 = 0 ;
22149
+ PyObject * obj0 = 0 ;
22152
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVecIntMap___nonzero__",&obj0)) SWIG_fail;
22153
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
22154
+ if (!SWIG_IsOK(res1)) {
22155
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap___nonzero__" "', argument " "1"" of type '" "std::map< int,std::vector< int > > const *""'");
22157
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
22158
+ result = (bool)std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg____nonzero__((std::map< int,std::vector< int > > const *)arg1);
22159
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
22160
+ return resultobj;
22166
+SWIGINTERN PyObject *_wrap_IntVecIntMap___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22167
+ PyObject *resultobj = 0;
22168
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
22169
+ void *argp1 = 0 ;
22171
+ PyObject * obj0 = 0 ;
22172
+ std::map< int,std::vector< int > >::size_type result;
22174
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVecIntMap___len__",&obj0)) SWIG_fail;
22175
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
22176
+ if (!SWIG_IsOK(res1)) {
22177
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap___len__" "', argument " "1"" of type '" "std::map< int,std::vector< int > > const *""'");
22179
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
22180
+ result = std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg____len__((std::map< int,std::vector< int > > const *)arg1);
22181
+ resultobj = SWIG_From_size_t(static_cast< size_t >(result));
22182
+ return resultobj;
22188
+SWIGINTERN PyObject *_wrap_IntVecIntMap___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22189
+ PyObject *resultobj = 0;
22190
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
22191
+ std::map< int,std::vector< int > >::key_type *arg2 = 0 ;
22192
+ void *argp1 = 0 ;
22194
+ std::map< int,std::vector< int > >::key_type temp2 ;
22197
+ PyObject * obj0 = 0 ;
22198
+ PyObject * obj1 = 0 ;
22199
+ std::map< int,std::vector< int > >::mapped_type result;
22201
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVecIntMap___getitem__",&obj0,&obj1)) SWIG_fail;
22202
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
22203
+ if (!SWIG_IsOK(res1)) {
22204
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap___getitem__" "', argument " "1"" of type '" "std::map< int,std::vector< int > > const *""'");
22206
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
22207
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
22208
+ if (!SWIG_IsOK(ecode2)) {
22209
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVecIntMap___getitem__" "', argument " "2"" of type '" "std::map< int,std::vector< int > >::key_type""'");
22211
+ temp2 = static_cast< std::map< int,std::vector< int > >::key_type >(val2);
22214
+ result = std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg____getitem__((std::map< int,std::vector< int > > const *)arg1,(int const &)*arg2);
22216
+ catch(std::out_of_range &_e) {
22217
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
22220
+ resultobj = swig::from(static_cast< std::vector<int,std::allocator< int > > >(result));
22221
+ return resultobj;
22227
+SWIGINTERN PyObject *_wrap_IntVecIntMap___delitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22228
+ PyObject *resultobj = 0;
22229
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
22230
+ std::map< int,std::vector< int > >::key_type *arg2 = 0 ;
22231
+ void *argp1 = 0 ;
22233
+ std::map< int,std::vector< int > >::key_type temp2 ;
22236
+ PyObject * obj0 = 0 ;
22237
+ PyObject * obj1 = 0 ;
22239
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVecIntMap___delitem__",&obj0,&obj1)) SWIG_fail;
22240
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
22241
+ if (!SWIG_IsOK(res1)) {
22242
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap___delitem__" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
22244
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
22245
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
22246
+ if (!SWIG_IsOK(ecode2)) {
22247
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVecIntMap___delitem__" "', argument " "2"" of type '" "std::map< int,std::vector< int > >::key_type""'");
22249
+ temp2 = static_cast< std::map< int,std::vector< int > >::key_type >(val2);
22252
+ std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg____delitem__(arg1,(int const &)*arg2);
22254
+ catch(std::out_of_range &_e) {
22255
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
22258
+ resultobj = SWIG_Py_Void();
22259
+ return resultobj;
22265
+SWIGINTERN PyObject *_wrap_IntVecIntMap_has_key(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22266
+ PyObject *resultobj = 0;
22267
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
22268
+ std::map< int,std::vector< int > >::key_type *arg2 = 0 ;
22269
+ void *argp1 = 0 ;
22271
+ std::map< int,std::vector< int > >::key_type temp2 ;
22274
+ PyObject * obj0 = 0 ;
22275
+ PyObject * obj1 = 0 ;
22278
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVecIntMap_has_key",&obj0,&obj1)) SWIG_fail;
22279
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
22280
+ if (!SWIG_IsOK(res1)) {
22281
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_has_key" "', argument " "1"" of type '" "std::map< int,std::vector< int > > const *""'");
22283
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
22284
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
22285
+ if (!SWIG_IsOK(ecode2)) {
22286
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVecIntMap_has_key" "', argument " "2"" of type '" "std::map< int,std::vector< int > >::key_type""'");
22288
+ temp2 = static_cast< std::map< int,std::vector< int > >::key_type >(val2);
22290
+ result = (bool)std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg__has_key((std::map< int,std::vector< int > > const *)arg1,(int const &)*arg2);
22291
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
22292
+ return resultobj;
22298
+SWIGINTERN PyObject *_wrap_IntVecIntMap_keys(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22299
+ PyObject *resultobj = 0;
22300
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
22301
+ void *argp1 = 0 ;
22303
+ PyObject * obj0 = 0 ;
22304
+ PyObject *result = 0 ;
22306
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVecIntMap_keys",&obj0)) SWIG_fail;
22307
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
22308
+ if (!SWIG_IsOK(res1)) {
22309
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_keys" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
22311
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
22312
+ result = (PyObject *)std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg__keys(arg1);
22313
+ resultobj = result;
22314
+ return resultobj;
22320
+SWIGINTERN PyObject *_wrap_IntVecIntMap_values(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22321
+ PyObject *resultobj = 0;
22322
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
22323
+ void *argp1 = 0 ;
22325
+ PyObject * obj0 = 0 ;
22326
+ PyObject *result = 0 ;
22328
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVecIntMap_values",&obj0)) SWIG_fail;
22329
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
22330
+ if (!SWIG_IsOK(res1)) {
22331
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_values" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
22333
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
22334
+ result = (PyObject *)std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg__values(arg1);
22335
+ resultobj = result;
22336
+ return resultobj;
22342
+SWIGINTERN PyObject *_wrap_IntVecIntMap_items(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22343
+ PyObject *resultobj = 0;
22344
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
22345
+ void *argp1 = 0 ;
22347
+ PyObject * obj0 = 0 ;
22348
+ PyObject *result = 0 ;
22350
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVecIntMap_items",&obj0)) SWIG_fail;
22351
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
22352
+ if (!SWIG_IsOK(res1)) {
22353
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_items" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
22355
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
22356
+ result = (PyObject *)std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg__items(arg1);
22357
+ resultobj = result;
22358
+ return resultobj;
22364
+SWIGINTERN PyObject *_wrap_IntVecIntMap___contains__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22365
+ PyObject *resultobj = 0;
22366
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
22367
+ std::map< int,std::vector< int > >::key_type *arg2 = 0 ;
22368
+ void *argp1 = 0 ;
22370
+ std::map< int,std::vector< int > >::key_type temp2 ;
22373
+ PyObject * obj0 = 0 ;
22374
+ PyObject * obj1 = 0 ;
22377
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVecIntMap___contains__",&obj0,&obj1)) SWIG_fail;
22378
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
22379
+ if (!SWIG_IsOK(res1)) {
22380
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap___contains__" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
22382
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
22383
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
22384
+ if (!SWIG_IsOK(ecode2)) {
22385
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVecIntMap___contains__" "', argument " "2"" of type '" "std::map< int,std::vector< int > >::key_type""'");
22387
+ temp2 = static_cast< std::map< int,std::vector< int > >::key_type >(val2);
22389
+ result = (bool)std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg____contains__(arg1,(int const &)*arg2);
22390
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
22391
+ return resultobj;
22397
+SWIGINTERN PyObject *_wrap_IntVecIntMap_key_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22398
+ PyObject *resultobj = 0;
22399
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
22400
+ PyObject **arg2 = (PyObject **) 0 ;
22401
+ void *argp1 = 0 ;
22403
+ PyObject * obj0 = 0 ;
22404
+ swig::PySwigIterator *result = 0 ;
22407
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVecIntMap_key_iterator",&obj0)) SWIG_fail;
22408
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
22409
+ if (!SWIG_IsOK(res1)) {
22410
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_key_iterator" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
22412
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
22413
+ result = (swig::PySwigIterator *)std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg__key_iterator(arg1,arg2);
22414
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_OWN | 0 );
22415
+ return resultobj;
22421
+SWIGINTERN PyObject *_wrap_IntVecIntMap_value_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22422
+ PyObject *resultobj = 0;
22423
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
22424
+ PyObject **arg2 = (PyObject **) 0 ;
22425
+ void *argp1 = 0 ;
22427
+ PyObject * obj0 = 0 ;
22428
+ swig::PySwigIterator *result = 0 ;
22431
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVecIntMap_value_iterator",&obj0)) SWIG_fail;
22432
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
22433
+ if (!SWIG_IsOK(res1)) {
22434
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_value_iterator" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
22436
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
22437
+ result = (swig::PySwigIterator *)std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg__value_iterator(arg1,arg2);
22438
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_OWN | 0 );
22439
+ return resultobj;
22445
+SWIGINTERN PyObject *_wrap_IntVecIntMap___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22446
+ PyObject *resultobj = 0;
22447
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
22448
+ std::map< int,std::vector< int > >::key_type *arg2 = 0 ;
22449
+ std::map< int,std::vector< int > >::mapped_type *arg3 = 0 ;
22450
+ void *argp1 = 0 ;
22452
+ std::map< int,std::vector< int > >::key_type temp2 ;
22455
+ int res3 = SWIG_OLDOBJ ;
22456
+ PyObject * obj0 = 0 ;
22457
+ PyObject * obj1 = 0 ;
22458
+ PyObject * obj2 = 0 ;
22460
+ if (!PyArg_ParseTuple(args,(char *)"OOO:IntVecIntMap___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
22461
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
22462
+ if (!SWIG_IsOK(res1)) {
22463
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap___setitem__" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
22465
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
22466
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
22467
+ if (!SWIG_IsOK(ecode2)) {
22468
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVecIntMap___setitem__" "', argument " "2"" of type '" "std::map< int,std::vector< int > >::key_type""'");
22470
+ temp2 = static_cast< std::map< int,std::vector< int > >::key_type >(val2);
22473
+ std::vector<int,std::allocator< int > > *ptr = (std::vector<int,std::allocator< int > > *)0;
22474
+ res3 = swig::asptr(obj2, &ptr);
22475
+ if (!SWIG_IsOK(res3)) {
22476
+ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IntVecIntMap___setitem__" "', argument " "3"" of type '" "std::map< int,std::vector< int > >::mapped_type const &""'");
22479
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntVecIntMap___setitem__" "', argument " "3"" of type '" "std::map< int,std::vector< int > >::mapped_type const &""'");
22484
+ std_map_Sl_int_Sc_std_vector_Sl_int_Sg__Sg____setitem__(arg1,(int const &)*arg2,(std::vector< int,std::allocator< int > > const &)*arg3);
22486
+ catch(std::out_of_range &_e) {
22487
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
22490
+ resultobj = SWIG_Py_Void();
22491
+ if (SWIG_IsNewObj(res3)) delete arg3;
22492
+ return resultobj;
22494
+ if (SWIG_IsNewObj(res3)) delete arg3;
22499
+SWIGINTERN PyObject *_wrap_new_IntVecIntMap__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22500
+ PyObject *resultobj = 0;
22501
+ std::map< int,std::vector< int > > *result = 0 ;
22503
+ if (!PyArg_ParseTuple(args,(char *)":new_IntVecIntMap")) SWIG_fail;
22504
+ result = (std::map< int,std::vector< int > > *)new std::map< int,std::vector< int > >();
22505
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, SWIG_POINTER_NEW | 0 );
22506
+ return resultobj;
22512
+SWIGINTERN PyObject *_wrap_new_IntVecIntMap__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22513
+ PyObject *resultobj = 0;
22514
+ std::map< int,std::vector< int,std::allocator< int > > > *arg1 = 0 ;
22515
+ int res1 = SWIG_OLDOBJ ;
22516
+ PyObject * obj0 = 0 ;
22517
+ std::map< int,std::vector< int > > *result = 0 ;
22519
+ if (!PyArg_ParseTuple(args,(char *)"O:new_IntVecIntMap",&obj0)) SWIG_fail;
22521
+ std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > > *ptr = (std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > > *)0;
22522
+ res1 = swig::asptr(obj0, &ptr);
22523
+ if (!SWIG_IsOK(res1)) {
22524
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IntVecIntMap" "', argument " "1"" of type '" "std::map< int,std::vector< int,std::allocator< int > > > const &""'");
22527
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IntVecIntMap" "', argument " "1"" of type '" "std::map< int,std::vector< int,std::allocator< int > > > const &""'");
22531
+ result = (std::map< int,std::vector< int > > *)new std::map< int,std::vector< int > >((std::map< int,std::vector< int,std::allocator< int > > > const &)*arg1);
22532
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, SWIG_POINTER_NEW | 0 );
22533
+ if (SWIG_IsNewObj(res1)) delete arg1;
22534
+ return resultobj;
22536
+ if (SWIG_IsNewObj(res1)) delete arg1;
22541
+SWIGINTERN PyObject *_wrap_new_IntVecIntMap(PyObject *self, PyObject *args) {
22543
+ PyObject *argv[2];
22546
+ if (!PyTuple_Check(args)) SWIG_fail;
22547
+ argc = (int)PyObject_Length(args);
22548
+ for (ii = 0; (ii < argc) && (ii < 1); ii++) {
22549
+ argv[ii] = PyTuple_GET_ITEM(args,ii);
22552
+ return _wrap_new_IntVecIntMap__SWIG_1(self, args);
22556
+ int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__lessT_int_t, 0);
22557
+ _v = SWIG_CheckState(res);
22559
+ return _wrap_new_IntVecIntMap__SWIG_0(self, args);
22564
+ int res = swig::asptr(argv[0], (std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > >**)(0));
22565
+ _v = SWIG_CheckState(res);
22567
+ return _wrap_new_IntVecIntMap__SWIG_2(self, args);
22572
+ SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_IntVecIntMap'.\n"
22573
+ " Possible C/C++ prototypes are:\n"
22574
+ " std::map< int,std::vector< int > >(std::less< int > const &)\n"
22575
+ " std::map< int,std::vector< int > >()\n"
22576
+ " std::map< int,std::vector< int > >(std::map< int,std::vector< int,std::allocator< int > > > const &)\n");
22581
+SWIGINTERN PyObject *_wrap_IntVecIntMap_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22582
+ PyObject *resultobj = 0;
22583
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
22584
+ void *argp1 = 0 ;
22586
+ PyObject * obj0 = 0 ;
22589
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVecIntMap_empty",&obj0)) SWIG_fail;
22590
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
22591
+ if (!SWIG_IsOK(res1)) {
22592
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_empty" "', argument " "1"" of type '" "std::map< int,std::vector< int > > const *""'");
22594
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
22595
+ result = (bool)((std::map< int,std::vector< int > > const *)arg1)->empty();
22596
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
22597
+ return resultobj;
22603
+SWIGINTERN PyObject *_wrap_IntVecIntMap_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22604
+ PyObject *resultobj = 0;
22605
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
22606
+ void *argp1 = 0 ;
22608
+ PyObject * obj0 = 0 ;
22609
+ std::map< int,std::vector< int > >::size_type result;
22611
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVecIntMap_size",&obj0)) SWIG_fail;
22612
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
22613
+ if (!SWIG_IsOK(res1)) {
22614
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_size" "', argument " "1"" of type '" "std::map< int,std::vector< int > > const *""'");
22616
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
22617
+ result = ((std::map< int,std::vector< int > > const *)arg1)->size();
22618
+ resultobj = SWIG_From_size_t(static_cast< size_t >(result));
22619
+ return resultobj;
22625
+SWIGINTERN PyObject *_wrap_IntVecIntMap_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22626
+ PyObject *resultobj = 0;
22627
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
22628
+ void *argp1 = 0 ;
22630
+ PyObject * obj0 = 0 ;
22632
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVecIntMap_clear",&obj0)) SWIG_fail;
22633
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
22634
+ if (!SWIG_IsOK(res1)) {
22635
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_clear" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
22637
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
22639
+ resultobj = SWIG_Py_Void();
22640
+ return resultobj;
22646
+SWIGINTERN PyObject *_wrap_IntVecIntMap_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22647
+ PyObject *resultobj = 0;
22648
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
22649
+ std::map< int,std::vector< int,std::allocator< int > > > *arg2 = 0 ;
22650
+ void *argp1 = 0 ;
22652
+ void *argp2 = 0 ;
22654
+ PyObject * obj0 = 0 ;
22655
+ PyObject * obj1 = 0 ;
22657
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVecIntMap_swap",&obj0,&obj1)) SWIG_fail;
22658
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
22659
+ if (!SWIG_IsOK(res1)) {
22660
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_swap" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
22662
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
22663
+ res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 );
22664
+ if (!SWIG_IsOK(res2)) {
22665
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntVecIntMap_swap" "', argument " "2"" of type '" "std::map< int,std::vector< int,std::allocator< int > > > &""'");
22668
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IntVecIntMap_swap" "', argument " "2"" of type '" "std::map< int,std::vector< int,std::allocator< int > > > &""'");
22670
+ arg2 = reinterpret_cast< std::map< int,std::vector< int,std::allocator< int > > > * >(argp2);
22671
+ (arg1)->swap(*arg2);
22672
+ resultobj = SWIG_Py_Void();
22673
+ return resultobj;
22679
+SWIGINTERN PyObject *_wrap_IntVecIntMap_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22680
+ PyObject *resultobj = 0;
22681
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
22682
+ void *argp1 = 0 ;
22684
+ PyObject * obj0 = 0 ;
22685
+ SwigValueWrapper< std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > > result;
22687
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVecIntMap_get_allocator",&obj0)) SWIG_fail;
22688
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
22689
+ if (!SWIG_IsOK(res1)) {
22690
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_get_allocator" "', argument " "1"" of type '" "std::map< int,std::vector< int > > const *""'");
22692
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
22693
+ result = ((std::map< int,std::vector< int > > const *)arg1)->get_allocator();
22694
+ resultobj = SWIG_NewPointerObj((new std::map< int,std::vector< int > >::allocator_type(static_cast< const std::map< int,std::vector< int > >::allocator_type& >(result))), SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t__allocator_type, SWIG_POINTER_OWN | 0 );
22695
+ return resultobj;
22701
+SWIGINTERN PyObject *_wrap_IntVecIntMap_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22702
+ PyObject *resultobj = 0;
22703
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
22704
+ void *argp1 = 0 ;
22706
+ PyObject * obj0 = 0 ;
22707
+ std::map< int,std::vector< int > >::const_iterator result;
22709
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVecIntMap_begin",&obj0)) SWIG_fail;
22710
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
22711
+ if (!SWIG_IsOK(res1)) {
22712
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_begin" "', argument " "1"" of type '" "std::map< int,std::vector< int > > const *""'");
22714
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
22715
+ result = ((std::map< int,std::vector< int > > const *)arg1)->begin();
22716
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< int,std::vector< int > >::const_iterator & >(result)),
22717
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
22718
+ return resultobj;
22724
+SWIGINTERN PyObject *_wrap_IntVecIntMap_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22725
+ PyObject *resultobj = 0;
22726
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
22727
+ void *argp1 = 0 ;
22729
+ PyObject * obj0 = 0 ;
22730
+ std::map< int,std::vector< int > >::const_iterator result;
22732
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVecIntMap_end",&obj0)) SWIG_fail;
22733
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
22734
+ if (!SWIG_IsOK(res1)) {
22735
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_end" "', argument " "1"" of type '" "std::map< int,std::vector< int > > const *""'");
22737
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
22738
+ result = ((std::map< int,std::vector< int > > const *)arg1)->end();
22739
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< int,std::vector< int > >::const_iterator & >(result)),
22740
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
22741
+ return resultobj;
22747
+SWIGINTERN PyObject *_wrap_IntVecIntMap_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22748
+ PyObject *resultobj = 0;
22749
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
22750
+ void *argp1 = 0 ;
22752
+ PyObject * obj0 = 0 ;
22753
+ std::map< int,std::vector< int > >::const_reverse_iterator result;
22755
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVecIntMap_rbegin",&obj0)) SWIG_fail;
22756
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
22757
+ if (!SWIG_IsOK(res1)) {
22758
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_rbegin" "', argument " "1"" of type '" "std::map< int,std::vector< int > > const *""'");
22760
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
22761
+ result = ((std::map< int,std::vector< int > > const *)arg1)->rbegin();
22762
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< int,std::vector< int > >::const_reverse_iterator & >(result)),
22763
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
22764
+ return resultobj;
22770
+SWIGINTERN PyObject *_wrap_IntVecIntMap_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22771
+ PyObject *resultobj = 0;
22772
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
22773
+ void *argp1 = 0 ;
22775
+ PyObject * obj0 = 0 ;
22776
+ std::map< int,std::vector< int > >::const_reverse_iterator result;
22778
+ if (!PyArg_ParseTuple(args,(char *)"O:IntVecIntMap_rend",&obj0)) SWIG_fail;
22779
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
22780
+ if (!SWIG_IsOK(res1)) {
22781
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_rend" "', argument " "1"" of type '" "std::map< int,std::vector< int > > const *""'");
22783
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
22784
+ result = ((std::map< int,std::vector< int > > const *)arg1)->rend();
22785
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< int,std::vector< int > >::const_reverse_iterator & >(result)),
22786
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
22787
+ return resultobj;
22793
+SWIGINTERN PyObject *_wrap_IntVecIntMap_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22794
+ PyObject *resultobj = 0;
22795
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
22796
+ std::map< int,std::vector< int > >::key_type *arg2 = 0 ;
22797
+ void *argp1 = 0 ;
22799
+ std::map< int,std::vector< int > >::key_type temp2 ;
22802
+ PyObject * obj0 = 0 ;
22803
+ PyObject * obj1 = 0 ;
22804
+ std::map< int,std::vector< int > >::size_type result;
22806
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVecIntMap_erase",&obj0,&obj1)) SWIG_fail;
22807
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
22808
+ if (!SWIG_IsOK(res1)) {
22809
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_erase" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
22811
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
22812
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
22813
+ if (!SWIG_IsOK(ecode2)) {
22814
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVecIntMap_erase" "', argument " "2"" of type '" "std::map< int,std::vector< int > >::key_type""'");
22816
+ temp2 = static_cast< std::map< int,std::vector< int > >::key_type >(val2);
22818
+ result = (arg1)->erase((std::map< int,std::vector< int > >::key_type const &)*arg2);
22819
+ resultobj = SWIG_From_size_t(static_cast< size_t >(result));
22820
+ return resultobj;
22826
+SWIGINTERN PyObject *_wrap_IntVecIntMap_count(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22827
+ PyObject *resultobj = 0;
22828
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
22829
+ std::map< int,std::vector< int > >::key_type *arg2 = 0 ;
22830
+ void *argp1 = 0 ;
22832
+ std::map< int,std::vector< int > >::key_type temp2 ;
22835
+ PyObject * obj0 = 0 ;
22836
+ PyObject * obj1 = 0 ;
22837
+ std::map< int,std::vector< int > >::size_type result;
22839
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVecIntMap_count",&obj0,&obj1)) SWIG_fail;
22840
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
22841
+ if (!SWIG_IsOK(res1)) {
22842
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_count" "', argument " "1"" of type '" "std::map< int,std::vector< int > > const *""'");
22844
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
22845
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
22846
+ if (!SWIG_IsOK(ecode2)) {
22847
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVecIntMap_count" "', argument " "2"" of type '" "std::map< int,std::vector< int > >::key_type""'");
22849
+ temp2 = static_cast< std::map< int,std::vector< int > >::key_type >(val2);
22851
+ result = ((std::map< int,std::vector< int > > const *)arg1)->count((std::map< int,std::vector< int > >::key_type const &)*arg2);
22852
+ resultobj = SWIG_From_size_t(static_cast< size_t >(result));
22853
+ return resultobj;
22859
+SWIGINTERN PyObject *_wrap_IntVecIntMap_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22860
+ PyObject *resultobj = 0;
22861
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
22862
+ std::map< int,std::vector< int > >::iterator arg2 ;
22863
+ void *argp1 = 0 ;
22865
+ swig::PySwigIterator *iter2 = 0 ;
22867
+ PyObject * obj0 = 0 ;
22868
+ PyObject * obj1 = 0 ;
22870
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVecIntMap_erase",&obj0,&obj1)) SWIG_fail;
22871
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
22872
+ if (!SWIG_IsOK(res1)) {
22873
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_erase" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
22875
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
22876
+ res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::PySwigIterator::descriptor(), 0);
22877
+ if (!SWIG_IsOK(res2) || !iter2) {
22878
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVecIntMap_erase" "', argument " "2"" of type '" "std::map< int,std::vector< int > >::iterator""'");
22880
+ swig::PySwigIterator_T<std::map< int,std::vector< int > >::iterator > *iter_t = dynamic_cast<swig::PySwigIterator_T<std::map< int,std::vector< int > >::iterator > *>(iter2);
22882
+ arg2 = iter_t->get_current();
22884
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVecIntMap_erase" "', argument " "2"" of type '" "std::map< int,std::vector< int > >::iterator""'");
22887
+ (arg1)->erase(arg2);
22888
+ resultobj = SWIG_Py_Void();
22889
+ return resultobj;
22895
+SWIGINTERN PyObject *_wrap_IntVecIntMap_erase__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22896
+ PyObject *resultobj = 0;
22897
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
22898
+ std::map< int,std::vector< int > >::iterator arg2 ;
22899
+ std::map< int,std::vector< int > >::iterator arg3 ;
22900
+ void *argp1 = 0 ;
22902
+ swig::PySwigIterator *iter2 = 0 ;
22904
+ swig::PySwigIterator *iter3 = 0 ;
22906
+ PyObject * obj0 = 0 ;
22907
+ PyObject * obj1 = 0 ;
22908
+ PyObject * obj2 = 0 ;
22910
+ if (!PyArg_ParseTuple(args,(char *)"OOO:IntVecIntMap_erase",&obj0,&obj1,&obj2)) SWIG_fail;
22911
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
22912
+ if (!SWIG_IsOK(res1)) {
22913
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_erase" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
22915
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
22916
+ res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::PySwigIterator::descriptor(), 0);
22917
+ if (!SWIG_IsOK(res2) || !iter2) {
22918
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVecIntMap_erase" "', argument " "2"" of type '" "std::map< int,std::vector< int > >::iterator""'");
22920
+ swig::PySwigIterator_T<std::map< int,std::vector< int > >::iterator > *iter_t = dynamic_cast<swig::PySwigIterator_T<std::map< int,std::vector< int > >::iterator > *>(iter2);
22922
+ arg2 = iter_t->get_current();
22924
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVecIntMap_erase" "', argument " "2"" of type '" "std::map< int,std::vector< int > >::iterator""'");
22927
+ res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::PySwigIterator::descriptor(), 0);
22928
+ if (!SWIG_IsOK(res3) || !iter3) {
22929
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVecIntMap_erase" "', argument " "3"" of type '" "std::map< int,std::vector< int > >::iterator""'");
22931
+ swig::PySwigIterator_T<std::map< int,std::vector< int > >::iterator > *iter_t = dynamic_cast<swig::PySwigIterator_T<std::map< int,std::vector< int > >::iterator > *>(iter3);
22933
+ arg3 = iter_t->get_current();
22935
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "IntVecIntMap_erase" "', argument " "3"" of type '" "std::map< int,std::vector< int > >::iterator""'");
22938
+ (arg1)->erase(arg2,arg3);
22939
+ resultobj = SWIG_Py_Void();
22940
+ return resultobj;
22946
+SWIGINTERN PyObject *_wrap_IntVecIntMap_erase(PyObject *self, PyObject *args) {
22948
+ PyObject *argv[4];
22951
+ if (!PyTuple_Check(args)) SWIG_fail;
22952
+ argc = (int)PyObject_Length(args);
22953
+ for (ii = 0; (ii < argc) && (ii < 3); ii++) {
22954
+ argv[ii] = PyTuple_GET_ITEM(args,ii);
22958
+ int res = swig::asptr(argv[0], (std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > >**)(0));
22959
+ _v = SWIG_CheckState(res);
22961
+ swig::PySwigIterator *iter = 0;
22962
+ int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::PySwigIterator::descriptor(), 0);
22963
+ _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::PySwigIterator_T<std::map< int,std::vector< int > >::iterator > *>(iter) != 0));
22965
+ return _wrap_IntVecIntMap_erase__SWIG_1(self, args);
22971
+ int res = swig::asptr(argv[0], (std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > >**)(0));
22972
+ _v = SWIG_CheckState(res);
22975
+ int res = SWIG_AsVal_int(argv[1], NULL);
22976
+ _v = SWIG_CheckState(res);
22979
+ return _wrap_IntVecIntMap_erase__SWIG_0(self, args);
22985
+ int res = swig::asptr(argv[0], (std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > >**)(0));
22986
+ _v = SWIG_CheckState(res);
22988
+ swig::PySwigIterator *iter = 0;
22989
+ int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::PySwigIterator::descriptor(), 0);
22990
+ _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::PySwigIterator_T<std::map< int,std::vector< int > >::iterator > *>(iter) != 0));
22992
+ swig::PySwigIterator *iter = 0;
22993
+ int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::PySwigIterator::descriptor(), 0);
22994
+ _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::PySwigIterator_T<std::map< int,std::vector< int > >::iterator > *>(iter) != 0));
22996
+ return _wrap_IntVecIntMap_erase__SWIG_2(self, args);
23003
+ SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IntVecIntMap_erase'.\n"
23004
+ " Possible C/C++ prototypes are:\n"
23005
+ " erase(std::map< int,std::vector< int > > *,std::map< int,std::vector< int > >::key_type const &)\n"
23006
+ " erase(std::map< int,std::vector< int > > *,std::map< int,std::vector< int > >::iterator)\n"
23007
+ " erase(std::map< int,std::vector< int > > *,std::map< int,std::vector< int > >::iterator,std::map< int,std::vector< int > >::iterator)\n");
23012
+SWIGINTERN PyObject *_wrap_IntVecIntMap_find(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23013
+ PyObject *resultobj = 0;
23014
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
23015
+ std::map< int,std::vector< int > >::key_type *arg2 = 0 ;
23016
+ void *argp1 = 0 ;
23018
+ std::map< int,std::vector< int > >::key_type temp2 ;
23021
+ PyObject * obj0 = 0 ;
23022
+ PyObject * obj1 = 0 ;
23023
+ std::map< int,std::vector< int > >::iterator result;
23025
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVecIntMap_find",&obj0,&obj1)) SWIG_fail;
23026
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
23027
+ if (!SWIG_IsOK(res1)) {
23028
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_find" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
23030
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
23031
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
23032
+ if (!SWIG_IsOK(ecode2)) {
23033
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVecIntMap_find" "', argument " "2"" of type '" "std::map< int,std::vector< int > >::key_type""'");
23035
+ temp2 = static_cast< std::map< int,std::vector< int > >::key_type >(val2);
23037
+ result = (arg1)->find((std::map< int,std::vector< int > >::key_type const &)*arg2);
23038
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< int,std::vector< int > >::iterator & >(result)),
23039
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
23040
+ return resultobj;
23046
+SWIGINTERN PyObject *_wrap_IntVecIntMap_lower_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23047
+ PyObject *resultobj = 0;
23048
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
23049
+ std::map< int,std::vector< int > >::key_type *arg2 = 0 ;
23050
+ void *argp1 = 0 ;
23052
+ std::map< int,std::vector< int > >::key_type temp2 ;
23055
+ PyObject * obj0 = 0 ;
23056
+ PyObject * obj1 = 0 ;
23057
+ std::map< int,std::vector< int > >::iterator result;
23059
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVecIntMap_lower_bound",&obj0,&obj1)) SWIG_fail;
23060
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
23061
+ if (!SWIG_IsOK(res1)) {
23062
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_lower_bound" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
23064
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
23065
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
23066
+ if (!SWIG_IsOK(ecode2)) {
23067
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVecIntMap_lower_bound" "', argument " "2"" of type '" "std::map< int,std::vector< int > >::key_type""'");
23069
+ temp2 = static_cast< std::map< int,std::vector< int > >::key_type >(val2);
23071
+ result = (arg1)->lower_bound((std::map< int,std::vector< int > >::key_type const &)*arg2);
23072
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< int,std::vector< int > >::iterator & >(result)),
23073
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
23074
+ return resultobj;
23080
+SWIGINTERN PyObject *_wrap_IntVecIntMap_upper_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23081
+ PyObject *resultobj = 0;
23082
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
23083
+ std::map< int,std::vector< int > >::key_type *arg2 = 0 ;
23084
+ void *argp1 = 0 ;
23086
+ std::map< int,std::vector< int > >::key_type temp2 ;
23089
+ PyObject * obj0 = 0 ;
23090
+ PyObject * obj1 = 0 ;
23091
+ std::map< int,std::vector< int > >::iterator result;
23093
+ if (!PyArg_ParseTuple(args,(char *)"OO:IntVecIntMap_upper_bound",&obj0,&obj1)) SWIG_fail;
23094
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0 | 0 );
23095
+ if (!SWIG_IsOK(res1)) {
23096
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntVecIntMap_upper_bound" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
23098
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
23099
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
23100
+ if (!SWIG_IsOK(ecode2)) {
23101
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntVecIntMap_upper_bound" "', argument " "2"" of type '" "std::map< int,std::vector< int > >::key_type""'");
23103
+ temp2 = static_cast< std::map< int,std::vector< int > >::key_type >(val2);
23105
+ result = (arg1)->upper_bound((std::map< int,std::vector< int > >::key_type const &)*arg2);
23106
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< int,std::vector< int > >::iterator & >(result)),
23107
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
23108
+ return resultobj;
23114
+SWIGINTERN PyObject *_wrap_delete_IntVecIntMap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23115
+ PyObject *resultobj = 0;
23116
+ std::map< int,std::vector< int > > *arg1 = (std::map< int,std::vector< int > > *) 0 ;
23117
+ void *argp1 = 0 ;
23119
+ PyObject * obj0 = 0 ;
23121
+ if (!PyArg_ParseTuple(args,(char *)"O:delete_IntVecIntMap",&obj0)) SWIG_fail;
23122
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, SWIG_POINTER_DISOWN | 0 );
23123
+ if (!SWIG_IsOK(res1)) {
23124
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IntVecIntMap" "', argument " "1"" of type '" "std::map< int,std::vector< int > > *""'");
23126
+ arg1 = reinterpret_cast< std::map< int,std::vector< int > > * >(argp1);
23128
+ resultobj = SWIG_Py_Void();
23129
+ return resultobj;
23135
+SWIGINTERN PyObject *IntVecIntMap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23137
+ if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
23138
+ SWIG_TypeNewClientData(SWIGTYPE_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, SWIG_NewClientData(obj));
23139
+ return SWIG_Py_Void();
23142
+SWIGINTERN PyObject *_wrap_new_DoubleVecIntMap__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23143
+ PyObject *resultobj = 0;
23144
+ std::less< int > *arg1 = 0 ;
23145
+ void *argp1 = 0 ;
23147
+ PyObject * obj0 = 0 ;
23148
+ std::map< int,std::vector< double > > *result = 0 ;
23150
+ if (!PyArg_ParseTuple(args,(char *)"O:new_DoubleVecIntMap",&obj0)) SWIG_fail;
23151
+ res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__lessT_int_t, 0 | 0);
23152
+ if (!SWIG_IsOK(res1)) {
23153
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DoubleVecIntMap" "', argument " "1"" of type '" "std::less< int > const &""'");
23156
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DoubleVecIntMap" "', argument " "1"" of type '" "std::less< int > const &""'");
23158
+ arg1 = reinterpret_cast< std::less< int > * >(argp1);
23159
+ result = (std::map< int,std::vector< double > > *)new std::map< int,std::vector< double > >((std::less< int > const &)*arg1);
23160
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, SWIG_POINTER_NEW | 0 );
23161
+ return resultobj;
23167
+SWIGINTERN PyObject *_wrap_DoubleVecIntMap_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23168
+ PyObject *resultobj = 0;
23169
+ std::map< int,std::vector< double > > *arg1 = (std::map< int,std::vector< double > > *) 0 ;
23170
+ PyObject **arg2 = (PyObject **) 0 ;
23171
+ void *argp1 = 0 ;
23173
+ PyObject * obj0 = 0 ;
23174
+ swig::PySwigIterator *result = 0 ;
23177
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVecIntMap_iterator",&obj0)) SWIG_fail;
23178
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, 0 | 0 );
23179
+ if (!SWIG_IsOK(res1)) {
23180
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVecIntMap_iterator" "', argument " "1"" of type '" "std::map< int,std::vector< double > > *""'");
23182
+ arg1 = reinterpret_cast< std::map< int,std::vector< double > > * >(argp1);
23183
+ result = (swig::PySwigIterator *)std_map_Sl_int_Sc_std_vector_Sl_double_Sg__Sg__iterator(arg1,arg2);
23184
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_OWN | 0 );
23185
+ return resultobj;
23191
+SWIGINTERN PyObject *_wrap_DoubleVecIntMap___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23192
+ PyObject *resultobj = 0;
23193
+ std::map< int,std::vector< double > > *arg1 = (std::map< int,std::vector< double > > *) 0 ;
23194
+ void *argp1 = 0 ;
23196
+ PyObject * obj0 = 0 ;
23199
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVecIntMap___nonzero__",&obj0)) SWIG_fail;
23200
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, 0 | 0 );
23201
+ if (!SWIG_IsOK(res1)) {
23202
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVecIntMap___nonzero__" "', argument " "1"" of type '" "std::map< int,std::vector< double > > const *""'");
23204
+ arg1 = reinterpret_cast< std::map< int,std::vector< double > > * >(argp1);
23205
+ result = (bool)std_map_Sl_int_Sc_std_vector_Sl_double_Sg__Sg____nonzero__((std::map< int,std::vector< double > > const *)arg1);
23206
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
23207
+ return resultobj;
23213
+SWIGINTERN PyObject *_wrap_DoubleVecIntMap___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23214
+ PyObject *resultobj = 0;
23215
+ std::map< int,std::vector< double > > *arg1 = (std::map< int,std::vector< double > > *) 0 ;
23216
+ void *argp1 = 0 ;
23218
+ PyObject * obj0 = 0 ;
23219
+ std::map< int,std::vector< double > >::size_type result;
23221
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVecIntMap___len__",&obj0)) SWIG_fail;
23222
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, 0 | 0 );
23223
+ if (!SWIG_IsOK(res1)) {
23224
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVecIntMap___len__" "', argument " "1"" of type '" "std::map< int,std::vector< double > > const *""'");
23226
+ arg1 = reinterpret_cast< std::map< int,std::vector< double > > * >(argp1);
23227
+ result = std_map_Sl_int_Sc_std_vector_Sl_double_Sg__Sg____len__((std::map< int,std::vector< double > > const *)arg1);
23228
+ resultobj = SWIG_From_size_t(static_cast< size_t >(result));
23229
+ return resultobj;
23235
+SWIGINTERN PyObject *_wrap_DoubleVecIntMap___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23236
+ PyObject *resultobj = 0;
23237
+ std::map< int,std::vector< double > > *arg1 = (std::map< int,std::vector< double > > *) 0 ;
23238
+ std::map< int,std::vector< double > >::key_type *arg2 = 0 ;
23239
+ void *argp1 = 0 ;
23241
+ std::map< int,std::vector< double > >::key_type temp2 ;
23244
+ PyObject * obj0 = 0 ;
23245
+ PyObject * obj1 = 0 ;
23246
+ std::map< int,std::vector< double > >::mapped_type result;
23248
+ if (!PyArg_ParseTuple(args,(char *)"OO:DoubleVecIntMap___getitem__",&obj0,&obj1)) SWIG_fail;
23249
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, 0 | 0 );
23250
+ if (!SWIG_IsOK(res1)) {
23251
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVecIntMap___getitem__" "', argument " "1"" of type '" "std::map< int,std::vector< double > > const *""'");
23253
+ arg1 = reinterpret_cast< std::map< int,std::vector< double > > * >(argp1);
23254
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
23255
+ if (!SWIG_IsOK(ecode2)) {
23256
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVecIntMap___getitem__" "', argument " "2"" of type '" "std::map< int,std::vector< double > >::key_type""'");
23258
+ temp2 = static_cast< std::map< int,std::vector< double > >::key_type >(val2);
23261
+ result = std_map_Sl_int_Sc_std_vector_Sl_double_Sg__Sg____getitem__((std::map< int,std::vector< double > > const *)arg1,(int const &)*arg2);
23263
+ catch(std::out_of_range &_e) {
23264
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
23267
+ resultobj = swig::from(static_cast< std::vector<double,std::allocator< double > > >(result));
23268
+ return resultobj;
23274
+SWIGINTERN PyObject *_wrap_DoubleVecIntMap___delitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23275
+ PyObject *resultobj = 0;
23276
+ std::map< int,std::vector< double > > *arg1 = (std::map< int,std::vector< double > > *) 0 ;
23277
+ std::map< int,std::vector< double > >::key_type *arg2 = 0 ;
23278
+ void *argp1 = 0 ;
23280
+ std::map< int,std::vector< double > >::key_type temp2 ;
23283
+ PyObject * obj0 = 0 ;
23284
+ PyObject * obj1 = 0 ;
23286
+ if (!PyArg_ParseTuple(args,(char *)"OO:DoubleVecIntMap___delitem__",&obj0,&obj1)) SWIG_fail;
23287
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, 0 | 0 );
23288
+ if (!SWIG_IsOK(res1)) {
23289
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVecIntMap___delitem__" "', argument " "1"" of type '" "std::map< int,std::vector< double > > *""'");
23291
+ arg1 = reinterpret_cast< std::map< int,std::vector< double > > * >(argp1);
23292
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
23293
+ if (!SWIG_IsOK(ecode2)) {
23294
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVecIntMap___delitem__" "', argument " "2"" of type '" "std::map< int,std::vector< double > >::key_type""'");
23296
+ temp2 = static_cast< std::map< int,std::vector< double > >::key_type >(val2);
23299
+ std_map_Sl_int_Sc_std_vector_Sl_double_Sg__Sg____delitem__(arg1,(int const &)*arg2);
23301
+ catch(std::out_of_range &_e) {
23302
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
23305
+ resultobj = SWIG_Py_Void();
23306
+ return resultobj;
23312
+SWIGINTERN PyObject *_wrap_DoubleVecIntMap_has_key(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23313
+ PyObject *resultobj = 0;
23314
+ std::map< int,std::vector< double > > *arg1 = (std::map< int,std::vector< double > > *) 0 ;
23315
+ std::map< int,std::vector< double > >::key_type *arg2 = 0 ;
23316
+ void *argp1 = 0 ;
23318
+ std::map< int,std::vector< double > >::key_type temp2 ;
23321
+ PyObject * obj0 = 0 ;
23322
+ PyObject * obj1 = 0 ;
23325
+ if (!PyArg_ParseTuple(args,(char *)"OO:DoubleVecIntMap_has_key",&obj0,&obj1)) SWIG_fail;
23326
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, 0 | 0 );
23327
+ if (!SWIG_IsOK(res1)) {
23328
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVecIntMap_has_key" "', argument " "1"" of type '" "std::map< int,std::vector< double > > const *""'");
23330
+ arg1 = reinterpret_cast< std::map< int,std::vector< double > > * >(argp1);
23331
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
23332
+ if (!SWIG_IsOK(ecode2)) {
23333
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVecIntMap_has_key" "', argument " "2"" of type '" "std::map< int,std::vector< double > >::key_type""'");
23335
+ temp2 = static_cast< std::map< int,std::vector< double > >::key_type >(val2);
23337
+ result = (bool)std_map_Sl_int_Sc_std_vector_Sl_double_Sg__Sg__has_key((std::map< int,std::vector< double > > const *)arg1,(int const &)*arg2);
23338
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
23339
+ return resultobj;
23345
+SWIGINTERN PyObject *_wrap_DoubleVecIntMap_keys(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23346
+ PyObject *resultobj = 0;
23347
+ std::map< int,std::vector< double > > *arg1 = (std::map< int,std::vector< double > > *) 0 ;
23348
+ void *argp1 = 0 ;
23350
+ PyObject * obj0 = 0 ;
23351
+ PyObject *result = 0 ;
23353
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVecIntMap_keys",&obj0)) SWIG_fail;
23354
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, 0 | 0 );
23355
+ if (!SWIG_IsOK(res1)) {
23356
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVecIntMap_keys" "', argument " "1"" of type '" "std::map< int,std::vector< double > > *""'");
23358
+ arg1 = reinterpret_cast< std::map< int,std::vector< double > > * >(argp1);
23359
+ result = (PyObject *)std_map_Sl_int_Sc_std_vector_Sl_double_Sg__Sg__keys(arg1);
23360
+ resultobj = result;
23361
+ return resultobj;
23367
+SWIGINTERN PyObject *_wrap_DoubleVecIntMap_values(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23368
+ PyObject *resultobj = 0;
23369
+ std::map< int,std::vector< double > > *arg1 = (std::map< int,std::vector< double > > *) 0 ;
23370
+ void *argp1 = 0 ;
23372
+ PyObject * obj0 = 0 ;
23373
+ PyObject *result = 0 ;
23375
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVecIntMap_values",&obj0)) SWIG_fail;
23376
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, 0 | 0 );
23377
+ if (!SWIG_IsOK(res1)) {
23378
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVecIntMap_values" "', argument " "1"" of type '" "std::map< int,std::vector< double > > *""'");
23380
+ arg1 = reinterpret_cast< std::map< int,std::vector< double > > * >(argp1);
23381
+ result = (PyObject *)std_map_Sl_int_Sc_std_vector_Sl_double_Sg__Sg__values(arg1);
23382
+ resultobj = result;
23383
+ return resultobj;
23389
+SWIGINTERN PyObject *_wrap_DoubleVecIntMap_items(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23390
+ PyObject *resultobj = 0;
23391
+ std::map< int,std::vector< double > > *arg1 = (std::map< int,std::vector< double > > *) 0 ;
23392
+ void *argp1 = 0 ;
23394
+ PyObject * obj0 = 0 ;
23395
+ PyObject *result = 0 ;
23397
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVecIntMap_items",&obj0)) SWIG_fail;
23398
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, 0 | 0 );
23399
+ if (!SWIG_IsOK(res1)) {
23400
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVecIntMap_items" "', argument " "1"" of type '" "std::map< int,std::vector< double > > *""'");
23402
+ arg1 = reinterpret_cast< std::map< int,std::vector< double > > * >(argp1);
23403
+ result = (PyObject *)std_map_Sl_int_Sc_std_vector_Sl_double_Sg__Sg__items(arg1);
23404
+ resultobj = result;
23405
+ return resultobj;
23411
+SWIGINTERN PyObject *_wrap_DoubleVecIntMap___contains__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23412
+ PyObject *resultobj = 0;
23413
+ std::map< int,std::vector< double > > *arg1 = (std::map< int,std::vector< double > > *) 0 ;
23414
+ std::map< int,std::vector< double > >::key_type *arg2 = 0 ;
23415
+ void *argp1 = 0 ;
23417
+ std::map< int,std::vector< double > >::key_type temp2 ;
23420
+ PyObject * obj0 = 0 ;
23421
+ PyObject * obj1 = 0 ;
23424
+ if (!PyArg_ParseTuple(args,(char *)"OO:DoubleVecIntMap___contains__",&obj0,&obj1)) SWIG_fail;
23425
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, 0 | 0 );
23426
+ if (!SWIG_IsOK(res1)) {
23427
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVecIntMap___contains__" "', argument " "1"" of type '" "std::map< int,std::vector< double > > *""'");
23429
+ arg1 = reinterpret_cast< std::map< int,std::vector< double > > * >(argp1);
23430
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
23431
+ if (!SWIG_IsOK(ecode2)) {
23432
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVecIntMap___contains__" "', argument " "2"" of type '" "std::map< int,std::vector< double > >::key_type""'");
23434
+ temp2 = static_cast< std::map< int,std::vector< double > >::key_type >(val2);
23436
+ result = (bool)std_map_Sl_int_Sc_std_vector_Sl_double_Sg__Sg____contains__(arg1,(int const &)*arg2);
23437
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
23438
+ return resultobj;
23444
+SWIGINTERN PyObject *_wrap_DoubleVecIntMap_key_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23445
+ PyObject *resultobj = 0;
23446
+ std::map< int,std::vector< double > > *arg1 = (std::map< int,std::vector< double > > *) 0 ;
23447
+ PyObject **arg2 = (PyObject **) 0 ;
23448
+ void *argp1 = 0 ;
23450
+ PyObject * obj0 = 0 ;
23451
+ swig::PySwigIterator *result = 0 ;
23454
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVecIntMap_key_iterator",&obj0)) SWIG_fail;
23455
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, 0 | 0 );
23456
+ if (!SWIG_IsOK(res1)) {
23457
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVecIntMap_key_iterator" "', argument " "1"" of type '" "std::map< int,std::vector< double > > *""'");
23459
+ arg1 = reinterpret_cast< std::map< int,std::vector< double > > * >(argp1);
23460
+ result = (swig::PySwigIterator *)std_map_Sl_int_Sc_std_vector_Sl_double_Sg__Sg__key_iterator(arg1,arg2);
23461
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_OWN | 0 );
23462
+ return resultobj;
23468
+SWIGINTERN PyObject *_wrap_DoubleVecIntMap_value_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23469
+ PyObject *resultobj = 0;
23470
+ std::map< int,std::vector< double > > *arg1 = (std::map< int,std::vector< double > > *) 0 ;
23471
+ PyObject **arg2 = (PyObject **) 0 ;
23472
+ void *argp1 = 0 ;
23474
+ PyObject * obj0 = 0 ;
23475
+ swig::PySwigIterator *result = 0 ;
23478
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVecIntMap_value_iterator",&obj0)) SWIG_fail;
23479
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, 0 | 0 );
23480
+ if (!SWIG_IsOK(res1)) {
23481
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVecIntMap_value_iterator" "', argument " "1"" of type '" "std::map< int,std::vector< double > > *""'");
23483
+ arg1 = reinterpret_cast< std::map< int,std::vector< double > > * >(argp1);
23484
+ result = (swig::PySwigIterator *)std_map_Sl_int_Sc_std_vector_Sl_double_Sg__Sg__value_iterator(arg1,arg2);
23485
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__PySwigIterator, SWIG_POINTER_OWN | 0 );
23486
+ return resultobj;
23492
+SWIGINTERN PyObject *_wrap_DoubleVecIntMap___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23493
+ PyObject *resultobj = 0;
23494
+ std::map< int,std::vector< double > > *arg1 = (std::map< int,std::vector< double > > *) 0 ;
23495
+ std::map< int,std::vector< double > >::key_type *arg2 = 0 ;
23496
+ std::map< int,std::vector< double > >::mapped_type *arg3 = 0 ;
23497
+ void *argp1 = 0 ;
23499
+ std::map< int,std::vector< double > >::key_type temp2 ;
23502
+ int res3 = SWIG_OLDOBJ ;
23503
+ PyObject * obj0 = 0 ;
23504
+ PyObject * obj1 = 0 ;
23505
+ PyObject * obj2 = 0 ;
23507
+ if (!PyArg_ParseTuple(args,(char *)"OOO:DoubleVecIntMap___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
23508
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, 0 | 0 );
23509
+ if (!SWIG_IsOK(res1)) {
23510
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVecIntMap___setitem__" "', argument " "1"" of type '" "std::map< int,std::vector< double > > *""'");
23512
+ arg1 = reinterpret_cast< std::map< int,std::vector< double > > * >(argp1);
23513
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
23514
+ if (!SWIG_IsOK(ecode2)) {
23515
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVecIntMap___setitem__" "', argument " "2"" of type '" "std::map< int,std::vector< double > >::key_type""'");
23517
+ temp2 = static_cast< std::map< int,std::vector< double > >::key_type >(val2);
23520
+ std::vector<double,std::allocator< double > > *ptr = (std::vector<double,std::allocator< double > > *)0;
23521
+ res3 = swig::asptr(obj2, &ptr);
23522
+ if (!SWIG_IsOK(res3)) {
23523
+ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DoubleVecIntMap___setitem__" "', argument " "3"" of type '" "std::map< int,std::vector< double > >::mapped_type const &""'");
23526
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DoubleVecIntMap___setitem__" "', argument " "3"" of type '" "std::map< int,std::vector< double > >::mapped_type const &""'");
23531
+ std_map_Sl_int_Sc_std_vector_Sl_double_Sg__Sg____setitem__(arg1,(int const &)*arg2,(std::vector< double,std::allocator< double > > const &)*arg3);
23533
+ catch(std::out_of_range &_e) {
23534
+ SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
23537
+ resultobj = SWIG_Py_Void();
23538
+ if (SWIG_IsNewObj(res3)) delete arg3;
23539
+ return resultobj;
23541
+ if (SWIG_IsNewObj(res3)) delete arg3;
23546
+SWIGINTERN PyObject *_wrap_new_DoubleVecIntMap__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23547
+ PyObject *resultobj = 0;
23548
+ std::map< int,std::vector< double > > *result = 0 ;
23550
+ if (!PyArg_ParseTuple(args,(char *)":new_DoubleVecIntMap")) SWIG_fail;
23551
+ result = (std::map< int,std::vector< double > > *)new std::map< int,std::vector< double > >();
23552
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, SWIG_POINTER_NEW | 0 );
23553
+ return resultobj;
23559
+SWIGINTERN PyObject *_wrap_new_DoubleVecIntMap__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23560
+ PyObject *resultobj = 0;
23561
+ std::map< int,std::vector< double,std::allocator< double > > > *arg1 = 0 ;
23562
+ int res1 = SWIG_OLDOBJ ;
23563
+ PyObject * obj0 = 0 ;
23564
+ std::map< int,std::vector< double > > *result = 0 ;
23566
+ if (!PyArg_ParseTuple(args,(char *)"O:new_DoubleVecIntMap",&obj0)) SWIG_fail;
23568
+ std::map<int,std::vector< double,std::allocator< double > >,std::less< int >,std::allocator< std::pair< int const,std::vector< double,std::allocator< double > > > > > *ptr = (std::map<int,std::vector< double,std::allocator< double > >,std::less< int >,std::allocator< std::pair< int const,std::vector< double,std::allocator< double > > > > > *)0;
23569
+ res1 = swig::asptr(obj0, &ptr);
23570
+ if (!SWIG_IsOK(res1)) {
23571
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DoubleVecIntMap" "', argument " "1"" of type '" "std::map< int,std::vector< double,std::allocator< double > > > const &""'");
23574
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DoubleVecIntMap" "', argument " "1"" of type '" "std::map< int,std::vector< double,std::allocator< double > > > const &""'");
23578
+ result = (std::map< int,std::vector< double > > *)new std::map< int,std::vector< double > >((std::map< int,std::vector< double,std::allocator< double > > > const &)*arg1);
23579
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, SWIG_POINTER_NEW | 0 );
23580
+ if (SWIG_IsNewObj(res1)) delete arg1;
23581
+ return resultobj;
23583
+ if (SWIG_IsNewObj(res1)) delete arg1;
23588
+SWIGINTERN PyObject *_wrap_new_DoubleVecIntMap(PyObject *self, PyObject *args) {
23590
+ PyObject *argv[2];
23593
+ if (!PyTuple_Check(args)) SWIG_fail;
23594
+ argc = (int)PyObject_Length(args);
23595
+ for (ii = 0; (ii < argc) && (ii < 1); ii++) {
23596
+ argv[ii] = PyTuple_GET_ITEM(args,ii);
23599
+ return _wrap_new_DoubleVecIntMap__SWIG_1(self, args);
23603
+ int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__lessT_int_t, 0);
23604
+ _v = SWIG_CheckState(res);
23606
+ return _wrap_new_DoubleVecIntMap__SWIG_0(self, args);
23611
+ int res = swig::asptr(argv[0], (std::map<int,std::vector< double,std::allocator< double > >,std::less< int >,std::allocator< std::pair< int const,std::vector< double,std::allocator< double > > > > >**)(0));
23612
+ _v = SWIG_CheckState(res);
23614
+ return _wrap_new_DoubleVecIntMap__SWIG_2(self, args);
23619
+ SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_DoubleVecIntMap'.\n"
23620
+ " Possible C/C++ prototypes are:\n"
23621
+ " std::map< int,std::vector< double > >(std::less< int > const &)\n"
23622
+ " std::map< int,std::vector< double > >()\n"
23623
+ " std::map< int,std::vector< double > >(std::map< int,std::vector< double,std::allocator< double > > > const &)\n");
23628
+SWIGINTERN PyObject *_wrap_DoubleVecIntMap_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23629
+ PyObject *resultobj = 0;
23630
+ std::map< int,std::vector< double > > *arg1 = (std::map< int,std::vector< double > > *) 0 ;
23631
+ void *argp1 = 0 ;
23633
+ PyObject * obj0 = 0 ;
23636
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVecIntMap_empty",&obj0)) SWIG_fail;
23637
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, 0 | 0 );
23638
+ if (!SWIG_IsOK(res1)) {
23639
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVecIntMap_empty" "', argument " "1"" of type '" "std::map< int,std::vector< double > > const *""'");
23641
+ arg1 = reinterpret_cast< std::map< int,std::vector< double > > * >(argp1);
23642
+ result = (bool)((std::map< int,std::vector< double > > const *)arg1)->empty();
23643
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
23644
+ return resultobj;
23650
+SWIGINTERN PyObject *_wrap_DoubleVecIntMap_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23651
+ PyObject *resultobj = 0;
23652
+ std::map< int,std::vector< double > > *arg1 = (std::map< int,std::vector< double > > *) 0 ;
23653
+ void *argp1 = 0 ;
23655
+ PyObject * obj0 = 0 ;
23656
+ std::map< int,std::vector< double > >::size_type result;
23658
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVecIntMap_size",&obj0)) SWIG_fail;
23659
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, 0 | 0 );
23660
+ if (!SWIG_IsOK(res1)) {
23661
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVecIntMap_size" "', argument " "1"" of type '" "std::map< int,std::vector< double > > const *""'");
23663
+ arg1 = reinterpret_cast< std::map< int,std::vector< double > > * >(argp1);
23664
+ result = ((std::map< int,std::vector< double > > const *)arg1)->size();
23665
+ resultobj = SWIG_From_size_t(static_cast< size_t >(result));
23666
+ return resultobj;
23672
+SWIGINTERN PyObject *_wrap_DoubleVecIntMap_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23673
+ PyObject *resultobj = 0;
23674
+ std::map< int,std::vector< double > > *arg1 = (std::map< int,std::vector< double > > *) 0 ;
23675
+ void *argp1 = 0 ;
23677
+ PyObject * obj0 = 0 ;
23679
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVecIntMap_clear",&obj0)) SWIG_fail;
23680
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, 0 | 0 );
23681
+ if (!SWIG_IsOK(res1)) {
23682
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVecIntMap_clear" "', argument " "1"" of type '" "std::map< int,std::vector< double > > *""'");
23684
+ arg1 = reinterpret_cast< std::map< int,std::vector< double > > * >(argp1);
23686
+ resultobj = SWIG_Py_Void();
23687
+ return resultobj;
23693
+SWIGINTERN PyObject *_wrap_DoubleVecIntMap_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23694
+ PyObject *resultobj = 0;
23695
+ std::map< int,std::vector< double > > *arg1 = (std::map< int,std::vector< double > > *) 0 ;
23696
+ std::map< int,std::vector< double,std::allocator< double > > > *arg2 = 0 ;
23697
+ void *argp1 = 0 ;
23699
+ void *argp2 = 0 ;
23701
+ PyObject * obj0 = 0 ;
23702
+ PyObject * obj1 = 0 ;
23704
+ if (!PyArg_ParseTuple(args,(char *)"OO:DoubleVecIntMap_swap",&obj0,&obj1)) SWIG_fail;
23705
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, 0 | 0 );
23706
+ if (!SWIG_IsOK(res1)) {
23707
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVecIntMap_swap" "', argument " "1"" of type '" "std::map< int,std::vector< double > > *""'");
23709
+ arg1 = reinterpret_cast< std::map< int,std::vector< double > > * >(argp1);
23710
+ res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, 0 );
23711
+ if (!SWIG_IsOK(res2)) {
23712
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DoubleVecIntMap_swap" "', argument " "2"" of type '" "std::map< int,std::vector< double,std::allocator< double > > > &""'");
23715
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DoubleVecIntMap_swap" "', argument " "2"" of type '" "std::map< int,std::vector< double,std::allocator< double > > > &""'");
23717
+ arg2 = reinterpret_cast< std::map< int,std::vector< double,std::allocator< double > > > * >(argp2);
23718
+ (arg1)->swap(*arg2);
23719
+ resultobj = SWIG_Py_Void();
23720
+ return resultobj;
23726
+SWIGINTERN PyObject *_wrap_DoubleVecIntMap_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23727
+ PyObject *resultobj = 0;
23728
+ std::map< int,std::vector< double > > *arg1 = (std::map< int,std::vector< double > > *) 0 ;
23729
+ void *argp1 = 0 ;
23731
+ PyObject * obj0 = 0 ;
23732
+ SwigValueWrapper< std::allocator< std::pair< int const,std::vector< double,std::allocator< double > > > > > result;
23734
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVecIntMap_get_allocator",&obj0)) SWIG_fail;
23735
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, 0 | 0 );
23736
+ if (!SWIG_IsOK(res1)) {
23737
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVecIntMap_get_allocator" "', argument " "1"" of type '" "std::map< int,std::vector< double > > const *""'");
23739
+ arg1 = reinterpret_cast< std::map< int,std::vector< double > > * >(argp1);
23740
+ result = ((std::map< int,std::vector< double > > const *)arg1)->get_allocator();
23741
+ resultobj = SWIG_NewPointerObj((new std::map< int,std::vector< double > >::allocator_type(static_cast< const std::map< int,std::vector< double > >::allocator_type& >(result))), SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t__allocator_type, SWIG_POINTER_OWN | 0 );
23742
+ return resultobj;
23748
+SWIGINTERN PyObject *_wrap_DoubleVecIntMap_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23749
+ PyObject *resultobj = 0;
23750
+ std::map< int,std::vector< double > > *arg1 = (std::map< int,std::vector< double > > *) 0 ;
23751
+ void *argp1 = 0 ;
23753
+ PyObject * obj0 = 0 ;
23754
+ std::map< int,std::vector< double > >::const_iterator result;
23756
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVecIntMap_begin",&obj0)) SWIG_fail;
23757
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, 0 | 0 );
23758
+ if (!SWIG_IsOK(res1)) {
23759
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVecIntMap_begin" "', argument " "1"" of type '" "std::map< int,std::vector< double > > const *""'");
23761
+ arg1 = reinterpret_cast< std::map< int,std::vector< double > > * >(argp1);
23762
+ result = ((std::map< int,std::vector< double > > const *)arg1)->begin();
23763
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< int,std::vector< double > >::const_iterator & >(result)),
23764
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
23765
+ return resultobj;
23771
+SWIGINTERN PyObject *_wrap_DoubleVecIntMap_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23772
+ PyObject *resultobj = 0;
23773
+ std::map< int,std::vector< double > > *arg1 = (std::map< int,std::vector< double > > *) 0 ;
23774
+ void *argp1 = 0 ;
23776
+ PyObject * obj0 = 0 ;
23777
+ std::map< int,std::vector< double > >::const_iterator result;
23779
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVecIntMap_end",&obj0)) SWIG_fail;
23780
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, 0 | 0 );
23781
+ if (!SWIG_IsOK(res1)) {
23782
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVecIntMap_end" "', argument " "1"" of type '" "std::map< int,std::vector< double > > const *""'");
23784
+ arg1 = reinterpret_cast< std::map< int,std::vector< double > > * >(argp1);
23785
+ result = ((std::map< int,std::vector< double > > const *)arg1)->end();
23786
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< int,std::vector< double > >::const_iterator & >(result)),
23787
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
23788
+ return resultobj;
23794
+SWIGINTERN PyObject *_wrap_DoubleVecIntMap_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23795
+ PyObject *resultobj = 0;
23796
+ std::map< int,std::vector< double > > *arg1 = (std::map< int,std::vector< double > > *) 0 ;
23797
+ void *argp1 = 0 ;
23799
+ PyObject * obj0 = 0 ;
23800
+ std::map< int,std::vector< double > >::const_reverse_iterator result;
23802
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVecIntMap_rbegin",&obj0)) SWIG_fail;
23803
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, 0 | 0 );
23804
+ if (!SWIG_IsOK(res1)) {
23805
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVecIntMap_rbegin" "', argument " "1"" of type '" "std::map< int,std::vector< double > > const *""'");
23807
+ arg1 = reinterpret_cast< std::map< int,std::vector< double > > * >(argp1);
23808
+ result = ((std::map< int,std::vector< double > > const *)arg1)->rbegin();
23809
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< int,std::vector< double > >::const_reverse_iterator & >(result)),
23810
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
23811
+ return resultobj;
23817
+SWIGINTERN PyObject *_wrap_DoubleVecIntMap_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23818
+ PyObject *resultobj = 0;
23819
+ std::map< int,std::vector< double > > *arg1 = (std::map< int,std::vector< double > > *) 0 ;
23820
+ void *argp1 = 0 ;
23822
+ PyObject * obj0 = 0 ;
23823
+ std::map< int,std::vector< double > >::const_reverse_iterator result;
23825
+ if (!PyArg_ParseTuple(args,(char *)"O:DoubleVecIntMap_rend",&obj0)) SWIG_fail;
23826
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, 0 | 0 );
23827
+ if (!SWIG_IsOK(res1)) {
23828
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVecIntMap_rend" "', argument " "1"" of type '" "std::map< int,std::vector< double > > const *""'");
23830
+ arg1 = reinterpret_cast< std::map< int,std::vector< double > > * >(argp1);
23831
+ result = ((std::map< int,std::vector< double > > const *)arg1)->rend();
23832
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< int,std::vector< double > >::const_reverse_iterator & >(result)),
23833
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
23834
+ return resultobj;
23840
+SWIGINTERN PyObject *_wrap_DoubleVecIntMap_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23841
+ PyObject *resultobj = 0;
23842
+ std::map< int,std::vector< double > > *arg1 = (std::map< int,std::vector< double > > *) 0 ;
23843
+ std::map< int,std::vector< double > >::key_type *arg2 = 0 ;
23844
+ void *argp1 = 0 ;
23846
+ std::map< int,std::vector< double > >::key_type temp2 ;
23849
+ PyObject * obj0 = 0 ;
23850
+ PyObject * obj1 = 0 ;
23851
+ std::map< int,std::vector< double > >::size_type result;
23853
+ if (!PyArg_ParseTuple(args,(char *)"OO:DoubleVecIntMap_erase",&obj0,&obj1)) SWIG_fail;
23854
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, 0 | 0 );
23855
+ if (!SWIG_IsOK(res1)) {
23856
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVecIntMap_erase" "', argument " "1"" of type '" "std::map< int,std::vector< double > > *""'");
23858
+ arg1 = reinterpret_cast< std::map< int,std::vector< double > > * >(argp1);
23859
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
23860
+ if (!SWIG_IsOK(ecode2)) {
23861
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVecIntMap_erase" "', argument " "2"" of type '" "std::map< int,std::vector< double > >::key_type""'");
23863
+ temp2 = static_cast< std::map< int,std::vector< double > >::key_type >(val2);
23865
+ result = (arg1)->erase((std::map< int,std::vector< double > >::key_type const &)*arg2);
23866
+ resultobj = SWIG_From_size_t(static_cast< size_t >(result));
23867
+ return resultobj;
23873
+SWIGINTERN PyObject *_wrap_DoubleVecIntMap_count(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23874
+ PyObject *resultobj = 0;
23875
+ std::map< int,std::vector< double > > *arg1 = (std::map< int,std::vector< double > > *) 0 ;
23876
+ std::map< int,std::vector< double > >::key_type *arg2 = 0 ;
23877
+ void *argp1 = 0 ;
23879
+ std::map< int,std::vector< double > >::key_type temp2 ;
23882
+ PyObject * obj0 = 0 ;
23883
+ PyObject * obj1 = 0 ;
23884
+ std::map< int,std::vector< double > >::size_type result;
23886
+ if (!PyArg_ParseTuple(args,(char *)"OO:DoubleVecIntMap_count",&obj0,&obj1)) SWIG_fail;
23887
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, 0 | 0 );
23888
+ if (!SWIG_IsOK(res1)) {
23889
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVecIntMap_count" "', argument " "1"" of type '" "std::map< int,std::vector< double > > const *""'");
23891
+ arg1 = reinterpret_cast< std::map< int,std::vector< double > > * >(argp1);
23892
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
23893
+ if (!SWIG_IsOK(ecode2)) {
23894
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVecIntMap_count" "', argument " "2"" of type '" "std::map< int,std::vector< double > >::key_type""'");
23896
+ temp2 = static_cast< std::map< int,std::vector< double > >::key_type >(val2);
23898
+ result = ((std::map< int,std::vector< double > > const *)arg1)->count((std::map< int,std::vector< double > >::key_type const &)*arg2);
23899
+ resultobj = SWIG_From_size_t(static_cast< size_t >(result));
23900
+ return resultobj;
23906
+SWIGINTERN PyObject *_wrap_DoubleVecIntMap_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23907
+ PyObject *resultobj = 0;
23908
+ std::map< int,std::vector< double > > *arg1 = (std::map< int,std::vector< double > > *) 0 ;
23909
+ std::map< int,std::vector< double > >::iterator arg2 ;
23910
+ void *argp1 = 0 ;
23912
+ swig::PySwigIterator *iter2 = 0 ;
23914
+ PyObject * obj0 = 0 ;
23915
+ PyObject * obj1 = 0 ;
23917
+ if (!PyArg_ParseTuple(args,(char *)"OO:DoubleVecIntMap_erase",&obj0,&obj1)) SWIG_fail;
23918
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, 0 | 0 );
23919
+ if (!SWIG_IsOK(res1)) {
23920
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVecIntMap_erase" "', argument " "1"" of type '" "std::map< int,std::vector< double > > *""'");
23922
+ arg1 = reinterpret_cast< std::map< int,std::vector< double > > * >(argp1);
23923
+ res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::PySwigIterator::descriptor(), 0);
23924
+ if (!SWIG_IsOK(res2) || !iter2) {
23925
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVecIntMap_erase" "', argument " "2"" of type '" "std::map< int,std::vector< double > >::iterator""'");
23927
+ swig::PySwigIterator_T<std::map< int,std::vector< double > >::iterator > *iter_t = dynamic_cast<swig::PySwigIterator_T<std::map< int,std::vector< double > >::iterator > *>(iter2);
23929
+ arg2 = iter_t->get_current();
23931
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVecIntMap_erase" "', argument " "2"" of type '" "std::map< int,std::vector< double > >::iterator""'");
23934
+ (arg1)->erase(arg2);
23935
+ resultobj = SWIG_Py_Void();
23936
+ return resultobj;
23942
+SWIGINTERN PyObject *_wrap_DoubleVecIntMap_erase__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23943
+ PyObject *resultobj = 0;
23944
+ std::map< int,std::vector< double > > *arg1 = (std::map< int,std::vector< double > > *) 0 ;
23945
+ std::map< int,std::vector< double > >::iterator arg2 ;
23946
+ std::map< int,std::vector< double > >::iterator arg3 ;
23947
+ void *argp1 = 0 ;
23949
+ swig::PySwigIterator *iter2 = 0 ;
23951
+ swig::PySwigIterator *iter3 = 0 ;
23953
+ PyObject * obj0 = 0 ;
23954
+ PyObject * obj1 = 0 ;
23955
+ PyObject * obj2 = 0 ;
23957
+ if (!PyArg_ParseTuple(args,(char *)"OOO:DoubleVecIntMap_erase",&obj0,&obj1,&obj2)) SWIG_fail;
23958
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, 0 | 0 );
23959
+ if (!SWIG_IsOK(res1)) {
23960
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVecIntMap_erase" "', argument " "1"" of type '" "std::map< int,std::vector< double > > *""'");
23962
+ arg1 = reinterpret_cast< std::map< int,std::vector< double > > * >(argp1);
23963
+ res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::PySwigIterator::descriptor(), 0);
23964
+ if (!SWIG_IsOK(res2) || !iter2) {
23965
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVecIntMap_erase" "', argument " "2"" of type '" "std::map< int,std::vector< double > >::iterator""'");
23967
+ swig::PySwigIterator_T<std::map< int,std::vector< double > >::iterator > *iter_t = dynamic_cast<swig::PySwigIterator_T<std::map< int,std::vector< double > >::iterator > *>(iter2);
23969
+ arg2 = iter_t->get_current();
23971
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVecIntMap_erase" "', argument " "2"" of type '" "std::map< int,std::vector< double > >::iterator""'");
23974
+ res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::PySwigIterator::descriptor(), 0);
23975
+ if (!SWIG_IsOK(res3) || !iter3) {
23976
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVecIntMap_erase" "', argument " "3"" of type '" "std::map< int,std::vector< double > >::iterator""'");
23978
+ swig::PySwigIterator_T<std::map< int,std::vector< double > >::iterator > *iter_t = dynamic_cast<swig::PySwigIterator_T<std::map< int,std::vector< double > >::iterator > *>(iter3);
23980
+ arg3 = iter_t->get_current();
23982
+ SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DoubleVecIntMap_erase" "', argument " "3"" of type '" "std::map< int,std::vector< double > >::iterator""'");
23985
+ (arg1)->erase(arg2,arg3);
23986
+ resultobj = SWIG_Py_Void();
23987
+ return resultobj;
23993
+SWIGINTERN PyObject *_wrap_DoubleVecIntMap_erase(PyObject *self, PyObject *args) {
23995
+ PyObject *argv[4];
23998
+ if (!PyTuple_Check(args)) SWIG_fail;
23999
+ argc = (int)PyObject_Length(args);
24000
+ for (ii = 0; (ii < argc) && (ii < 3); ii++) {
24001
+ argv[ii] = PyTuple_GET_ITEM(args,ii);
24005
+ int res = swig::asptr(argv[0], (std::map<int,std::vector< double,std::allocator< double > >,std::less< int >,std::allocator< std::pair< int const,std::vector< double,std::allocator< double > > > > >**)(0));
24006
+ _v = SWIG_CheckState(res);
24008
+ swig::PySwigIterator *iter = 0;
24009
+ int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::PySwigIterator::descriptor(), 0);
24010
+ _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::PySwigIterator_T<std::map< int,std::vector< double > >::iterator > *>(iter) != 0));
24012
+ return _wrap_DoubleVecIntMap_erase__SWIG_1(self, args);
24018
+ int res = swig::asptr(argv[0], (std::map<int,std::vector< double,std::allocator< double > >,std::less< int >,std::allocator< std::pair< int const,std::vector< double,std::allocator< double > > > > >**)(0));
24019
+ _v = SWIG_CheckState(res);
24022
+ int res = SWIG_AsVal_int(argv[1], NULL);
24023
+ _v = SWIG_CheckState(res);
24026
+ return _wrap_DoubleVecIntMap_erase__SWIG_0(self, args);
24032
+ int res = swig::asptr(argv[0], (std::map<int,std::vector< double,std::allocator< double > >,std::less< int >,std::allocator< std::pair< int const,std::vector< double,std::allocator< double > > > > >**)(0));
24033
+ _v = SWIG_CheckState(res);
24035
+ swig::PySwigIterator *iter = 0;
24036
+ int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::PySwigIterator::descriptor(), 0);
24037
+ _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::PySwigIterator_T<std::map< int,std::vector< double > >::iterator > *>(iter) != 0));
24039
+ swig::PySwigIterator *iter = 0;
24040
+ int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::PySwigIterator::descriptor(), 0);
24041
+ _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::PySwigIterator_T<std::map< int,std::vector< double > >::iterator > *>(iter) != 0));
24043
+ return _wrap_DoubleVecIntMap_erase__SWIG_2(self, args);
24050
+ SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'DoubleVecIntMap_erase'.\n"
24051
+ " Possible C/C++ prototypes are:\n"
24052
+ " erase(std::map< int,std::vector< double > > *,std::map< int,std::vector< double > >::key_type const &)\n"
24053
+ " erase(std::map< int,std::vector< double > > *,std::map< int,std::vector< double > >::iterator)\n"
24054
+ " erase(std::map< int,std::vector< double > > *,std::map< int,std::vector< double > >::iterator,std::map< int,std::vector< double > >::iterator)\n");
24059
+SWIGINTERN PyObject *_wrap_DoubleVecIntMap_find(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24060
+ PyObject *resultobj = 0;
24061
+ std::map< int,std::vector< double > > *arg1 = (std::map< int,std::vector< double > > *) 0 ;
24062
+ std::map< int,std::vector< double > >::key_type *arg2 = 0 ;
24063
+ void *argp1 = 0 ;
24065
+ std::map< int,std::vector< double > >::key_type temp2 ;
24068
+ PyObject * obj0 = 0 ;
24069
+ PyObject * obj1 = 0 ;
24070
+ std::map< int,std::vector< double > >::iterator result;
24072
+ if (!PyArg_ParseTuple(args,(char *)"OO:DoubleVecIntMap_find",&obj0,&obj1)) SWIG_fail;
24073
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, 0 | 0 );
24074
+ if (!SWIG_IsOK(res1)) {
24075
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVecIntMap_find" "', argument " "1"" of type '" "std::map< int,std::vector< double > > *""'");
24077
+ arg1 = reinterpret_cast< std::map< int,std::vector< double > > * >(argp1);
24078
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
24079
+ if (!SWIG_IsOK(ecode2)) {
24080
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVecIntMap_find" "', argument " "2"" of type '" "std::map< int,std::vector< double > >::key_type""'");
24082
+ temp2 = static_cast< std::map< int,std::vector< double > >::key_type >(val2);
24084
+ result = (arg1)->find((std::map< int,std::vector< double > >::key_type const &)*arg2);
24085
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< int,std::vector< double > >::iterator & >(result)),
24086
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
24087
+ return resultobj;
24093
+SWIGINTERN PyObject *_wrap_DoubleVecIntMap_lower_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24094
+ PyObject *resultobj = 0;
24095
+ std::map< int,std::vector< double > > *arg1 = (std::map< int,std::vector< double > > *) 0 ;
24096
+ std::map< int,std::vector< double > >::key_type *arg2 = 0 ;
24097
+ void *argp1 = 0 ;
24099
+ std::map< int,std::vector< double > >::key_type temp2 ;
24102
+ PyObject * obj0 = 0 ;
24103
+ PyObject * obj1 = 0 ;
24104
+ std::map< int,std::vector< double > >::iterator result;
24106
+ if (!PyArg_ParseTuple(args,(char *)"OO:DoubleVecIntMap_lower_bound",&obj0,&obj1)) SWIG_fail;
24107
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, 0 | 0 );
24108
+ if (!SWIG_IsOK(res1)) {
24109
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVecIntMap_lower_bound" "', argument " "1"" of type '" "std::map< int,std::vector< double > > *""'");
24111
+ arg1 = reinterpret_cast< std::map< int,std::vector< double > > * >(argp1);
24112
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
24113
+ if (!SWIG_IsOK(ecode2)) {
24114
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVecIntMap_lower_bound" "', argument " "2"" of type '" "std::map< int,std::vector< double > >::key_type""'");
24116
+ temp2 = static_cast< std::map< int,std::vector< double > >::key_type >(val2);
24118
+ result = (arg1)->lower_bound((std::map< int,std::vector< double > >::key_type const &)*arg2);
24119
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< int,std::vector< double > >::iterator & >(result)),
24120
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
24121
+ return resultobj;
24127
+SWIGINTERN PyObject *_wrap_DoubleVecIntMap_upper_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24128
+ PyObject *resultobj = 0;
24129
+ std::map< int,std::vector< double > > *arg1 = (std::map< int,std::vector< double > > *) 0 ;
24130
+ std::map< int,std::vector< double > >::key_type *arg2 = 0 ;
24131
+ void *argp1 = 0 ;
24133
+ std::map< int,std::vector< double > >::key_type temp2 ;
24136
+ PyObject * obj0 = 0 ;
24137
+ PyObject * obj1 = 0 ;
24138
+ std::map< int,std::vector< double > >::iterator result;
24140
+ if (!PyArg_ParseTuple(args,(char *)"OO:DoubleVecIntMap_upper_bound",&obj0,&obj1)) SWIG_fail;
24141
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, 0 | 0 );
24142
+ if (!SWIG_IsOK(res1)) {
24143
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DoubleVecIntMap_upper_bound" "', argument " "1"" of type '" "std::map< int,std::vector< double > > *""'");
24145
+ arg1 = reinterpret_cast< std::map< int,std::vector< double > > * >(argp1);
24146
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
24147
+ if (!SWIG_IsOK(ecode2)) {
24148
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DoubleVecIntMap_upper_bound" "', argument " "2"" of type '" "std::map< int,std::vector< double > >::key_type""'");
24150
+ temp2 = static_cast< std::map< int,std::vector< double > >::key_type >(val2);
24152
+ result = (arg1)->upper_bound((std::map< int,std::vector< double > >::key_type const &)*arg2);
24153
+ resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< int,std::vector< double > >::iterator & >(result)),
24154
+ swig::PySwigIterator::descriptor(),SWIG_POINTER_OWN);
24155
+ return resultobj;
24161
+SWIGINTERN PyObject *_wrap_delete_DoubleVecIntMap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24162
+ PyObject *resultobj = 0;
24163
+ std::map< int,std::vector< double > > *arg1 = (std::map< int,std::vector< double > > *) 0 ;
24164
+ void *argp1 = 0 ;
24166
+ PyObject * obj0 = 0 ;
24168
+ if (!PyArg_ParseTuple(args,(char *)"O:delete_DoubleVecIntMap",&obj0)) SWIG_fail;
24169
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, SWIG_POINTER_DISOWN | 0 );
24170
+ if (!SWIG_IsOK(res1)) {
24171
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DoubleVecIntMap" "', argument " "1"" of type '" "std::map< int,std::vector< double > > *""'");
24173
+ arg1 = reinterpret_cast< std::map< int,std::vector< double > > * >(argp1);
24175
+ resultobj = SWIG_Py_Void();
24176
+ return resultobj;
24182
+SWIGINTERN PyObject *DoubleVecIntMap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24184
+ if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
24185
+ SWIG_TypeNewClientData(SWIGTYPE_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, SWIG_NewClientData(obj));
24186
+ return SWIG_Py_Void();
24189
+SWIGINTERN PyObject *_wrap_new_DisplayDriver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24190
+ PyObject *resultobj = 0;
24191
+ void *arg1 = (void *) 0 ;
24192
+ void *arg2 = (void *) 0 ;
24195
+ PyObject * obj0 = 0 ;
24196
+ PyObject * obj1 = 0 ;
24197
+ DisplayDriver *result = 0 ;
24199
+ if (!PyArg_ParseTuple(args,(char *)"OO:new_DisplayDriver",&obj0,&obj1)) SWIG_fail;
24200
+ res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
24201
+ if (!SWIG_IsOK(res1)) {
24202
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DisplayDriver" "', argument " "1"" of type '" "void *""'");
24204
+ res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
24205
+ if (!SWIG_IsOK(res2)) {
24206
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DisplayDriver" "', argument " "2"" of type '" "void *""'");
24208
+ result = (DisplayDriver *)new DisplayDriver(arg1,arg2);
24209
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DisplayDriver, SWIG_POINTER_NEW | 0 );
24210
+ return resultobj;
24216
+SWIGINTERN PyObject *_wrap_delete_DisplayDriver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24217
+ PyObject *resultobj = 0;
24218
+ DisplayDriver *arg1 = (DisplayDriver *) 0 ;
24219
+ void *argp1 = 0 ;
24221
+ PyObject * obj0 = 0 ;
24223
+ if (!PyArg_ParseTuple(args,(char *)"O:delete_DisplayDriver",&obj0)) SWIG_fail;
24224
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DisplayDriver, SWIG_POINTER_DISOWN | 0 );
24225
+ if (!SWIG_IsOK(res1)) {
24226
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DisplayDriver" "', argument " "1"" of type '" "DisplayDriver *""'");
24228
+ arg1 = reinterpret_cast< DisplayDriver * >(argp1);
24230
+ resultobj = SWIG_Py_Void();
24231
+ return resultobj;
24237
+SWIGINTERN PyObject *_wrap_DisplayDriver_DrawMap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24238
+ PyObject *resultobj = 0;
24239
+ DisplayDriver *arg1 = (DisplayDriver *) 0 ;
24241
+ void *argp1 = 0 ;
24245
+ PyObject * obj0 = 0 ;
24246
+ PyObject * obj1 = 0 ;
24249
+ if (!PyArg_ParseTuple(args,(char *)"OO:DisplayDriver_DrawMap",&obj0,&obj1)) SWIG_fail;
24250
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DisplayDriver, 0 | 0 );
24251
+ if (!SWIG_IsOK(res1)) {
24252
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DisplayDriver_DrawMap" "', argument " "1"" of type '" "DisplayDriver *""'");
24254
+ arg1 = reinterpret_cast< DisplayDriver * >(argp1);
24255
+ ecode2 = SWIG_AsVal_bool(obj1, &val2);
24256
+ if (!SWIG_IsOK(ecode2)) {
24257
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DisplayDriver_DrawMap" "', argument " "2"" of type '" "bool""'");
24259
+ arg2 = static_cast< bool >(val2);
24260
+ result = (int)(arg1)->DrawMap(arg2);
24261
+ resultobj = SWIG_From_int(static_cast< int >(result));
24262
+ return resultobj;
24268
+SWIGINTERN PyObject *_wrap_DisplayDriver_SelectLinesByBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24269
+ PyObject *resultobj = 0;
24270
+ DisplayDriver *arg1 = (DisplayDriver *) 0 ;
24280
+ void *argp1 = 0 ;
24299
+ int ecode10 = 0 ;
24300
+ PyObject * obj0 = 0 ;
24301
+ PyObject * obj1 = 0 ;
24302
+ PyObject * obj2 = 0 ;
24303
+ PyObject * obj3 = 0 ;
24304
+ PyObject * obj4 = 0 ;
24305
+ PyObject * obj5 = 0 ;
24306
+ PyObject * obj6 = 0 ;
24307
+ PyObject * obj7 = 0 ;
24308
+ PyObject * obj8 = 0 ;
24309
+ PyObject * obj9 = 0 ;
24312
+ if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:DisplayDriver_SelectLinesByBox",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
24313
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DisplayDriver, 0 | 0 );
24314
+ if (!SWIG_IsOK(res1)) {
24315
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DisplayDriver_SelectLinesByBox" "', argument " "1"" of type '" "DisplayDriver *""'");
24317
+ arg1 = reinterpret_cast< DisplayDriver * >(argp1);
24318
+ ecode2 = SWIG_AsVal_double(obj1, &val2);
24319
+ if (!SWIG_IsOK(ecode2)) {
24320
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DisplayDriver_SelectLinesByBox" "', argument " "2"" of type '" "double""'");
24322
+ arg2 = static_cast< double >(val2);
24323
+ ecode3 = SWIG_AsVal_double(obj2, &val3);
24324
+ if (!SWIG_IsOK(ecode3)) {
24325
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DisplayDriver_SelectLinesByBox" "', argument " "3"" of type '" "double""'");
24327
+ arg3 = static_cast< double >(val3);
24328
+ ecode4 = SWIG_AsVal_double(obj3, &val4);
24329
+ if (!SWIG_IsOK(ecode4)) {
24330
+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DisplayDriver_SelectLinesByBox" "', argument " "4"" of type '" "double""'");
24332
+ arg4 = static_cast< double >(val4);
24333
+ ecode5 = SWIG_AsVal_double(obj4, &val5);
24334
+ if (!SWIG_IsOK(ecode5)) {
24335
+ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DisplayDriver_SelectLinesByBox" "', argument " "5"" of type '" "double""'");
24337
+ arg5 = static_cast< double >(val5);
24338
+ ecode6 = SWIG_AsVal_double(obj5, &val6);
24339
+ if (!SWIG_IsOK(ecode6)) {
24340
+ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DisplayDriver_SelectLinesByBox" "', argument " "6"" of type '" "double""'");
24342
+ arg6 = static_cast< double >(val6);
24343
+ ecode7 = SWIG_AsVal_double(obj6, &val7);
24344
+ if (!SWIG_IsOK(ecode7)) {
24345
+ SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DisplayDriver_SelectLinesByBox" "', argument " "7"" of type '" "double""'");
24347
+ arg7 = static_cast< double >(val7);
24348
+ ecode8 = SWIG_AsVal_int(obj7, &val8);
24349
+ if (!SWIG_IsOK(ecode8)) {
24350
+ SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DisplayDriver_SelectLinesByBox" "', argument " "8"" of type '" "int""'");
24352
+ arg8 = static_cast< int >(val8);
24353
+ ecode9 = SWIG_AsVal_bool(obj8, &val9);
24354
+ if (!SWIG_IsOK(ecode9)) {
24355
+ SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DisplayDriver_SelectLinesByBox" "', argument " "9"" of type '" "bool""'");
24357
+ arg9 = static_cast< bool >(val9);
24358
+ ecode10 = SWIG_AsVal_bool(obj9, &val10);
24359
+ if (!SWIG_IsOK(ecode10)) {
24360
+ SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DisplayDriver_SelectLinesByBox" "', argument " "10"" of type '" "bool""'");
24362
+ arg10 = static_cast< bool >(val10);
24363
+ result = (int)(arg1)->SelectLinesByBox(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
24364
+ resultobj = SWIG_From_int(static_cast< int >(result));
24365
+ return resultobj;
24371
+SWIGINTERN PyObject *_wrap_DisplayDriver_SelectLineByPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24372
+ PyObject *resultobj = 0;
24373
+ DisplayDriver *arg1 = (DisplayDriver *) 0 ;
24380
+ void *argp1 = 0 ;
24394
+ PyObject * obj0 = 0 ;
24395
+ PyObject * obj1 = 0 ;
24396
+ PyObject * obj2 = 0 ;
24397
+ PyObject * obj3 = 0 ;
24398
+ PyObject * obj4 = 0 ;
24399
+ PyObject * obj5 = 0 ;
24400
+ PyObject * obj6 = 0 ;
24401
+ std::vector< double,std::allocator< double > > result;
24403
+ if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:DisplayDriver_SelectLineByPoint",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24404
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DisplayDriver, 0 | 0 );
24405
+ if (!SWIG_IsOK(res1)) {
24406
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DisplayDriver_SelectLineByPoint" "', argument " "1"" of type '" "DisplayDriver *""'");
24408
+ arg1 = reinterpret_cast< DisplayDriver * >(argp1);
24409
+ ecode2 = SWIG_AsVal_double(obj1, &val2);
24410
+ if (!SWIG_IsOK(ecode2)) {
24411
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DisplayDriver_SelectLineByPoint" "', argument " "2"" of type '" "double""'");
24413
+ arg2 = static_cast< double >(val2);
24414
+ ecode3 = SWIG_AsVal_double(obj2, &val3);
24415
+ if (!SWIG_IsOK(ecode3)) {
24416
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DisplayDriver_SelectLineByPoint" "', argument " "3"" of type '" "double""'");
24418
+ arg3 = static_cast< double >(val3);
24419
+ ecode4 = SWIG_AsVal_double(obj3, &val4);
24420
+ if (!SWIG_IsOK(ecode4)) {
24421
+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DisplayDriver_SelectLineByPoint" "', argument " "4"" of type '" "double""'");
24423
+ arg4 = static_cast< double >(val4);
24424
+ ecode5 = SWIG_AsVal_double(obj4, &val5);
24425
+ if (!SWIG_IsOK(ecode5)) {
24426
+ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DisplayDriver_SelectLineByPoint" "', argument " "5"" of type '" "double""'");
24428
+ arg5 = static_cast< double >(val5);
24429
+ ecode6 = SWIG_AsVal_int(obj5, &val6);
24430
+ if (!SWIG_IsOK(ecode6)) {
24431
+ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DisplayDriver_SelectLineByPoint" "', argument " "6"" of type '" "int""'");
24433
+ arg6 = static_cast< int >(val6);
24434
+ ecode7 = SWIG_AsVal_int(obj6, &val7);
24435
+ if (!SWIG_IsOK(ecode7)) {
24436
+ SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DisplayDriver_SelectLineByPoint" "', argument " "7"" of type '" "int""'");
24438
+ arg7 = static_cast< int >(val7);
24439
+ result = (arg1)->SelectLineByPoint(arg2,arg3,arg4,arg5,arg6,arg7);
24440
+ resultobj = swig::from(static_cast< std::vector<double,std::allocator< double > > >(result));
24441
+ return resultobj;
24447
+SWIGINTERN PyObject *_wrap_DisplayDriver_GetSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24448
+ PyObject *resultobj = 0;
24449
+ DisplayDriver *arg1 = (DisplayDriver *) 0 ;
24451
+ void *argp1 = 0 ;
24455
+ PyObject * obj0 = 0 ;
24456
+ PyObject * obj1 = 0 ;
24457
+ std::vector< int,std::allocator< int > > result;
24459
+ if (!PyArg_ParseTuple(args,(char *)"OO:DisplayDriver_GetSelected",&obj0,&obj1)) SWIG_fail;
24460
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DisplayDriver, 0 | 0 );
24461
+ if (!SWIG_IsOK(res1)) {
24462
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DisplayDriver_GetSelected" "', argument " "1"" of type '" "DisplayDriver *""'");
24464
+ arg1 = reinterpret_cast< DisplayDriver * >(argp1);
24465
+ ecode2 = SWIG_AsVal_bool(obj1, &val2);
24466
+ if (!SWIG_IsOK(ecode2)) {
24467
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DisplayDriver_GetSelected" "', argument " "2"" of type '" "bool""'");
24469
+ arg2 = static_cast< bool >(val2);
24470
+ result = (arg1)->GetSelected(arg2);
24471
+ resultobj = swig::from(static_cast< std::vector<int,std::allocator< int > > >(result));
24472
+ return resultobj;
24478
+SWIGINTERN PyObject *_wrap_DisplayDriver_GetSelectedCoord(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24479
+ PyObject *resultobj = 0;
24480
+ DisplayDriver *arg1 = (DisplayDriver *) 0 ;
24481
+ void *argp1 = 0 ;
24483
+ PyObject * obj0 = 0 ;
24484
+ std::map< int,std::vector< double,std::allocator< double > >,std::less< int >,std::allocator< std::pair< int const,std::vector< double,std::allocator< double > > > > > result;
24486
+ if (!PyArg_ParseTuple(args,(char *)"O:DisplayDriver_GetSelectedCoord",&obj0)) SWIG_fail;
24487
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DisplayDriver, 0 | 0 );
24488
+ if (!SWIG_IsOK(res1)) {
24489
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DisplayDriver_GetSelectedCoord" "', argument " "1"" of type '" "DisplayDriver *""'");
24491
+ arg1 = reinterpret_cast< DisplayDriver * >(argp1);
24492
+ result = (arg1)->GetSelectedCoord();
24493
+ resultobj = swig::from(static_cast< std::map<int,std::vector< double,std::allocator< double > >,std::less< int >,std::allocator< std::pair< int const,std::vector< double,std::allocator< double > > > > > >(result));
24494
+ return resultobj;
24500
+SWIGINTERN PyObject *_wrap_DisplayDriver_GetDuplicates(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24501
+ PyObject *resultobj = 0;
24502
+ DisplayDriver *arg1 = (DisplayDriver *) 0 ;
24503
+ void *argp1 = 0 ;
24505
+ PyObject * obj0 = 0 ;
24506
+ std::map< int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > > result;
24508
+ if (!PyArg_ParseTuple(args,(char *)"O:DisplayDriver_GetDuplicates",&obj0)) SWIG_fail;
24509
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DisplayDriver, 0 | 0 );
24510
+ if (!SWIG_IsOK(res1)) {
24511
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DisplayDriver_GetDuplicates" "', argument " "1"" of type '" "DisplayDriver *""'");
24513
+ arg1 = reinterpret_cast< DisplayDriver * >(argp1);
24514
+ result = (arg1)->GetDuplicates();
24515
+ resultobj = swig::from(static_cast< std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > > >(result));
24516
+ return resultobj;
24522
+SWIGINTERN PyObject *_wrap_DisplayDriver_GetRegionSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24523
+ PyObject *resultobj = 0;
24524
+ DisplayDriver *arg1 = (DisplayDriver *) 0 ;
24525
+ void *argp1 = 0 ;
24527
+ PyObject * obj0 = 0 ;
24528
+ std::vector< double,std::allocator< double > > result;
24530
+ if (!PyArg_ParseTuple(args,(char *)"O:DisplayDriver_GetRegionSelected",&obj0)) SWIG_fail;
24531
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DisplayDriver, 0 | 0 );
24532
+ if (!SWIG_IsOK(res1)) {
24533
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DisplayDriver_GetRegionSelected" "', argument " "1"" of type '" "DisplayDriver *""'");
24535
+ arg1 = reinterpret_cast< DisplayDriver * >(argp1);
24536
+ result = (arg1)->GetRegionSelected();
24537
+ resultobj = swig::from(static_cast< std::vector<double,std::allocator< double > > >(result));
24538
+ return resultobj;
24544
+SWIGINTERN PyObject *_wrap_DisplayDriver_SetSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24545
+ PyObject *resultobj = 0;
24546
+ DisplayDriver *arg1 = (DisplayDriver *) 0 ;
24547
+ std::vector< int,std::allocator< int > > arg2 ;
24549
+ void *argp1 = 0 ;
24553
+ PyObject * obj0 = 0 ;
24554
+ PyObject * obj1 = 0 ;
24555
+ PyObject * obj2 = 0 ;
24558
+ if (!PyArg_ParseTuple(args,(char *)"OOO:DisplayDriver_SetSelected",&obj0,&obj1,&obj2)) SWIG_fail;
24559
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DisplayDriver, 0 | 0 );
24560
+ if (!SWIG_IsOK(res1)) {
24561
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DisplayDriver_SetSelected" "', argument " "1"" of type '" "DisplayDriver *""'");
24563
+ arg1 = reinterpret_cast< DisplayDriver * >(argp1);
24565
+ std::vector<int,std::allocator< int > > *ptr = (std::vector<int,std::allocator< int > > *)0;
24566
+ int res = swig::asptr(obj1, &ptr);
24567
+ if (!SWIG_IsOK(res) || !ptr) {
24568
+ SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "DisplayDriver_SetSelected" "', argument " "2"" of type '" "std::vector< int,std::allocator< int > >""'");
24571
+ if (SWIG_IsNewObj(res)) delete ptr;
24573
+ ecode3 = SWIG_AsVal_int(obj2, &val3);
24574
+ if (!SWIG_IsOK(ecode3)) {
24575
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DisplayDriver_SetSelected" "', argument " "3"" of type '" "int""'");
24577
+ arg3 = static_cast< int >(val3);
24578
+ result = (int)(arg1)->SetSelected(arg2,arg3);
24579
+ resultobj = SWIG_From_int(static_cast< int >(result));
24580
+ return resultobj;
24586
+SWIGINTERN PyObject *_wrap_DisplayDriver_UnSelect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24587
+ PyObject *resultobj = 0;
24588
+ DisplayDriver *arg1 = (DisplayDriver *) 0 ;
24589
+ std::vector< int,std::allocator< int > > arg2 ;
24590
+ void *argp1 = 0 ;
24592
+ PyObject * obj0 = 0 ;
24593
+ PyObject * obj1 = 0 ;
24596
+ if (!PyArg_ParseTuple(args,(char *)"OO:DisplayDriver_UnSelect",&obj0,&obj1)) SWIG_fail;
24597
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DisplayDriver, 0 | 0 );
24598
+ if (!SWIG_IsOK(res1)) {
24599
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DisplayDriver_UnSelect" "', argument " "1"" of type '" "DisplayDriver *""'");
24601
+ arg1 = reinterpret_cast< DisplayDriver * >(argp1);
24603
+ std::vector<int,std::allocator< int > > *ptr = (std::vector<int,std::allocator< int > > *)0;
24604
+ int res = swig::asptr(obj1, &ptr);
24605
+ if (!SWIG_IsOK(res) || !ptr) {
24606
+ SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "DisplayDriver_UnSelect" "', argument " "2"" of type '" "std::vector< int,std::allocator< int > >""'");
24609
+ if (SWIG_IsNewObj(res)) delete ptr;
24611
+ result = (int)(arg1)->UnSelect(arg2);
24612
+ resultobj = SWIG_From_int(static_cast< int >(result));
24613
+ return resultobj;
24619
+SWIGINTERN PyObject *_wrap_DisplayDriver_GetSelectedVertex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24620
+ PyObject *resultobj = 0;
24621
+ DisplayDriver *arg1 = (DisplayDriver *) 0 ;
24625
+ void *argp1 = 0 ;
24633
+ PyObject * obj0 = 0 ;
24634
+ PyObject * obj1 = 0 ;
24635
+ PyObject * obj2 = 0 ;
24636
+ PyObject * obj3 = 0 ;
24637
+ std::vector< int,std::allocator< int > > result;
24639
+ if (!PyArg_ParseTuple(args,(char *)"OOOO:DisplayDriver_GetSelectedVertex",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24640
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DisplayDriver, 0 | 0 );
24641
+ if (!SWIG_IsOK(res1)) {
24642
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DisplayDriver_GetSelectedVertex" "', argument " "1"" of type '" "DisplayDriver *""'");
24644
+ arg1 = reinterpret_cast< DisplayDriver * >(argp1);
24645
+ ecode2 = SWIG_AsVal_double(obj1, &val2);
24646
+ if (!SWIG_IsOK(ecode2)) {
24647
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DisplayDriver_GetSelectedVertex" "', argument " "2"" of type '" "double""'");
24649
+ arg2 = static_cast< double >(val2);
24650
+ ecode3 = SWIG_AsVal_double(obj2, &val3);
24651
+ if (!SWIG_IsOK(ecode3)) {
24652
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DisplayDriver_GetSelectedVertex" "', argument " "3"" of type '" "double""'");
24654
+ arg3 = static_cast< double >(val3);
24655
+ ecode4 = SWIG_AsVal_double(obj3, &val4);
24656
+ if (!SWIG_IsOK(ecode4)) {
24657
+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DisplayDriver_GetSelectedVertex" "', argument " "4"" of type '" "double""'");
24659
+ arg4 = static_cast< double >(val4);
24660
+ result = (arg1)->GetSelectedVertex(arg2,arg3,arg4);
24661
+ resultobj = swig::from(static_cast< std::vector<int,std::allocator< int > > >(result));
24662
+ return resultobj;
24668
+SWIGINTERN PyObject *_wrap_DisplayDriver_DrawSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24669
+ PyObject *resultobj = 0;
24670
+ DisplayDriver *arg1 = (DisplayDriver *) 0 ;
24672
+ void *argp1 = 0 ;
24676
+ PyObject * obj0 = 0 ;
24677
+ PyObject * obj1 = 0 ;
24679
+ if (!PyArg_ParseTuple(args,(char *)"OO:DisplayDriver_DrawSelected",&obj0,&obj1)) SWIG_fail;
24680
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DisplayDriver, 0 | 0 );
24681
+ if (!SWIG_IsOK(res1)) {
24682
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DisplayDriver_DrawSelected" "', argument " "1"" of type '" "DisplayDriver *""'");
24684
+ arg1 = reinterpret_cast< DisplayDriver * >(argp1);
24685
+ ecode2 = SWIG_AsVal_bool(obj1, &val2);
24686
+ if (!SWIG_IsOK(ecode2)) {
24687
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DisplayDriver_DrawSelected" "', argument " "2"" of type '" "bool""'");
24689
+ arg2 = static_cast< bool >(val2);
24690
+ (arg1)->DrawSelected(arg2);
24691
+ resultobj = SWIG_Py_Void();
24692
+ return resultobj;
24698
+SWIGINTERN PyObject *_wrap_DisplayDriver_CloseMap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24699
+ PyObject *resultobj = 0;
24700
+ DisplayDriver *arg1 = (DisplayDriver *) 0 ;
24701
+ void *argp1 = 0 ;
24703
+ PyObject * obj0 = 0 ;
24706
+ if (!PyArg_ParseTuple(args,(char *)"O:DisplayDriver_CloseMap",&obj0)) SWIG_fail;
24707
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DisplayDriver, 0 | 0 );
24708
+ if (!SWIG_IsOK(res1)) {
24709
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DisplayDriver_CloseMap" "', argument " "1"" of type '" "DisplayDriver *""'");
24711
+ arg1 = reinterpret_cast< DisplayDriver * >(argp1);
24712
+ result = (int)(arg1)->CloseMap();
24713
+ resultobj = SWIG_From_int(static_cast< int >(result));
24714
+ return resultobj;
24720
+SWIGINTERN PyObject *_wrap_DisplayDriver_OpenMap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24721
+ PyObject *resultobj = 0;
24722
+ DisplayDriver *arg1 = (DisplayDriver *) 0 ;
24723
+ char *arg2 = (char *) 0 ;
24724
+ char *arg3 = (char *) 0 ;
24726
+ void *argp1 = 0 ;
24736
+ PyObject * obj0 = 0 ;
24737
+ PyObject * obj1 = 0 ;
24738
+ PyObject * obj2 = 0 ;
24739
+ PyObject * obj3 = 0 ;
24742
+ if (!PyArg_ParseTuple(args,(char *)"OOOO:DisplayDriver_OpenMap",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24743
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DisplayDriver, 0 | 0 );
24744
+ if (!SWIG_IsOK(res1)) {
24745
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DisplayDriver_OpenMap" "', argument " "1"" of type '" "DisplayDriver *""'");
24747
+ arg1 = reinterpret_cast< DisplayDriver * >(argp1);
24748
+ res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
24749
+ if (!SWIG_IsOK(res2)) {
24750
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DisplayDriver_OpenMap" "', argument " "2"" of type '" "char const *""'");
24752
+ arg2 = reinterpret_cast< char * >(buf2);
24753
+ res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
24754
+ if (!SWIG_IsOK(res3)) {
24755
+ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DisplayDriver_OpenMap" "', argument " "3"" of type '" "char const *""'");
24757
+ arg3 = reinterpret_cast< char * >(buf3);
24758
+ ecode4 = SWIG_AsVal_bool(obj3, &val4);
24759
+ if (!SWIG_IsOK(ecode4)) {
24760
+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DisplayDriver_OpenMap" "', argument " "4"" of type '" "bool""'");
24762
+ arg4 = static_cast< bool >(val4);
24763
+ result = (int)(arg1)->OpenMap((char const *)arg2,(char const *)arg3,arg4);
24764
+ resultobj = SWIG_From_int(static_cast< int >(result));
24765
+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
24766
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
24767
+ return resultobj;
24769
+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
24770
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
24775
+SWIGINTERN PyObject *_wrap_DisplayDriver_ReloadMap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24776
+ PyObject *resultobj = 0;
24777
+ DisplayDriver *arg1 = (DisplayDriver *) 0 ;
24778
+ void *argp1 = 0 ;
24780
+ PyObject * obj0 = 0 ;
24782
+ if (!PyArg_ParseTuple(args,(char *)"O:DisplayDriver_ReloadMap",&obj0)) SWIG_fail;
24783
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DisplayDriver, 0 | 0 );
24784
+ if (!SWIG_IsOK(res1)) {
24785
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DisplayDriver_ReloadMap" "', argument " "1"" of type '" "DisplayDriver *""'");
24787
+ arg1 = reinterpret_cast< DisplayDriver * >(argp1);
24788
+ (arg1)->ReloadMap();
24789
+ resultobj = SWIG_Py_Void();
24790
+ return resultobj;
24796
+SWIGINTERN PyObject *_wrap_DisplayDriver_SetDevice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24797
+ PyObject *resultobj = 0;
24798
+ DisplayDriver *arg1 = (DisplayDriver *) 0 ;
24799
+ void *arg2 = (void *) 0 ;
24800
+ void *argp1 = 0 ;
24803
+ PyObject * obj0 = 0 ;
24804
+ PyObject * obj1 = 0 ;
24806
+ if (!PyArg_ParseTuple(args,(char *)"OO:DisplayDriver_SetDevice",&obj0,&obj1)) SWIG_fail;
24807
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DisplayDriver, 0 | 0 );
24808
+ if (!SWIG_IsOK(res1)) {
24809
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DisplayDriver_SetDevice" "', argument " "1"" of type '" "DisplayDriver *""'");
24811
+ arg1 = reinterpret_cast< DisplayDriver * >(argp1);
24812
+ res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
24813
+ if (!SWIG_IsOK(res2)) {
24814
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DisplayDriver_SetDevice" "', argument " "2"" of type '" "void *""'");
24816
+ (arg1)->SetDevice(arg2);
24817
+ resultobj = SWIG_Py_Void();
24818
+ return resultobj;
24824
+SWIGINTERN PyObject *_wrap_DisplayDriver_GetMapBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24825
+ PyObject *resultobj = 0;
24826
+ DisplayDriver *arg1 = (DisplayDriver *) 0 ;
24827
+ void *argp1 = 0 ;
24829
+ PyObject * obj0 = 0 ;
24830
+ std::vector< double,std::allocator< double > > result;
24832
+ if (!PyArg_ParseTuple(args,(char *)"O:DisplayDriver_GetMapBoundingBox",&obj0)) SWIG_fail;
24833
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DisplayDriver, 0 | 0 );
24834
+ if (!SWIG_IsOK(res1)) {
24835
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DisplayDriver_GetMapBoundingBox" "', argument " "1"" of type '" "DisplayDriver *""'");
24837
+ arg1 = reinterpret_cast< DisplayDriver * >(argp1);
24838
+ result = (arg1)->GetMapBoundingBox();
24839
+ resultobj = swig::from(static_cast< std::vector<double,std::allocator< double > > >(result));
24840
+ return resultobj;
24846
+SWIGINTERN PyObject *_wrap_DisplayDriver_Is3D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24847
+ PyObject *resultobj = 0;
24848
+ DisplayDriver *arg1 = (DisplayDriver *) 0 ;
24849
+ void *argp1 = 0 ;
24851
+ PyObject * obj0 = 0 ;
24854
+ if (!PyArg_ParseTuple(args,(char *)"O:DisplayDriver_Is3D",&obj0)) SWIG_fail;
24855
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DisplayDriver, 0 | 0 );
24856
+ if (!SWIG_IsOK(res1)) {
24857
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DisplayDriver_Is3D" "', argument " "1"" of type '" "DisplayDriver *""'");
24859
+ arg1 = reinterpret_cast< DisplayDriver * >(argp1);
24860
+ result = (bool)(arg1)->Is3D();
24861
+ resultobj = SWIG_From_bool(static_cast< bool >(result));
24862
+ return resultobj;
24868
+SWIGINTERN PyObject *_wrap_DisplayDriver_SetRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24869
+ PyObject *resultobj = 0;
24870
+ DisplayDriver *arg1 = (DisplayDriver *) 0 ;
24881
+ void *argp1 = 0 ;
24900
+ int ecode10 = 0 ;
24902
+ int ecode11 = 0 ;
24903
+ PyObject * obj0 = 0 ;
24904
+ PyObject * obj1 = 0 ;
24905
+ PyObject * obj2 = 0 ;
24906
+ PyObject * obj3 = 0 ;
24907
+ PyObject * obj4 = 0 ;
24908
+ PyObject * obj5 = 0 ;
24909
+ PyObject * obj6 = 0 ;
24910
+ PyObject * obj7 = 0 ;
24911
+ PyObject * obj8 = 0 ;
24912
+ PyObject * obj9 = 0 ;
24913
+ PyObject * obj10 = 0 ;
24915
+ if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOO:DisplayDriver_SetRegion",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
24916
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DisplayDriver, 0 | 0 );
24917
+ if (!SWIG_IsOK(res1)) {
24918
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DisplayDriver_SetRegion" "', argument " "1"" of type '" "DisplayDriver *""'");
24920
+ arg1 = reinterpret_cast< DisplayDriver * >(argp1);
24921
+ ecode2 = SWIG_AsVal_double(obj1, &val2);
24922
+ if (!SWIG_IsOK(ecode2)) {
24923
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DisplayDriver_SetRegion" "', argument " "2"" of type '" "double""'");
24925
+ arg2 = static_cast< double >(val2);
24926
+ ecode3 = SWIG_AsVal_double(obj2, &val3);
24927
+ if (!SWIG_IsOK(ecode3)) {
24928
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DisplayDriver_SetRegion" "', argument " "3"" of type '" "double""'");
24930
+ arg3 = static_cast< double >(val3);
24931
+ ecode4 = SWIG_AsVal_double(obj3, &val4);
24932
+ if (!SWIG_IsOK(ecode4)) {
24933
+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DisplayDriver_SetRegion" "', argument " "4"" of type '" "double""'");
24935
+ arg4 = static_cast< double >(val4);
24936
+ ecode5 = SWIG_AsVal_double(obj4, &val5);
24937
+ if (!SWIG_IsOK(ecode5)) {
24938
+ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DisplayDriver_SetRegion" "', argument " "5"" of type '" "double""'");
24940
+ arg5 = static_cast< double >(val5);
24941
+ ecode6 = SWIG_AsVal_double(obj5, &val6);
24942
+ if (!SWIG_IsOK(ecode6)) {
24943
+ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DisplayDriver_SetRegion" "', argument " "6"" of type '" "double""'");
24945
+ arg6 = static_cast< double >(val6);
24946
+ ecode7 = SWIG_AsVal_double(obj6, &val7);
24947
+ if (!SWIG_IsOK(ecode7)) {
24948
+ SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DisplayDriver_SetRegion" "', argument " "7"" of type '" "double""'");
24950
+ arg7 = static_cast< double >(val7);
24951
+ ecode8 = SWIG_AsVal_double(obj7, &val8);
24952
+ if (!SWIG_IsOK(ecode8)) {
24953
+ SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DisplayDriver_SetRegion" "', argument " "8"" of type '" "double""'");
24955
+ arg8 = static_cast< double >(val8);
24956
+ ecode9 = SWIG_AsVal_double(obj8, &val9);
24957
+ if (!SWIG_IsOK(ecode9)) {
24958
+ SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DisplayDriver_SetRegion" "', argument " "9"" of type '" "double""'");
24960
+ arg9 = static_cast< double >(val9);
24961
+ ecode10 = SWIG_AsVal_double(obj9, &val10);
24962
+ if (!SWIG_IsOK(ecode10)) {
24963
+ SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DisplayDriver_SetRegion" "', argument " "10"" of type '" "double""'");
24965
+ arg10 = static_cast< double >(val10);
24966
+ ecode11 = SWIG_AsVal_double(obj10, &val11);
24967
+ if (!SWIG_IsOK(ecode11)) {
24968
+ SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DisplayDriver_SetRegion" "', argument " "11"" of type '" "double""'");
24970
+ arg11 = static_cast< double >(val11);
24971
+ (arg1)->SetRegion(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11);
24972
+ resultobj = SWIG_Py_Void();
24973
+ return resultobj;
24979
+SWIGINTERN PyObject *_wrap_DisplayDriver_UpdateSettings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24980
+ PyObject *resultobj = 0;
24981
+ DisplayDriver *arg1 = (DisplayDriver *) 0 ;
24982
+ unsigned long arg2 ;
24984
+ unsigned long arg4 ;
24986
+ unsigned long arg6 ;
24988
+ unsigned long arg8 ;
24990
+ unsigned long arg10 ;
24992
+ unsigned long arg12 ;
24994
+ unsigned long arg14 ;
24996
+ unsigned long arg16 ;
24998
+ unsigned long arg18 ;
25000
+ unsigned long arg20 ;
25002
+ unsigned long arg22 ;
25004
+ unsigned long arg24 ;
25006
+ unsigned long arg26 ;
25008
+ unsigned long arg28 ;
25010
+ unsigned long arg30 ;
25013
+ void *argp1 = 0 ;
25015
+ unsigned long val2 ;
25019
+ unsigned long val4 ;
25023
+ unsigned long val6 ;
25027
+ unsigned long val8 ;
25031
+ unsigned long val10 ;
25032
+ int ecode10 = 0 ;
25034
+ int ecode11 = 0 ;
25035
+ unsigned long val12 ;
25036
+ int ecode12 = 0 ;
25038
+ int ecode13 = 0 ;
25039
+ unsigned long val14 ;
25040
+ int ecode14 = 0 ;
25042
+ int ecode15 = 0 ;
25043
+ unsigned long val16 ;
25044
+ int ecode16 = 0 ;
25046
+ int ecode17 = 0 ;
25047
+ unsigned long val18 ;
25048
+ int ecode18 = 0 ;
25050
+ int ecode19 = 0 ;
25051
+ unsigned long val20 ;
25052
+ int ecode20 = 0 ;
25054
+ int ecode21 = 0 ;
25055
+ unsigned long val22 ;
25056
+ int ecode22 = 0 ;
25058
+ int ecode23 = 0 ;
25059
+ unsigned long val24 ;
25060
+ int ecode24 = 0 ;
25062
+ int ecode25 = 0 ;
25063
+ unsigned long val26 ;
25064
+ int ecode26 = 0 ;
25066
+ int ecode27 = 0 ;
25067
+ unsigned long val28 ;
25068
+ int ecode28 = 0 ;
25070
+ int ecode29 = 0 ;
25071
+ unsigned long val30 ;
25072
+ int ecode30 = 0 ;
25074
+ int ecode31 = 0 ;
25076
+ int ecode32 = 0 ;
25077
+ PyObject * obj0 = 0 ;
25078
+ PyObject * obj1 = 0 ;
25079
+ PyObject * obj2 = 0 ;
25080
+ PyObject * obj3 = 0 ;
25081
+ PyObject * obj4 = 0 ;
25082
+ PyObject * obj5 = 0 ;
25083
+ PyObject * obj6 = 0 ;
25084
+ PyObject * obj7 = 0 ;
25085
+ PyObject * obj8 = 0 ;
25086
+ PyObject * obj9 = 0 ;
25087
+ PyObject * obj10 = 0 ;
25088
+ PyObject * obj11 = 0 ;
25089
+ PyObject * obj12 = 0 ;
25090
+ PyObject * obj13 = 0 ;
25091
+ PyObject * obj14 = 0 ;
25092
+ PyObject * obj15 = 0 ;
25093
+ PyObject * obj16 = 0 ;
25094
+ PyObject * obj17 = 0 ;
25095
+ PyObject * obj18 = 0 ;
25096
+ PyObject * obj19 = 0 ;
25097
+ PyObject * obj20 = 0 ;
25098
+ PyObject * obj21 = 0 ;
25099
+ PyObject * obj22 = 0 ;
25100
+ PyObject * obj23 = 0 ;
25101
+ PyObject * obj24 = 0 ;
25102
+ PyObject * obj25 = 0 ;
25103
+ PyObject * obj26 = 0 ;
25104
+ PyObject * obj27 = 0 ;
25105
+ PyObject * obj28 = 0 ;
25106
+ PyObject * obj29 = 0 ;
25107
+ PyObject * obj30 = 0 ;
25108
+ PyObject * obj31 = 0 ;
25110
+ if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO:DisplayDriver_UpdateSettings",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13,&obj14,&obj15,&obj16,&obj17,&obj18,&obj19,&obj20,&obj21,&obj22,&obj23,&obj24,&obj25,&obj26,&obj27,&obj28,&obj29,&obj30,&obj31)) SWIG_fail;
25111
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DisplayDriver, 0 | 0 );
25112
+ if (!SWIG_IsOK(res1)) {
25113
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DisplayDriver_UpdateSettings" "', argument " "1"" of type '" "DisplayDriver *""'");
25115
+ arg1 = reinterpret_cast< DisplayDriver * >(argp1);
25116
+ ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
25117
+ if (!SWIG_IsOK(ecode2)) {
25118
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DisplayDriver_UpdateSettings" "', argument " "2"" of type '" "unsigned long""'");
25120
+ arg2 = static_cast< unsigned long >(val2);
25121
+ ecode3 = SWIG_AsVal_bool(obj2, &val3);
25122
+ if (!SWIG_IsOK(ecode3)) {
25123
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DisplayDriver_UpdateSettings" "', argument " "3"" of type '" "bool""'");
25125
+ arg3 = static_cast< bool >(val3);
25126
+ ecode4 = SWIG_AsVal_unsigned_SS_long(obj3, &val4);
25127
+ if (!SWIG_IsOK(ecode4)) {
25128
+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DisplayDriver_UpdateSettings" "', argument " "4"" of type '" "unsigned long""'");
25130
+ arg4 = static_cast< unsigned long >(val4);
25131
+ ecode5 = SWIG_AsVal_bool(obj4, &val5);
25132
+ if (!SWIG_IsOK(ecode5)) {
25133
+ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DisplayDriver_UpdateSettings" "', argument " "5"" of type '" "bool""'");
25135
+ arg5 = static_cast< bool >(val5);
25136
+ ecode6 = SWIG_AsVal_unsigned_SS_long(obj5, &val6);
25137
+ if (!SWIG_IsOK(ecode6)) {
25138
+ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DisplayDriver_UpdateSettings" "', argument " "6"" of type '" "unsigned long""'");
25140
+ arg6 = static_cast< unsigned long >(val6);
25141
+ ecode7 = SWIG_AsVal_bool(obj6, &val7);
25142
+ if (!SWIG_IsOK(ecode7)) {
25143
+ SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DisplayDriver_UpdateSettings" "', argument " "7"" of type '" "bool""'");
25145
+ arg7 = static_cast< bool >(val7);
25146
+ ecode8 = SWIG_AsVal_unsigned_SS_long(obj7, &val8);
25147
+ if (!SWIG_IsOK(ecode8)) {
25148
+ SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DisplayDriver_UpdateSettings" "', argument " "8"" of type '" "unsigned long""'");
25150
+ arg8 = static_cast< unsigned long >(val8);
25151
+ ecode9 = SWIG_AsVal_bool(obj8, &val9);
25152
+ if (!SWIG_IsOK(ecode9)) {
25153
+ SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DisplayDriver_UpdateSettings" "', argument " "9"" of type '" "bool""'");
25155
+ arg9 = static_cast< bool >(val9);
25156
+ ecode10 = SWIG_AsVal_unsigned_SS_long(obj9, &val10);
25157
+ if (!SWIG_IsOK(ecode10)) {
25158
+ SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DisplayDriver_UpdateSettings" "', argument " "10"" of type '" "unsigned long""'");
25160
+ arg10 = static_cast< unsigned long >(val10);
25161
+ ecode11 = SWIG_AsVal_bool(obj10, &val11);
25162
+ if (!SWIG_IsOK(ecode11)) {
25163
+ SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DisplayDriver_UpdateSettings" "', argument " "11"" of type '" "bool""'");
25165
+ arg11 = static_cast< bool >(val11);
25166
+ ecode12 = SWIG_AsVal_unsigned_SS_long(obj11, &val12);
25167
+ if (!SWIG_IsOK(ecode12)) {
25168
+ SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DisplayDriver_UpdateSettings" "', argument " "12"" of type '" "unsigned long""'");
25170
+ arg12 = static_cast< unsigned long >(val12);
25171
+ ecode13 = SWIG_AsVal_bool(obj12, &val13);
25172
+ if (!SWIG_IsOK(ecode13)) {
25173
+ SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "DisplayDriver_UpdateSettings" "', argument " "13"" of type '" "bool""'");
25175
+ arg13 = static_cast< bool >(val13);
25176
+ ecode14 = SWIG_AsVal_unsigned_SS_long(obj13, &val14);
25177
+ if (!SWIG_IsOK(ecode14)) {
25178
+ SWIG_exception_fail(SWIG_ArgError(ecode14), "in method '" "DisplayDriver_UpdateSettings" "', argument " "14"" of type '" "unsigned long""'");
25180
+ arg14 = static_cast< unsigned long >(val14);
25181
+ ecode15 = SWIG_AsVal_bool(obj14, &val15);
25182
+ if (!SWIG_IsOK(ecode15)) {
25183
+ SWIG_exception_fail(SWIG_ArgError(ecode15), "in method '" "DisplayDriver_UpdateSettings" "', argument " "15"" of type '" "bool""'");
25185
+ arg15 = static_cast< bool >(val15);
25186
+ ecode16 = SWIG_AsVal_unsigned_SS_long(obj15, &val16);
25187
+ if (!SWIG_IsOK(ecode16)) {
25188
+ SWIG_exception_fail(SWIG_ArgError(ecode16), "in method '" "DisplayDriver_UpdateSettings" "', argument " "16"" of type '" "unsigned long""'");
25190
+ arg16 = static_cast< unsigned long >(val16);
25191
+ ecode17 = SWIG_AsVal_bool(obj16, &val17);
25192
+ if (!SWIG_IsOK(ecode17)) {
25193
+ SWIG_exception_fail(SWIG_ArgError(ecode17), "in method '" "DisplayDriver_UpdateSettings" "', argument " "17"" of type '" "bool""'");
25195
+ arg17 = static_cast< bool >(val17);
25196
+ ecode18 = SWIG_AsVal_unsigned_SS_long(obj17, &val18);
25197
+ if (!SWIG_IsOK(ecode18)) {
25198
+ SWIG_exception_fail(SWIG_ArgError(ecode18), "in method '" "DisplayDriver_UpdateSettings" "', argument " "18"" of type '" "unsigned long""'");
25200
+ arg18 = static_cast< unsigned long >(val18);
25201
+ ecode19 = SWIG_AsVal_bool(obj18, &val19);
25202
+ if (!SWIG_IsOK(ecode19)) {
25203
+ SWIG_exception_fail(SWIG_ArgError(ecode19), "in method '" "DisplayDriver_UpdateSettings" "', argument " "19"" of type '" "bool""'");
25205
+ arg19 = static_cast< bool >(val19);
25206
+ ecode20 = SWIG_AsVal_unsigned_SS_long(obj19, &val20);
25207
+ if (!SWIG_IsOK(ecode20)) {
25208
+ SWIG_exception_fail(SWIG_ArgError(ecode20), "in method '" "DisplayDriver_UpdateSettings" "', argument " "20"" of type '" "unsigned long""'");
25210
+ arg20 = static_cast< unsigned long >(val20);
25211
+ ecode21 = SWIG_AsVal_bool(obj20, &val21);
25212
+ if (!SWIG_IsOK(ecode21)) {
25213
+ SWIG_exception_fail(SWIG_ArgError(ecode21), "in method '" "DisplayDriver_UpdateSettings" "', argument " "21"" of type '" "bool""'");
25215
+ arg21 = static_cast< bool >(val21);
25216
+ ecode22 = SWIG_AsVal_unsigned_SS_long(obj21, &val22);
25217
+ if (!SWIG_IsOK(ecode22)) {
25218
+ SWIG_exception_fail(SWIG_ArgError(ecode22), "in method '" "DisplayDriver_UpdateSettings" "', argument " "22"" of type '" "unsigned long""'");
25220
+ arg22 = static_cast< unsigned long >(val22);
25221
+ ecode23 = SWIG_AsVal_bool(obj22, &val23);
25222
+ if (!SWIG_IsOK(ecode23)) {
25223
+ SWIG_exception_fail(SWIG_ArgError(ecode23), "in method '" "DisplayDriver_UpdateSettings" "', argument " "23"" of type '" "bool""'");
25225
+ arg23 = static_cast< bool >(val23);
25226
+ ecode24 = SWIG_AsVal_unsigned_SS_long(obj23, &val24);
25227
+ if (!SWIG_IsOK(ecode24)) {
25228
+ SWIG_exception_fail(SWIG_ArgError(ecode24), "in method '" "DisplayDriver_UpdateSettings" "', argument " "24"" of type '" "unsigned long""'");
25230
+ arg24 = static_cast< unsigned long >(val24);
25231
+ ecode25 = SWIG_AsVal_bool(obj24, &val25);
25232
+ if (!SWIG_IsOK(ecode25)) {
25233
+ SWIG_exception_fail(SWIG_ArgError(ecode25), "in method '" "DisplayDriver_UpdateSettings" "', argument " "25"" of type '" "bool""'");
25235
+ arg25 = static_cast< bool >(val25);
25236
+ ecode26 = SWIG_AsVal_unsigned_SS_long(obj25, &val26);
25237
+ if (!SWIG_IsOK(ecode26)) {
25238
+ SWIG_exception_fail(SWIG_ArgError(ecode26), "in method '" "DisplayDriver_UpdateSettings" "', argument " "26"" of type '" "unsigned long""'");
25240
+ arg26 = static_cast< unsigned long >(val26);
25241
+ ecode27 = SWIG_AsVal_bool(obj26, &val27);
25242
+ if (!SWIG_IsOK(ecode27)) {
25243
+ SWIG_exception_fail(SWIG_ArgError(ecode27), "in method '" "DisplayDriver_UpdateSettings" "', argument " "27"" of type '" "bool""'");
25245
+ arg27 = static_cast< bool >(val27);
25246
+ ecode28 = SWIG_AsVal_unsigned_SS_long(obj27, &val28);
25247
+ if (!SWIG_IsOK(ecode28)) {
25248
+ SWIG_exception_fail(SWIG_ArgError(ecode28), "in method '" "DisplayDriver_UpdateSettings" "', argument " "28"" of type '" "unsigned long""'");
25250
+ arg28 = static_cast< unsigned long >(val28);
25251
+ ecode29 = SWIG_AsVal_bool(obj28, &val29);
25252
+ if (!SWIG_IsOK(ecode29)) {
25253
+ SWIG_exception_fail(SWIG_ArgError(ecode29), "in method '" "DisplayDriver_UpdateSettings" "', argument " "29"" of type '" "bool""'");
25255
+ arg29 = static_cast< bool >(val29);
25256
+ ecode30 = SWIG_AsVal_unsigned_SS_long(obj29, &val30);
25257
+ if (!SWIG_IsOK(ecode30)) {
25258
+ SWIG_exception_fail(SWIG_ArgError(ecode30), "in method '" "DisplayDriver_UpdateSettings" "', argument " "30"" of type '" "unsigned long""'");
25260
+ arg30 = static_cast< unsigned long >(val30);
25261
+ ecode31 = SWIG_AsVal_int(obj30, &val31);
25262
+ if (!SWIG_IsOK(ecode31)) {
25263
+ SWIG_exception_fail(SWIG_ArgError(ecode31), "in method '" "DisplayDriver_UpdateSettings" "', argument " "31"" of type '" "int""'");
25265
+ arg31 = static_cast< int >(val31);
25266
+ ecode32 = SWIG_AsVal_int(obj31, &val32);
25267
+ if (!SWIG_IsOK(ecode32)) {
25268
+ SWIG_exception_fail(SWIG_ArgError(ecode32), "in method '" "DisplayDriver_UpdateSettings" "', argument " "32"" of type '" "int""'");
25270
+ arg32 = static_cast< int >(val32);
25271
+ (arg1)->UpdateSettings(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16,arg17,arg18,arg19,arg20,arg21,arg22,arg23,arg24,arg25,arg26,arg27,arg28,arg29,arg30,arg31,arg32);
25272
+ resultobj = SWIG_Py_Void();
25273
+ return resultobj;
25279
+SWIGINTERN PyObject *DisplayDriver_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25281
+ if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
25282
+ SWIG_TypeNewClientData(SWIGTYPE_p_DisplayDriver, SWIG_NewClientData(obj));
25283
+ return SWIG_Py_Void();
25286
+SWIGINTERN PyObject *_wrap_print_error(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25287
+ PyObject *resultobj = 0;
25288
+ char *arg1 = (char *) 0 ;
25295
+ PyObject * obj0 = 0 ;
25296
+ PyObject * obj1 = 0 ;
25299
+ if (!PyArg_ParseTuple(args,(char *)"OO:print_error",&obj0,&obj1)) SWIG_fail;
25300
+ res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
25301
+ if (!SWIG_IsOK(res1)) {
25302
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "print_error" "', argument " "1"" of type '" "char const *""'");
25304
+ arg1 = reinterpret_cast< char * >(buf1);
25305
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
25306
+ if (!SWIG_IsOK(ecode2)) {
25307
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "print_error" "', argument " "2"" of type '" "int""'");
25309
+ arg2 = static_cast< int >(val2);
25310
+ result = (int)print_error((char const *)arg1,arg2);
25311
+ resultobj = SWIG_From_int(static_cast< int >(result));
25312
+ if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
25313
+ return resultobj;
25315
+ if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
25320
+SWIGINTERN PyObject *_wrap_new_Digit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25321
+ PyObject *resultobj = 0;
25322
+ DisplayDriver *arg1 = (DisplayDriver *) 0 ;
25323
+ wxWindow *arg2 = (wxWindow *) 0 ;
25324
+ void *argp1 = 0 ;
25326
+ void *argp2 = 0 ;
25328
+ PyObject * obj0 = 0 ;
25329
+ PyObject * obj1 = 0 ;
25330
+ Digit *result = 0 ;
25332
+ if (!PyArg_ParseTuple(args,(char *)"OO:new_Digit",&obj0,&obj1)) SWIG_fail;
25333
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DisplayDriver, 0 | 0 );
25334
+ if (!SWIG_IsOK(res1)) {
25335
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Digit" "', argument " "1"" of type '" "DisplayDriver *""'");
25337
+ arg1 = reinterpret_cast< DisplayDriver * >(argp1);
25338
+ res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25339
+ if (!SWIG_IsOK(res2)) {
25340
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Digit" "', argument " "2"" of type '" "wxWindow *""'");
25342
+ arg2 = reinterpret_cast< wxWindow * >(argp2);
25343
+ result = (Digit *)new Digit(arg1,arg2);
25344
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Digit, SWIG_POINTER_NEW | 0 );
25345
+ return resultobj;
25351
+SWIGINTERN PyObject *_wrap_delete_Digit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25352
+ PyObject *resultobj = 0;
25353
+ Digit *arg1 = (Digit *) 0 ;
25354
+ void *argp1 = 0 ;
25356
+ PyObject * obj0 = 0 ;
25358
+ if (!PyArg_ParseTuple(args,(char *)"O:delete_Digit",&obj0)) SWIG_fail;
25359
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Digit, SWIG_POINTER_DISOWN | 0 );
25360
+ if (!SWIG_IsOK(res1)) {
25361
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Digit" "', argument " "1"" of type '" "Digit *""'");
25363
+ arg1 = reinterpret_cast< Digit * >(argp1);
25365
+ resultobj = SWIG_Py_Void();
25366
+ return resultobj;
25372
+SWIGINTERN PyObject *_wrap_Digit_InitCats(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25373
+ PyObject *resultobj = 0;
25374
+ Digit *arg1 = (Digit *) 0 ;
25375
+ void *argp1 = 0 ;
25377
+ PyObject * obj0 = 0 ;
25380
+ if (!PyArg_ParseTuple(args,(char *)"O:Digit_InitCats",&obj0)) SWIG_fail;
25381
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Digit, 0 | 0 );
25382
+ if (!SWIG_IsOK(res1)) {
25383
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Digit_InitCats" "', argument " "1"" of type '" "Digit *""'");
25385
+ arg1 = reinterpret_cast< Digit * >(argp1);
25386
+ result = (int)(arg1)->InitCats();
25387
+ resultobj = SWIG_From_int(static_cast< int >(result));
25388
+ return resultobj;
25394
+SWIGINTERN PyObject *_wrap_Digit_AddLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25395
+ PyObject *resultobj = 0;
25396
+ Digit *arg1 = (Digit *) 0 ;
25398
+ std::vector< double,std::allocator< double > > arg3 ;
25401
+ char *arg6 = (char *) 0 ;
25404
+ void *argp1 = 0 ;
25419
+ PyObject * obj0 = 0 ;
25420
+ PyObject * obj1 = 0 ;
25421
+ PyObject * obj2 = 0 ;
25422
+ PyObject * obj3 = 0 ;
25423
+ PyObject * obj4 = 0 ;
25424
+ PyObject * obj5 = 0 ;
25425
+ PyObject * obj6 = 0 ;
25426
+ PyObject * obj7 = 0 ;
25429
+ if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:Digit_AddLine",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
25430
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Digit, 0 | 0 );
25431
+ if (!SWIG_IsOK(res1)) {
25432
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Digit_AddLine" "', argument " "1"" of type '" "Digit *""'");
25434
+ arg1 = reinterpret_cast< Digit * >(argp1);
25435
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
25436
+ if (!SWIG_IsOK(ecode2)) {
25437
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Digit_AddLine" "', argument " "2"" of type '" "int""'");
25439
+ arg2 = static_cast< int >(val2);
25441
+ std::vector<double,std::allocator< double > > *ptr = (std::vector<double,std::allocator< double > > *)0;
25442
+ int res = swig::asptr(obj2, &ptr);
25443
+ if (!SWIG_IsOK(res) || !ptr) {
25444
+ SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Digit_AddLine" "', argument " "3"" of type '" "std::vector< double,std::allocator< double > >""'");
25447
+ if (SWIG_IsNewObj(res)) delete ptr;
25449
+ ecode4 = SWIG_AsVal_int(obj3, &val4);
25450
+ if (!SWIG_IsOK(ecode4)) {
25451
+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Digit_AddLine" "', argument " "4"" of type '" "int""'");
25453
+ arg4 = static_cast< int >(val4);
25454
+ ecode5 = SWIG_AsVal_int(obj4, &val5);
25455
+ if (!SWIG_IsOK(ecode5)) {
25456
+ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Digit_AddLine" "', argument " "5"" of type '" "int""'");
25458
+ arg5 = static_cast< int >(val5);
25459
+ res6 = SWIG_AsCharPtrAndSize(obj5, &buf6, NULL, &alloc6);
25460
+ if (!SWIG_IsOK(res6)) {
25461
+ SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Digit_AddLine" "', argument " "6"" of type '" "char const *""'");
25463
+ arg6 = reinterpret_cast< char * >(buf6);
25464
+ ecode7 = SWIG_AsVal_int(obj6, &val7);
25465
+ if (!SWIG_IsOK(ecode7)) {
25466
+ SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Digit_AddLine" "', argument " "7"" of type '" "int""'");
25468
+ arg7 = static_cast< int >(val7);
25469
+ ecode8 = SWIG_AsVal_double(obj7, &val8);
25470
+ if (!SWIG_IsOK(ecode8)) {
25471
+ SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "Digit_AddLine" "', argument " "8"" of type '" "double""'");
25473
+ arg8 = static_cast< double >(val8);
25474
+ result = (int)(arg1)->AddLine(arg2,arg3,arg4,arg5,(char const *)arg6,arg7,arg8);
25475
+ resultobj = SWIG_From_int(static_cast< int >(result));
25476
+ if (alloc6 == SWIG_NEWOBJ) delete[] buf6;
25477
+ return resultobj;
25479
+ if (alloc6 == SWIG_NEWOBJ) delete[] buf6;
25484
+SWIGINTERN PyObject *_wrap_Digit_RewriteLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25485
+ PyObject *resultobj = 0;
25486
+ Digit *arg1 = (Digit *) 0 ;
25488
+ std::vector< double,std::allocator< double > > arg3 ;
25489
+ char *arg4 = (char *) 0 ;
25492
+ void *argp1 = 0 ;
25503
+ PyObject * obj0 = 0 ;
25504
+ PyObject * obj1 = 0 ;
25505
+ PyObject * obj2 = 0 ;
25506
+ PyObject * obj3 = 0 ;
25507
+ PyObject * obj4 = 0 ;
25508
+ PyObject * obj5 = 0 ;
25511
+ if (!PyArg_ParseTuple(args,(char *)"OOOOOO:Digit_RewriteLine",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25512
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Digit, 0 | 0 );
25513
+ if (!SWIG_IsOK(res1)) {
25514
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Digit_RewriteLine" "', argument " "1"" of type '" "Digit *""'");
25516
+ arg1 = reinterpret_cast< Digit * >(argp1);
25517
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
25518
+ if (!SWIG_IsOK(ecode2)) {
25519
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Digit_RewriteLine" "', argument " "2"" of type '" "int""'");
25521
+ arg2 = static_cast< int >(val2);
25523
+ std::vector<double,std::allocator< double > > *ptr = (std::vector<double,std::allocator< double > > *)0;
25524
+ int res = swig::asptr(obj2, &ptr);
25525
+ if (!SWIG_IsOK(res) || !ptr) {
25526
+ SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Digit_RewriteLine" "', argument " "3"" of type '" "std::vector< double,std::allocator< double > >""'");
25529
+ if (SWIG_IsNewObj(res)) delete ptr;
25531
+ res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
25532
+ if (!SWIG_IsOK(res4)) {
25533
+ SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Digit_RewriteLine" "', argument " "4"" of type '" "char const *""'");
25535
+ arg4 = reinterpret_cast< char * >(buf4);
25536
+ ecode5 = SWIG_AsVal_int(obj4, &val5);
25537
+ if (!SWIG_IsOK(ecode5)) {
25538
+ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Digit_RewriteLine" "', argument " "5"" of type '" "int""'");
25540
+ arg5 = static_cast< int >(val5);
25541
+ ecode6 = SWIG_AsVal_double(obj5, &val6);
25542
+ if (!SWIG_IsOK(ecode6)) {
25543
+ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Digit_RewriteLine" "', argument " "6"" of type '" "double""'");
25545
+ arg6 = static_cast< double >(val6);
25546
+ result = (int)(arg1)->RewriteLine(arg2,arg3,(char const *)arg4,arg5,arg6);
25547
+ resultobj = SWIG_From_int(static_cast< int >(result));
25548
+ if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
25549
+ return resultobj;
25551
+ if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
25556
+SWIGINTERN PyObject *_wrap_Digit_SplitLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25557
+ PyObject *resultobj = 0;
25558
+ Digit *arg1 = (Digit *) 0 ;
25563
+ void *argp1 = 0 ;
25573
+ PyObject * obj0 = 0 ;
25574
+ PyObject * obj1 = 0 ;
25575
+ PyObject * obj2 = 0 ;
25576
+ PyObject * obj3 = 0 ;
25577
+ PyObject * obj4 = 0 ;
25580
+ if (!PyArg_ParseTuple(args,(char *)"OOOOO:Digit_SplitLine",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25581
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Digit, 0 | 0 );
25582
+ if (!SWIG_IsOK(res1)) {
25583
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Digit_SplitLine" "', argument " "1"" of type '" "Digit *""'");
25585
+ arg1 = reinterpret_cast< Digit * >(argp1);
25586
+ ecode2 = SWIG_AsVal_double(obj1, &val2);
25587
+ if (!SWIG_IsOK(ecode2)) {
25588
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Digit_SplitLine" "', argument " "2"" of type '" "double""'");
25590
+ arg2 = static_cast< double >(val2);
25591
+ ecode3 = SWIG_AsVal_double(obj2, &val3);
25592
+ if (!SWIG_IsOK(ecode3)) {
25593
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Digit_SplitLine" "', argument " "3"" of type '" "double""'");
25595
+ arg3 = static_cast< double >(val3);
25596
+ ecode4 = SWIG_AsVal_double(obj3, &val4);
25597
+ if (!SWIG_IsOK(ecode4)) {
25598
+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Digit_SplitLine" "', argument " "4"" of type '" "double""'");
25600
+ arg4 = static_cast< double >(val4);
25601
+ ecode5 = SWIG_AsVal_double(obj4, &val5);
25602
+ if (!SWIG_IsOK(ecode5)) {
25603
+ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Digit_SplitLine" "', argument " "5"" of type '" "double""'");
25605
+ arg5 = static_cast< double >(val5);
25606
+ result = (int)(arg1)->SplitLine(arg2,arg3,arg4,arg5);
25607
+ resultobj = SWIG_From_int(static_cast< int >(result));
25608
+ return resultobj;
25614
+SWIGINTERN PyObject *_wrap_Digit_DeleteLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25615
+ PyObject *resultobj = 0;
25616
+ Digit *arg1 = (Digit *) 0 ;
25618
+ void *argp1 = 0 ;
25622
+ PyObject * obj0 = 0 ;
25623
+ PyObject * obj1 = 0 ;
25626
+ if (!PyArg_ParseTuple(args,(char *)"OO:Digit_DeleteLines",&obj0,&obj1)) SWIG_fail;
25627
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Digit, 0 | 0 );
25628
+ if (!SWIG_IsOK(res1)) {
25629
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Digit_DeleteLines" "', argument " "1"" of type '" "Digit *""'");
25631
+ arg1 = reinterpret_cast< Digit * >(argp1);
25632
+ ecode2 = SWIG_AsVal_bool(obj1, &val2);
25633
+ if (!SWIG_IsOK(ecode2)) {
25634
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Digit_DeleteLines" "', argument " "2"" of type '" "bool""'");
25636
+ arg2 = static_cast< bool >(val2);
25637
+ result = (int)(arg1)->DeleteLines(arg2);
25638
+ resultobj = SWIG_From_int(static_cast< int >(result));
25639
+ return resultobj;
25645
+SWIGINTERN PyObject *_wrap_Digit_MoveLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25646
+ PyObject *resultobj = 0;
25647
+ Digit *arg1 = (Digit *) 0 ;
25651
+ char *arg5 = (char *) 0 ;
25654
+ void *argp1 = 0 ;
25669
+ PyObject * obj0 = 0 ;
25670
+ PyObject * obj1 = 0 ;
25671
+ PyObject * obj2 = 0 ;
25672
+ PyObject * obj3 = 0 ;
25673
+ PyObject * obj4 = 0 ;
25674
+ PyObject * obj5 = 0 ;
25675
+ PyObject * obj6 = 0 ;
25678
+ if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:Digit_MoveLines",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25679
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Digit, 0 | 0 );
25680
+ if (!SWIG_IsOK(res1)) {
25681
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Digit_MoveLines" "', argument " "1"" of type '" "Digit *""'");
25683
+ arg1 = reinterpret_cast< Digit * >(argp1);
25684
+ ecode2 = SWIG_AsVal_double(obj1, &val2);
25685
+ if (!SWIG_IsOK(ecode2)) {
25686
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Digit_MoveLines" "', argument " "2"" of type '" "double""'");
25688
+ arg2 = static_cast< double >(val2);
25689
+ ecode3 = SWIG_AsVal_double(obj2, &val3);
25690
+ if (!SWIG_IsOK(ecode3)) {
25691
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Digit_MoveLines" "', argument " "3"" of type '" "double""'");
25693
+ arg3 = static_cast< double >(val3);
25694
+ ecode4 = SWIG_AsVal_double(obj3, &val4);
25695
+ if (!SWIG_IsOK(ecode4)) {
25696
+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Digit_MoveLines" "', argument " "4"" of type '" "double""'");
25698
+ arg4 = static_cast< double >(val4);
25699
+ res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5);
25700
+ if (!SWIG_IsOK(res5)) {
25701
+ SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Digit_MoveLines" "', argument " "5"" of type '" "char const *""'");
25703
+ arg5 = reinterpret_cast< char * >(buf5);
25704
+ ecode6 = SWIG_AsVal_int(obj5, &val6);
25705
+ if (!SWIG_IsOK(ecode6)) {
25706
+ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Digit_MoveLines" "', argument " "6"" of type '" "int""'");
25708
+ arg6 = static_cast< int >(val6);
25709
+ ecode7 = SWIG_AsVal_double(obj6, &val7);
25710
+ if (!SWIG_IsOK(ecode7)) {
25711
+ SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Digit_MoveLines" "', argument " "7"" of type '" "double""'");
25713
+ arg7 = static_cast< double >(val7);
25714
+ result = (int)(arg1)->MoveLines(arg2,arg3,arg4,(char const *)arg5,arg6,arg7);
25715
+ resultobj = SWIG_From_int(static_cast< int >(result));
25716
+ if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
25717
+ return resultobj;
25719
+ if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
25724
+SWIGINTERN PyObject *_wrap_Digit_FlipLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25725
+ PyObject *resultobj = 0;
25726
+ Digit *arg1 = (Digit *) 0 ;
25727
+ void *argp1 = 0 ;
25729
+ PyObject * obj0 = 0 ;
25732
+ if (!PyArg_ParseTuple(args,(char *)"O:Digit_FlipLines",&obj0)) SWIG_fail;
25733
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Digit, 0 | 0 );
25734
+ if (!SWIG_IsOK(res1)) {
25735
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Digit_FlipLines" "', argument " "1"" of type '" "Digit *""'");
25737
+ arg1 = reinterpret_cast< Digit * >(argp1);
25738
+ result = (int)(arg1)->FlipLines();
25739
+ resultobj = SWIG_From_int(static_cast< int >(result));
25740
+ return resultobj;
25746
+SWIGINTERN PyObject *_wrap_Digit_MergeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25747
+ PyObject *resultobj = 0;
25748
+ Digit *arg1 = (Digit *) 0 ;
25749
+ void *argp1 = 0 ;
25751
+ PyObject * obj0 = 0 ;
25754
+ if (!PyArg_ParseTuple(args,(char *)"O:Digit_MergeLines",&obj0)) SWIG_fail;
25755
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Digit, 0 | 0 );
25756
+ if (!SWIG_IsOK(res1)) {
25757
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Digit_MergeLines" "', argument " "1"" of type '" "Digit *""'");
25759
+ arg1 = reinterpret_cast< Digit * >(argp1);
25760
+ result = (int)(arg1)->MergeLines();
25761
+ resultobj = SWIG_From_int(static_cast< int >(result));
25762
+ return resultobj;
25768
+SWIGINTERN PyObject *_wrap_Digit_BreakLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25769
+ PyObject *resultobj = 0;
25770
+ Digit *arg1 = (Digit *) 0 ;
25771
+ void *argp1 = 0 ;
25773
+ PyObject * obj0 = 0 ;
25776
+ if (!PyArg_ParseTuple(args,(char *)"O:Digit_BreakLines",&obj0)) SWIG_fail;
25777
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Digit, 0 | 0 );
25778
+ if (!SWIG_IsOK(res1)) {
25779
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Digit_BreakLines" "', argument " "1"" of type '" "Digit *""'");
25781
+ arg1 = reinterpret_cast< Digit * >(argp1);
25782
+ result = (int)(arg1)->BreakLines();
25783
+ resultobj = SWIG_From_int(static_cast< int >(result));
25784
+ return resultobj;
25790
+SWIGINTERN PyObject *_wrap_Digit_SnapLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25791
+ PyObject *resultobj = 0;
25792
+ Digit *arg1 = (Digit *) 0 ;
25794
+ void *argp1 = 0 ;
25798
+ PyObject * obj0 = 0 ;
25799
+ PyObject * obj1 = 0 ;
25802
+ if (!PyArg_ParseTuple(args,(char *)"OO:Digit_SnapLines",&obj0,&obj1)) SWIG_fail;
25803
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Digit, 0 | 0 );
25804
+ if (!SWIG_IsOK(res1)) {
25805
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Digit_SnapLines" "', argument " "1"" of type '" "Digit *""'");
25807
+ arg1 = reinterpret_cast< Digit * >(argp1);
25808
+ ecode2 = SWIG_AsVal_double(obj1, &val2);
25809
+ if (!SWIG_IsOK(ecode2)) {
25810
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Digit_SnapLines" "', argument " "2"" of type '" "double""'");
25812
+ arg2 = static_cast< double >(val2);
25813
+ result = (int)(arg1)->SnapLines(arg2);
25814
+ resultobj = SWIG_From_int(static_cast< int >(result));
25815
+ return resultobj;
25821
+SWIGINTERN PyObject *_wrap_Digit_ConnectLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25822
+ PyObject *resultobj = 0;
25823
+ Digit *arg1 = (Digit *) 0 ;
25825
+ void *argp1 = 0 ;
25829
+ PyObject * obj0 = 0 ;
25830
+ PyObject * obj1 = 0 ;
25833
+ if (!PyArg_ParseTuple(args,(char *)"OO:Digit_ConnectLines",&obj0,&obj1)) SWIG_fail;
25834
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Digit, 0 | 0 );
25835
+ if (!SWIG_IsOK(res1)) {
25836
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Digit_ConnectLines" "', argument " "1"" of type '" "Digit *""'");
25838
+ arg1 = reinterpret_cast< Digit * >(argp1);
25839
+ ecode2 = SWIG_AsVal_double(obj1, &val2);
25840
+ if (!SWIG_IsOK(ecode2)) {
25841
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Digit_ConnectLines" "', argument " "2"" of type '" "double""'");
25843
+ arg2 = static_cast< double >(val2);
25844
+ result = (int)(arg1)->ConnectLines(arg2);
25845
+ resultobj = SWIG_From_int(static_cast< int >(result));
25846
+ return resultobj;
25852
+SWIGINTERN PyObject *_wrap_Digit_TypeConvLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25853
+ PyObject *resultobj = 0;
25854
+ Digit *arg1 = (Digit *) 0 ;
25855
+ void *argp1 = 0 ;
25857
+ PyObject * obj0 = 0 ;
25860
+ if (!PyArg_ParseTuple(args,(char *)"O:Digit_TypeConvLines",&obj0)) SWIG_fail;
25861
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Digit, 0 | 0 );
25862
+ if (!SWIG_IsOK(res1)) {
25863
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Digit_TypeConvLines" "', argument " "1"" of type '" "Digit *""'");
25865
+ arg1 = reinterpret_cast< Digit * >(argp1);
25866
+ result = (int)(arg1)->TypeConvLines();
25867
+ resultobj = SWIG_From_int(static_cast< int >(result));
25868
+ return resultobj;
25874
+SWIGINTERN PyObject *_wrap_Digit_ZBulkLabeling(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25875
+ PyObject *resultobj = 0;
25876
+ Digit *arg1 = (Digit *) 0 ;
25883
+ void *argp1 = 0 ;
25897
+ PyObject * obj0 = 0 ;
25898
+ PyObject * obj1 = 0 ;
25899
+ PyObject * obj2 = 0 ;
25900
+ PyObject * obj3 = 0 ;
25901
+ PyObject * obj4 = 0 ;
25902
+ PyObject * obj5 = 0 ;
25903
+ PyObject * obj6 = 0 ;
25906
+ if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:Digit_ZBulkLabeling",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25907
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Digit, 0 | 0 );
25908
+ if (!SWIG_IsOK(res1)) {
25909
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Digit_ZBulkLabeling" "', argument " "1"" of type '" "Digit *""'");
25911
+ arg1 = reinterpret_cast< Digit * >(argp1);
25912
+ ecode2 = SWIG_AsVal_double(obj1, &val2);
25913
+ if (!SWIG_IsOK(ecode2)) {
25914
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Digit_ZBulkLabeling" "', argument " "2"" of type '" "double""'");
25916
+ arg2 = static_cast< double >(val2);
25917
+ ecode3 = SWIG_AsVal_double(obj2, &val3);
25918
+ if (!SWIG_IsOK(ecode3)) {
25919
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Digit_ZBulkLabeling" "', argument " "3"" of type '" "double""'");
25921
+ arg3 = static_cast< double >(val3);
25922
+ ecode4 = SWIG_AsVal_double(obj3, &val4);
25923
+ if (!SWIG_IsOK(ecode4)) {
25924
+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Digit_ZBulkLabeling" "', argument " "4"" of type '" "double""'");
25926
+ arg4 = static_cast< double >(val4);
25927
+ ecode5 = SWIG_AsVal_double(obj4, &val5);
25928
+ if (!SWIG_IsOK(ecode5)) {
25929
+ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Digit_ZBulkLabeling" "', argument " "5"" of type '" "double""'");
25931
+ arg5 = static_cast< double >(val5);
25932
+ ecode6 = SWIG_AsVal_double(obj5, &val6);
25933
+ if (!SWIG_IsOK(ecode6)) {
25934
+ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Digit_ZBulkLabeling" "', argument " "6"" of type '" "double""'");
25936
+ arg6 = static_cast< double >(val6);
25937
+ ecode7 = SWIG_AsVal_double(obj6, &val7);
25938
+ if (!SWIG_IsOK(ecode7)) {
25939
+ SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Digit_ZBulkLabeling" "', argument " "7"" of type '" "double""'");
25941
+ arg7 = static_cast< double >(val7);
25942
+ result = (int)(arg1)->ZBulkLabeling(arg2,arg3,arg4,arg5,arg6,arg7);
25943
+ resultobj = SWIG_From_int(static_cast< int >(result));
25944
+ return resultobj;
25950
+SWIGINTERN PyObject *_wrap_Digit_CopyLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25951
+ PyObject *resultobj = 0;
25952
+ Digit *arg1 = (Digit *) 0 ;
25953
+ std::vector< int,std::allocator< int > > arg2 ;
25954
+ char *arg3 = (char *) 0 ;
25955
+ void *argp1 = 0 ;
25960
+ PyObject * obj0 = 0 ;
25961
+ PyObject * obj1 = 0 ;
25962
+ PyObject * obj2 = 0 ;
25965
+ if (!PyArg_ParseTuple(args,(char *)"OOO:Digit_CopyLines",&obj0,&obj1,&obj2)) SWIG_fail;
25966
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Digit, 0 | 0 );
25967
+ if (!SWIG_IsOK(res1)) {
25968
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Digit_CopyLines" "', argument " "1"" of type '" "Digit *""'");
25970
+ arg1 = reinterpret_cast< Digit * >(argp1);
25972
+ std::vector<int,std::allocator< int > > *ptr = (std::vector<int,std::allocator< int > > *)0;
25973
+ int res = swig::asptr(obj1, &ptr);
25974
+ if (!SWIG_IsOK(res) || !ptr) {
25975
+ SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Digit_CopyLines" "', argument " "2"" of type '" "std::vector< int,std::allocator< int > >""'");
25978
+ if (SWIG_IsNewObj(res)) delete ptr;
25980
+ res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
25981
+ if (!SWIG_IsOK(res3)) {
25982
+ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Digit_CopyLines" "', argument " "3"" of type '" "char const *""'");
25984
+ arg3 = reinterpret_cast< char * >(buf3);
25985
+ result = (int)(arg1)->CopyLines(arg2,(char const *)arg3);
25986
+ resultobj = SWIG_From_int(static_cast< int >(result));
25987
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
25988
+ return resultobj;
25990
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
25995
+SWIGINTERN PyObject *_wrap_Digit_MoveVertex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25996
+ PyObject *resultobj = 0;
25997
+ Digit *arg1 = (Digit *) 0 ;
26004
+ char *arg8 = (char *) 0 ;
26008
+ void *argp1 = 0 ;
26028
+ int ecode10 = 0 ;
26030
+ int ecode11 = 0 ;
26031
+ PyObject * obj0 = 0 ;
26032
+ PyObject * obj1 = 0 ;
26033
+ PyObject * obj2 = 0 ;
26034
+ PyObject * obj3 = 0 ;
26035
+ PyObject * obj4 = 0 ;
26036
+ PyObject * obj5 = 0 ;
26037
+ PyObject * obj6 = 0 ;
26038
+ PyObject * obj7 = 0 ;
26039
+ PyObject * obj8 = 0 ;
26040
+ PyObject * obj9 = 0 ;
26041
+ PyObject * obj10 = 0 ;
26044
+ if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOO:Digit_MoveVertex",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
26045
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Digit, 0 | 0 );
26046
+ if (!SWIG_IsOK(res1)) {
26047
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Digit_MoveVertex" "', argument " "1"" of type '" "Digit *""'");
26049
+ arg1 = reinterpret_cast< Digit * >(argp1);
26050
+ ecode2 = SWIG_AsVal_double(obj1, &val2);
26051
+ if (!SWIG_IsOK(ecode2)) {
26052
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Digit_MoveVertex" "', argument " "2"" of type '" "double""'");
26054
+ arg2 = static_cast< double >(val2);
26055
+ ecode3 = SWIG_AsVal_double(obj2, &val3);
26056
+ if (!SWIG_IsOK(ecode3)) {
26057
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Digit_MoveVertex" "', argument " "3"" of type '" "double""'");
26059
+ arg3 = static_cast< double >(val3);
26060
+ ecode4 = SWIG_AsVal_double(obj3, &val4);
26061
+ if (!SWIG_IsOK(ecode4)) {
26062
+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Digit_MoveVertex" "', argument " "4"" of type '" "double""'");
26064
+ arg4 = static_cast< double >(val4);
26065
+ ecode5 = SWIG_AsVal_double(obj4, &val5);
26066
+ if (!SWIG_IsOK(ecode5)) {
26067
+ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Digit_MoveVertex" "', argument " "5"" of type '" "double""'");
26069
+ arg5 = static_cast< double >(val5);
26070
+ ecode6 = SWIG_AsVal_double(obj5, &val6);
26071
+ if (!SWIG_IsOK(ecode6)) {
26072
+ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Digit_MoveVertex" "', argument " "6"" of type '" "double""'");
26074
+ arg6 = static_cast< double >(val6);
26075
+ ecode7 = SWIG_AsVal_double(obj6, &val7);
26076
+ if (!SWIG_IsOK(ecode7)) {
26077
+ SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Digit_MoveVertex" "', argument " "7"" of type '" "double""'");
26079
+ arg7 = static_cast< double >(val7);
26080
+ res8 = SWIG_AsCharPtrAndSize(obj7, &buf8, NULL, &alloc8);
26081
+ if (!SWIG_IsOK(res8)) {
26082
+ SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Digit_MoveVertex" "', argument " "8"" of type '" "char const *""'");
26084
+ arg8 = reinterpret_cast< char * >(buf8);
26085
+ ecode9 = SWIG_AsVal_int(obj8, &val9);
26086
+ if (!SWIG_IsOK(ecode9)) {
26087
+ SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Digit_MoveVertex" "', argument " "9"" of type '" "int""'");
26089
+ arg9 = static_cast< int >(val9);
26090
+ ecode10 = SWIG_AsVal_double(obj9, &val10);
26091
+ if (!SWIG_IsOK(ecode10)) {
26092
+ SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "Digit_MoveVertex" "', argument " "10"" of type '" "double""'");
26094
+ arg10 = static_cast< double >(val10);
26095
+ ecode11 = SWIG_AsVal_double(obj10, &val11);
26096
+ if (!SWIG_IsOK(ecode11)) {
26097
+ SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "Digit_MoveVertex" "', argument " "11"" of type '" "double""'");
26099
+ arg11 = static_cast< double >(val11);
26100
+ result = (int)(arg1)->MoveVertex(arg2,arg3,arg4,arg5,arg6,arg7,(char const *)arg8,arg9,arg10,arg11);
26101
+ resultobj = SWIG_From_int(static_cast< int >(result));
26102
+ if (alloc8 == SWIG_NEWOBJ) delete[] buf8;
26103
+ return resultobj;
26105
+ if (alloc8 == SWIG_NEWOBJ) delete[] buf8;
26110
+SWIGINTERN PyObject *_wrap_Digit_ModifyLineVertex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26111
+ PyObject *resultobj = 0;
26112
+ Digit *arg1 = (Digit *) 0 ;
26118
+ void *argp1 = 0 ;
26130
+ PyObject * obj0 = 0 ;
26131
+ PyObject * obj1 = 0 ;
26132
+ PyObject * obj2 = 0 ;
26133
+ PyObject * obj3 = 0 ;
26134
+ PyObject * obj4 = 0 ;
26135
+ PyObject * obj5 = 0 ;
26138
+ if (!PyArg_ParseTuple(args,(char *)"OOOOOO:Digit_ModifyLineVertex",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26139
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Digit, 0 | 0 );
26140
+ if (!SWIG_IsOK(res1)) {
26141
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Digit_ModifyLineVertex" "', argument " "1"" of type '" "Digit *""'");
26143
+ arg1 = reinterpret_cast< Digit * >(argp1);
26144
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
26145
+ if (!SWIG_IsOK(ecode2)) {
26146
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Digit_ModifyLineVertex" "', argument " "2"" of type '" "int""'");
26148
+ arg2 = static_cast< int >(val2);
26149
+ ecode3 = SWIG_AsVal_double(obj2, &val3);
26150
+ if (!SWIG_IsOK(ecode3)) {
26151
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Digit_ModifyLineVertex" "', argument " "3"" of type '" "double""'");
26153
+ arg3 = static_cast< double >(val3);
26154
+ ecode4 = SWIG_AsVal_double(obj3, &val4);
26155
+ if (!SWIG_IsOK(ecode4)) {
26156
+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Digit_ModifyLineVertex" "', argument " "4"" of type '" "double""'");
26158
+ arg4 = static_cast< double >(val4);
26159
+ ecode5 = SWIG_AsVal_double(obj4, &val5);
26160
+ if (!SWIG_IsOK(ecode5)) {
26161
+ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Digit_ModifyLineVertex" "', argument " "5"" of type '" "double""'");
26163
+ arg5 = static_cast< double >(val5);
26164
+ ecode6 = SWIG_AsVal_double(obj5, &val6);
26165
+ if (!SWIG_IsOK(ecode6)) {
26166
+ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Digit_ModifyLineVertex" "', argument " "6"" of type '" "double""'");
26168
+ arg6 = static_cast< double >(val6);
26169
+ result = (int)(arg1)->ModifyLineVertex(arg2,arg3,arg4,arg5,arg6);
26170
+ resultobj = SWIG_From_int(static_cast< int >(result));
26171
+ return resultobj;
26177
+SWIGINTERN PyObject *_wrap_Digit_SelectLinesByQuery(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26178
+ PyObject *resultobj = 0;
26179
+ Digit *arg1 = (Digit *) 0 ;
26190
+ void *argp1 = 0 ;
26209
+ int ecode10 = 0 ;
26211
+ int ecode11 = 0 ;
26212
+ PyObject * obj0 = 0 ;
26213
+ PyObject * obj1 = 0 ;
26214
+ PyObject * obj2 = 0 ;
26215
+ PyObject * obj3 = 0 ;
26216
+ PyObject * obj4 = 0 ;
26217
+ PyObject * obj5 = 0 ;
26218
+ PyObject * obj6 = 0 ;
26219
+ PyObject * obj7 = 0 ;
26220
+ PyObject * obj8 = 0 ;
26221
+ PyObject * obj9 = 0 ;
26222
+ PyObject * obj10 = 0 ;
26223
+ std::vector< int,std::allocator< int > > result;
26225
+ if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOO:Digit_SelectLinesByQuery",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
26226
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Digit, 0 | 0 );
26227
+ if (!SWIG_IsOK(res1)) {
26228
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Digit_SelectLinesByQuery" "', argument " "1"" of type '" "Digit *""'");
26230
+ arg1 = reinterpret_cast< Digit * >(argp1);
26231
+ ecode2 = SWIG_AsVal_double(obj1, &val2);
26232
+ if (!SWIG_IsOK(ecode2)) {
26233
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Digit_SelectLinesByQuery" "', argument " "2"" of type '" "double""'");
26235
+ arg2 = static_cast< double >(val2);
26236
+ ecode3 = SWIG_AsVal_double(obj2, &val3);
26237
+ if (!SWIG_IsOK(ecode3)) {
26238
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Digit_SelectLinesByQuery" "', argument " "3"" of type '" "double""'");
26240
+ arg3 = static_cast< double >(val3);
26241
+ ecode4 = SWIG_AsVal_double(obj3, &val4);
26242
+ if (!SWIG_IsOK(ecode4)) {
26243
+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Digit_SelectLinesByQuery" "', argument " "4"" of type '" "double""'");
26245
+ arg4 = static_cast< double >(val4);
26246
+ ecode5 = SWIG_AsVal_double(obj4, &val5);
26247
+ if (!SWIG_IsOK(ecode5)) {
26248
+ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Digit_SelectLinesByQuery" "', argument " "5"" of type '" "double""'");
26250
+ arg5 = static_cast< double >(val5);
26251
+ ecode6 = SWIG_AsVal_double(obj5, &val6);
26252
+ if (!SWIG_IsOK(ecode6)) {
26253
+ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Digit_SelectLinesByQuery" "', argument " "6"" of type '" "double""'");
26255
+ arg6 = static_cast< double >(val6);
26256
+ ecode7 = SWIG_AsVal_double(obj6, &val7);
26257
+ if (!SWIG_IsOK(ecode7)) {
26258
+ SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Digit_SelectLinesByQuery" "', argument " "7"" of type '" "double""'");
26260
+ arg7 = static_cast< double >(val7);
26261
+ ecode8 = SWIG_AsVal_bool(obj7, &val8);
26262
+ if (!SWIG_IsOK(ecode8)) {
26263
+ SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "Digit_SelectLinesByQuery" "', argument " "8"" of type '" "bool""'");
26265
+ arg8 = static_cast< bool >(val8);
26266
+ ecode9 = SWIG_AsVal_int(obj8, &val9);
26267
+ if (!SWIG_IsOK(ecode9)) {
26268
+ SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Digit_SelectLinesByQuery" "', argument " "9"" of type '" "int""'");
26270
+ arg9 = static_cast< int >(val9);
26271
+ ecode10 = SWIG_AsVal_int(obj9, &val10);
26272
+ if (!SWIG_IsOK(ecode10)) {
26273
+ SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "Digit_SelectLinesByQuery" "', argument " "10"" of type '" "int""'");
26275
+ arg10 = static_cast< int >(val10);
26276
+ ecode11 = SWIG_AsVal_double(obj10, &val11);
26277
+ if (!SWIG_IsOK(ecode11)) {
26278
+ SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "Digit_SelectLinesByQuery" "', argument " "11"" of type '" "double""'");
26280
+ arg11 = static_cast< double >(val11);
26281
+ result = (arg1)->SelectLinesByQuery(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11);
26282
+ resultobj = swig::from(static_cast< std::vector<int,std::allocator< int > > >(result));
26283
+ return resultobj;
26289
+SWIGINTERN PyObject *_wrap_Digit_CopyCats(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26290
+ PyObject *resultobj = 0;
26291
+ Digit *arg1 = (Digit *) 0 ;
26292
+ std::vector< int,std::allocator< int > > arg2 ;
26293
+ std::vector< int,std::allocator< int > > arg3 ;
26295
+ void *argp1 = 0 ;
26299
+ PyObject * obj0 = 0 ;
26300
+ PyObject * obj1 = 0 ;
26301
+ PyObject * obj2 = 0 ;
26302
+ PyObject * obj3 = 0 ;
26305
+ if (!PyArg_ParseTuple(args,(char *)"OOOO:Digit_CopyCats",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26306
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Digit, 0 | 0 );
26307
+ if (!SWIG_IsOK(res1)) {
26308
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Digit_CopyCats" "', argument " "1"" of type '" "Digit *""'");
26310
+ arg1 = reinterpret_cast< Digit * >(argp1);
26312
+ std::vector<int,std::allocator< int > > *ptr = (std::vector<int,std::allocator< int > > *)0;
26313
+ int res = swig::asptr(obj1, &ptr);
26314
+ if (!SWIG_IsOK(res) || !ptr) {
26315
+ SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Digit_CopyCats" "', argument " "2"" of type '" "std::vector< int,std::allocator< int > >""'");
26318
+ if (SWIG_IsNewObj(res)) delete ptr;
26321
+ std::vector<int,std::allocator< int > > *ptr = (std::vector<int,std::allocator< int > > *)0;
26322
+ int res = swig::asptr(obj2, &ptr);
26323
+ if (!SWIG_IsOK(res) || !ptr) {
26324
+ SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Digit_CopyCats" "', argument " "3"" of type '" "std::vector< int,std::allocator< int > >""'");
26327
+ if (SWIG_IsNewObj(res)) delete ptr;
26329
+ ecode4 = SWIG_AsVal_bool(obj3, &val4);
26330
+ if (!SWIG_IsOK(ecode4)) {
26331
+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Digit_CopyCats" "', argument " "4"" of type '" "bool""'");
26333
+ arg4 = static_cast< bool >(val4);
26334
+ result = (int)(arg1)->CopyCats(arg2,arg3,arg4);
26335
+ resultobj = SWIG_From_int(static_cast< int >(result));
26336
+ return resultobj;
26342
+SWIGINTERN PyObject *_wrap_Digit_GetCategory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26343
+ PyObject *resultobj = 0;
26344
+ Digit *arg1 = (Digit *) 0 ;
26346
+ void *argp1 = 0 ;
26350
+ PyObject * obj0 = 0 ;
26351
+ PyObject * obj1 = 0 ;
26354
+ if (!PyArg_ParseTuple(args,(char *)"OO:Digit_GetCategory",&obj0,&obj1)) SWIG_fail;
26355
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Digit, 0 | 0 );
26356
+ if (!SWIG_IsOK(res1)) {
26357
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Digit_GetCategory" "', argument " "1"" of type '" "Digit *""'");
26359
+ arg1 = reinterpret_cast< Digit * >(argp1);
26360
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
26361
+ if (!SWIG_IsOK(ecode2)) {
26362
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Digit_GetCategory" "', argument " "2"" of type '" "int""'");
26364
+ arg2 = static_cast< int >(val2);
26365
+ result = (int)(arg1)->GetCategory(arg2);
26366
+ resultobj = SWIG_From_int(static_cast< int >(result));
26367
+ return resultobj;
26373
+SWIGINTERN PyObject *_wrap_Digit_GetLineCats(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26374
+ PyObject *resultobj = 0;
26375
+ Digit *arg1 = (Digit *) 0 ;
26377
+ void *argp1 = 0 ;
26381
+ PyObject * obj0 = 0 ;
26382
+ PyObject * obj1 = 0 ;
26383
+ std::map< int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > > result;
26385
+ if (!PyArg_ParseTuple(args,(char *)"OO:Digit_GetLineCats",&obj0,&obj1)) SWIG_fail;
26386
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Digit, 0 | 0 );
26387
+ if (!SWIG_IsOK(res1)) {
26388
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Digit_GetLineCats" "', argument " "1"" of type '" "Digit *""'");
26390
+ arg1 = reinterpret_cast< Digit * >(argp1);
26391
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
26392
+ if (!SWIG_IsOK(ecode2)) {
26393
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Digit_GetLineCats" "', argument " "2"" of type '" "int""'");
26395
+ arg2 = static_cast< int >(val2);
26396
+ result = (arg1)->GetLineCats(arg2);
26397
+ resultobj = swig::from(static_cast< std::map<int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > > >(result));
26398
+ return resultobj;
26404
+SWIGINTERN PyObject *_wrap_Digit_SetLineCats(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26405
+ PyObject *resultobj = 0;
26406
+ Digit *arg1 = (Digit *) 0 ;
26409
+ std::vector< int,std::allocator< int > > arg4 ;
26411
+ void *argp1 = 0 ;
26419
+ PyObject * obj0 = 0 ;
26420
+ PyObject * obj1 = 0 ;
26421
+ PyObject * obj2 = 0 ;
26422
+ PyObject * obj3 = 0 ;
26423
+ PyObject * obj4 = 0 ;
26426
+ if (!PyArg_ParseTuple(args,(char *)"OOOOO:Digit_SetLineCats",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26427
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Digit, 0 | 0 );
26428
+ if (!SWIG_IsOK(res1)) {
26429
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Digit_SetLineCats" "', argument " "1"" of type '" "Digit *""'");
26431
+ arg1 = reinterpret_cast< Digit * >(argp1);
26432
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
26433
+ if (!SWIG_IsOK(ecode2)) {
26434
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Digit_SetLineCats" "', argument " "2"" of type '" "int""'");
26436
+ arg2 = static_cast< int >(val2);
26437
+ ecode3 = SWIG_AsVal_int(obj2, &val3);
26438
+ if (!SWIG_IsOK(ecode3)) {
26439
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Digit_SetLineCats" "', argument " "3"" of type '" "int""'");
26441
+ arg3 = static_cast< int >(val3);
26443
+ std::vector<int,std::allocator< int > > *ptr = (std::vector<int,std::allocator< int > > *)0;
26444
+ int res = swig::asptr(obj3, &ptr);
26445
+ if (!SWIG_IsOK(res) || !ptr) {
26446
+ SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Digit_SetLineCats" "', argument " "4"" of type '" "std::vector< int,std::allocator< int > >""'");
26449
+ if (SWIG_IsNewObj(res)) delete ptr;
26451
+ ecode5 = SWIG_AsVal_bool(obj4, &val5);
26452
+ if (!SWIG_IsOK(ecode5)) {
26453
+ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Digit_SetLineCats" "', argument " "5"" of type '" "bool""'");
26455
+ arg5 = static_cast< bool >(val5);
26456
+ result = (int)(arg1)->SetLineCats(arg2,arg3,arg4,arg5);
26457
+ resultobj = SWIG_From_int(static_cast< int >(result));
26458
+ return resultobj;
26464
+SWIGINTERN PyObject *_wrap_Digit_GetLayers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26465
+ PyObject *resultobj = 0;
26466
+ Digit *arg1 = (Digit *) 0 ;
26467
+ void *argp1 = 0 ;
26469
+ PyObject * obj0 = 0 ;
26470
+ std::vector< int,std::allocator< int > > result;
26472
+ if (!PyArg_ParseTuple(args,(char *)"O:Digit_GetLayers",&obj0)) SWIG_fail;
26473
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Digit, 0 | 0 );
26474
+ if (!SWIG_IsOK(res1)) {
26475
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Digit_GetLayers" "', argument " "1"" of type '" "Digit *""'");
26477
+ arg1 = reinterpret_cast< Digit * >(argp1);
26478
+ result = (arg1)->GetLayers();
26479
+ resultobj = swig::from(static_cast< std::vector<int,std::allocator< int > > >(result));
26480
+ return resultobj;
26486
+SWIGINTERN PyObject *_wrap_Digit_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26487
+ PyObject *resultobj = 0;
26488
+ Digit *arg1 = (Digit *) 0 ;
26490
+ void *argp1 = 0 ;
26494
+ PyObject * obj0 = 0 ;
26495
+ PyObject * obj1 = 0 ;
26498
+ if (!PyArg_ParseTuple(args,(char *)"OO:Digit_Undo",&obj0,&obj1)) SWIG_fail;
26499
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Digit, 0 | 0 );
26500
+ if (!SWIG_IsOK(res1)) {
26501
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Digit_Undo" "', argument " "1"" of type '" "Digit *""'");
26503
+ arg1 = reinterpret_cast< Digit * >(argp1);
26504
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
26505
+ if (!SWIG_IsOK(ecode2)) {
26506
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Digit_Undo" "', argument " "2"" of type '" "int""'");
26508
+ arg2 = static_cast< int >(val2);
26509
+ result = (int)(arg1)->Undo(arg2);
26510
+ resultobj = SWIG_From_int(static_cast< int >(result));
26511
+ return resultobj;
26517
+SWIGINTERN PyObject *_wrap_Digit_GetUndoLevel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26518
+ PyObject *resultobj = 0;
26519
+ Digit *arg1 = (Digit *) 0 ;
26520
+ void *argp1 = 0 ;
26522
+ PyObject * obj0 = 0 ;
26525
+ if (!PyArg_ParseTuple(args,(char *)"O:Digit_GetUndoLevel",&obj0)) SWIG_fail;
26526
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Digit, 0 | 0 );
26527
+ if (!SWIG_IsOK(res1)) {
26528
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Digit_GetUndoLevel" "', argument " "1"" of type '" "Digit *""'");
26530
+ arg1 = reinterpret_cast< Digit * >(argp1);
26531
+ result = (int)(arg1)->GetUndoLevel();
26532
+ resultobj = SWIG_From_int(static_cast< int >(result));
26533
+ return resultobj;
26539
+SWIGINTERN PyObject *_wrap_Digit_UpdateSettings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26540
+ PyObject *resultobj = 0;
26541
+ Digit *arg1 = (Digit *) 0 ;
26543
+ void *argp1 = 0 ;
26547
+ PyObject * obj0 = 0 ;
26548
+ PyObject * obj1 = 0 ;
26550
+ if (!PyArg_ParseTuple(args,(char *)"OO:Digit_UpdateSettings",&obj0,&obj1)) SWIG_fail;
26551
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Digit, 0 | 0 );
26552
+ if (!SWIG_IsOK(res1)) {
26553
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Digit_UpdateSettings" "', argument " "1"" of type '" "Digit *""'");
26555
+ arg1 = reinterpret_cast< Digit * >(argp1);
26556
+ ecode2 = SWIG_AsVal_bool(obj1, &val2);
26557
+ if (!SWIG_IsOK(ecode2)) {
26558
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Digit_UpdateSettings" "', argument " "2"" of type '" "bool""'");
26560
+ arg2 = static_cast< bool >(val2);
26561
+ (arg1)->UpdateSettings(arg2);
26562
+ resultobj = SWIG_Py_Void();
26563
+ return resultobj;
26569
+SWIGINTERN PyObject *Digit_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26571
+ if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
26572
+ SWIG_TypeNewClientData(SWIGTYPE_p_Digit, SWIG_NewClientData(obj));
26573
+ return SWIG_Py_Void();
26576
+SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26577
+ PyObject *resultobj = 0;
26578
+ gwxPseudoDC *result = 0 ;
26580
+ if (!PyArg_ParseTuple(args,(char *)":new_PseudoDC")) SWIG_fail;
26581
+ result = (gwxPseudoDC *)new gwxPseudoDC();
26582
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gwxPseudoDC, SWIG_POINTER_NEW | 0 );
26583
+ return resultobj;
26589
+SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26590
+ PyObject *resultobj = 0;
26591
+ gwxPseudoDC *arg1 = (gwxPseudoDC *) 0 ;
26592
+ void *argp1 = 0 ;
26594
+ PyObject * obj0 = 0 ;
26596
+ if (!PyArg_ParseTuple(args,(char *)"O:delete_PseudoDC",&obj0)) SWIG_fail;
26597
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_gwxPseudoDC, SWIG_POINTER_DISOWN | 0 );
26598
+ if (!SWIG_IsOK(res1)) {
26599
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', argument " "1"" of type '" "gwxPseudoDC *""'");
26601
+ arg1 = reinterpret_cast< gwxPseudoDC * >(argp1);
26603
+ resultobj = SWIG_Py_Void();
26604
+ return resultobj;
26610
+SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26611
+ PyObject *resultobj = 0;
26612
+ gwxPseudoDC *arg1 = (gwxPseudoDC *) 0 ;
26613
+ void *argp1 = 0 ;
26615
+ PyObject * obj0 = 0 ;
26617
+ if (!PyArg_ParseTuple(args,(char *)"O:PseudoDC_Clear",&obj0)) SWIG_fail;
26618
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_gwxPseudoDC, 0 | 0 );
26619
+ if (!SWIG_IsOK(res1)) {
26620
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', argument " "1"" of type '" "gwxPseudoDC *""'");
26622
+ arg1 = reinterpret_cast< gwxPseudoDC * >(argp1);
26624
+ resultobj = SWIG_Py_Void();
26625
+ return resultobj;
26631
+SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26632
+ PyObject *resultobj = 0;
26633
+ gwxPseudoDC *arg1 = (gwxPseudoDC *) 0 ;
26634
+ void *argp1 = 0 ;
26636
+ PyObject * obj0 = 0 ;
26638
+ if (!PyArg_ParseTuple(args,(char *)"O:PseudoDC_RemoveAll",&obj0)) SWIG_fail;
26639
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_gwxPseudoDC, 0 | 0 );
26640
+ if (!SWIG_IsOK(res1)) {
26641
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', argument " "1"" of type '" "gwxPseudoDC *""'");
26643
+ arg1 = reinterpret_cast< gwxPseudoDC * >(argp1);
26644
+ (arg1)->RemoveAll();
26645
+ resultobj = SWIG_Py_Void();
26646
+ return resultobj;
26652
+SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26653
+ PyObject *resultobj = 0;
26654
+ gwxPseudoDC *arg1 = (gwxPseudoDC *) 0 ;
26656
+ void *argp1 = 0 ;
26660
+ PyObject * obj0 = 0 ;
26661
+ PyObject * obj1 = 0 ;
26663
+ if (!PyArg_ParseTuple(args,(char *)"OO:PseudoDC_RemoveId",&obj0,&obj1)) SWIG_fail;
26664
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_gwxPseudoDC, 0 | 0 );
26665
+ if (!SWIG_IsOK(res1)) {
26666
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', argument " "1"" of type '" "gwxPseudoDC *""'");
26668
+ arg1 = reinterpret_cast< gwxPseudoDC * >(argp1);
26669
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
26670
+ if (!SWIG_IsOK(ecode2)) {
26671
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', argument " "2"" of type '" "int""'");
26673
+ arg2 = static_cast< int >(val2);
26674
+ (arg1)->RemoveId(arg2);
26675
+ resultobj = SWIG_Py_Void();
26676
+ return resultobj;
26682
+SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26683
+ PyObject *resultobj = 0;
26684
+ gwxPseudoDC *arg1 = (gwxPseudoDC *) 0 ;
26685
+ void *arg2 = (void *) 0 ;
26686
+ void *argp1 = 0 ;
26689
+ PyObject * obj0 = 0 ;
26690
+ PyObject * obj1 = 0 ;
26692
+ if (!PyArg_ParseTuple(args,(char *)"OO:PseudoDC_DrawToDC",&obj0,&obj1)) SWIG_fail;
26693
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_gwxPseudoDC, 0 | 0 );
26694
+ if (!SWIG_IsOK(res1)) {
26695
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', argument " "1"" of type '" "gwxPseudoDC *""'");
26697
+ arg1 = reinterpret_cast< gwxPseudoDC * >(argp1);
26698
+ res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
26699
+ if (!SWIG_IsOK(res2)) {
26700
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', argument " "2"" of type '" "void *""'");
26702
+ gwxPseudoDC_DrawToDC(arg1,arg2);
26703
+ resultobj = SWIG_Py_Void();
26704
+ return resultobj;
26710
+SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26711
+ PyObject *resultobj = 0;
26712
+ gwxPseudoDC *arg1 = (gwxPseudoDC *) 0 ;
26713
+ void *arg2 = (void *) 0 ;
26714
+ wxRect *arg3 = 0 ;
26715
+ void *argp1 = 0 ;
26718
+ void *argp3 = 0 ;
26720
+ PyObject * obj0 = 0 ;
26721
+ PyObject * obj1 = 0 ;
26722
+ PyObject * obj2 = 0 ;
26724
+ if (!PyArg_ParseTuple(args,(char *)"OOO:PseudoDC_DrawToDCClipped",&obj0,&obj1,&obj2)) SWIG_fail;
26725
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_gwxPseudoDC, 0 | 0 );
26726
+ if (!SWIG_IsOK(res1)) {
26727
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', argument " "1"" of type '" "gwxPseudoDC *""'");
26729
+ arg1 = reinterpret_cast< gwxPseudoDC * >(argp1);
26730
+ res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
26731
+ if (!SWIG_IsOK(res2)) {
26732
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', argument " "2"" of type '" "void *""'");
26734
+ res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRect, 0 | 0);
26735
+ if (!SWIG_IsOK(res3)) {
26736
+ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClipped" "', argument " "3"" of type '" "wxRect const &""'");
26739
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClipped" "', argument " "3"" of type '" "wxRect const &""'");
26741
+ arg3 = reinterpret_cast< wxRect * >(argp3);
26742
+ gwxPseudoDC_DrawToDCClipped(arg1,arg2,(wxRect const &)*arg3);
26743
+ resultobj = SWIG_Py_Void();
26744
+ return resultobj;
26750
+SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26751
+ PyObject *resultobj = 0;
26752
+ gwxPseudoDC *arg1 = (gwxPseudoDC *) 0 ;
26754
+ void *argp1 = 0 ;
26758
+ PyObject * obj0 = 0 ;
26759
+ PyObject * obj1 = 0 ;
26762
+ if (!PyArg_ParseTuple(args,(char *)"OO:PseudoDC_GetIdBounds",&obj0,&obj1)) SWIG_fail;
26763
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_gwxPseudoDC, 0 | 0 );
26764
+ if (!SWIG_IsOK(res1)) {
26765
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', argument " "1"" of type '" "gwxPseudoDC *""'");
26767
+ arg1 = reinterpret_cast< gwxPseudoDC * >(argp1);
26768
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
26769
+ if (!SWIG_IsOK(ecode2)) {
26770
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', argument " "2"" of type '" "int""'");
26772
+ arg2 = static_cast< int >(val2);
26773
+ result = gwxPseudoDC_GetIdBounds(arg1,arg2);
26775
+ resultobj = Py_BuildValue("iiii", (&result)->x, (&result)->y, (&result)->width, (&result)->height);
26777
+ return resultobj;
26783
+SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26785
+ if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
26786
+ SWIG_TypeNewClientData(SWIGTYPE_p_gwxPseudoDC, SWIG_NewClientData(obj));
26787
+ return SWIG_Py_Void();
26790
+static PyMethodDef SwigMethods[] = {
26791
+ { (char *)"delete_PySwigIterator", _wrap_delete_PySwigIterator, METH_VARARGS, NULL},
26792
+ { (char *)"PySwigIterator_value", _wrap_PySwigIterator_value, METH_VARARGS, NULL},
26793
+ { (char *)"PySwigIterator_incr", _wrap_PySwigIterator_incr, METH_VARARGS, NULL},
26794
+ { (char *)"PySwigIterator_decr", _wrap_PySwigIterator_decr, METH_VARARGS, NULL},
26795
+ { (char *)"PySwigIterator_distance", _wrap_PySwigIterator_distance, METH_VARARGS, NULL},
26796
+ { (char *)"PySwigIterator_equal", _wrap_PySwigIterator_equal, METH_VARARGS, NULL},
26797
+ { (char *)"PySwigIterator_copy", _wrap_PySwigIterator_copy, METH_VARARGS, NULL},
26798
+ { (char *)"PySwigIterator_next", _wrap_PySwigIterator_next, METH_VARARGS, NULL},
26799
+ { (char *)"PySwigIterator_previous", _wrap_PySwigIterator_previous, METH_VARARGS, NULL},
26800
+ { (char *)"PySwigIterator_advance", _wrap_PySwigIterator_advance, METH_VARARGS, NULL},
26801
+ { (char *)"PySwigIterator___eq__", _wrap_PySwigIterator___eq__, METH_VARARGS, NULL},
26802
+ { (char *)"PySwigIterator___ne__", _wrap_PySwigIterator___ne__, METH_VARARGS, NULL},
26803
+ { (char *)"PySwigIterator___iadd__", _wrap_PySwigIterator___iadd__, METH_VARARGS, NULL},
26804
+ { (char *)"PySwigIterator___isub__", _wrap_PySwigIterator___isub__, METH_VARARGS, NULL},
26805
+ { (char *)"PySwigIterator___add__", _wrap_PySwigIterator___add__, METH_VARARGS, NULL},
26806
+ { (char *)"PySwigIterator___sub__", _wrap_PySwigIterator___sub__, METH_VARARGS, NULL},
26807
+ { (char *)"PySwigIterator_swigregister", PySwigIterator_swigregister, METH_VARARGS, NULL},
26808
+ { (char *)"IntVector_iterator", _wrap_IntVector_iterator, METH_VARARGS, NULL},
26809
+ { (char *)"IntVector___nonzero__", _wrap_IntVector___nonzero__, METH_VARARGS, NULL},
26810
+ { (char *)"IntVector___len__", _wrap_IntVector___len__, METH_VARARGS, NULL},
26811
+ { (char *)"IntVector_pop", _wrap_IntVector_pop, METH_VARARGS, NULL},
26812
+ { (char *)"IntVector___getslice__", _wrap_IntVector___getslice__, METH_VARARGS, NULL},
26813
+ { (char *)"IntVector___setslice__", _wrap_IntVector___setslice__, METH_VARARGS, NULL},
26814
+ { (char *)"IntVector___delslice__", _wrap_IntVector___delslice__, METH_VARARGS, NULL},
26815
+ { (char *)"IntVector___delitem__", _wrap_IntVector___delitem__, METH_VARARGS, NULL},
26816
+ { (char *)"IntVector___getitem__", _wrap_IntVector___getitem__, METH_VARARGS, NULL},
26817
+ { (char *)"IntVector___setitem__", _wrap_IntVector___setitem__, METH_VARARGS, NULL},
26818
+ { (char *)"IntVector_append", _wrap_IntVector_append, METH_VARARGS, NULL},
26819
+ { (char *)"IntVector_empty", _wrap_IntVector_empty, METH_VARARGS, NULL},
26820
+ { (char *)"IntVector_size", _wrap_IntVector_size, METH_VARARGS, NULL},
26821
+ { (char *)"IntVector_clear", _wrap_IntVector_clear, METH_VARARGS, NULL},
26822
+ { (char *)"IntVector_swap", _wrap_IntVector_swap, METH_VARARGS, NULL},
26823
+ { (char *)"IntVector_get_allocator", _wrap_IntVector_get_allocator, METH_VARARGS, NULL},
26824
+ { (char *)"IntVector_begin", _wrap_IntVector_begin, METH_VARARGS, NULL},
26825
+ { (char *)"IntVector_end", _wrap_IntVector_end, METH_VARARGS, NULL},
26826
+ { (char *)"IntVector_rbegin", _wrap_IntVector_rbegin, METH_VARARGS, NULL},
26827
+ { (char *)"IntVector_rend", _wrap_IntVector_rend, METH_VARARGS, NULL},
26828
+ { (char *)"IntVector_pop_back", _wrap_IntVector_pop_back, METH_VARARGS, NULL},
26829
+ { (char *)"IntVector_erase", _wrap_IntVector_erase, METH_VARARGS, NULL},
26830
+ { (char *)"new_IntVector", _wrap_new_IntVector, METH_VARARGS, NULL},
26831
+ { (char *)"IntVector_push_back", _wrap_IntVector_push_back, METH_VARARGS, NULL},
26832
+ { (char *)"IntVector_front", _wrap_IntVector_front, METH_VARARGS, NULL},
26833
+ { (char *)"IntVector_back", _wrap_IntVector_back, METH_VARARGS, NULL},
26834
+ { (char *)"IntVector_assign", _wrap_IntVector_assign, METH_VARARGS, NULL},
26835
+ { (char *)"IntVector_resize", _wrap_IntVector_resize, METH_VARARGS, NULL},
26836
+ { (char *)"IntVector_insert", _wrap_IntVector_insert, METH_VARARGS, NULL},
26837
+ { (char *)"IntVector_reserve", _wrap_IntVector_reserve, METH_VARARGS, NULL},
26838
+ { (char *)"IntVector_capacity", _wrap_IntVector_capacity, METH_VARARGS, NULL},
26839
+ { (char *)"delete_IntVector", _wrap_delete_IntVector, METH_VARARGS, NULL},
26840
+ { (char *)"IntVector_swigregister", IntVector_swigregister, METH_VARARGS, NULL},
26841
+ { (char *)"DoubleVector_iterator", _wrap_DoubleVector_iterator, METH_VARARGS, NULL},
26842
+ { (char *)"DoubleVector___nonzero__", _wrap_DoubleVector___nonzero__, METH_VARARGS, NULL},
26843
+ { (char *)"DoubleVector___len__", _wrap_DoubleVector___len__, METH_VARARGS, NULL},
26844
+ { (char *)"DoubleVector_pop", _wrap_DoubleVector_pop, METH_VARARGS, NULL},
26845
+ { (char *)"DoubleVector___getslice__", _wrap_DoubleVector___getslice__, METH_VARARGS, NULL},
26846
+ { (char *)"DoubleVector___setslice__", _wrap_DoubleVector___setslice__, METH_VARARGS, NULL},
26847
+ { (char *)"DoubleVector___delslice__", _wrap_DoubleVector___delslice__, METH_VARARGS, NULL},
26848
+ { (char *)"DoubleVector___delitem__", _wrap_DoubleVector___delitem__, METH_VARARGS, NULL},
26849
+ { (char *)"DoubleVector___getitem__", _wrap_DoubleVector___getitem__, METH_VARARGS, NULL},
26850
+ { (char *)"DoubleVector___setitem__", _wrap_DoubleVector___setitem__, METH_VARARGS, NULL},
26851
+ { (char *)"DoubleVector_append", _wrap_DoubleVector_append, METH_VARARGS, NULL},
26852
+ { (char *)"DoubleVector_empty", _wrap_DoubleVector_empty, METH_VARARGS, NULL},
26853
+ { (char *)"DoubleVector_size", _wrap_DoubleVector_size, METH_VARARGS, NULL},
26854
+ { (char *)"DoubleVector_clear", _wrap_DoubleVector_clear, METH_VARARGS, NULL},
26855
+ { (char *)"DoubleVector_swap", _wrap_DoubleVector_swap, METH_VARARGS, NULL},
26856
+ { (char *)"DoubleVector_get_allocator", _wrap_DoubleVector_get_allocator, METH_VARARGS, NULL},
26857
+ { (char *)"DoubleVector_begin", _wrap_DoubleVector_begin, METH_VARARGS, NULL},
26858
+ { (char *)"DoubleVector_end", _wrap_DoubleVector_end, METH_VARARGS, NULL},
26859
+ { (char *)"DoubleVector_rbegin", _wrap_DoubleVector_rbegin, METH_VARARGS, NULL},
26860
+ { (char *)"DoubleVector_rend", _wrap_DoubleVector_rend, METH_VARARGS, NULL},
26861
+ { (char *)"DoubleVector_pop_back", _wrap_DoubleVector_pop_back, METH_VARARGS, NULL},
26862
+ { (char *)"DoubleVector_erase", _wrap_DoubleVector_erase, METH_VARARGS, NULL},
26863
+ { (char *)"new_DoubleVector", _wrap_new_DoubleVector, METH_VARARGS, NULL},
26864
+ { (char *)"DoubleVector_push_back", _wrap_DoubleVector_push_back, METH_VARARGS, NULL},
26865
+ { (char *)"DoubleVector_front", _wrap_DoubleVector_front, METH_VARARGS, NULL},
26866
+ { (char *)"DoubleVector_back", _wrap_DoubleVector_back, METH_VARARGS, NULL},
26867
+ { (char *)"DoubleVector_assign", _wrap_DoubleVector_assign, METH_VARARGS, NULL},
26868
+ { (char *)"DoubleVector_resize", _wrap_DoubleVector_resize, METH_VARARGS, NULL},
26869
+ { (char *)"DoubleVector_insert", _wrap_DoubleVector_insert, METH_VARARGS, NULL},
26870
+ { (char *)"DoubleVector_reserve", _wrap_DoubleVector_reserve, METH_VARARGS, NULL},
26871
+ { (char *)"DoubleVector_capacity", _wrap_DoubleVector_capacity, METH_VARARGS, NULL},
26872
+ { (char *)"delete_DoubleVector", _wrap_delete_DoubleVector, METH_VARARGS, NULL},
26873
+ { (char *)"DoubleVector_swigregister", DoubleVector_swigregister, METH_VARARGS, NULL},
26874
+ { (char *)"IntVecIntMap_iterator", _wrap_IntVecIntMap_iterator, METH_VARARGS, NULL},
26875
+ { (char *)"IntVecIntMap___nonzero__", _wrap_IntVecIntMap___nonzero__, METH_VARARGS, NULL},
26876
+ { (char *)"IntVecIntMap___len__", _wrap_IntVecIntMap___len__, METH_VARARGS, NULL},
26877
+ { (char *)"IntVecIntMap___getitem__", _wrap_IntVecIntMap___getitem__, METH_VARARGS, NULL},
26878
+ { (char *)"IntVecIntMap___delitem__", _wrap_IntVecIntMap___delitem__, METH_VARARGS, NULL},
26879
+ { (char *)"IntVecIntMap_has_key", _wrap_IntVecIntMap_has_key, METH_VARARGS, NULL},
26880
+ { (char *)"IntVecIntMap_keys", _wrap_IntVecIntMap_keys, METH_VARARGS, NULL},
26881
+ { (char *)"IntVecIntMap_values", _wrap_IntVecIntMap_values, METH_VARARGS, NULL},
26882
+ { (char *)"IntVecIntMap_items", _wrap_IntVecIntMap_items, METH_VARARGS, NULL},
26883
+ { (char *)"IntVecIntMap___contains__", _wrap_IntVecIntMap___contains__, METH_VARARGS, NULL},
26884
+ { (char *)"IntVecIntMap_key_iterator", _wrap_IntVecIntMap_key_iterator, METH_VARARGS, NULL},
26885
+ { (char *)"IntVecIntMap_value_iterator", _wrap_IntVecIntMap_value_iterator, METH_VARARGS, NULL},
26886
+ { (char *)"IntVecIntMap___setitem__", _wrap_IntVecIntMap___setitem__, METH_VARARGS, NULL},
26887
+ { (char *)"new_IntVecIntMap", _wrap_new_IntVecIntMap, METH_VARARGS, NULL},
26888
+ { (char *)"IntVecIntMap_empty", _wrap_IntVecIntMap_empty, METH_VARARGS, NULL},
26889
+ { (char *)"IntVecIntMap_size", _wrap_IntVecIntMap_size, METH_VARARGS, NULL},
26890
+ { (char *)"IntVecIntMap_clear", _wrap_IntVecIntMap_clear, METH_VARARGS, NULL},
26891
+ { (char *)"IntVecIntMap_swap", _wrap_IntVecIntMap_swap, METH_VARARGS, NULL},
26892
+ { (char *)"IntVecIntMap_get_allocator", _wrap_IntVecIntMap_get_allocator, METH_VARARGS, NULL},
26893
+ { (char *)"IntVecIntMap_begin", _wrap_IntVecIntMap_begin, METH_VARARGS, NULL},
26894
+ { (char *)"IntVecIntMap_end", _wrap_IntVecIntMap_end, METH_VARARGS, NULL},
26895
+ { (char *)"IntVecIntMap_rbegin", _wrap_IntVecIntMap_rbegin, METH_VARARGS, NULL},
26896
+ { (char *)"IntVecIntMap_rend", _wrap_IntVecIntMap_rend, METH_VARARGS, NULL},
26897
+ { (char *)"IntVecIntMap_count", _wrap_IntVecIntMap_count, METH_VARARGS, NULL},
26898
+ { (char *)"IntVecIntMap_erase", _wrap_IntVecIntMap_erase, METH_VARARGS, NULL},
26899
+ { (char *)"IntVecIntMap_find", _wrap_IntVecIntMap_find, METH_VARARGS, NULL},
26900
+ { (char *)"IntVecIntMap_lower_bound", _wrap_IntVecIntMap_lower_bound, METH_VARARGS, NULL},
26901
+ { (char *)"IntVecIntMap_upper_bound", _wrap_IntVecIntMap_upper_bound, METH_VARARGS, NULL},
26902
+ { (char *)"delete_IntVecIntMap", _wrap_delete_IntVecIntMap, METH_VARARGS, NULL},
26903
+ { (char *)"IntVecIntMap_swigregister", IntVecIntMap_swigregister, METH_VARARGS, NULL},
26904
+ { (char *)"DoubleVecIntMap_iterator", _wrap_DoubleVecIntMap_iterator, METH_VARARGS, NULL},
26905
+ { (char *)"DoubleVecIntMap___nonzero__", _wrap_DoubleVecIntMap___nonzero__, METH_VARARGS, NULL},
26906
+ { (char *)"DoubleVecIntMap___len__", _wrap_DoubleVecIntMap___len__, METH_VARARGS, NULL},
26907
+ { (char *)"DoubleVecIntMap___getitem__", _wrap_DoubleVecIntMap___getitem__, METH_VARARGS, NULL},
26908
+ { (char *)"DoubleVecIntMap___delitem__", _wrap_DoubleVecIntMap___delitem__, METH_VARARGS, NULL},
26909
+ { (char *)"DoubleVecIntMap_has_key", _wrap_DoubleVecIntMap_has_key, METH_VARARGS, NULL},
26910
+ { (char *)"DoubleVecIntMap_keys", _wrap_DoubleVecIntMap_keys, METH_VARARGS, NULL},
26911
+ { (char *)"DoubleVecIntMap_values", _wrap_DoubleVecIntMap_values, METH_VARARGS, NULL},
26912
+ { (char *)"DoubleVecIntMap_items", _wrap_DoubleVecIntMap_items, METH_VARARGS, NULL},
26913
+ { (char *)"DoubleVecIntMap___contains__", _wrap_DoubleVecIntMap___contains__, METH_VARARGS, NULL},
26914
+ { (char *)"DoubleVecIntMap_key_iterator", _wrap_DoubleVecIntMap_key_iterator, METH_VARARGS, NULL},
26915
+ { (char *)"DoubleVecIntMap_value_iterator", _wrap_DoubleVecIntMap_value_iterator, METH_VARARGS, NULL},
26916
+ { (char *)"DoubleVecIntMap___setitem__", _wrap_DoubleVecIntMap___setitem__, METH_VARARGS, NULL},
26917
+ { (char *)"new_DoubleVecIntMap", _wrap_new_DoubleVecIntMap, METH_VARARGS, NULL},
26918
+ { (char *)"DoubleVecIntMap_empty", _wrap_DoubleVecIntMap_empty, METH_VARARGS, NULL},
26919
+ { (char *)"DoubleVecIntMap_size", _wrap_DoubleVecIntMap_size, METH_VARARGS, NULL},
26920
+ { (char *)"DoubleVecIntMap_clear", _wrap_DoubleVecIntMap_clear, METH_VARARGS, NULL},
26921
+ { (char *)"DoubleVecIntMap_swap", _wrap_DoubleVecIntMap_swap, METH_VARARGS, NULL},
26922
+ { (char *)"DoubleVecIntMap_get_allocator", _wrap_DoubleVecIntMap_get_allocator, METH_VARARGS, NULL},
26923
+ { (char *)"DoubleVecIntMap_begin", _wrap_DoubleVecIntMap_begin, METH_VARARGS, NULL},
26924
+ { (char *)"DoubleVecIntMap_end", _wrap_DoubleVecIntMap_end, METH_VARARGS, NULL},
26925
+ { (char *)"DoubleVecIntMap_rbegin", _wrap_DoubleVecIntMap_rbegin, METH_VARARGS, NULL},
26926
+ { (char *)"DoubleVecIntMap_rend", _wrap_DoubleVecIntMap_rend, METH_VARARGS, NULL},
26927
+ { (char *)"DoubleVecIntMap_count", _wrap_DoubleVecIntMap_count, METH_VARARGS, NULL},
26928
+ { (char *)"DoubleVecIntMap_erase", _wrap_DoubleVecIntMap_erase, METH_VARARGS, NULL},
26929
+ { (char *)"DoubleVecIntMap_find", _wrap_DoubleVecIntMap_find, METH_VARARGS, NULL},
26930
+ { (char *)"DoubleVecIntMap_lower_bound", _wrap_DoubleVecIntMap_lower_bound, METH_VARARGS, NULL},
26931
+ { (char *)"DoubleVecIntMap_upper_bound", _wrap_DoubleVecIntMap_upper_bound, METH_VARARGS, NULL},
26932
+ { (char *)"delete_DoubleVecIntMap", _wrap_delete_DoubleVecIntMap, METH_VARARGS, NULL},
26933
+ { (char *)"DoubleVecIntMap_swigregister", DoubleVecIntMap_swigregister, METH_VARARGS, NULL},
26934
+ { (char *)"new_DisplayDriver", _wrap_new_DisplayDriver, METH_VARARGS, NULL},
26935
+ { (char *)"delete_DisplayDriver", _wrap_delete_DisplayDriver, METH_VARARGS, NULL},
26936
+ { (char *)"DisplayDriver_DrawMap", _wrap_DisplayDriver_DrawMap, METH_VARARGS, NULL},
26937
+ { (char *)"DisplayDriver_SelectLinesByBox", _wrap_DisplayDriver_SelectLinesByBox, METH_VARARGS, NULL},
26938
+ { (char *)"DisplayDriver_SelectLineByPoint", _wrap_DisplayDriver_SelectLineByPoint, METH_VARARGS, NULL},
26939
+ { (char *)"DisplayDriver_GetSelected", _wrap_DisplayDriver_GetSelected, METH_VARARGS, NULL},
26940
+ { (char *)"DisplayDriver_GetSelectedCoord", _wrap_DisplayDriver_GetSelectedCoord, METH_VARARGS, NULL},
26941
+ { (char *)"DisplayDriver_GetDuplicates", _wrap_DisplayDriver_GetDuplicates, METH_VARARGS, NULL},
26942
+ { (char *)"DisplayDriver_GetRegionSelected", _wrap_DisplayDriver_GetRegionSelected, METH_VARARGS, NULL},
26943
+ { (char *)"DisplayDriver_SetSelected", _wrap_DisplayDriver_SetSelected, METH_VARARGS, NULL},
26944
+ { (char *)"DisplayDriver_UnSelect", _wrap_DisplayDriver_UnSelect, METH_VARARGS, NULL},
26945
+ { (char *)"DisplayDriver_GetSelectedVertex", _wrap_DisplayDriver_GetSelectedVertex, METH_VARARGS, NULL},
26946
+ { (char *)"DisplayDriver_DrawSelected", _wrap_DisplayDriver_DrawSelected, METH_VARARGS, NULL},
26947
+ { (char *)"DisplayDriver_CloseMap", _wrap_DisplayDriver_CloseMap, METH_VARARGS, NULL},
26948
+ { (char *)"DisplayDriver_OpenMap", _wrap_DisplayDriver_OpenMap, METH_VARARGS, NULL},
26949
+ { (char *)"DisplayDriver_ReloadMap", _wrap_DisplayDriver_ReloadMap, METH_VARARGS, NULL},
26950
+ { (char *)"DisplayDriver_SetDevice", _wrap_DisplayDriver_SetDevice, METH_VARARGS, NULL},
26951
+ { (char *)"DisplayDriver_GetMapBoundingBox", _wrap_DisplayDriver_GetMapBoundingBox, METH_VARARGS, NULL},
26952
+ { (char *)"DisplayDriver_Is3D", _wrap_DisplayDriver_Is3D, METH_VARARGS, NULL},
26953
+ { (char *)"DisplayDriver_SetRegion", _wrap_DisplayDriver_SetRegion, METH_VARARGS, NULL},
26954
+ { (char *)"DisplayDriver_UpdateSettings", _wrap_DisplayDriver_UpdateSettings, METH_VARARGS, NULL},
26955
+ { (char *)"DisplayDriver_swigregister", DisplayDriver_swigregister, METH_VARARGS, NULL},
26956
+ { (char *)"print_error", _wrap_print_error, METH_VARARGS, NULL},
26957
+ { (char *)"new_Digit", _wrap_new_Digit, METH_VARARGS, NULL},
26958
+ { (char *)"delete_Digit", _wrap_delete_Digit, METH_VARARGS, NULL},
26959
+ { (char *)"Digit_InitCats", _wrap_Digit_InitCats, METH_VARARGS, NULL},
26960
+ { (char *)"Digit_AddLine", _wrap_Digit_AddLine, METH_VARARGS, NULL},
26961
+ { (char *)"Digit_RewriteLine", _wrap_Digit_RewriteLine, METH_VARARGS, NULL},
26962
+ { (char *)"Digit_SplitLine", _wrap_Digit_SplitLine, METH_VARARGS, NULL},
26963
+ { (char *)"Digit_DeleteLines", _wrap_Digit_DeleteLines, METH_VARARGS, NULL},
26964
+ { (char *)"Digit_MoveLines", _wrap_Digit_MoveLines, METH_VARARGS, NULL},
26965
+ { (char *)"Digit_FlipLines", _wrap_Digit_FlipLines, METH_VARARGS, NULL},
26966
+ { (char *)"Digit_MergeLines", _wrap_Digit_MergeLines, METH_VARARGS, NULL},
26967
+ { (char *)"Digit_BreakLines", _wrap_Digit_BreakLines, METH_VARARGS, NULL},
26968
+ { (char *)"Digit_SnapLines", _wrap_Digit_SnapLines, METH_VARARGS, NULL},
26969
+ { (char *)"Digit_ConnectLines", _wrap_Digit_ConnectLines, METH_VARARGS, NULL},
26970
+ { (char *)"Digit_TypeConvLines", _wrap_Digit_TypeConvLines, METH_VARARGS, NULL},
26971
+ { (char *)"Digit_ZBulkLabeling", _wrap_Digit_ZBulkLabeling, METH_VARARGS, NULL},
26972
+ { (char *)"Digit_CopyLines", _wrap_Digit_CopyLines, METH_VARARGS, NULL},
26973
+ { (char *)"Digit_MoveVertex", _wrap_Digit_MoveVertex, METH_VARARGS, NULL},
26974
+ { (char *)"Digit_ModifyLineVertex", _wrap_Digit_ModifyLineVertex, METH_VARARGS, NULL},
26975
+ { (char *)"Digit_SelectLinesByQuery", _wrap_Digit_SelectLinesByQuery, METH_VARARGS, NULL},
26976
+ { (char *)"Digit_CopyCats", _wrap_Digit_CopyCats, METH_VARARGS, NULL},
26977
+ { (char *)"Digit_GetCategory", _wrap_Digit_GetCategory, METH_VARARGS, NULL},
26978
+ { (char *)"Digit_GetLineCats", _wrap_Digit_GetLineCats, METH_VARARGS, NULL},
26979
+ { (char *)"Digit_SetLineCats", _wrap_Digit_SetLineCats, METH_VARARGS, NULL},
26980
+ { (char *)"Digit_GetLayers", _wrap_Digit_GetLayers, METH_VARARGS, NULL},
26981
+ { (char *)"Digit_Undo", _wrap_Digit_Undo, METH_VARARGS, NULL},
26982
+ { (char *)"Digit_GetUndoLevel", _wrap_Digit_GetUndoLevel, METH_VARARGS, NULL},
26983
+ { (char *)"Digit_UpdateSettings", _wrap_Digit_UpdateSettings, METH_VARARGS, NULL},
26984
+ { (char *)"Digit_swigregister", Digit_swigregister, METH_VARARGS, NULL},
26985
+ { (char *)"new_PseudoDC", _wrap_new_PseudoDC, METH_VARARGS, NULL},
26986
+ { (char *)"delete_PseudoDC", _wrap_delete_PseudoDC, METH_VARARGS, NULL},
26987
+ { (char *)"PseudoDC_Clear", _wrap_PseudoDC_Clear, METH_VARARGS, NULL},
26988
+ { (char *)"PseudoDC_RemoveAll", _wrap_PseudoDC_RemoveAll, METH_VARARGS, NULL},
26989
+ { (char *)"PseudoDC_RemoveId", _wrap_PseudoDC_RemoveId, METH_VARARGS, NULL},
26990
+ { (char *)"PseudoDC_DrawToDC", _wrap_PseudoDC_DrawToDC, METH_VARARGS, NULL},
26991
+ { (char *)"PseudoDC_DrawToDCClipped", _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS, NULL},
26992
+ { (char *)"PseudoDC_GetIdBounds", _wrap_PseudoDC_GetIdBounds, METH_VARARGS, NULL},
26993
+ { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
26994
+ { NULL, NULL, 0, NULL }
26998
+/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
27000
+static swig_type_info _swigt__p_Digit = {"_p_Digit", "Digit *", 0, 0, (void*)0, 0};
27001
+static swig_type_info _swigt__p_DisplayDriver = {"_p_DisplayDriver", "DisplayDriver *", 0, 0, (void*)0, 0};
27002
+static swig_type_info _swigt__p_allocator_type = {"_p_allocator_type", "allocator_type *", 0, 0, (void*)0, 0};
27003
+static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
27004
+static swig_type_info _swigt__p_difference_type = {"_p_difference_type", "difference_type *", 0, 0, (void*)0, 0};
27005
+static swig_type_info _swigt__p_gwxPseudoDC = {"_p_gwxPseudoDC", "gwxPseudoDC *", 0, 0, (void*)0, 0};
27006
+static swig_type_info _swigt__p_key_type = {"_p_key_type", "key_type *", 0, 0, (void*)0, 0};
27007
+static swig_type_info _swigt__p_mapped_type = {"_p_mapped_type", "mapped_type *", 0, 0, (void*)0, 0};
27008
+static swig_type_info _swigt__p_p_PyObject = {"_p_p_PyObject", "PyObject **", 0, 0, (void*)0, 0};
27009
+static swig_type_info _swigt__p_size_type = {"_p_size_type", "size_type *", 0, 0, (void*)0, 0};
27010
+static swig_type_info _swigt__p_std__invalid_argument = {"_p_std__invalid_argument", "std::invalid_argument *", 0, 0, (void*)0, 0};
27011
+static swig_type_info _swigt__p_std__lessT_int_t = {"_p_std__lessT_int_t", "std::less< int > *", 0, 0, (void*)0, 0};
27012
+static swig_type_info _swigt__p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t = {"_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t", "std::map< int,std::vector< double > > *|std::map< int,std::vector< double,std::allocator< double > >,std::less< int >,std::allocator< std::pair< int const,std::vector< double,std::allocator< double > > > > > *|std::map< int,std::vector< double,std::allocator< double > > > *", 0, 0, (void*)0, 0};
27013
+static swig_type_info _swigt__p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t__allocator_type = {"_p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t__allocator_type", "std::allocator< std::pair< int const,std::vector< double,std::allocator< double > > > > *|std::map< int,std::vector< double > >::allocator_type *", 0, 0, (void*)0, 0};
27014
+static swig_type_info _swigt__p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t = {"_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t", "std::map< int,std::vector< int > > *|std::map< int,std::vector< int,std::allocator< int > >,std::less< int >,std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > > *|std::map< int,std::vector< int,std::allocator< int > > > *", 0, 0, (void*)0, 0};
27015
+static swig_type_info _swigt__p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t__allocator_type = {"_p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t__allocator_type", "std::map< int,std::vector< int > >::allocator_type *|std::allocator< std::pair< int const,std::vector< int,std::allocator< int > > > > *", 0, 0, (void*)0, 0};
27016
+static swig_type_info _swigt__p_std__vectorT_double_std__allocatorT_double_t_t = {"_p_std__vectorT_double_std__allocatorT_double_t_t", "std::vector< double,std::allocator< double > > *|std::vector< double > *", 0, 0, (void*)0, 0};
27017
+static swig_type_info _swigt__p_std__vectorT_double_std__allocatorT_double_t_t__allocator_type = {"_p_std__vectorT_double_std__allocatorT_double_t_t__allocator_type", "std::vector< double >::allocator_type *|std::allocator< double > *", 0, 0, (void*)0, 0};
27018
+static swig_type_info _swigt__p_std__vectorT_int_std__allocatorT_int_t_t = {"_p_std__vectorT_int_std__allocatorT_int_t_t", "std::vector< int,std::allocator< int > > *|std::vector< int > *", 0, 0, (void*)0, 0};
27019
+static swig_type_info _swigt__p_std__vectorT_int_std__allocatorT_int_t_t__allocator_type = {"_p_std__vectorT_int_std__allocatorT_int_t_t__allocator_type", "std::vector< int >::allocator_type *|std::allocator< int > *", 0, 0, (void*)0, 0};
27020
+static swig_type_info _swigt__p_swig__PySwigIterator = {"_p_swig__PySwigIterator", "swig::PySwigIterator *", 0, 0, (void*)0, 0};
27021
+static swig_type_info _swigt__p_value_type = {"_p_value_type", "value_type *", 0, 0, (void*)0, 0};
27022
+static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
27023
+static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
27025
+static swig_type_info *swig_type_initial[] = {
27026
+ &_swigt__p_Digit,
27027
+ &_swigt__p_DisplayDriver,
27028
+ &_swigt__p_allocator_type,
27030
+ &_swigt__p_difference_type,
27031
+ &_swigt__p_gwxPseudoDC,
27032
+ &_swigt__p_key_type,
27033
+ &_swigt__p_mapped_type,
27034
+ &_swigt__p_p_PyObject,
27035
+ &_swigt__p_size_type,
27036
+ &_swigt__p_std__invalid_argument,
27037
+ &_swigt__p_std__lessT_int_t,
27038
+ &_swigt__p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t,
27039
+ &_swigt__p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t__allocator_type,
27040
+ &_swigt__p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t,
27041
+ &_swigt__p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t__allocator_type,
27042
+ &_swigt__p_std__vectorT_double_std__allocatorT_double_t_t,
27043
+ &_swigt__p_std__vectorT_double_std__allocatorT_double_t_t__allocator_type,
27044
+ &_swigt__p_std__vectorT_int_std__allocatorT_int_t_t,
27045
+ &_swigt__p_std__vectorT_int_std__allocatorT_int_t_t__allocator_type,
27046
+ &_swigt__p_swig__PySwigIterator,
27047
+ &_swigt__p_value_type,
27048
+ &_swigt__p_wxRect,
27049
+ &_swigt__p_wxWindow,
27052
+static swig_cast_info _swigc__p_Digit[] = { {&_swigt__p_Digit, 0, 0, 0},{0, 0, 0, 0}};
27053
+static swig_cast_info _swigc__p_DisplayDriver[] = { {&_swigt__p_DisplayDriver, 0, 0, 0},{0, 0, 0, 0}};
27054
+static swig_cast_info _swigc__p_allocator_type[] = { {&_swigt__p_allocator_type, 0, 0, 0},{0, 0, 0, 0}};
27055
+static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
27056
+static swig_cast_info _swigc__p_difference_type[] = { {&_swigt__p_difference_type, 0, 0, 0},{0, 0, 0, 0}};
27057
+static swig_cast_info _swigc__p_gwxPseudoDC[] = { {&_swigt__p_gwxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
27058
+static swig_cast_info _swigc__p_key_type[] = { {&_swigt__p_key_type, 0, 0, 0},{0, 0, 0, 0}};
27059
+static swig_cast_info _swigc__p_mapped_type[] = { {&_swigt__p_mapped_type, 0, 0, 0},{0, 0, 0, 0}};
27060
+static swig_cast_info _swigc__p_p_PyObject[] = { {&_swigt__p_p_PyObject, 0, 0, 0},{0, 0, 0, 0}};
27061
+static swig_cast_info _swigc__p_size_type[] = { {&_swigt__p_size_type, 0, 0, 0},{0, 0, 0, 0}};
27062
+static swig_cast_info _swigc__p_std__invalid_argument[] = { {&_swigt__p_std__invalid_argument, 0, 0, 0},{0, 0, 0, 0}};
27063
+static swig_cast_info _swigc__p_std__lessT_int_t[] = { {&_swigt__p_std__lessT_int_t, 0, 0, 0},{0, 0, 0, 0}};
27064
+static swig_cast_info _swigc__p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t[] = { {&_swigt__p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
27065
+static swig_cast_info _swigc__p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t__allocator_type[] = { {&_swigt__p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t__allocator_type, 0, 0, 0},{0, 0, 0, 0}};
27066
+static swig_cast_info _swigc__p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t[] = { {&_swigt__p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
27067
+static swig_cast_info _swigc__p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t__allocator_type[] = { {&_swigt__p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t__allocator_type, 0, 0, 0},{0, 0, 0, 0}};
27068
+static swig_cast_info _swigc__p_std__vectorT_double_std__allocatorT_double_t_t[] = { {&_swigt__p_std__vectorT_double_std__allocatorT_double_t_t, 0, 0, 0},{0, 0, 0, 0}};
27069
+static swig_cast_info _swigc__p_std__vectorT_double_std__allocatorT_double_t_t__allocator_type[] = { {&_swigt__p_std__vectorT_double_std__allocatorT_double_t_t__allocator_type, 0, 0, 0},{0, 0, 0, 0}};
27070
+static swig_cast_info _swigc__p_std__vectorT_int_std__allocatorT_int_t_t[] = { {&_swigt__p_std__vectorT_int_std__allocatorT_int_t_t, 0, 0, 0},{0, 0, 0, 0}};
27071
+static swig_cast_info _swigc__p_std__vectorT_int_std__allocatorT_int_t_t__allocator_type[] = { {&_swigt__p_std__vectorT_int_std__allocatorT_int_t_t__allocator_type, 0, 0, 0},{0, 0, 0, 0}};
27072
+static swig_cast_info _swigc__p_swig__PySwigIterator[] = { {&_swigt__p_swig__PySwigIterator, 0, 0, 0},{0, 0, 0, 0}};
27073
+static swig_cast_info _swigc__p_value_type[] = { {&_swigt__p_value_type, 0, 0, 0},{0, 0, 0, 0}};
27074
+static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
27075
+static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxWindow, 0, 0, 0},{0, 0, 0, 0}};
27077
+static swig_cast_info *swig_cast_initial[] = {
27079
+ _swigc__p_DisplayDriver,
27080
+ _swigc__p_allocator_type,
27082
+ _swigc__p_difference_type,
27083
+ _swigc__p_gwxPseudoDC,
27084
+ _swigc__p_key_type,
27085
+ _swigc__p_mapped_type,
27086
+ _swigc__p_p_PyObject,
27087
+ _swigc__p_size_type,
27088
+ _swigc__p_std__invalid_argument,
27089
+ _swigc__p_std__lessT_int_t,
27090
+ _swigc__p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t,
27091
+ _swigc__p_std__mapT_int_std__vectorT_double_std__allocatorT_double_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_double_std__allocatorT_double_t_t_t_t_t__allocator_type,
27092
+ _swigc__p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t,
27093
+ _swigc__p_std__mapT_int_std__vectorT_int_std__allocatorT_int_t_t_std__lessT_int_t_std__allocatorT_std__pairT_int_const_std__vectorT_int_std__allocatorT_int_t_t_t_t_t__allocator_type,
27094
+ _swigc__p_std__vectorT_double_std__allocatorT_double_t_t,
27095
+ _swigc__p_std__vectorT_double_std__allocatorT_double_t_t__allocator_type,
27096
+ _swigc__p_std__vectorT_int_std__allocatorT_int_t_t,
27097
+ _swigc__p_std__vectorT_int_std__allocatorT_int_t_t__allocator_type,
27098
+ _swigc__p_swig__PySwigIterator,
27099
+ _swigc__p_value_type,
27100
+ _swigc__p_wxRect,
27101
+ _swigc__p_wxWindow,
27105
+/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
27107
+static swig_const_info swig_const_table[] = {
27108
+{0, 0, 0, 0.0, 0, 0}};
27110
+#ifdef __cplusplus
27113
+/* -----------------------------------------------------------------------------
27114
+ * Type initialization:
27115
+ * This problem is tough by the requirement that no dynamic
27116
+ * memory is used. Also, since swig_type_info structures store pointers to
27117
+ * swig_cast_info structures and swig_cast_info structures store pointers back
27118
+ * to swig_type_info structures, we need some lookup code at initialization.
27119
+ * The idea is that swig generates all the structures that are needed.
27120
+ * The runtime then collects these partially filled structures.
27121
+ * The SWIG_InitializeModule function takes these initial arrays out of
27122
+ * swig_module, and does all the lookup, filling in the swig_module.types
27123
+ * array with the correct data and linking the correct swig_cast_info
27124
+ * structures together.
27126
+ * The generated swig_type_info structures are assigned staticly to an initial
27127
+ * array. We just loop through that array, and handle each type individually.
27128
+ * First we lookup if this type has been already loaded, and if so, use the
27129
+ * loaded structure instead of the generated one. Then we have to fill in the
27130
+ * cast linked list. The cast data is initially stored in something like a
27131
+ * two-dimensional array. Each row corresponds to a type (there are the same
27132
+ * number of rows as there are in the swig_type_initial array). Each entry in
27133
+ * a column is one of the swig_cast_info structures for that type.
27134
+ * The cast_initial array is actually an array of arrays, because each row has
27135
+ * a variable number of columns. So to actually build the cast linked list,
27136
+ * we find the array of casts associated with the type, and loop through it
27137
+ * adding the casts to the list. The one last trick we need to do is making
27138
+ * sure the type pointer in the swig_cast_info struct is correct.
27140
+ * First off, we lookup the cast->type name to see if it is already loaded.
27141
+ * There are three cases to handle:
27142
+ * 1) If the cast->type has already been loaded AND the type we are adding
27143
+ * casting info to has not been loaded (it is in this module), THEN we
27144
+ * replace the cast->type pointer with the type pointer that has already
27146
+ * 2) If BOTH types (the one we are adding casting info to, and the
27147
+ * cast->type) are loaded, THEN the cast info has already been loaded by
27148
+ * the previous module so we just ignore it.
27149
+ * 3) Finally, if cast->type has not already been loaded, then we add that
27150
+ * swig_cast_info to the linked list (because the cast->type) pointer will
27152
+ * ----------------------------------------------------------------------------- */
27154
+#ifdef __cplusplus
27162
+#define SWIGRUNTIME_DEBUG
27167
+SWIG_InitializeModule(void *clientdata) {
27169
+ swig_module_info *module_head, *iter;
27172
+ clientdata = clientdata;
27174
+ /* check to see if the circular list has been setup, if not, set it up */
27175
+ if (swig_module.next==0) {
27176
+ /* Initialize the swig_module */
27177
+ swig_module.type_initial = swig_type_initial;
27178
+ swig_module.cast_initial = swig_cast_initial;
27179
+ swig_module.next = &swig_module;
27185
+ /* Try and load any already created modules */
27186
+ module_head = SWIG_GetModule(clientdata);
27187
+ if (!module_head) {
27188
+ /* This is the first module loaded for this interpreter */
27189
+ /* so set the swig module into the interpreter */
27190
+ SWIG_SetModule(clientdata, &swig_module);
27191
+ module_head = &swig_module;
27193
+ /* the interpreter has loaded a SWIG module, but has it loaded this one? */
27195
+ iter=module_head;
27197
+ if (iter==&swig_module) {
27202
+ } while (iter!= module_head);
27204
+ /* if the is found in the list, then all is done and we may leave */
27205
+ if (found) return;
27206
+ /* otherwise we must add out module into the list */
27207
+ swig_module.next = module_head->next;
27208
+ module_head->next = &swig_module;
27211
+ /* When multiple interpeters are used, a module could have already been initialized in
27212
+ a different interpreter, but not yet have a pointer in this interpreter.
27213
+ In this case, we do not want to continue adding types... everything should be
27214
+ set up already */
27215
+ if (init == 0) return;
27217
+ /* Now work on filling in swig_module.types */
27218
+#ifdef SWIGRUNTIME_DEBUG
27219
+ printf("SWIG_InitializeModule: size %d\n", swig_module.size);
27221
+ for (i = 0; i < swig_module.size; ++i) {
27222
+ swig_type_info *type = 0;
27223
+ swig_type_info *ret;
27224
+ swig_cast_info *cast;
27226
+#ifdef SWIGRUNTIME_DEBUG
27227
+ printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
27230
+ /* if there is another module already loaded */
27231
+ if (swig_module.next != &swig_module) {
27232
+ type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
27235
+ /* Overwrite clientdata field */
27236
+#ifdef SWIGRUNTIME_DEBUG
27237
+ printf("SWIG_InitializeModule: found type %s\n", type->name);
27239
+ if (swig_module.type_initial[i]->clientdata) {
27240
+ type->clientdata = swig_module.type_initial[i]->clientdata;
27241
+#ifdef SWIGRUNTIME_DEBUG
27242
+ printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
27246
+ type = swig_module.type_initial[i];
27249
+ /* Insert casting types */
27250
+ cast = swig_module.cast_initial[i];
27251
+ while (cast->type) {
27252
+ /* Don't need to add information already in the list */
27254
+#ifdef SWIGRUNTIME_DEBUG
27255
+ printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
27257
+ if (swig_module.next != &swig_module) {
27258
+ ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
27259
+#ifdef SWIGRUNTIME_DEBUG
27260
+ if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
27264
+ if (type == swig_module.type_initial[i]) {
27265
+#ifdef SWIGRUNTIME_DEBUG
27266
+ printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
27268
+ cast->type = ret;
27271
+ /* Check for casting already in the list */
27272
+ swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
27273
+#ifdef SWIGRUNTIME_DEBUG
27274
+ if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
27276
+ if (!ocast) ret = 0;
27281
+#ifdef SWIGRUNTIME_DEBUG
27282
+ printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
27284
+ if (type->cast) {
27285
+ type->cast->prev = cast;
27286
+ cast->next = type->cast;
27288
+ type->cast = cast;
27292
+ /* Set entry in modules->types array equal to the type */
27293
+ swig_module.types[i] = type;
27295
+ swig_module.types[i] = 0;
27297
+#ifdef SWIGRUNTIME_DEBUG
27298
+ printf("**** SWIG_InitializeModule: Cast List ******\n");
27299
+ for (i = 0; i < swig_module.size; ++i) {
27301
+ swig_cast_info *cast = swig_module.cast_initial[i];
27302
+ printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
27303
+ while (cast->type) {
27304
+ printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
27308
+ printf("---- Total casts: %d\n",j);
27310
+ printf("**** SWIG_InitializeModule: Cast List ******\n");
27314
+/* This function will propagate the clientdata field of type to
27315
+* any new swig_type_info structures that have been added into the list
27316
+* of equivalent types. It is like calling
27317
+* SWIG_TypeClientData(type, clientdata) a second time.
27320
+SWIG_PropagateClientData(void) {
27322
+ swig_cast_info *equiv;
27323
+ static int init_run = 0;
27325
+ if (init_run) return;
27328
+ for (i = 0; i < swig_module.size; i++) {
27329
+ if (swig_module.types[i]->clientdata) {
27330
+ equiv = swig_module.types[i]->cast;
27332
+ if (!equiv->converter) {
27333
+ if (equiv->type && !equiv->type->clientdata)
27334
+ SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
27336
+ equiv = equiv->next;
27342
+#ifdef __cplusplus
27352
+#ifdef __cplusplus
27356
+ /* Python-specific SWIG API */
27357
+#define SWIG_newvarlink() SWIG_Python_newvarlink()
27358
+#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
27359
+#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
27361
+ /* -----------------------------------------------------------------------------
27362
+ * global variable support code.
27363
+ * ----------------------------------------------------------------------------- */
27365
+ typedef struct swig_globalvar {
27366
+ char *name; /* Name of global variable */
27367
+ PyObject *(*get_attr)(void); /* Return the current value */
27368
+ int (*set_attr)(PyObject *); /* Set the value */
27369
+ struct swig_globalvar *next;
27370
+ } swig_globalvar;
27372
+ typedef struct swig_varlinkobject {
27374
+ swig_globalvar *vars;
27375
+ } swig_varlinkobject;
27377
+ SWIGINTERN PyObject *
27378
+ swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
27379
+ return PyString_FromString("<Swig global variables>");
27382
+ SWIGINTERN PyObject *
27383
+ swig_varlink_str(swig_varlinkobject *v) {
27384
+ PyObject *str = PyString_FromString("(");
27385
+ swig_globalvar *var;
27386
+ for (var = v->vars; var; var=var->next) {
27387
+ PyString_ConcatAndDel(&str,PyString_FromString(var->name));
27388
+ if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
27390
+ PyString_ConcatAndDel(&str,PyString_FromString(")"));
27395
+ swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
27396
+ PyObject *str = swig_varlink_str(v);
27397
+ fprintf(fp,"Swig global variables ");
27398
+ fprintf(fp,"%s\n", PyString_AsString(str));
27404
+ swig_varlink_dealloc(swig_varlinkobject *v) {
27405
+ swig_globalvar *var = v->vars;
27407
+ swig_globalvar *n = var->next;
27414
+ SWIGINTERN PyObject *
27415
+ swig_varlink_getattr(swig_varlinkobject *v, char *n) {
27416
+ PyObject *res = NULL;
27417
+ swig_globalvar *var = v->vars;
27419
+ if (strcmp(var->name,n) == 0) {
27420
+ res = (*var->get_attr)();
27425
+ if (res == NULL && !PyErr_Occurred()) {
27426
+ PyErr_SetString(PyExc_NameError,"Unknown C global variable");
27432
+ swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
27434
+ swig_globalvar *var = v->vars;
27436
+ if (strcmp(var->name,n) == 0) {
27437
+ res = (*var->set_attr)(p);
27442
+ if (res == 1 && !PyErr_Occurred()) {
27443
+ PyErr_SetString(PyExc_NameError,"Unknown C global variable");
27448
+ SWIGINTERN PyTypeObject*
27449
+ swig_varlink_type(void) {
27450
+ static char varlink__doc__[] = "Swig var link object";
27451
+ static PyTypeObject varlink_type;
27452
+ static int type_init = 0;
27453
+ if (!type_init) {
27454
+ const PyTypeObject tmp
27456
+ PyObject_HEAD_INIT(NULL)
27457
+ 0, /* Number of items in variable part (ob_size) */
27458
+ (char *)"swigvarlink", /* Type name (tp_name) */
27459
+ sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
27460
+ 0, /* Itemsize (tp_itemsize) */
27461
+ (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
27462
+ (printfunc) swig_varlink_print, /* Print (tp_print) */
27463
+ (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
27464
+ (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
27465
+ 0, /* tp_compare */
27466
+ (reprfunc) swig_varlink_repr, /* tp_repr */
27467
+ 0, /* tp_as_number */
27468
+ 0, /* tp_as_sequence */
27469
+ 0, /* tp_as_mapping */
27472
+ (reprfunc)swig_varlink_str, /* tp_str */
27473
+ 0, /* tp_getattro */
27474
+ 0, /* tp_setattro */
27475
+ 0, /* tp_as_buffer */
27476
+ 0, /* tp_flags */
27477
+ varlink__doc__, /* tp_doc */
27478
+ 0, /* tp_traverse */
27479
+ 0, /* tp_clear */
27480
+ 0, /* tp_richcompare */
27481
+ 0, /* tp_weaklistoffset */
27482
+#if PY_VERSION_HEX >= 0x02020000
27483
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
27485
+#if PY_VERSION_HEX >= 0x02030000
27488
+#ifdef COUNT_ALLOCS
27489
+ 0,0,0,0 /* tp_alloc -> tp_next */
27492
+ varlink_type = tmp;
27493
+ varlink_type.ob_type = &PyType_Type;
27496
+ return &varlink_type;
27499
+ /* Create a variable linking object for use later */
27500
+ SWIGINTERN PyObject *
27501
+ SWIG_Python_newvarlink(void) {
27502
+ swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
27504
+ result->vars = 0;
27506
+ return ((PyObject*) result);
27510
+ SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
27511
+ swig_varlinkobject *v = (swig_varlinkobject *) p;
27512
+ swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
27514
+ size_t size = strlen(name)+1;
27515
+ gv->name = (char *)malloc(size);
27517
+ strncpy(gv->name,name,size);
27518
+ gv->get_attr = get_attr;
27519
+ gv->set_attr = set_attr;
27520
+ gv->next = v->vars;
27526
+ SWIGINTERN PyObject *
27527
+ SWIG_globals(void) {
27528
+ static PyObject *_SWIG_globals = 0;
27529
+ if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
27530
+ return _SWIG_globals;
27533
+ /* -----------------------------------------------------------------------------
27534
+ * constants/methods manipulation
27535
+ * ----------------------------------------------------------------------------- */
27537
+ /* Install Constants */
27539
+ SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
27540
+ PyObject *obj = 0;
27542
+ for (i = 0; constants[i].type; ++i) {
27543
+ switch(constants[i].type) {
27544
+ case SWIG_PY_POINTER:
27545
+ obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
27547
+ case SWIG_PY_BINARY:
27548
+ obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
27555
+ PyDict_SetItemString(d, constants[i].name, obj);
27561
+ /* -----------------------------------------------------------------------------*/
27562
+ /* Fix SwigMethods to carry the callback ptrs when needed */
27563
+ /* -----------------------------------------------------------------------------*/
27566
+ SWIG_Python_FixMethods(PyMethodDef *methods,
27567
+ swig_const_info *const_table,
27568
+ swig_type_info **types,
27569
+ swig_type_info **types_initial) {
27571
+ for (i = 0; methods[i].ml_name; ++i) {
27572
+ const char *c = methods[i].ml_doc;
27573
+ if (c && (c = strstr(c, "swig_ptr: "))) {
27575
+ swig_const_info *ci = 0;
27576
+ const char *name = c + 10;
27577
+ for (j = 0; const_table[j].type; ++j) {
27578
+ if (strncmp(const_table[j].name, name,
27579
+ strlen(const_table[j].name)) == 0) {
27580
+ ci = &(const_table[j]);
27585
+ size_t shift = (ci->ptype) - types;
27586
+ swig_type_info *ty = types_initial[shift];
27587
+ size_t ldoc = (c - methods[i].ml_doc);
27588
+ size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
27589
+ char *ndoc = (char*)malloc(ldoc + lptr + 10);
27591
+ char *buff = ndoc;
27592
+ void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
27594
+ strncpy(buff, methods[i].ml_doc, ldoc);
27596
+ strncpy(buff, "swig_ptr: ", 10);
27598
+ SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
27599
+ methods[i].ml_doc = ndoc;
27607
+#ifdef __cplusplus
27611
+/* -----------------------------------------------------------------------------*
27612
+ * Partial Init method
27613
+ * -----------------------------------------------------------------------------*/
27615
+#ifdef __cplusplus
27618
+SWIGEXPORT void SWIG_init(void) {
27621
+ /* Fix SwigMethods to carry the callback ptrs when needed */
27622
+ SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
27624
+ m = Py_InitModule((char *) SWIG_name, SwigMethods);
27625
+ d = PyModule_GetDict(m);
27627
+ SWIG_InitializeModule(0);
27628
+ SWIG_InstallConstants(d,swig_const_table);
27631
+ SWIG_Python_SetConstant(d, "GSQL_MAX",SWIG_From_int(static_cast< int >(4000)));
27632
+ SWIG_Python_SetConstant(d, "GV_POINT",SWIG_From_int(static_cast< int >(0x01)));
27633
+ SWIG_Python_SetConstant(d, "GV_LINE",SWIG_From_int(static_cast< int >(0x02)));
27634
+ SWIG_Python_SetConstant(d, "GV_BOUNDARY",SWIG_From_int(static_cast< int >(0x04)));
27635
+ SWIG_Python_SetConstant(d, "GV_CENTROID",SWIG_From_int(static_cast< int >(0x08)));
27636
+ SWIG_Python_SetConstant(d, "GV_FACE",SWIG_From_int(static_cast< int >(0x10)));
27637
+ SWIG_Python_SetConstant(d, "GV_KERNEL",SWIG_From_int(static_cast< int >(0x20)));
27638
+ SWIG_Python_SetConstant(d, "GV_AREA",SWIG_From_int(static_cast< int >(0x40)));
27639
+ SWIG_Python_SetConstant(d, "GV_VOLUME",SWIG_From_int(static_cast< int >(0x80)));
27640
+ SWIG_Python_SetConstant(d, "GV_POINTS",SWIG_From_int(static_cast< int >((0x01|0x08))));
27641
+ SWIG_Python_SetConstant(d, "GV_LINES",SWIG_From_int(static_cast< int >((0x02|0x04))));
27642
+ SWIG_Python_SetConstant(d, "PORT_DOUBLE_MAX",SWIG_From_double(static_cast< double >(1.7976931348623157e+308)));
27643
+ SWIG_Python_SetConstant(d, "NO_SNAP",SWIG_From_int(static_cast< int >(0)));
27644
+ SWIG_Python_SetConstant(d, "SNAP",SWIG_From_int(static_cast< int >(1)));
27645
+ SWIG_Python_SetConstant(d, "SNAPVERTEX",SWIG_From_int(static_cast< int >(2)));
27646
+ SWIG_Python_SetConstant(d, "QUERY_UNKNOWN",SWIG_From_int(static_cast< int >(-1)));
27647
+ SWIG_Python_SetConstant(d, "QUERY_LENGTH",SWIG_From_int(static_cast< int >(0)));
27648
+ SWIG_Python_SetConstant(d, "QUERY_DANGLE",SWIG_From_int(static_cast< int >(1)));
27651
diff -urNad grass-6.4.0~rc5+39426~/gui/wxpython/vdigit/setup.py grass-6.4.0~rc5+39426/gui/wxpython/vdigit/setup.py
27652
--- grass-6.4.0~rc5+39426~/gui/wxpython/vdigit/setup.py 2009-10-07 10:48:15.000000000 +0200
27653
+++ grass-6.4.0~rc5+39426/gui/wxpython/vdigit/setup.py 2009-10-08 00:04:50.000000000 +0200
27658
- "grass6_wxvdigit.i"],
27659
+ "grass6_wxvdigit_wrap.cpp"],
27660
swig_opts = ['-c++',
27662
define_macros = macros,