Bug Summary

File:pyext/gammalib/base_wrap.cpp
Location:line 4942, column 5
Description:Value stored to 'module_head' is never read

Annotated Source Code

1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 2.0.11
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14
15#ifdef __cplusplus199711L
16/* SwigValueWrapper is described in swig.swg */
17template<typename T> class SwigValueWrapper {
18 struct SwigMovePointer {
19 T *ptr;
20 SwigMovePointer(T *p) : ptr(p) { }
21 ~SwigMovePointer() { delete ptr; }
22 SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
23 } pointer;
24 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
25 SwigValueWrapper(const SwigValueWrapper<T>& rhs);
26public:
27 SwigValueWrapper() : pointer(0) { }
28 SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
29 operator T&() const { return *pointer.ptr; }
30 T *operator&() { return pointer.ptr; }
31};
32
33template <typename T> T SwigValueInit() {
34 return T();
35}
36#endif
37
38/* -----------------------------------------------------------------------------
39 * This section contains generic SWIG labels for method/variable
40 * declarations/attributes, and other compiler dependent labels.
41 * ----------------------------------------------------------------------------- */
42
43/* template workaround for compilers that cannot correctly implement the C++ standard */
44#ifndef SWIGTEMPLATEDISAMBIGUATOR
45# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
46# define SWIGTEMPLATEDISAMBIGUATOR template
47# elif defined(__HP_aCC)
48/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
49/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
50# define SWIGTEMPLATEDISAMBIGUATOR template
51# else
52# define SWIGTEMPLATEDISAMBIGUATOR
53# endif
54#endif
55
56/* inline attribute */
57#ifndef SWIGINLINEinline
58# if defined(__cplusplus199711L) || (defined(__GNUC__4) && !defined(__STRICT_ANSI__))
59# define SWIGINLINEinline inline
60# else
61# define SWIGINLINEinline
62# endif
63#endif
64
65/* attribute recognised by some compilers to avoid 'unused' warnings */
66#ifndef SWIGUNUSED__attribute__ ((__unused__))
67# if defined(__GNUC__4)
68# if !(defined(__cplusplus199711L)) || (__GNUC__4 > 3 || (__GNUC__4 == 3 && __GNUC_MINOR__2 >= 4))
69# define SWIGUNUSED__attribute__ ((__unused__)) __attribute__ ((__unused__))
70# else
71# define SWIGUNUSED__attribute__ ((__unused__))
72# endif
73# elif defined(__ICC)
74# define SWIGUNUSED__attribute__ ((__unused__)) __attribute__ ((__unused__))
75# else
76# define SWIGUNUSED__attribute__ ((__unused__))
77# endif
78#endif
79
80#ifndef SWIG_MSC_UNSUPPRESS_4505
81# if defined(_MSC_VER)
82# pragma warning(disable : 4505) /* unreferenced local function has been removed */
83# endif
84#endif
85
86#ifndef SWIGUNUSEDPARM
87# ifdef __cplusplus199711L
88# define SWIGUNUSEDPARM(p)
89# else
90# define SWIGUNUSEDPARM(p) p SWIGUNUSED__attribute__ ((__unused__))
91# endif
92#endif
93
94/* internal SWIG method */
95#ifndef SWIGINTERNstatic __attribute__ ((__unused__))
96# define SWIGINTERNstatic __attribute__ ((__unused__)) static SWIGUNUSED__attribute__ ((__unused__))
97#endif
98
99/* internal inline SWIG method */
100#ifndef SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline
101# define SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline SWIGINTERNstatic __attribute__ ((__unused__)) SWIGINLINEinline
102#endif
103
104/* exporting methods */
105#if (__GNUC__4 >= 4) || (__GNUC__4 == 3 && __GNUC_MINOR__2 >= 4)
106# ifndef GCC_HASCLASSVISIBILITY
107# define GCC_HASCLASSVISIBILITY
108# endif
109#endif
110
111#ifndef SWIGEXPORT__attribute__ ((visibility("default")))
112# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
113# if defined(STATIC_LINKED)
114# define SWIGEXPORT__attribute__ ((visibility("default")))
115# else
116# define SWIGEXPORT__attribute__ ((visibility("default"))) __declspec(dllexport)
117# endif
118# else
119# if defined(__GNUC__4) && defined(GCC_HASCLASSVISIBILITY)
120# define SWIGEXPORT__attribute__ ((visibility("default"))) __attribute__ ((visibility("default")))
121# else
122# define SWIGEXPORT__attribute__ ((visibility("default")))
123# endif
124# endif
125#endif
126
127/* calling conventions for Windows */
128#ifndef SWIGSTDCALL
129# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
130# define SWIGSTDCALL __stdcall
131# else
132# define SWIGSTDCALL
133# endif
134#endif
135
136/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
137#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
138# define _CRT_SECURE_NO_DEPRECATE
139#endif
140
141/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
142#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
143# define _SCL_SECURE_NO_DEPRECATE
144#endif
145
146
147
148#if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG)
149/* Use debug wrappers with the Python release dll */
150# undef _DEBUG
151# include <Python.h>
152# define _DEBUG
153#else
154# include <Python.h>
155#endif
156
157/* -----------------------------------------------------------------------------
158 * swigrun.swg
159 *
160 * This file contains generic C API SWIG runtime support for pointer
161 * type checking.
162 * ----------------------------------------------------------------------------- */
163
164/* This should only be incremented when either the layout of swig_type_info changes,
165 or for whatever reason, the runtime changes incompatibly */
166#define SWIG_RUNTIME_VERSION"4" "4"
167
168/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
169#ifdef SWIG_TYPE_TABLE
170# define SWIG_QUOTE_STRING(x) #x
171# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
172# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
173#else
174# define SWIG_TYPE_TABLE_NAME
175#endif
176
177/*
178 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
179 creating a static or dynamic library from the SWIG runtime code.
180 In 99.9% of the cases, SWIG just needs to declare them as 'static'.
181
182 But only do this if strictly necessary, ie, if you have problems
183 with your compiler or suchlike.
184*/
185
186#ifndef SWIGRUNTIMEstatic __attribute__ ((__unused__))
187# define SWIGRUNTIMEstatic __attribute__ ((__unused__)) SWIGINTERNstatic __attribute__ ((__unused__))
188#endif
189
190#ifndef SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline
191# define SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline SWIGRUNTIMEstatic __attribute__ ((__unused__)) SWIGINLINEinline
192#endif
193
194/* Generic buffer size */
195#ifndef SWIG_BUFFER_SIZE1024
196# define SWIG_BUFFER_SIZE1024 1024
197#endif
198
199/* Flags for pointer conversions */
200#define SWIG_POINTER_DISOWN0x1 0x1
201#define SWIG_CAST_NEW_MEMORY0x2 0x2
202
203/* Flags for new pointer objects */
204#define SWIG_POINTER_OWN0x1 0x1
205
206
207/*
208 Flags/methods for returning states.
209
210 The SWIG conversion methods, as ConvertPtr, return an integer
211 that tells if the conversion was successful or not. And if not,
212 an error code can be returned (see swigerrors.swg for the codes).
213
214 Use the following macros/flags to set or process the returning
215 states.
216
217 In old versions of SWIG, code such as the following was usually written:
218
219 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
220 // success code
221 } else {
222 //fail code
223 }
224
225 Now you can be more explicit:
226
227 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
228 if (SWIG_IsOK(res)) {
229 // success code
230 } else {
231 // fail code
232 }
233
234 which is the same really, but now you can also do
235
236 Type *ptr;
237 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
238 if (SWIG_IsOK(res)) {
239 // success code
240 if (SWIG_IsNewObj(res) {
241 ...
242 delete *ptr;
243 } else {
244 ...
245 }
246 } else {
247 // fail code
248 }
249
250 I.e., now SWIG_ConvertPtr can return new objects and you can
251 identify the case and take care of the deallocation. Of course that
252 also requires SWIG_ConvertPtr to return new result values, such as
253
254 int SWIG_ConvertPtr(obj, ptr,...) {
255 if (<obj is ok>) {
256 if (<need new object>) {
257 *ptr = <ptr to new allocated object>;
258 return SWIG_NEWOBJ;
259 } else {
260 *ptr = <ptr to old object>;
261 return SWIG_OLDOBJ;
262 }
263 } else {
264 return SWIG_BADOBJ;
265 }
266 }
267
268 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
269 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
270 SWIG errors code.
271
272 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
273 allows to return the 'cast rank', for example, if you have this
274
275 int food(double)
276 int fooi(int);
277
278 and you call
279
280 food(1) // cast rank '1' (1 -> 1.0)
281 fooi(1) // cast rank '0'
282
283 just use the SWIG_AddCast()/SWIG_CheckState()
284*/
285
286#define SWIG_OK(0) (0)
287#define SWIG_ERROR(-1) (-1)
288#define SWIG_IsOK(r)(r >= 0) (r >= 0)
289#define SWIG_ArgError(r)((r != (-1)) ? r : -5) ((r != SWIG_ERROR(-1)) ? r : SWIG_TypeError-5)
290
291/* The CastRankLimit says how many bits are used for the cast rank */
292#define SWIG_CASTRANKLIMIT(1 << 8) (1 << 8)
293/* The NewMask denotes the object was created (using new/malloc) */
294#define SWIG_NEWOBJMASK((1 << 8) << 1) (SWIG_CASTRANKLIMIT(1 << 8) << 1)
295/* The TmpMask is for in/out typemaps that use temporal objects */
296#define SWIG_TMPOBJMASK(((1 << 8) << 1) << 1) (SWIG_NEWOBJMASK((1 << 8) << 1) << 1)
297/* Simple returning values */
298#define SWIG_BADOBJ((-1)) (SWIG_ERROR(-1))
299#define SWIG_OLDOBJ((0)) (SWIG_OK(0))
300#define SWIG_NEWOBJ((0) | ((1 << 8) << 1)) (SWIG_OK(0) | SWIG_NEWOBJMASK((1 << 8) << 1))
301#define SWIG_TMPOBJ((0) | (((1 << 8) << 1) << 1)) (SWIG_OK(0) | SWIG_TMPOBJMASK(((1 << 8) << 1) << 1))
302/* Check, add and del mask methods */
303#define SWIG_AddNewMask(r)((r >= 0) ? (r | ((1 << 8) << 1)) : r) (SWIG_IsOK(r)(r >= 0) ? (r | SWIG_NEWOBJMASK((1 << 8) << 1)) : r)
304#define SWIG_DelNewMask(r)((r >= 0) ? (r & ~((1 << 8) << 1)) : r) (SWIG_IsOK(r)(r >= 0) ? (r & ~SWIG_NEWOBJMASK((1 << 8) << 1)) : r)
305#define SWIG_IsNewObj(r)((r >= 0) && (r & ((1 << 8) << 1))
)
(SWIG_IsOK(r)(r >= 0) && (r & SWIG_NEWOBJMASK((1 << 8) << 1)))
306#define SWIG_AddTmpMask(r)((r >= 0) ? (r | (((1 << 8) << 1) << 1))
: r)
(SWIG_IsOK(r)(r >= 0) ? (r | SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)) : r)
307#define SWIG_DelTmpMask(r)((r >= 0) ? (r & ~(((1 << 8) << 1) <<
1)) : r)
(SWIG_IsOK(r)(r >= 0) ? (r & ~SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)) : r)
308#define SWIG_IsTmpObj(r)((r >= 0) && (r & (((1 << 8) << 1)
<< 1)))
(SWIG_IsOK(r)(r >= 0) && (r & SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)))
309
310/* Cast-Rank Mode */
311#if defined(SWIG_CASTRANK_MODE)
312# ifndef SWIG_TypeRank
313# define SWIG_TypeRank unsigned long
314# endif
315# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
316# define SWIG_MAXCASTRANK (2)
317# endif
318# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT(1 << 8)) -1)
319# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
320SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int SWIG_AddCast(int r)(int r) {
321 return SWIG_IsOK(r)(r >= 0) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR(-1)) : r;
322}
323SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int SWIG_CheckState(int r)((int r >= 0) ? 1 : 0) {
324 return SWIG_IsOK(r)(r >= 0) ? SWIG_CastRank(r) + 1 : 0;
325}
326#else /* no cast-rank mode */
327# define SWIG_AddCast(r)(r) (r)
328# define SWIG_CheckState(r)((r >= 0) ? 1 : 0) (SWIG_IsOK(r)(r >= 0) ? 1 : 0)
329#endif
330
331
332#include <string.h>
333
334#ifdef __cplusplus199711L
335extern "C" {
336#endif
337
338typedef void *(*swig_converter_func)(void *, int *);
339typedef struct swig_type_info *(*swig_dycast_func)(void **);
340
341/* Structure to store information on one type */
342typedef struct swig_type_info {
343 const char *name; /* mangled name of this type */
344 const char *str; /* human readable name of this type */
345 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
346 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
347 void *clientdata; /* language specific type data */
348 int owndata; /* flag if the structure owns the clientdata */
349} swig_type_info;
350
351/* Structure to store a type and conversion function used for casting */
352typedef struct swig_cast_info {
353 swig_type_info *type; /* pointer to type that is equivalent to this type */
354 swig_converter_func converter; /* function to cast the void pointers */
355 struct swig_cast_info *next; /* pointer to next cast in linked list */
356 struct swig_cast_info *prev; /* pointer to the previous cast */
357} swig_cast_info;
358
359/* Structure used to store module information
360 * Each module generates one structure like this, and the runtime collects
361 * all of these structures and stores them in a circularly linked list.*/
362typedef struct swig_module_info {
363 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
364 size_t size; /* Number of types in this module */
365 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
366 swig_type_info **type_initial; /* Array of initially generated type structures */
367 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
368 void *clientdata; /* Language specific module data */
369} swig_module_info;
370
371/*
372 Compare two type names skipping the space characters, therefore
373 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
374
375 Return 0 when the two name types are equivalent, as in
376 strncmp, but skipping ' '.
377*/
378SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
379SWIG_TypeNameComp(const char *f1, const char *l1,
380 const char *f2, const char *l2) {
381 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
382 while ((*f1 == ' ') && (f1 != l1)) ++f1;
383 while ((*f2 == ' ') && (f2 != l2)) ++f2;
384 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
385 }
386 return (int)((l1 - f1) - (l2 - f2));
387}
388
389/*
390 Check type equivalence in a name list like <name1>|<name2>|...
391 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
392*/
393SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
394SWIG_TypeCmp(const char *nb, const char *tb) {
395 int equiv = 1;
396 const char* te = tb + strlen(tb);
397 const char* ne = nb;
398 while (equiv != 0 && *ne) {
399 for (nb = ne; *ne; ++ne) {
400 if (*ne == '|') break;
401 }
402 equiv = SWIG_TypeNameComp(nb, ne, tb, te);
403 if (*ne) ++ne;
404 }
405 return equiv;
406}
407
408/*
409 Check type equivalence in a name list like <name1>|<name2>|...
410 Return 0 if not equal, 1 if equal
411*/
412SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
413SWIG_TypeEquiv(const char *nb, const char *tb) {
414 return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
415}
416
417/*
418 Check the typename
419*/
420SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_cast_info *
421SWIG_TypeCheck(const char *c, swig_type_info *ty) {
422 if (ty) {
423 swig_cast_info *iter = ty->cast;
424 while (iter) {
425 if (strcmp(iter->type->name, c) == 0) {
426 if (iter == ty->cast)
427 return iter;
428 /* Move iter to the top of the linked list */
429 iter->prev->next = iter->next;
430 if (iter->next)
431 iter->next->prev = iter->prev;
432 iter->next = ty->cast;
433 iter->prev = 0;
434 if (ty->cast) ty->cast->prev = iter;
435 ty->cast = iter;
436 return iter;
437 }
438 iter = iter->next;
439 }
440 }
441 return 0;
442}
443
444/*
445 Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
446*/
447SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_cast_info *
448SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
449 if (ty) {
450 swig_cast_info *iter = ty->cast;
451 while (iter) {
452 if (iter->type == from) {
453 if (iter == ty->cast)
454 return iter;
455 /* Move iter to the top of the linked list */
456 iter->prev->next = iter->next;
457 if (iter->next)
458 iter->next->prev = iter->prev;
459 iter->next = ty->cast;
460 iter->prev = 0;
461 if (ty->cast) ty->cast->prev = iter;
462 ty->cast = iter;
463 return iter;
464 }
465 iter = iter->next;
466 }
467 }
468 return 0;
469}
470
471/*
472 Cast a pointer up an inheritance hierarchy
473*/
474SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline void *
475SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
476 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
477}
478
479/*
480 Dynamic pointer casting. Down an inheritance hierarchy
481*/
482SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
483SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
484 swig_type_info *lastty = ty;
485 if (!ty || !ty->dcast) return ty;
486 while (ty && (ty->dcast)) {
487 ty = (*ty->dcast)(ptr);
488 if (ty) lastty = ty;
489 }
490 return lastty;
491}
492
493/*
494 Return the name associated with this type
495*/
496SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline const char *
497SWIG_TypeName(const swig_type_info *ty) {
498 return ty->name;
499}
500
501/*
502 Return the pretty name associated with this type,
503 that is an unmangled type name in a form presentable to the user.
504*/
505SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
506SWIG_TypePrettyName(const swig_type_info *type) {
507 /* The "str" field contains the equivalent pretty names of the
508 type, separated by vertical-bar characters. We choose
509 to print the last name, as it is often (?) the most
510 specific. */
511 if (!type) return NULL__null;
512 if (type->str != NULL__null) {
513 const char *last_name = type->str;
514 const char *s;
515 for (s = type->str; *s; s++)
516 if (*s == '|') last_name = s+1;
517 return last_name;
518 }
519 else
520 return type->name;
521}
522
523/*
524 Set the clientdata field for a type
525*/
526SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
527SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
528 swig_cast_info *cast = ti->cast;
529 /* if (ti->clientdata == clientdata) return; */
530 ti->clientdata = clientdata;
531
532 while (cast) {
533 if (!cast->converter) {
534 swig_type_info *tc = cast->type;
535 if (!tc->clientdata) {
536 SWIG_TypeClientData(tc, clientdata);
537 }
538 }
539 cast = cast->next;
540 }
541}
542SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
543SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
544 SWIG_TypeClientData(ti, clientdata);
545 ti->owndata = 1;
546}
547
548/*
549 Search for a swig_type_info structure only by mangled name
550 Search is a O(log #types)
551
552 We start searching at module start, and finish searching when start == end.
553 Note: if start == end at the beginning of the function, we go all the way around
554 the circular list.
555*/
556SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
557SWIG_MangledTypeQueryModule(swig_module_info *start,
558 swig_module_info *end,
559 const char *name) {
560 swig_module_info *iter = start;
561 do {
562 if (iter->size) {
563 register size_t l = 0;
564 register size_t r = iter->size - 1;
565 do {
566 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
567 register size_t i = (l + r) >> 1;
568 const char *iname = iter->types[i]->name;
569 if (iname) {
570 register int compare = strcmp(name, iname);
571 if (compare == 0) {
572 return iter->types[i];
573 } else if (compare < 0) {
574 if (i) {
575 r = i - 1;
576 } else {
577 break;
578 }
579 } else if (compare > 0) {
580 l = i + 1;
581 }
582 } else {
583 break; /* should never happen */
584 }
585 } while (l <= r);
586 }
587 iter = iter->next;
588 } while (iter != end);
589 return 0;
590}
591
592/*
593 Search for a swig_type_info structure for either a mangled name or a human readable name.
594 It first searches the mangled names of the types, which is a O(log #types)
595 If a type is not found it then searches the human readable names, which is O(#types).
596
597 We start searching at module start, and finish searching when start == end.
598 Note: if start == end at the beginning of the function, we go all the way around
599 the circular list.
600*/
601SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
602SWIG_TypeQueryModule(swig_module_info *start,
603 swig_module_info *end,
604 const char *name) {
605 /* STEP 1: Search the name field using binary search */
606 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
607 if (ret) {
608 return ret;
609 } else {
610 /* STEP 2: If the type hasn't been found, do a complete search
611 of the str field (the human readable name) */
612 swig_module_info *iter = start;
613 do {
614 register size_t i = 0;
615 for (; i < iter->size; ++i) {
616 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
617 return iter->types[i];
618 }
619 iter = iter->next;
620 } while (iter != end);
621 }
622
623 /* neither found a match */
624 return 0;
625}
626
627/*
628 Pack binary data into a string
629*/
630SWIGRUNTIMEstatic __attribute__ ((__unused__)) char *
631SWIG_PackData(char *c, void *ptr, size_t sz) {
632 static const char hex[17] = "0123456789abcdef";
633 register const unsigned char *u = (unsigned char *) ptr;
634 register const unsigned char *eu = u + sz;
635 for (; u != eu; ++u) {
636 register unsigned char uu = *u;
637 *(c++) = hex[(uu & 0xf0) >> 4];
638 *(c++) = hex[uu & 0xf];
639 }
640 return c;
641}
642
643/*
644 Unpack binary data from a string
645*/
646SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
647SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
648 register unsigned char *u = (unsigned char *) ptr;
649 register const unsigned char *eu = u + sz;
650 for (; u != eu; ++u) {
651 register char d = *(c++);
652 register unsigned char uu;
653 if ((d >= '0') && (d <= '9'))
654 uu = ((d - '0') << 4);
655 else if ((d >= 'a') && (d <= 'f'))
656 uu = ((d - ('a'-10)) << 4);
657 else
658 return (char *) 0;
659 d = *(c++);
660 if ((d >= '0') && (d <= '9'))
661 uu |= (d - '0');
662 else if ((d >= 'a') && (d <= 'f'))
663 uu |= (d - ('a'-10));
664 else
665 return (char *) 0;
666 *u = uu;
667 }
668 return c;
669}
670
671/*
672 Pack 'void *' into a string buffer.
673*/
674SWIGRUNTIMEstatic __attribute__ ((__unused__)) char *
675SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
676 char *r = buff;
677 if ((2*sizeof(void *) + 2) > bsz) return 0;
678 *(r++) = '_';
679 r = SWIG_PackData(r,&ptr,sizeof(void *));
680 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
681 strcpy(r,name);
682 return buff;
683}
684
685SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
686SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
687 if (*c != '_') {
688 if (strcmp(c,"NULL") == 0) {
689 *ptr = (void *) 0;
690 return name;
691 } else {
692 return 0;
693 }
694 }
695 return SWIG_UnpackData(++c,ptr,sizeof(void *));
696}
697
698SWIGRUNTIMEstatic __attribute__ ((__unused__)) char *
699SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
700 char *r = buff;
701 size_t lname = (name ? strlen(name) : 0);
702 if ((2*sz + 2 + lname) > bsz) return 0;
703 *(r++) = '_';
704 r = SWIG_PackData(r,ptr,sz);
705 if (lname) {
706 strncpy(r,name,lname+1);
707 } else {
708 *r = 0;
709 }
710 return buff;
711}
712
713SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
714SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
715 if (*c != '_') {
716 if (strcmp(c,"NULL") == 0) {
717 memset(ptr,0,sz);
718 return name;
719 } else {
720 return 0;
721 }
722 }
723 return SWIG_UnpackData(++c,ptr,sz);
724}
725
726#ifdef __cplusplus199711L
727}
728#endif
729
730/* Errors in SWIG */
731#define SWIG_UnknownError-1 -1
732#define SWIG_IOError-2 -2
733#define SWIG_RuntimeError-3 -3
734#define SWIG_IndexError-4 -4
735#define SWIG_TypeError-5 -5
736#define SWIG_DivisionByZero-6 -6
737#define SWIG_OverflowError-7 -7
738#define SWIG_SyntaxError-8 -8
739#define SWIG_ValueError-9 -9
740#define SWIG_SystemError-10 -10
741#define SWIG_AttributeError-11 -11
742#define SWIG_MemoryError-12 -12
743#define SWIG_NullReferenceError-13 -13
744
745
746
747/* Compatibility macros for Python 3 */
748#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
749
750#define PyClass_Check(obj)((obj)->ob_type == &PyClass_Type) PyObject_IsInstance(obj, (PyObject *)&PyType_Type)
751#define PyInt_Check(x)((((x)->ob_type)->tp_flags & ((1L<<23))) != 0
)
PyLong_Check(x)((((((PyObject*)(x))->ob_type))->tp_flags & ((1L<<
24))) != 0)
752#define PyInt_AsLong(x) PyLong_AsLong(x)
753#define PyInt_FromLong(x) PyLong_FromLong(x)
754#define PyInt_FromSize_t(x) PyLong_FromSize_t(x)
755#define PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<27))) != 0)
PyBytes_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<27))) != 0)
756#define PyString_FromString(x) PyUnicode_FromStringPyUnicodeUCS2_FromString(x)
757#define PyString_Format(fmt, args) PyUnicode_FormatPyUnicodeUCS2_Format(fmt, args)
758#define PyString_AsString(str) PyBytes_AsStringPyString_AsString(str)
759#define PyString_Size(str) PyBytes_SizePyString_Size(str)
760#define PyString_InternFromString(key) PyUnicode_InternFromString(key)
761#define Py_TPFLAGS_HAVE_CLASS(1L<<8) Py_TPFLAGS_BASETYPE(1L<<10)
762#define PyString_AS_STRING(x)(((PyStringObject *)(x))->ob_sval) PyUnicode_AS_STRING(x)
763#define _PyLong_FromSsize_tPyLong_FromSsize_t(x) PyLong_FromSsize_t(x)
764
765#endif
766
767#ifndef Py_TYPE
768# define Py_TYPE(op)(((PyObject*)(op))->ob_type) ((op)->ob_type)
769#endif
770
771/* SWIG APIs for compatibility of both Python 2 & 3 */
772
773#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
774# define SWIG_Python_str_FromFormatPyString_FromFormat PyUnicode_FromFormatPyUnicodeUCS2_FromFormat
775#else
776# define SWIG_Python_str_FromFormatPyString_FromFormat PyString_FromFormat
777#endif
778
779
780/* Warning: This function will allocate a new string in Python 3,
781 * so please call SWIG_Python_str_DelForPy3(x) to free the space.
782 */
783SWIGINTERNstatic __attribute__ ((__unused__)) char*
784SWIG_Python_str_AsChar(PyObject *str)
785{
786#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
787 char *cstr;
788 char *newstr;
789 Py_ssize_t len;
790 str = PyUnicode_AsUTF8StringPyUnicodeUCS2_AsUTF8String(str);
791 PyBytes_AsStringAndSizePyString_AsStringAndSize(str, &cstr, &len);
792 newstr = (char *) malloc(len+1);
793 memcpy(newstr, cstr, len+1);
794 Py_XDECREF(str)do { if ((str) == __null) ; else do { if ( --((PyObject*)(str
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
str)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)
(str)))); } while (0); } while (0)
;
795 return newstr;
796#else
797 return PyString_AsString(str);
798#endif
799}
800
801#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
802# define SWIG_Python_str_DelForPy3(x) free( (void*) (x) )
803#else
804# define SWIG_Python_str_DelForPy3(x)
805#endif
806
807
808SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
809SWIG_Python_str_FromChar(const char *c)
810{
811#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
812 return PyUnicode_FromStringPyUnicodeUCS2_FromString(c);
813#else
814 return PyString_FromString(c);
815#endif
816}
817
818/* Add PyOS_snprintf for old Pythons */
819#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
820# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
821# define PyOS_snprintf _snprintf
822# else
823# define PyOS_snprintf snprintf
824# endif
825#endif
826
827/* A crude PyString_FromFormat implementation for old Pythons */
828#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
829
830#ifndef SWIG_PYBUFFER_SIZE
831# define SWIG_PYBUFFER_SIZE 1024
832#endif
833
834static PyObject *
835PyString_FromFormat(const char *fmt, ...) {
836 va_list ap;
837 char buf[SWIG_PYBUFFER_SIZE * 2];
838 int res;
839 va_start(ap, fmt)__builtin_va_start(ap, fmt);
840 res = vsnprintf(buf, sizeof(buf), fmt, ap);
841 va_end(ap)__builtin_va_end(ap);
842 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
843}
844#endif
845
846/* Add PyObject_Del for old Pythons */
847#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x01060000
848# define PyObject_DelPyObject_Free(op) PyMem_DELfree((op))
849#endif
850#ifndef PyObject_DELPyObject_Free
851# define PyObject_DELPyObject_Free PyObject_DelPyObject_Free
852#endif
853
854/* A crude PyExc_StopIteration exception for old Pythons */
855#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
856# ifndef PyExc_StopIteration
857# define PyExc_StopIteration PyExc_RuntimeError
858# endif
859# ifndef PyObject_GenericGetAttr
860# define PyObject_GenericGetAttr 0
861# endif
862#endif
863
864/* Py_NotImplemented is defined in 2.1 and up. */
865#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02010000
866# ifndef Py_NotImplemented(&_Py_NotImplementedStruct)
867# define Py_NotImplemented(&_Py_NotImplementedStruct) PyExc_RuntimeError
868# endif
869#endif
870
871/* A crude PyString_AsStringAndSize implementation for old Pythons */
872#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02010000
873# ifndef PyString_AsStringAndSize
874# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
875# endif
876#endif
877
878/* PySequence_Size for old Pythons */
879#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02000000
880# ifndef PySequence_Size
881# define PySequence_Size PySequence_LengthPySequence_Size
882# endif
883#endif
884
885/* PyBool_FromLong for old Pythons */
886#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
887static
888PyObject *PyBool_FromLong(long ok)
889{
890 PyObject *result = ok ? Py_True((PyObject *) &_Py_TrueStruct) : Py_False((PyObject *) &_Py_ZeroStruct);
891 Py_INCREF(result)( ((PyObject*)(result))->ob_refcnt++);
892 return result;
893}
894#endif
895
896/* Py_ssize_t for old Pythons */
897/* This code is as recommended by: */
898/* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */
899#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02050000 && !defined(PY_SSIZE_T_MIN(-((Py_ssize_t)(((size_t)-1)>>1))-1))
900typedef int Py_ssize_t;
901# define PY_SSIZE_T_MAX((Py_ssize_t)(((size_t)-1)>>1)) INT_MAX2147483647
902# define PY_SSIZE_T_MIN(-((Py_ssize_t)(((size_t)-1)>>1))-1) INT_MIN(-2147483647 -1)
903typedef inquiry lenfunc;
904typedef intargfunc ssizeargfunc;
905typedef intintargfunc ssizessizeargfunc;
906typedef intobjargproc ssizeobjargproc;
907typedef intintobjargproc ssizessizeobjargproc;
908typedef getreadbufferproc readbufferproc;
909typedef getwritebufferproc writebufferproc;
910typedef getsegcountproc segcountproc;
911typedef getcharbufferproc charbufferproc;
912static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc))
913{
914 long result = 0;
915 PyObject *i = PyNumber_Int(x);
916 if (i) {
917 result = PyInt_AsLong(i);
918 Py_DECREF(i)do { if ( --((PyObject*)(i))->ob_refcnt != 0) ; else ( (*(
((PyObject*)((PyObject *)(i)))->ob_type)->tp_dealloc)((
PyObject *)((PyObject *)(i)))); } while (0)
;
919 }
920 return result;
921}
922#endif
923
924#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02050000
925#define PyInt_FromSize_t(x) PyInt_FromLong((long)x)
926#endif
927
928#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02040000
929#define Py_VISIT(op)do { if (op) { int vret = visit((PyObject *)(op), arg); if (vret
) return vret; } } while (0)
\
930 do { \
931 if (op) { \
932 int vret = visit((op), arg); \
933 if (vret) \
934 return vret; \
935 } \
936 } while (0)
937#endif
938
939#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
940typedef struct {
941 PyTypeObject type;
942 PyNumberMethods as_number;
943 PyMappingMethods as_mapping;
944 PySequenceMethods as_sequence;
945 PyBufferProcs as_buffer;
946 PyObject *name, *slots;
947} PyHeapTypeObject;
948#endif
949
950#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
951typedef destructor freefunc;
952#endif
953
954#if ((PY_MAJOR_VERSION2 == 2 && PY_MINOR_VERSION7 > 6) || \
955 (PY_MAJOR_VERSION2 == 3 && PY_MINOR_VERSION7 > 0) || \
956 (PY_MAJOR_VERSION2 > 3))
957# define SWIGPY_USE_CAPSULE
958# define SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ) ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4" ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME)
959#endif
960
961#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03020000
962#define PyDescr_TYPE(x)(((PyDescrObject *)(x))->d_type) (((PyDescrObject *)(x))->d_type)
963#define PyDescr_NAME(x)(((PyDescrObject *)(x))->d_name) (((PyDescrObject *)(x))->d_name)
964#endif
965
966/* -----------------------------------------------------------------------------
967 * error manipulation
968 * ----------------------------------------------------------------------------- */
969
970SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
971SWIG_Python_ErrorType(int code) {
972 PyObject* type = 0;
973 switch(code) {
974 case SWIG_MemoryError-12:
975 type = PyExc_MemoryError;
976 break;
977 case SWIG_IOError-2:
978 type = PyExc_IOError;
979 break;
980 case SWIG_RuntimeError-3:
981 type = PyExc_RuntimeError;
982 break;
983 case SWIG_IndexError-4:
984 type = PyExc_IndexError;
985 break;
986 case SWIG_TypeError-5:
987 type = PyExc_TypeError;
988 break;
989 case SWIG_DivisionByZero-6:
990 type = PyExc_ZeroDivisionError;
991 break;
992 case SWIG_OverflowError-7:
993 type = PyExc_OverflowError;
994 break;
995 case SWIG_SyntaxError-8:
996 type = PyExc_SyntaxError;
997 break;
998 case SWIG_ValueError-9:
999 type = PyExc_ValueError;
1000 break;
1001 case SWIG_SystemError-10:
1002 type = PyExc_SystemError;
1003 break;
1004 case SWIG_AttributeError-11:
1005 type = PyExc_AttributeError;
1006 break;
1007 default:
1008 type = PyExc_RuntimeError;
1009 }
1010 return type;
1011}
1012
1013
1014SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
1015SWIG_Python_AddErrorMsg(const char* mesg)
1016{
1017 PyObject *type = 0;
1018 PyObject *value = 0;
1019 PyObject *traceback = 0;
1020
1021 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
1022 if (value) {
1023 char *tmp;
1024 PyObject *old_str = PyObject_Str(value);
1025 PyErr_Clear();
1026 Py_XINCREF(type)do { if ((type) == __null) ; else ( ((PyObject*)(type))->ob_refcnt
++); } while (0)
;
1027
1028 PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
1029 SWIG_Python_str_DelForPy3(tmp);
1030 Py_DECREF(old_str)do { if ( --((PyObject*)(old_str))->ob_refcnt != 0) ; else
( (*(((PyObject*)((PyObject *)(old_str)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(old_str)))); } while (0)
;
1031 Py_DECREF(value)do { if ( --((PyObject*)(value))->ob_refcnt != 0) ; else (
(*(((PyObject*)((PyObject *)(value)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(value)))); } while (0)
;
1032 } else {
1033 PyErr_SetString(PyExc_RuntimeError, mesg);
1034 }
1035}
1036
1037#if defined(SWIG_PYTHON_NO_THREADS)
1038# if defined(SWIG_PYTHON_THREADS)
1039# undef SWIG_PYTHON_THREADS
1040# endif
1041#endif
1042#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
1043# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
1044# if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
1045# define SWIG_PYTHON_USE_GIL
1046# endif
1047# endif
1048# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
1049# ifndef SWIG_PYTHON_INITIALIZE_THREADS
1050# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
1051# endif
1052# ifdef __cplusplus199711L /* C++ code */
1053 class SWIG_Python_Thread_Block {
1054 bool status;
1055 PyGILState_STATE state;
1056 public:
1057 void end() { if (status) { PyGILState_Release(state); status = false;} }
1058 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
1059 ~SWIG_Python_Thread_Block() { end(); }
1060 };
1061 class SWIG_Python_Thread_Allow {
1062 bool status;
1063 PyThreadState *save;
1064 public:
1065 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
1066 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
1067 ~SWIG_Python_Thread_Allow() { end(); }
1068 };
1069# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
1070# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
1071# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
1072# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
1073# else /* C code */
1074# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
1075# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
1076# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
1077# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
1078# endif
1079# else /* Old thread way, not implemented, user must provide it */
1080# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
1081# define SWIG_PYTHON_INITIALIZE_THREADS
1082# endif
1083# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
1084# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1085# endif
1086# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
1087# define SWIG_PYTHON_THREAD_END_BLOCK
1088# endif
1089# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
1090# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1091# endif
1092# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
1093# define SWIG_PYTHON_THREAD_END_ALLOW
1094# endif
1095# endif
1096#else /* No thread support */
1097# define SWIG_PYTHON_INITIALIZE_THREADS
1098# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1099# define SWIG_PYTHON_THREAD_END_BLOCK
1100# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1101# define SWIG_PYTHON_THREAD_END_ALLOW
1102#endif
1103
1104/* -----------------------------------------------------------------------------
1105 * Python API portion that goes into the runtime
1106 * ----------------------------------------------------------------------------- */
1107
1108#ifdef __cplusplus199711L
1109extern "C" {
1110#endif
1111
1112/* -----------------------------------------------------------------------------
1113 * Constant declarations
1114 * ----------------------------------------------------------------------------- */
1115
1116/* Constant Types */
1117#define SWIG_PY_POINTER4 4
1118#define SWIG_PY_BINARY5 5
1119
1120/* Constant information structure */
1121typedef struct swig_const_info {
1122 int type;
1123 char *name;
1124 long lvalue;
1125 double dvalue;
1126 void *pvalue;
1127 swig_type_info **ptype;
1128} swig_const_info;
1129
1130
1131/* -----------------------------------------------------------------------------
1132 * Wrapper of PyInstanceMethod_New() used in Python 3
1133 * It is exported to the generated module, used for -fastproxy
1134 * ----------------------------------------------------------------------------- */
1135#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1136SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func)
1137{
1138 return PyInstanceMethod_New(func);
1139}
1140#else
1141SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(func))
1142{
1143 return NULL__null;
1144}
1145#endif
1146
1147#ifdef __cplusplus199711L
1148}
1149#endif
1150
1151
1152/* -----------------------------------------------------------------------------
1153 * pyrun.swg
1154 *
1155 * This file contains the runtime support for Python modules
1156 * and includes code for managing global variables and pointer
1157 * type checking.
1158 *
1159 * ----------------------------------------------------------------------------- */
1160
1161/* Common SWIG API */
1162
1163/* for raw pointers */
1164#define SWIG_Python_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1165#define SWIG_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) SWIG_Python_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1166#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
1167
1168#ifdef SWIGPYTHON_BUILTIN
1169#define SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags)
1170#else
1171#define SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_Python_NewPointerObj(NULL__null, ptr, type, flags)
1172#endif
1173
1174#define SWIG_InternalNewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_Python_NewPointerObj(NULL__null, ptr, type, flags)
1175
1176#define SWIG_CheckImplicit(ty)SWIG_Python_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
1177#define SWIG_AcquirePtr(ptr, src)SWIG_Python_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
1178#define swig_owntypeint int
1179
1180/* for raw packed data */
1181#define SWIG_ConvertPacked(obj, ptr, sz, ty)SWIG_Python_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1182#define SWIG_NewPackedObj(ptr, sz, type)SWIG_Python_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1183
1184/* for class or struct pointers */
1185#define SWIG_ConvertInstance(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) SWIG_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1186#define SWIG_NewInstanceObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags)
1187
1188/* for C or C++ function pointers */
1189#define SWIG_ConvertFunctionPtr(obj, pptr, type)SWIG_Python_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1190#define SWIG_NewFunctionPtrObj(ptr, type)SWIG_Python_NewPointerObj(__null, ptr, type, 0) SWIG_Python_NewPointerObj(NULL__null, ptr, type, 0)
1191
1192/* for C++ member pointers, ie, member methods */
1193#define SWIG_ConvertMember(obj, ptr, sz, ty)SWIG_Python_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1194#define SWIG_NewMemberObj(ptr, sz, type)SWIG_Python_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1195
1196
1197/* Runtime API */
1198
1199#define SWIG_GetModule(clientdata)SWIG_Python_GetModule(clientdata) SWIG_Python_GetModule(clientdata)
1200#define SWIG_SetModule(clientdata, pointer)SWIG_Python_SetModule(pointer) SWIG_Python_SetModule(pointer)
1201#define SWIG_NewClientData(obj)SwigPyClientData_New(obj) SwigPyClientData_New(obj)
1202
1203#define SWIG_SetErrorObjSWIG_Python_SetErrorObj SWIG_Python_SetErrorObj
1204#define SWIG_SetErrorMsgSWIG_Python_SetErrorMsg SWIG_Python_SetErrorMsg
1205#define SWIG_ErrorType(code)SWIG_Python_ErrorType(code) SWIG_Python_ErrorType(code)
1206#define SWIG_Error(code, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code)SWIG_Python_ErrorType(code), msg)
1207#define SWIG_failgoto fail goto fail
1208
1209
1210/* Runtime API implementation */
1211
1212/* Error manipulation */
1213
1214SWIGINTERNstatic __attribute__ ((__unused__)) void
1215SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1216 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1217 PyErr_SetObject(errtype, obj);
1218 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
1219 SWIG_PYTHON_THREAD_END_BLOCK;
1220}
1221
1222SWIGINTERNstatic __attribute__ ((__unused__)) void
1223SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1224 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1225 PyErr_SetString(errtype, msg);
1226 SWIG_PYTHON_THREAD_END_BLOCK;
1227}
1228
1229#define SWIG_Python_Raise(obj, type, desc)SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1230
1231/* Set a constant value */
1232
1233#if defined(SWIGPYTHON_BUILTIN)
1234
1235SWIGINTERNstatic __attribute__ ((__unused__)) void
1236SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) {
1237 PyObject *s = PyString_InternFromString(key);
1238 PyList_Append(seq, s);
1239 Py_DECREF(s)do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(
((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((
PyObject *)((PyObject *)(s)))); } while (0)
;
1240}
1241
1242SWIGINTERNstatic __attribute__ ((__unused__)) void
1243SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) {
1244#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
1245 PyDict_SetItemString(d, (char *)name, obj);
1246#else
1247 PyDict_SetItemString(d, name, obj);
1248#endif
1249 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
1250 if (public_interface)
1251 SwigPyBuiltin_AddPublicSymbol(public_interface, name);
1252}
1253
1254#else
1255
1256SWIGINTERNstatic __attribute__ ((__unused__)) void
1257SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1258#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
1259 PyDict_SetItemString(d, (char *)name, obj);
1260#else
1261 PyDict_SetItemString(d, name, obj);
1262#endif
1263 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
1264}
1265
1266#endif
1267
1268/* Append a value to the result obj */
1269
1270SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
1271SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1272#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1273 if (!result) {
1274 result = obj;
1275 } else if (result == Py_None(&_Py_NoneStruct)) {
1276 Py_DECREF(result)do { if ( --((PyObject*)(result))->ob_refcnt != 0) ; else (
(*(((PyObject*)((PyObject *)(result)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(result)))); } while (0)
;
1277 result = obj;
1278 } else {
1279 if (!PyList_Check(result)((((((PyObject*)(result))->ob_type))->tp_flags & ((
1L<<25))) != 0)
) {
1280 PyObject *o2 = result;
1281 result = PyList_New(1);
1282 PyList_SetItem(result, 0, o2);
1283 }
1284 PyList_Append(result,obj);
1285 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
1286 }
1287 return result;
1288#else
1289 PyObject* o2;
1290 PyObject* o3;
1291 if (!result) {
1292 result = obj;
1293 } else if (result == Py_None(&_Py_NoneStruct)) {
1294 Py_DECREF(result)do { if ( --((PyObject*)(result))->ob_refcnt != 0) ; else (
(*(((PyObject*)((PyObject *)(result)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(result)))); } while (0)
;
1295 result = obj;
1296 } else {
1297 if (!PyTuple_Check(result)((((((PyObject*)(result))->ob_type))->tp_flags & ((
1L<<26))) != 0)
) {
1298 o2 = result;
1299 result = PyTuple_New(1);
1300 PyTuple_SET_ITEM(result, 0, o2)(((PyTupleObject *)(result))->ob_item[0] = o2);
1301 }
1302 o3 = PyTuple_New(1);
1303 PyTuple_SET_ITEM(o3, 0, obj)(((PyTupleObject *)(o3))->ob_item[0] = obj);
1304 o2 = result;
1305 result = PySequence_Concat(o2, o3);
1306 Py_DECREF(o2)do { if ( --((PyObject*)(o2))->ob_refcnt != 0) ; else ( (*
(((PyObject*)((PyObject *)(o2)))->ob_type)->tp_dealloc)
((PyObject *)((PyObject *)(o2)))); } while (0)
;
1307 Py_DECREF(o3)do { if ( --((PyObject*)(o3))->ob_refcnt != 0) ; else ( (*
(((PyObject*)((PyObject *)(o3)))->ob_type)->tp_dealloc)
((PyObject *)((PyObject *)(o3)))); } while (0)
;
1308 }
1309 return result;
1310#endif
1311}
1312
1313/* Unpack the argument tuple */
1314
1315SWIGINTERNstatic __attribute__ ((__unused__)) int
1316SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
1317{
1318 if (!args) {
1319 if (!min && !max) {
1320 return 1;
1321 } else {
1322 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1323 name, (min == max ? "" : "at least "), (int)min);
1324 return 0;
1325 }
1326 }
1327 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) {
1328 if (min <= 1 && max >= 1) {
1329 register int i;
1330 objs[0] = args;
1331 for (i = 1; i < max; ++i) {
1332 objs[i] = 0;
1333 }
1334 return 2;
1335 }
1336 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1337 return 0;
1338 } else {
1339 register Py_ssize_t l = PyTuple_GET_SIZE(args)(((PyVarObject*)(args))->ob_size);
1340 if (l < min) {
1341 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1342 name, (min == max ? "" : "at least "), (int)min, (int)l);
1343 return 0;
1344 } else if (l > max) {
1345 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1346 name, (min == max ? "" : "at most "), (int)max, (int)l);
1347 return 0;
1348 } else {
1349 register int i;
1350 for (i = 0; i < l; ++i) {
1351 objs[i] = PyTuple_GET_ITEM(args, i)(((PyTupleObject *)(args))->ob_item[i]);
1352 }
1353 for (; l < max; ++l) {
1354 objs[l] = 0;
1355 }
1356 return i + 1;
1357 }
1358 }
1359}
1360
1361/* A functor is a function object with one single object argument */
1362#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000
1363#define SWIG_Python_CallFunctor(functor, obj)PyObject_CallFunctionObjArgs(functor, obj, __null); PyObject_CallFunctionObjArgs(functor, obj, NULL__null);
1364#else
1365#define SWIG_Python_CallFunctor(functor, obj)PyObject_CallFunctionObjArgs(functor, obj, __null); PyObject_CallFunction(functor, "O", obj);
1366#endif
1367
1368/*
1369 Helper for static pointer initialization for both C and C++ code, for example
1370 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1371*/
1372#ifdef __cplusplus199711L
1373#define SWIG_STATIC_POINTER(var)var var
1374#else
1375#define SWIG_STATIC_POINTER(var)var var = 0; if (!var) var
1376#endif
1377
1378/* -----------------------------------------------------------------------------
1379 * Pointer declarations
1380 * ----------------------------------------------------------------------------- */
1381
1382/* Flags for new pointer objects */
1383#define SWIG_POINTER_NOSHADOW(0x1 << 1) (SWIG_POINTER_OWN0x1 << 1)
1384#define SWIG_POINTER_NEW((0x1 << 1) | 0x1) (SWIG_POINTER_NOSHADOW(0x1 << 1) | SWIG_POINTER_OWN0x1)
1385
1386#define SWIG_POINTER_IMPLICIT_CONV(0x1 << 1) (SWIG_POINTER_DISOWN0x1 << 1)
1387
1388#define SWIG_BUILTIN_TP_INIT(0x1 << 2) (SWIG_POINTER_OWN0x1 << 2)
1389#define SWIG_BUILTIN_INIT((0x1 << 2) | 0x1) (SWIG_BUILTIN_TP_INIT(0x1 << 2) | SWIG_POINTER_OWN0x1)
1390
1391#ifdef __cplusplus199711L
1392extern "C" {
1393#endif
1394
1395/* How to access Py_None */
1396#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1397# ifndef SWIG_PYTHON_NO_BUILD_NONE
1398# ifndef SWIG_PYTHON_BUILD_NONE
1399# define SWIG_PYTHON_BUILD_NONE
1400# endif
1401# endif
1402#endif
1403
1404#ifdef SWIG_PYTHON_BUILD_NONE
1405# ifdef Py_None(&_Py_NoneStruct)
1406# undef Py_None(&_Py_NoneStruct)
1407# define Py_None(&_Py_NoneStruct) SWIG_Py_None()
1408# endif
1409SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
1410_SWIG_Py_None(void)
1411{
1412 PyObject *none = Py_BuildValue((char*)"");
1413 Py_DECREF(none)do { if ( --((PyObject*)(none))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(none)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(none)))); } while (0)
;
1414 return none;
1415}
1416SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1417SWIG_Py_None(void)
1418{
1419 static PyObject *SWIG_STATIC_POINTER(none)none = _SWIG_Py_None();
1420 return none;
1421}
1422#endif
1423
1424/* The python void return value */
1425
1426SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
1427SWIG_Py_Void(void)
1428{
1429 PyObject *none = Py_None(&_Py_NoneStruct);
1430 Py_INCREF(none)( ((PyObject*)(none))->ob_refcnt++);
1431 return none;
1432}
1433
1434/* SwigPyClientData */
1435
1436typedef struct {
1437 PyObject *klass;
1438 PyObject *newraw;
1439 PyObject *newargs;
1440 PyObject *destroy;
1441 int delargs;
1442 int implicitconv;
1443 PyTypeObject *pytype;
1444} SwigPyClientData;
1445
1446SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int
1447SWIG_Python_CheckImplicit(swig_type_info *ty)
1448{
1449 SwigPyClientData *data = (SwigPyClientData *)ty->clientdata;
1450 return data ? data->implicitconv : 0;
1451}
1452
1453SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
1454SWIG_Python_ExceptionType(swig_type_info *desc) {
1455 SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0;
1456 PyObject *klass = data ? data->klass : 0;
1457 return (klass ? klass : PyExc_RuntimeError);
1458}
1459
1460
1461SWIGRUNTIMEstatic __attribute__ ((__unused__)) SwigPyClientData *
1462SwigPyClientData_New(PyObject* obj)
1463{
1464 if (!obj) {
1465 return 0;
1466 } else {
1467 SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData));
1468 /* the klass element */
1469 data->klass = obj;
1470 Py_INCREF(data->klass)( ((PyObject*)(data->klass))->ob_refcnt++);
1471 /* the newraw method and newargs arguments used to create a new raw instance */
1472 if (PyClass_Check(obj)((obj)->ob_type == &PyClass_Type)) {
1473 data->newraw = 0;
1474 data->newargs = obj;
1475 Py_INCREF(obj)( ((PyObject*)(obj))->ob_refcnt++);
1476 } else {
1477#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000)
1478 data->newraw = 0;
1479#else
1480 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1481#endif
1482 if (data->newraw) {
1483 Py_INCREF(data->newraw)( ((PyObject*)(data->newraw))->ob_refcnt++);
1484 data->newargs = PyTuple_New(1);
1485 PyTuple_SetItem(data->newargs, 0, obj);
1486 } else {
1487 data->newargs = obj;
1488 }
1489 Py_INCREF(data->newargs)( ((PyObject*)(data->newargs))->ob_refcnt++);
1490 }
1491 /* the destroy method, aka as the C++ delete method */
1492 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1493 if (PyErr_Occurred()) {
1494 PyErr_Clear();
1495 data->destroy = 0;
1496 }
1497 if (data->destroy) {
1498 int flags;
1499 Py_INCREF(data->destroy)( ((PyObject*)(data->destroy))->ob_refcnt++);
1500 flags = PyCFunction_GET_FLAGS(data->destroy)(((PyCFunctionObject *)data->destroy) -> m_ml -> ml_flags
)
;
1501#ifdef METH_O0x0008
1502 data->delargs = !(flags & (METH_O0x0008));
1503#else
1504 data->delargs = 0;
1505#endif
1506 } else {
1507 data->delargs = 0;
1508 }
1509 data->implicitconv = 0;
1510 data->pytype = 0;
1511 return data;
1512 }
1513}
1514
1515SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
1516SwigPyClientData_Del(SwigPyClientData *data) {
1517 Py_XDECREF(data->newraw)do { if ((data->newraw) == __null) ; else do { if ( --((PyObject
*)(data->newraw))->ob_refcnt != 0) ; else ( (*(((PyObject
*)((PyObject *)(data->newraw)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(data->newraw)))); } while (0);
} while (0)
;
1518 Py_XDECREF(data->newargs)do { if ((data->newargs) == __null) ; else do { if ( --((PyObject
*)(data->newargs))->ob_refcnt != 0) ; else ( (*(((PyObject
*)((PyObject *)(data->newargs)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(data->newargs)))); } while (0)
; } while (0)
;
1519 Py_XDECREF(data->destroy)do { if ((data->destroy) == __null) ; else do { if ( --((PyObject
*)(data->destroy))->ob_refcnt != 0) ; else ( (*(((PyObject
*)((PyObject *)(data->destroy)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(data->destroy)))); } while (0)
; } while (0)
;
1520}
1521
1522/* =============== SwigPyObject =====================*/
1523
1524typedef struct {
1525 PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type;
1526 void *ptr;
1527 swig_type_info *ty;
1528 int own;
1529 PyObject *next;
1530#ifdef SWIGPYTHON_BUILTIN
1531 PyObject *dict;
1532#endif
1533} SwigPyObject;
1534
1535SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1536SwigPyObject_long(SwigPyObject *v)
1537{
1538 return PyLong_FromVoidPtr(v->ptr);
1539}
1540
1541SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1542SwigPyObject_format(const char* fmt, SwigPyObject *v)
1543{
1544 PyObject *res = NULL__null;
1545 PyObject *args = PyTuple_New(1);
1546 if (args) {
1547 if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) {
1548 PyObject *ofmt = SWIG_Python_str_FromChar(fmt);
1549 if (ofmt) {
1550#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1551 res = PyUnicode_FormatPyUnicodeUCS2_Format(ofmt,args);
1552#else
1553 res = PyString_Format(ofmt,args);
1554#endif
1555 Py_DECREF(ofmt)do { if ( --((PyObject*)(ofmt))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(ofmt)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(ofmt)))); } while (0)
;
1556 }
1557 Py_DECREF(args)do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(args)))); } while (0)
;
1558 }
1559 }
1560 return res;
1561}
1562
1563SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1564SwigPyObject_oct(SwigPyObject *v)
1565{
1566 return SwigPyObject_format("%o",v);
1567}
1568
1569SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1570SwigPyObject_hex(SwigPyObject *v)
1571{
1572 return SwigPyObject_format("%x",v);
1573}
1574
1575SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1576#ifdef METH_NOARGS0x0004
1577SwigPyObject_repr(SwigPyObject *v)
1578#else
1579SwigPyObject_repr(SwigPyObject *v, PyObject *args)
1580#endif
1581{
1582 const char *name = SWIG_TypePrettyName(v->ty);
1583 PyObject *repr = SWIG_Python_str_FromFormatPyString_FromFormat("<Swig Object of type '%s' at %p>", (name ? name : "unknown"), (void *)v);
1584 if (v->next) {
1585# ifdef METH_NOARGS0x0004
1586 PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next);
1587# else
1588 PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args);
1589# endif
1590# if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1591 PyObject *joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(repr, nrep);
1592 Py_DecRef(repr);
1593 Py_DecRef(nrep);
1594 repr = joined;
1595# else
1596 PyString_ConcatAndDel(&repr,nrep);
1597# endif
1598 }
1599 return repr;
1600}
1601
1602SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
1603SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w)
1604{
1605 void *i = v->ptr;
1606 void *j = w->ptr;
1607 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1608}
1609
1610/* Added for Python 3.x, would it also be useful for Python 2.x? */
1611SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
1612SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
1613{
1614 PyObject* res;
1615 if( op != Py_EQ2 && op != Py_NE3 ) {
1616 Py_INCREF(Py_NotImplemented)( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt
++)
;
1617 return Py_NotImplemented(&_Py_NotImplementedStruct);
1618 }
1619 res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ2) ? 1 : 0);
1620 return res;
1621}
1622
1623
1624SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* SwigPyObject_TypeOnce(void);
1625
1626#ifdef SWIGPYTHON_BUILTIN
1627static swig_type_info *SwigPyObject_stype = 0;
1628SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
1629SwigPyObject_type(void) {
1630 SwigPyClientData *cd;
1631 assert(SwigPyObject_stype)((void)0);
1632 cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
1633 assert(cd)((void)0);
1634 assert(cd->pytype)((void)0);
1635 return cd->pytype;
1636}
1637#else
1638SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
1639SwigPyObject_type(void) {
1640 static PyTypeObject *SWIG_STATIC_POINTER(type)type = SwigPyObject_TypeOnce();
1641 return type;
1642}
1643#endif
1644
1645SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int
1646SwigPyObject_Check(PyObject *op) {
1647#ifdef SWIGPYTHON_BUILTIN
1648 PyTypeObject *target_tp = SwigPyObject_type();
1649 if (PyType_IsSubtype(op->ob_type, target_tp))
1650 return 1;
1651 return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0);
1652#else
1653 return (Py_TYPE(op)(((PyObject*)(op))->ob_type) == SwigPyObject_type())
1654 || (strcmp(Py_TYPE(op)(((PyObject*)(op))->ob_type)->tp_name,"SwigPyObject") == 0);
1655#endif
1656}
1657
1658SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1659SwigPyObject_New(void *ptr, swig_type_info *ty, int own);
1660
1661SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
1662SwigPyObject_dealloc(PyObject *v)
1663{
1664 SwigPyObject *sobj = (SwigPyObject *) v;
1665 PyObject *next = sobj->next;
1666 if (sobj->own == SWIG_POINTER_OWN0x1) {
1667 swig_type_info *ty = sobj->ty;
1668 SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
1669 PyObject *destroy = data ? data->destroy : 0;
1670 if (destroy) {
1671 /* destroy is always a VARARGS method */
1672 PyObject *res;
1673 if (data->delargs) {
1674 /* we need to create a temporary object to carry the destroy operation */
1675 PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
1676 res = SWIG_Python_CallFunctor(destroy, tmp)PyObject_CallFunctionObjArgs(destroy, tmp, __null);;
1677 Py_DECREF(tmp)do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(tmp)))); } while (0)
;
1678 } else {
1679 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy)(((PyCFunctionObject *)destroy) -> m_ml -> ml_meth);
1680 PyObject *mself = PyCFunction_GET_SELF(destroy)(((PyCFunctionObject *)destroy) -> m_self);
1681 res = ((*meth)(mself, v));
1682 }
1683 Py_XDECREF(res)do { if ((res) == __null) ; else do { if ( --((PyObject*)(res
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
res)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)
(res)))); } while (0); } while (0)
;
1684 }
1685#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1686 else {
1687 const char *name = SWIG_TypePrettyName(ty);
1688 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown"));
1689 }
1690#endif
1691 }
1692 Py_XDECREF(next)do { if ((next) == __null) ; else do { if ( --((PyObject*)(next
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
next)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *
)(next)))); } while (0); } while (0)
;
1693 PyObject_DELPyObject_Free(v);
1694}
1695
1696SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
1697SwigPyObject_append(PyObject* v, PyObject* next)
1698{
1699 SwigPyObject *sobj = (SwigPyObject *) v;
1700#ifndef METH_O0x0008
1701 PyObject *tmp = 0;
1702 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL__null;
1703 next = tmp;
1704#endif
1705 if (!SwigPyObject_Check(next)) {
1706 return NULL__null;
1707 }
1708 sobj->next = next;
1709 Py_INCREF(next)( ((PyObject*)(next))->ob_refcnt++);
1710 return SWIG_Py_Void();
1711}
1712
1713SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
1714#ifdef METH_NOARGS0x0004
1715SwigPyObject_next(PyObject* v)
1716#else
1717SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1718#endif
1719{
1720 SwigPyObject *sobj = (SwigPyObject *) v;
1721 if (sobj->next) {
1722 Py_INCREF(sobj->next)( ((PyObject*)(sobj->next))->ob_refcnt++);
1723 return sobj->next;
1724 } else {
1725 return SWIG_Py_Void();
1726 }
1727}
1728
1729SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
1730#ifdef METH_NOARGS0x0004
1731SwigPyObject_disown(PyObject *v)
1732#else
1733SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1734#endif
1735{
1736 SwigPyObject *sobj = (SwigPyObject *)v;
1737 sobj->own = 0;
1738 return SWIG_Py_Void();
1739}
1740
1741SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
1742#ifdef METH_NOARGS0x0004
1743SwigPyObject_acquire(PyObject *v)
1744#else
1745SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1746#endif
1747{
1748 SwigPyObject *sobj = (SwigPyObject *)v;
1749 sobj->own = SWIG_POINTER_OWN0x1;
1750 return SWIG_Py_Void();
1751}
1752
1753SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
1754SwigPyObject_own(PyObject *v, PyObject *args)
1755{
1756 PyObject *val = 0;
1757#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000)
1758 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1759#elif (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02050000)
1760 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1761#else
1762 if (!PyArg_UnpackTuple(args, "own", 0, 1, &val))
1763#endif
1764 {
1765 return NULL__null;
1766 }
1767 else
1768 {
1769 SwigPyObject *sobj = (SwigPyObject *)v;
1770 PyObject *obj = PyBool_FromLong(sobj->own);
1771 if (val) {
1772#ifdef METH_NOARGS0x0004
1773 if (PyObject_IsTrue(val)) {
1774 SwigPyObject_acquire(v);
1775 } else {
1776 SwigPyObject_disown(v);
1777 }
1778#else
1779 if (PyObject_IsTrue(val)) {
1780 SwigPyObject_acquire(v,args);
1781 } else {
1782 SwigPyObject_disown(v,args);
1783 }
1784#endif
1785 }
1786 return obj;
1787 }
1788}
1789
1790#ifdef METH_O0x0008
1791static PyMethodDef
1792swigobject_methods[] = {
1793 {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS0x0004, (char *)"releases ownership of the pointer"},
1794 {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS0x0004, (char *)"acquires ownership of the pointer"},
1795 {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS0x0001, (char *)"returns/sets ownership of the pointer"},
1796 {(char *)"append", (PyCFunction)SwigPyObject_append, METH_O0x0008, (char *)"appends another 'this' object"},
1797 {(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS0x0004, (char *)"returns the next 'this' object"},
1798 {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS0x0004, (char *)"returns object representation"},
1799 {0, 0, 0, 0}
1800};
1801#else
1802static PyMethodDef
1803swigobject_methods[] = {
1804 {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS0x0001, (char *)"releases ownership of the pointer"},
1805 {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS0x0001, (char *)"aquires ownership of the pointer"},
1806 {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS0x0001, (char *)"returns/sets ownership of the pointer"},
1807 {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS0x0001, (char *)"appends another 'this' object"},
1808 {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS0x0001, (char *)"returns the next 'this' object"},
1809 {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS0x0001, (char *)"returns object representation"},
1810 {0, 0, 0, 0}
1811};
1812#endif
1813
1814#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
1815SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
1816SwigPyObject_getattr(SwigPyObject *sobj,char *name)
1817{
1818 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1819}
1820#endif
1821
1822SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
1823SwigPyObject_TypeOnce(void) {
1824 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1825
1826 static PyNumberMethods SwigPyObject_as_number = {
1827 (binaryfunc)0, /*nb_add*/
1828 (binaryfunc)0, /*nb_subtract*/
1829 (binaryfunc)0, /*nb_multiply*/
1830 /* nb_divide removed in Python 3 */
1831#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
1832 (binaryfunc)0, /*nb_divide*/
1833#endif
1834 (binaryfunc)0, /*nb_remainder*/
1835 (binaryfunc)0, /*nb_divmod*/
1836 (ternaryfunc)0,/*nb_power*/
1837 (unaryfunc)0, /*nb_negative*/
1838 (unaryfunc)0, /*nb_positive*/
1839 (unaryfunc)0, /*nb_absolute*/
1840 (inquiry)0, /*nb_nonzero*/
1841 0, /*nb_invert*/
1842 0, /*nb_lshift*/
1843 0, /*nb_rshift*/
1844 0, /*nb_and*/
1845 0, /*nb_xor*/
1846 0, /*nb_or*/
1847#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
1848 0, /*nb_coerce*/
1849#endif
1850 (unaryfunc)SwigPyObject_long, /*nb_int*/
1851#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
1852 (unaryfunc)SwigPyObject_long, /*nb_long*/
1853#else
1854 0, /*nb_reserved*/
1855#endif
1856 (unaryfunc)0, /*nb_float*/
1857#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
1858 (unaryfunc)SwigPyObject_oct, /*nb_oct*/
1859 (unaryfunc)SwigPyObject_hex, /*nb_hex*/
1860#endif
1861#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000 /* 3.0 */
1862 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */
1863#elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02050000 /* 2.5.0 */
1864 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */
1865#elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000 /* 2.2.0 */
1866 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1867#elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02000000 /* 2.0.0 */
1868 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1869#endif
1870 };
1871
1872 static PyTypeObject swigpyobject_type;
1873 static int type_init = 0;
1874 if (!type_init) {
1875 const PyTypeObject tmp = {
1876 /* PyObject header changed in Python 3 */
1877#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1878 PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0,
1879#else
1880 PyObject_HEAD_INIT(NULL)1, __null,
1881 0, /* ob_size */
1882#endif
1883 (char *)"SwigPyObject", /* tp_name */
1884 sizeof(SwigPyObject), /* tp_basicsize */
1885 0, /* tp_itemsize */
1886 (destructor)SwigPyObject_dealloc, /* tp_dealloc */
1887 0, /* tp_print */
1888#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
1889 (getattrfunc)SwigPyObject_getattr, /* tp_getattr */
1890#else
1891 (getattrfunc)0, /* tp_getattr */
1892#endif
1893 (setattrfunc)0, /* tp_setattr */
1894#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1895 0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */
1896#else
1897 (cmpfunc)SwigPyObject_compare, /* tp_compare */
1898#endif
1899 (reprfunc)SwigPyObject_repr, /* tp_repr */
1900 &SwigPyObject_as_number, /* tp_as_number */
1901 0, /* tp_as_sequence */
1902 0, /* tp_as_mapping */
1903 (hashfunc)0, /* tp_hash */
1904 (ternaryfunc)0, /* tp_call */
1905 0, /* tp_str */
1906 PyObject_GenericGetAttr, /* tp_getattro */
1907 0, /* tp_setattro */
1908 0, /* tp_as_buffer */
1909 Py_TPFLAGS_DEFAULT( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<
5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<
17) | 0)
, /* tp_flags */
1910 swigobject_doc, /* tp_doc */
1911 0, /* tp_traverse */
1912 0, /* tp_clear */
1913 (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */
1914 0, /* tp_weaklistoffset */
1915#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000
1916 0, /* tp_iter */
1917 0, /* tp_iternext */
1918 swigobject_methods, /* tp_methods */
1919 0, /* tp_members */
1920 0, /* tp_getset */
1921 0, /* tp_base */
1922 0, /* tp_dict */
1923 0, /* tp_descr_get */
1924 0, /* tp_descr_set */
1925 0, /* tp_dictoffset */
1926 0, /* tp_init */
1927 0, /* tp_alloc */
1928 0, /* tp_new */
1929 0, /* tp_free */
1930 0, /* tp_is_gc */
1931 0, /* tp_bases */
1932 0, /* tp_mro */
1933 0, /* tp_cache */
1934 0, /* tp_subclasses */
1935 0, /* tp_weaklist */
1936#endif
1937#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000
1938 0, /* tp_del */
1939#endif
1940#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02060000
1941 0, /* tp_version */
1942#endif
1943#ifdef COUNT_ALLOCS
1944 0,0,0,0 /* tp_alloc -> tp_next */
1945#endif
1946 };
1947 swigpyobject_type = tmp;
1948 type_init = 1;
1949#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
1950 swigpyobject_type.ob_type = &PyType_Type;
1951#else
1952 if (PyType_Ready(&swigpyobject_type) < 0)
1953 return NULL__null;
1954#endif
1955 }
1956 return &swigpyobject_type;
1957}
1958
1959SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1960SwigPyObject_New(void *ptr, swig_type_info *ty, int own)
1961{
1962 SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type())( (SwigPyObject *) PyObject_Init( (PyObject *) PyObject_Malloc
( ( (SwigPyObject_type())->tp_basicsize ) ), (SwigPyObject_type
())) )
;
1963 if (sobj) {
1964 sobj->ptr = ptr;
1965 sobj->ty = ty;
1966 sobj->own = own;
1967 sobj->next = 0;
1968 }
1969 return (PyObject *)sobj;
1970}
1971
1972/* -----------------------------------------------------------------------------
1973 * Implements a simple Swig Packed type, and use it instead of string
1974 * ----------------------------------------------------------------------------- */
1975
1976typedef struct {
1977 PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type;
1978 void *pack;
1979 swig_type_info *ty;
1980 size_t size;
1981} SwigPyPacked;
1982
1983SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
1984SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1985{
1986 char result[SWIG_BUFFER_SIZE1024];
1987 fputs("<Swig Packed ", fp);
1988 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1989 fputs("at ", fp);
1990 fputs(result, fp);
1991 }
1992 fputs(v->ty->name,fp);
1993 fputs(">", fp);
1994 return 0;
1995}
1996
1997SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1998SwigPyPacked_repr(SwigPyPacked *v)
1999{
2000 char result[SWIG_BUFFER_SIZE1024];
2001 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
2002 return SWIG_Python_str_FromFormatPyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
2003 } else {
2004 return SWIG_Python_str_FromFormatPyString_FromFormat("<Swig Packed %s>", v->ty->name);
2005 }
2006}
2007
2008SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2009SwigPyPacked_str(SwigPyPacked *v)
2010{
2011 char result[SWIG_BUFFER_SIZE1024];
2012 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
2013 return SWIG_Python_str_FromFormatPyString_FromFormat("%s%s", result, v->ty->name);
2014 } else {
2015 return SWIG_Python_str_FromChar(v->ty->name);
2016 }
2017}
2018
2019SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2020SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w)
2021{
2022 size_t i = v->size;
2023 size_t j = w->size;
2024 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
2025 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
2026}
2027
2028SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* SwigPyPacked_TypeOnce(void);
2029
2030SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
2031SwigPyPacked_type(void) {
2032 static PyTypeObject *SWIG_STATIC_POINTER(type)type = SwigPyPacked_TypeOnce();
2033 return type;
2034}
2035
2036SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int
2037SwigPyPacked_Check(PyObject *op) {
2038 return ((op)->ob_type == SwigPyPacked_TypeOnce())
2039 || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0);
2040}
2041
2042SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2043SwigPyPacked_dealloc(PyObject *v)
2044{
2045 if (SwigPyPacked_Check(v)) {
2046 SwigPyPacked *sobj = (SwigPyPacked *) v;
2047 free(sobj->pack);
2048 }
2049 PyObject_DELPyObject_Free(v);
2050}
2051
2052SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
2053SwigPyPacked_TypeOnce(void) {
2054 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
2055 static PyTypeObject swigpypacked_type;
2056 static int type_init = 0;
2057 if (!type_init) {
2058 const PyTypeObject tmp = {
2059 /* PyObject header changed in Python 3 */
2060#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
2061 PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0,
2062#else
2063 PyObject_HEAD_INIT(NULL)1, __null,
2064 0, /* ob_size */
2065#endif
2066 (char *)"SwigPyPacked", /* tp_name */
2067 sizeof(SwigPyPacked), /* tp_basicsize */
2068 0, /* tp_itemsize */
2069 (destructor)SwigPyPacked_dealloc, /* tp_dealloc */
2070 (printfunc)SwigPyPacked_print, /* tp_print */
2071 (getattrfunc)0, /* tp_getattr */
2072 (setattrfunc)0, /* tp_setattr */
2073#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
2074 0, /* tp_reserved in 3.0.1 */
2075#else
2076 (cmpfunc)SwigPyPacked_compare, /* tp_compare */
2077#endif
2078 (reprfunc)SwigPyPacked_repr, /* tp_repr */
2079 0, /* tp_as_number */
2080 0, /* tp_as_sequence */
2081 0, /* tp_as_mapping */
2082 (hashfunc)0, /* tp_hash */
2083 (ternaryfunc)0, /* tp_call */
2084 (reprfunc)SwigPyPacked_str, /* tp_str */
2085 PyObject_GenericGetAttr, /* tp_getattro */
2086 0, /* tp_setattro */
2087 0, /* tp_as_buffer */
2088 Py_TPFLAGS_DEFAULT( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<
5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<
17) | 0)
, /* tp_flags */
2089 swigpacked_doc, /* tp_doc */
2090 0, /* tp_traverse */
2091 0, /* tp_clear */
2092 0, /* tp_richcompare */
2093 0, /* tp_weaklistoffset */
2094#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000
2095 0, /* tp_iter */
2096 0, /* tp_iternext */
2097 0, /* tp_methods */
2098 0, /* tp_members */
2099 0, /* tp_getset */
2100 0, /* tp_base */
2101 0, /* tp_dict */
2102 0, /* tp_descr_get */
2103 0, /* tp_descr_set */
2104 0, /* tp_dictoffset */
2105 0, /* tp_init */
2106 0, /* tp_alloc */
2107 0, /* tp_new */
2108 0, /* tp_free */
2109 0, /* tp_is_gc */
2110 0, /* tp_bases */
2111 0, /* tp_mro */
2112 0, /* tp_cache */
2113 0, /* tp_subclasses */
2114 0, /* tp_weaklist */
2115#endif
2116#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000
2117 0, /* tp_del */
2118#endif
2119#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02060000
2120 0, /* tp_version */
2121#endif
2122#ifdef COUNT_ALLOCS
2123 0,0,0,0 /* tp_alloc -> tp_next */
2124#endif
2125 };
2126 swigpypacked_type = tmp;
2127 type_init = 1;
2128#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
2129 swigpypacked_type.ob_type = &PyType_Type;
2130#else
2131 if (PyType_Ready(&swigpypacked_type) < 0)
2132 return NULL__null;
2133#endif
2134 }
2135 return &swigpypacked_type;
2136}
2137
2138SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2139SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty)
2140{
2141 SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type())( (SwigPyPacked *) PyObject_Init( (PyObject *) PyObject_Malloc
( ( (SwigPyPacked_type())->tp_basicsize ) ), (SwigPyPacked_type
())) )
;
2142 if (sobj) {
2143 void *pack = malloc(size);
2144 if (pack) {
2145 memcpy(pack, ptr, size);
2146 sobj->pack = pack;
2147 sobj->ty = ty;
2148 sobj->size = size;
2149 } else {
2150 PyObject_DELPyObject_Free((PyObject *) sobj);
2151 sobj = 0;
2152 }
2153 }
2154 return (PyObject *) sobj;
2155}
2156
2157SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
2158SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
2159{
2160 if (SwigPyPacked_Check(obj)) {
2161 SwigPyPacked *sobj = (SwigPyPacked *)obj;
2162 if (sobj->size != size) return 0;
2163 memcpy(ptr, sobj->pack, size);
2164 return sobj->ty;
2165 } else {
2166 return 0;
2167 }
2168}
2169
2170/* -----------------------------------------------------------------------------
2171 * pointers/data manipulation
2172 * ----------------------------------------------------------------------------- */
2173
2174SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
2175_SWIG_This(void)
2176{
2177 return SWIG_Python_str_FromChar("this");
2178}
2179
2180static PyObject *swig_this = NULL__null;
2181
2182SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2183SWIG_This(void)
2184{
2185 if (swig_this == NULL__null)
2186 swig_this = _SWIG_This();
2187 return swig_this;
2188}
2189
2190/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
2191
2192/* TODO: I don't know how to implement the fast getset in Python 3 right now */
2193#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
2194#define SWIG_PYTHON_SLOW_GETSET_THIS
2195#endif
2196
2197SWIGRUNTIMEstatic __attribute__ ((__unused__)) SwigPyObject *
2198SWIG_Python_GetSwigThis(PyObject *pyobj)
2199{
2200 PyObject *obj;
2201
2202 if (SwigPyObject_Check(pyobj))
2203 return (SwigPyObject *) pyobj;
2204
2205#ifdef SWIGPYTHON_BUILTIN
2206 (void)obj;
2207# ifdef PyWeakref_CheckProxy
2208 if (PyWeakref_CheckProxy(pyobj)(((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_ProxyType
) || ((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_CallableProxyType
))
) {
2209 pyobj = PyWeakref_GET_OBJECT(pyobj)((((PyObject*)(((PyWeakReference *)(pyobj))->wr_object))->
ob_refcnt) > 0 ? ((PyWeakReference *)(pyobj))->wr_object
: (&_Py_NoneStruct))
;
2210 if (pyobj && SwigPyObject_Check(pyobj))
2211 return (SwigPyObject*) pyobj;
2212 }
2213# endif
2214 return NULL__null;
2215#else
2216
2217 obj = 0;
2218
2219#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000))
2220 if (PyInstance_Check(pyobj)((pyobj)->ob_type == &PyInstance_Type)) {
2221 obj = _PyInstance_Lookup(pyobj, SWIG_This());
2222 } else {
2223 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
2224 if (dictptr != NULL__null) {
2225 PyObject *dict = *dictptr;
2226 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
2227 } else {
2228#ifdef PyWeakref_CheckProxy
2229 if (PyWeakref_CheckProxy(pyobj)(((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_ProxyType
) || ((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_CallableProxyType
))
) {
2230 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj)((((PyObject*)(((PyWeakReference *)(pyobj))->wr_object))->
ob_refcnt) > 0 ? ((PyWeakReference *)(pyobj))->wr_object
: (&_Py_NoneStruct))
;
2231 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
2232 }
2233#endif
2234 obj = PyObject_GetAttr(pyobj,SWIG_This());
2235 if (obj) {
2236 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
2237 } else {
2238 if (PyErr_Occurred()) PyErr_Clear();
2239 return 0;
2240 }
2241 }
2242 }
2243#else
2244 obj = PyObject_GetAttr(pyobj,SWIG_This());
2245 if (obj) {
2246 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
2247 } else {
2248 if (PyErr_Occurred()) PyErr_Clear();
2249 return 0;
2250 }
2251#endif
2252 if (obj && !SwigPyObject_Check(obj)) {
2253 /* a PyObject is called 'this', try to get the 'real this'
2254 SwigPyObject from it */
2255 return SWIG_Python_GetSwigThis(obj);
2256 }
2257 return (SwigPyObject *)obj;
2258#endif
2259}
2260
2261/* Acquire a pointer value */
2262
2263SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2264SWIG_Python_AcquirePtr(PyObject *obj, int own) {
2265 if (own == SWIG_POINTER_OWN0x1) {
2266 SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj);
2267 if (sobj) {
2268 int oldown = sobj->own;
2269 sobj->own = own;
2270 return oldown;
2271 }
2272 }
2273 return 0;
2274}
2275
2276/* Convert a pointer value */
2277
2278SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2279SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
2280 int res;
2281 SwigPyObject *sobj;
2282 int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV(0x1 << 1)) != 0;
2283
2284 if (!obj)
2285 return SWIG_ERROR(-1);
2286 if (obj == Py_None(&_Py_NoneStruct) && !implicit_conv) {
2287 if (ptr)
2288 *ptr = 0;
2289 return SWIG_OK(0);
2290 }
2291
2292 res = SWIG_ERROR(-1);
2293
2294 sobj = SWIG_Python_GetSwigThis(obj);
2295 if (own)
2296 *own = 0;
2297 while (sobj) {
2298 void *vptr = sobj->ptr;
2299 if (ty) {
2300 swig_type_info *to = sobj->ty;
2301 if (to == ty) {
2302 /* no type cast needed */
2303 if (ptr) *ptr = vptr;
2304 break;
2305 } else {
2306 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2307 if (!tc) {
2308 sobj = (SwigPyObject *)sobj->next;
2309 } else {
2310 if (ptr) {
2311 int newmemory = 0;
2312 *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2313 if (newmemory == SWIG_CAST_NEW_MEMORY0x2) {
2314 assert(own)((void)0); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
2315 if (own)
2316 *own = *own | SWIG_CAST_NEW_MEMORY0x2;
2317 }
2318 }
2319 break;
2320 }
2321 }
2322 } else {
2323 if (ptr) *ptr = vptr;
2324 break;
2325 }
2326 }
2327 if (sobj) {
2328 if (own)
2329 *own = *own | sobj->own;
2330 if (flags & SWIG_POINTER_DISOWN0x1) {
2331 sobj->own = 0;
2332 }
2333 res = SWIG_OK(0);
2334 } else {
2335 if (implicit_conv) {
2336 SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
2337 if (data && !data->implicitconv) {
2338 PyObject *klass = data->klass;
2339 if (klass) {
2340 PyObject *impconv;
2341 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2342 impconv = SWIG_Python_CallFunctor(klass, obj)PyObject_CallFunctionObjArgs(klass, obj, __null);;
2343 data->implicitconv = 0;
2344 if (PyErr_Occurred()) {
2345 PyErr_Clear();
2346 impconv = 0;
2347 }
2348 if (impconv) {
2349 SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv);
2350 if (iobj) {
2351 void *vptr;
2352 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2353 if (SWIG_IsOK(res)(res >= 0)) {
2354 if (ptr) {
2355 *ptr = vptr;
2356 /* transfer the ownership to 'ptr' */
2357 iobj->own = 0;
2358 res = SWIG_AddCast(res)(res);
2359 res = SWIG_AddNewMask(res)((res >= 0) ? (res | ((1 << 8) << 1)) : res);
2360 } else {
2361 res = SWIG_AddCast(res)(res);
2362 }
2363 }
2364 }
2365 Py_DECREF(impconv)do { if ( --((PyObject*)(impconv))->ob_refcnt != 0) ; else
( (*(((PyObject*)((PyObject *)(impconv)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(impconv)))); } while (0)
;
2366 }
2367 }
2368 }
2369 }
2370 if (!SWIG_IsOK(res)(res >= 0) && obj == Py_None(&_Py_NoneStruct)) {
2371 if (ptr)
2372 *ptr = 0;
2373 if (PyErr_Occurred())
2374 PyErr_Clear();
2375 res = SWIG_OK(0);
2376 }
2377 }
2378 return res;
2379}
2380
2381/* Convert a function ptr value */
2382
2383SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2384SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2385 if (!PyCFunction_Check(obj)((((PyObject*)(obj))->ob_type) == &PyCFunction_Type)) {
2386 return SWIG_ConvertPtr(obj, ptr, ty, 0)SWIG_Python_ConvertPtrAndOwn(obj, ptr, ty, 0, 0);
2387 } else {
2388 void *vptr = 0;
2389
2390 /* here we get the method pointer for callbacks */
2391 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2392 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2393 if (desc)
2394 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2395 if (!desc)
2396 return SWIG_ERROR(-1);
2397 if (ty) {
2398 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2399 if (tc) {
2400 int newmemory = 0;
2401 *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2402 assert(!newmemory)((void)0); /* newmemory handling not yet implemented */
2403 } else {
2404 return SWIG_ERROR(-1);
2405 }
2406 } else {
2407 *ptr = vptr;
2408 }
2409 return SWIG_OK(0);
2410 }
2411}
2412
2413/* Convert a packed value value */
2414
2415SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2416SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2417 swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz);
2418 if (!to) return SWIG_ERROR(-1);
2419 if (ty) {
2420 if (to != ty) {
2421 /* check type cast? */
2422 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2423 if (!tc) return SWIG_ERROR(-1);
2424 }
2425 }
2426 return SWIG_OK(0);
2427}
2428
2429/* -----------------------------------------------------------------------------
2430 * Create a new pointer object
2431 * ----------------------------------------------------------------------------- */
2432
2433/*
2434 Create a new instance object, without calling __init__, and set the
2435 'this' attribute.
2436*/
2437
2438SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
2439SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
2440{
2441#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000)
2442 PyObject *inst = 0;
2443 PyObject *newraw = data->newraw;
2444 if (newraw) {
2445 inst = PyObject_Call(newraw, data->newargs, NULL__null);
2446 if (inst) {
2447#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2448 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2449 if (dictptr != NULL__null) {
2450 PyObject *dict = *dictptr;
2451 if (dict == NULL__null) {
2452 dict = PyDict_New();
2453 *dictptr = dict;
2454 PyDict_SetItem(dict, SWIG_This(), swig_this);
2455 }
2456 }
2457#else
2458 PyObject *key = SWIG_This();
2459 PyObject_SetAttr(inst, key, swig_this);
2460#endif
2461 }
2462 } else {
2463#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
2464 inst = PyBaseObject_Type.tp_new((PyTypeObject*) data->newargs, Py_None(&_Py_NoneStruct), Py_None(&_Py_NoneStruct));
2465 if (inst) {
2466 PyObject_SetAttr(inst, SWIG_This(), swig_this);
2467 Py_TYPE(inst)(((PyObject*)(inst))->ob_type)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG(1L<<19);
2468 }
2469#else
2470 PyObject *dict = PyDict_New();
2471 if (dict) {
2472 PyDict_SetItem(dict, SWIG_This(), swig_this);
2473 inst = PyInstance_NewRaw(data->newargs, dict);
2474 Py_DECREF(dict)do { if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(dict)))); } while (0)
;
2475 }
2476#endif
2477 }
2478 return inst;
2479#else
2480#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02010000)
2481 PyObject *inst = 0;
2482 PyObject *dict = PyDict_New();
2483 if (dict) {
2484 PyDict_SetItem(dict, SWIG_This(), swig_this);
2485 inst = PyInstance_NewRaw(data->newargs, dict);
2486 Py_DECREF(dict)do { if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(dict)))); } while (0)
;
2487 }
2488 return (PyObject *) inst;
2489#else
2490 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type)( (PyInstanceObject *) PyObject_Init( (PyObject *) PyObject_Malloc
( ( (&PyInstance_Type)->tp_basicsize ) ), (&PyInstance_Type
)) )
;
2491 if (inst == NULL__null) {
2492 return NULL__null;
2493 }
2494 inst->in_class = (PyClassObject *)data->newargs;
2495 Py_INCREF(inst->in_class)( ((PyObject*)(inst->in_class))->ob_refcnt++);
2496 inst->in_dict = PyDict_New();
2497 if (inst->in_dict == NULL__null) {
2498 Py_DECREF(inst)do { if ( --((PyObject*)(inst))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(inst)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(inst)))); } while (0)
;
2499 return NULL__null;
2500 }
2501#ifdef Py_TPFLAGS_HAVE_WEAKREFS(1L<<6)
2502 inst->in_weakreflist = NULL__null;
2503#endif
2504#ifdef Py_TPFLAGS_GC0
2505 PyObject_GC_Init(inst);
2506#endif
2507 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2508 return (PyObject *) inst;
2509#endif
2510#endif
2511}
2512
2513SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2514SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2515{
2516 PyObject *dict;
2517#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2518 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2519 if (dictptr != NULL__null) {
2520 dict = *dictptr;
2521 if (dict == NULL__null) {
2522 dict = PyDict_New();
2523 *dictptr = dict;
2524 }
2525 PyDict_SetItem(dict, SWIG_This(), swig_this);
2526 return;
2527 }
2528#endif
2529 dict = PyObject_GetAttrString(inst, (char*)"__dict__");
2530 PyDict_SetItem(dict, SWIG_This(), swig_this);
2531 Py_DECREF(dict)do { if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(dict)))); } while (0)
;
2532}
2533
2534
2535SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
2536SWIG_Python_InitShadowInstance(PyObject *args) {
2537 PyObject *obj[2];
2538 if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) {
2539 return NULL__null;
2540 } else {
2541 SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2542 if (sthis) {
2543 SwigPyObject_append((PyObject*) sthis, obj[1]);
2544 } else {
2545 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2546 }
2547 return SWIG_Py_Void();
2548 }
2549}
2550
2551/* Create a new pointer object */
2552
2553SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2554SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) {
2555 SwigPyClientData *clientdata;
2556 PyObject * robj;
2557 int own;
2558
2559 if (!ptr)
2560 return SWIG_Py_Void();
2561
2562 clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0;
2563 own = (flags & SWIG_POINTER_OWN0x1) ? SWIG_POINTER_OWN0x1 : 0;
2564 if (clientdata && clientdata->pytype) {
2565 SwigPyObject *newobj;
2566 if (flags & SWIG_BUILTIN_TP_INIT(0x1 << 2)) {
2567 newobj = (SwigPyObject*) self;
2568 if (newobj->ptr) {
2569 PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0);
2570 while (newobj->next)
2571 newobj = (SwigPyObject *) newobj->next;
2572 newobj->next = next_self;
2573 newobj = (SwigPyObject *)next_self;
2574 }
2575 } else {
2576 newobj = PyObject_New(SwigPyObject, clientdata->pytype)( (SwigPyObject *) _PyObject_New(clientdata->pytype) );
2577 }
2578 if (newobj) {
2579 newobj->ptr = ptr;
2580 newobj->ty = type;
2581 newobj->own = own;
2582 newobj->next = 0;
2583#ifdef SWIGPYTHON_BUILTIN
2584 newobj->dict = 0;
2585#endif
2586 return (PyObject*) newobj;
2587 }
2588 return SWIG_Py_Void();
2589 }
2590
2591 assert(!(flags & SWIG_BUILTIN_TP_INIT))((void)0);
2592
2593 robj = SwigPyObject_New(ptr, type, own);
2594 if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW(0x1 << 1))) {
2595 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2596 Py_DECREF(robj)do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(robj)))); } while (0)
;
2597 robj = inst;
2598 }
2599 return robj;
2600}
2601
2602/* Create a new packed object */
2603
2604SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
2605SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2606 return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2607}
2608
2609/* -----------------------------------------------------------------------------*
2610 * Get type list
2611 * -----------------------------------------------------------------------------*/
2612
2613#ifdef SWIG_LINK_RUNTIME
2614void *SWIG_ReturnGlobalTypeList(void *);
2615#endif
2616
2617SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_module_info *
2618SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) {
2619 static void *type_pointer = (void *)0;
2620 /* first check if module already created */
2621 if (!type_pointer) {
2622#ifdef SWIG_LINK_RUNTIME
2623 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2624#else
2625# ifdef SWIGPY_USE_CAPSULE
2626 type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ), 0);
2627# else
2628 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4",
2629 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2630# endif
2631 if (PyErr_Occurred()) {
2632 PyErr_Clear();
2633 type_pointer = (void *)0;
2634 }
2635#endif
2636 }
2637 return (swig_module_info *) type_pointer;
2638}
2639
2640#if PY_MAJOR_VERSION2 < 2
2641/* PyModule_AddObject function was introduced in Python 2.0. The following function
2642 is copied out of Python/modsupport.c in python version 2.3.4 */
2643SWIGINTERNstatic __attribute__ ((__unused__)) int
2644PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2645{
2646 PyObject *dict;
2647 if (!PyModule_Check(m)((((PyObject*)(m))->ob_type) == (&PyModule_Type) || PyType_IsSubtype
((((PyObject*)(m))->ob_type), (&PyModule_Type)))
) {
2648 PyErr_SetString(PyExc_TypeError,
2649 "PyModule_AddObject() needs module as first arg");
2650 return SWIG_ERROR(-1);
2651 }
2652 if (!o) {
2653 PyErr_SetString(PyExc_TypeError,
2654 "PyModule_AddObject() needs non-NULL value");
2655 return SWIG_ERROR(-1);
2656 }
2657
2658 dict = PyModule_GetDict(m);
2659 if (dict == NULL__null) {
2660 /* Internal error -- modules must have a dict! */
2661 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2662 PyModule_GetName(m));
2663 return SWIG_ERROR(-1);
2664 }
2665 if (PyDict_SetItemString(dict, name, o))
2666 return SWIG_ERROR(-1);
2667 Py_DECREF(o)do { if ( --((PyObject*)(o))->ob_refcnt != 0) ; else ( (*(
((PyObject*)((PyObject *)(o)))->ob_type)->tp_dealloc)((
PyObject *)((PyObject *)(o)))); } while (0)
;
2668 return SWIG_OK(0);
2669}
2670#endif
2671
2672SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2673#ifdef SWIGPY_USE_CAPSULE
2674SWIG_Python_DestroyModule(PyObject *obj)
2675#else
2676SWIG_Python_DestroyModule(void *vptr)
2677#endif
2678{
2679#ifdef SWIGPY_USE_CAPSULE
2680 swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ));
2681#else
2682 swig_module_info *swig_module = (swig_module_info *) vptr;
2683#endif
2684 swig_type_info **types = swig_module->types;
2685 size_t i;
2686 for (i =0; i < swig_module->size; ++i) {
2687 swig_type_info *ty = types[i];
2688 if (ty->owndata) {
2689 SwigPyClientData *data = (SwigPyClientData *) ty->clientdata;
2690 if (data) SwigPyClientData_Del(data);
2691 }
2692 }
2693 Py_DECREF(SWIG_This())do { if ( --((PyObject*)(SWIG_This()))->ob_refcnt != 0) ; else
( (*(((PyObject*)((PyObject *)(SWIG_This())))->ob_type)->
tp_dealloc)((PyObject *)((PyObject *)(SWIG_This())))); } while
(0)
;
2694 swig_this = NULL__null;
2695}
2696
2697SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2698SWIG_Python_SetModule(swig_module_info *swig_module) {
2699#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
2700 /* Add a dummy module object into sys.modules */
2701 PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4");
2702#else
2703 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL__null, NULL__null, 0, NULL__null} }; /* Sentinel */
2704 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table)Py_InitModule4_64((char*)"swig_runtime_data" "4", swig_empty_runtime_method_table
, (char *)__null, (PyObject *)__null, 1013)
;
2705#endif
2706#ifdef SWIGPY_USE_CAPSULE
2707 PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ), SWIG_Python_DestroyModule);
2708 if (pointer && module) {
2709 PyModule_AddObject(module, (char*)"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer);
2710 } else {
2711 Py_XDECREF(pointer)do { if ((pointer) == __null) ; else do { if ( --((PyObject*)
(pointer))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject
*)(pointer)))->ob_type)->tp_dealloc)((PyObject *)((PyObject
*)(pointer)))); } while (0); } while (0)
;
2712 }
2713#else
2714 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2715 if (pointer && module) {
2716 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2717 } else {
2718 Py_XDECREF(pointer)do { if ((pointer) == __null) ; else do { if ( --((PyObject*)
(pointer))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject
*)(pointer)))->ob_type)->tp_dealloc)((PyObject *)((PyObject
*)(pointer)))); } while (0); } while (0)
;
2719 }
2720#endif
2721}
2722
2723/* The python cached type query */
2724SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2725SWIG_Python_TypeCache(void) {
2726 static PyObject *SWIG_STATIC_POINTER(cache)cache = PyDict_New();
2727 return cache;
2728}
2729
2730SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
2731SWIG_Python_TypeQuery(const char *type)
2732{
2733 PyObject *cache = SWIG_Python_TypeCache();
2734 PyObject *key = SWIG_Python_str_FromChar(type);
2735 PyObject *obj = PyDict_GetItem(cache, key);
2736 swig_type_info *descriptor;
2737 if (obj) {
2738#ifdef SWIGPY_USE_CAPSULE
2739 descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL__null);
2740#else
2741 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2742#endif
2743 } else {
2744 swig_module_info *swig_module = SWIG_GetModule(0)SWIG_Python_GetModule(0);
2745 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2746 if (descriptor) {
2747#ifdef SWIGPY_USE_CAPSULE
2748 obj = PyCapsule_New((void*) descriptor, NULL__null, NULL__null);
2749#else
2750 obj = PyCObject_FromVoidPtr(descriptor, NULL__null);
2751#endif
2752 PyDict_SetItem(cache, key, obj);
2753 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
2754 }
2755 }
2756 Py_DECREF(key)do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(key)))); } while (0)
;
2757 return descriptor;
2758}
2759
2760/*
2761 For backward compatibility only
2762*/
2763#define SWIG_POINTER_EXCEPTION0 0
2764#define SWIG_arg_fail(arg)SWIG_Python_ArgFail(arg) SWIG_Python_ArgFail(arg)
2765#define SWIG_MustGetPtr(p, type, argnum, flags)SWIG_Python_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2766
2767SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2768SWIG_Python_AddErrMesg(const char* mesg, int infront)
2769{
2770 if (PyErr_Occurred()) {
2771 PyObject *type = 0;
2772 PyObject *value = 0;
2773 PyObject *traceback = 0;
2774 PyErr_Fetch(&type, &value, &traceback);
2775 if (value) {
2776 char *tmp;
2777 PyObject *old_str = PyObject_Str(value);
2778 Py_XINCREF(type)do { if ((type) == __null) ; else ( ((PyObject*)(type))->ob_refcnt
++); } while (0)
;
2779 PyErr_Clear();
2780 if (infront) {
2781 PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str));
2782 } else {
2783 PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
2784 }
2785 SWIG_Python_str_DelForPy3(tmp);
2786 Py_DECREF(old_str)do { if ( --((PyObject*)(old_str))->ob_refcnt != 0) ; else
( (*(((PyObject*)((PyObject *)(old_str)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(old_str)))); } while (0)
;
2787 }
2788 return 1;
2789 } else {
2790 return 0;
2791 }
2792}
2793
2794SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2795SWIG_Python_ArgFail(int argnum)
2796{
2797 if (PyErr_Occurred()) {
2798 /* add information about failing argument */
2799 char mesg[256];
2800 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2801 return SWIG_Python_AddErrMesg(mesg, 1);
2802 } else {
2803 return 0;
2804 }
2805}
2806
2807SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline const char *
2808SwigPyObject_GetDesc(PyObject *self)
2809{
2810 SwigPyObject *v = (SwigPyObject *)self;
2811 swig_type_info *ty = v ? v->ty : 0;
2812 return ty ? ty->str : "";
2813}
2814
2815SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2816SWIG_Python_TypeError(const char *type, PyObject *obj)
2817{
2818 if (type) {
2819#if defined(SWIG_COBJECT_TYPES)
2820 if (obj && SwigPyObject_Check(obj)) {
2821 const char *otype = (const char *) SwigPyObject_GetDesc(obj);
2822 if (otype) {
2823 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received",
2824 type, otype);
2825 return;
2826 }
2827 } else
2828#endif
2829 {
2830 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2831 if (otype) {
2832 PyObject *str = PyObject_Str(obj);
2833 const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0;
2834 if (cstr) {
2835 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2836 type, otype, cstr);
2837 SWIG_Python_str_DelForPy3(cstr);
2838 } else {
2839 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2840 type, otype);
2841 }
2842 Py_XDECREF(str)do { if ((str) == __null) ; else do { if ( --((PyObject*)(str
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
str)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)
(str)))); } while (0); } while (0)
;
2843 return;
2844 }
2845 }
2846 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2847 } else {
2848 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2849 }
2850}
2851
2852
2853/* Convert a pointer value, signal an exception on a type mismatch */
2854SWIGRUNTIMEstatic __attribute__ ((__unused__)) void *
2855SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) {
2856 void *result;
2857 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags)SWIG_Python_ConvertPtrAndOwn(obj, &result, ty, flags, 0) == -1) {
2858 PyErr_Clear();
2859#if SWIG_POINTER_EXCEPTION0
2860 if (flags) {
2861 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2862 SWIG_Python_ArgFail(argnum);
2863 }
2864#endif
2865 }
2866 return result;
2867}
2868
2869#ifdef SWIGPYTHON_BUILTIN
2870SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2871SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
2872 PyTypeObject *tp = obj->ob_type;
2873 PyObject *descr;
2874 PyObject *encoded_name;
2875 descrsetfunc f;
2876 int res = -1;
2877
2878# ifdef Py_USING_UNICODE1
2879 if (PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<27))) != 0)
) {
2880 name = PyUnicode_DecodePyUnicodeUCS2_Decode(PyString_AsString(name), PyString_Size(name), NULL__null, NULL__null);
2881 if (!name)
2882 return -1;
2883 } else if (!PyUnicode_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<28))) != 0)
)
2884# else
2885 if (!PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<27))) != 0)
)
2886# endif
2887 {
2888 PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name);
2889 return -1;
2890 } else {
2891 Py_INCREF(name)( ((PyObject*)(name))->ob_refcnt++);
2892 }
2893
2894 if (!tp->tp_dict) {
2895 if (PyType_Ready(tp) < 0)
2896 goto done;
2897 }
2898
2899 descr = _PyType_Lookup(tp, name);
2900 f = NULL__null;
2901 if (descr != NULL__null)
2902 f = descr->ob_type->tp_descr_set;
2903 if (!f) {
2904 if (PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<27))) != 0)
) {
2905 encoded_name = name;
2906 Py_INCREF(name)( ((PyObject*)(name))->ob_refcnt++);
2907 } else {
2908 encoded_name = PyUnicode_AsUTF8StringPyUnicodeUCS2_AsUTF8String(name);
2909 }
2910 PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name));
2911 Py_DECREF(encoded_name)do { if ( --((PyObject*)(encoded_name))->ob_refcnt != 0) ;
else ( (*(((PyObject*)((PyObject *)(encoded_name)))->ob_type
)->tp_dealloc)((PyObject *)((PyObject *)(encoded_name))));
} while (0)
;
2912 } else {
2913 res = f(descr, obj, value);
2914 }
2915
2916 done:
2917 Py_DECREF(name)do { if ( --((PyObject*)(name))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(name)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(name)))); } while (0)
;
2918 return res;
2919}
2920#endif
2921
2922
2923#ifdef __cplusplus199711L
2924}
2925#endif
2926
2927
2928
2929#define SWIG_exception_fail(code, msg)do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg
); goto fail; } while(0)
do { SWIG_Error(code, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg); SWIG_failgoto fail; } while(0)
2930
2931#define SWIG_contract_assert(expr, msg)if (!(expr)) { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(
-3), msg); goto fail; } else
if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), msg); SWIG_failgoto fail; } else
2932
2933
2934
2935 #define SWIG_exception(code, msg)do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg
); goto fail;; } while(0)
do { SWIG_Error(code, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg); SWIG_failgoto fail;; } while(0)
2936
2937
2938/* -------- TYPES TABLE (BEGIN) -------- */
2939
2940#define SWIGTYPE_p_GBaseswig_types[0] swig_types[0]
2941#define SWIGTYPE_p_GContainerswig_types[1] swig_types[1]
2942#define SWIGTYPE_p_GRegistryswig_types[2] swig_types[2]
2943#define SWIGTYPE_p_charswig_types[3] swig_types[3]
2944#define SWIGTYPE_p_std__invalid_argumentswig_types[4] swig_types[4]
2945#define SWIGTYPE_p_swig__SwigPyIteratorswig_types[5] swig_types[5]
2946static swig_type_info *swig_types[7];
2947static swig_module_info swig_module = {swig_types, 6, 0, 0, 0, 0};
2948#define SWIG_TypeQuery(name)SWIG_TypeQueryModule(&swig_module, &swig_module, name
)
SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2949#define SWIG_MangledTypeQuery(name)SWIG_MangledTypeQueryModule(&swig_module, &swig_module
, name)
SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2950
2951/* -------- TYPES TABLE (END) -------- */
2952
2953#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
<= 0x02000000)
2954# if !defined(SWIG_PYTHON_CLASSIC)
2955# error "This python version requires swig to be run with the '-classic' option"
2956# endif
2957#endif
2958
2959/*-----------------------------------------------
2960 @(target):= _base.so
2961 ------------------------------------------------*/
2962#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
2963# define SWIG_initinit_base PyInit__base
2964
2965#else
2966# define SWIG_initinit_base init_base
2967
2968#endif
2969#define SWIG_name"_base" "_base"
2970
2971#define SWIGVERSION0x020011 0x020011
2972#define SWIG_VERSION0x020011 SWIGVERSION0x020011
2973
2974
2975#define SWIG_as_voidptr(a)const_cast< void * >(static_cast< const void * >(
a))
const_cast< void * >(static_cast< const void * >(a))
2976#define SWIG_as_voidptrptr(a)((void)const_cast< void * >(static_cast< const void *
>(*a)),reinterpret_cast< void** >(a))
((void)SWIG_as_voidptr(*a)const_cast< void * >(static_cast< const void * >(
*a))
,reinterpret_cast< void** >(a))
2977
2978
2979#include <stdexcept>
2980
2981
2982namespace swig {
2983 class SwigPtr_PyObject {
2984 protected:
2985 PyObject *_obj;
2986
2987 public:
2988 SwigPtr_PyObject() :_obj(0)
2989 {
2990 }
2991
2992 SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj)
2993 {
2994 Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt
++); } while (0)
;
2995 }
2996
2997 SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj)
2998 {
2999 if (initial_ref) {
3000 Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt
++); } while (0)
;
3001 }
3002 }
3003
3004 SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item)
3005 {
3006 Py_XINCREF(item._obj)do { if ((item._obj) == __null) ; else ( ((PyObject*)(item._obj
))->ob_refcnt++); } while (0)
;
3007 Py_XDECREF(_obj)do { if ((_obj) == __null) ; else do { if ( --((PyObject*)(_obj
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
_obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *
)(_obj)))); } while (0); } while (0)
;
3008 _obj = item._obj;
3009 return *this;
3010 }
3011
3012 ~SwigPtr_PyObject()
3013 {
3014 Py_XDECREF(_obj)do { if ((_obj) == __null) ; else do { if ( --((PyObject*)(_obj
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
_obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *
)(_obj)))); } while (0); } while (0)
;
3015 }
3016
3017 operator PyObject *() const
3018 {
3019 return _obj;
3020 }
3021
3022 PyObject *operator->() const
3023 {
3024 return _obj;
3025 }
3026 };
3027}
3028
3029
3030namespace swig {
3031 struct SwigVar_PyObject : SwigPtr_PyObject {
3032 SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { }
3033
3034 SwigVar_PyObject & operator = (PyObject* obj)
3035 {
3036 Py_XDECREF(_obj)do { if ((_obj) == __null) ; else do { if ( --((PyObject*)(_obj
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
_obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *
)(_obj)))); } while (0); } while (0)
;
3037 _obj = obj;
3038 return *this;
3039 }
3040 };
3041}
3042
3043
3044#include <stddef.h>
3045#include "GException.hpp"
3046#include "GTools.hpp"
3047
3048
3049#include <stdexcept>
3050
3051
3052#if defined(__GNUC__4)
3053# if __GNUC__4 == 2 && __GNUC_MINOR <= 96
3054# define SWIG_STD_NOMODERN_STL
3055# endif
3056#endif
3057
3058
3059#include <string>
3060#include <stdexcept>
3061#include <stddef.h>
3062
3063
3064#include <string>
3065
3066
3067#include <iostream>
3068
3069#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03020000
3070# define SWIGPY_SLICE_ARG(obj)((PySliceObject*) (obj)) ((PyObject*) (obj))
3071#else
3072# define SWIGPY_SLICE_ARG(obj)((PySliceObject*) (obj)) ((PySliceObject*) (obj))
3073#endif
3074
3075
3076 #include <stddef.h>
3077
3078
3079namespace swig {
3080 struct stop_iteration {
3081 };
3082
3083 struct SwigPyIterator {
3084 private:
3085 SwigPtr_PyObject _seq;
3086
3087 protected:
3088 SwigPyIterator(PyObject *seq) : _seq(seq)
3089 {
3090 }
3091
3092 public:
3093 virtual ~SwigPyIterator() {}
3094
3095 // Access iterator method, required by Python
3096 virtual PyObject *value() const = 0;
3097
3098 // Forward iterator method, required by Python
3099 virtual SwigPyIterator *incr(size_t n = 1) = 0;
3100
3101 // Backward iterator method, very common in C++, but not required in Python
3102 virtual SwigPyIterator *decr(size_t /*n*/ = 1)
3103 {
3104 throw stop_iteration();
3105 }
3106
3107 // Random access iterator methods, but not required in Python
3108 virtual ptrdiff_t distance(const SwigPyIterator &/*x*/) const
3109 {
3110 throw std::invalid_argument("operation not supported");
3111 }
3112
3113 virtual bool equal (const SwigPyIterator &/*x*/) const
3114 {
3115 throw std::invalid_argument("operation not supported");
3116 }
3117
3118 // C++ common/needed methods
3119 virtual SwigPyIterator *copy() const = 0;
3120
3121 PyObject *next()
3122 {
3123 SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads
3124 PyObject *obj = value();
3125 incr();
3126 SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads
3127 return obj;
3128 }
3129
3130 /* Make an alias for Python 3.x */
3131 PyObject *__next__()
3132 {
3133 return next();
3134 }
3135
3136 PyObject *previous()
3137 {
3138 SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads
3139 decr();
3140 PyObject *obj = value();
3141 SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads
3142 return obj;
3143 }
3144
3145 SwigPyIterator *advance(ptrdiff_t n)
3146 {
3147 return (n > 0) ? incr(n) : decr(-n);
3148 }
3149
3150 bool operator == (const SwigPyIterator& x) const
3151 {
3152 return equal(x);
3153 }
3154
3155 bool operator != (const SwigPyIterator& x) const
3156 {
3157 return ! operator==(x);
3158 }
3159
3160 SwigPyIterator& operator += (ptrdiff_t n)
3161 {
3162 return *advance(n);
3163 }
3164
3165 SwigPyIterator& operator -= (ptrdiff_t n)
3166 {
3167 return *advance(-n);
3168 }
3169
3170 SwigPyIterator* operator + (ptrdiff_t n) const
3171 {
3172 return copy()->advance(n);
3173 }
3174
3175 SwigPyIterator* operator - (ptrdiff_t n) const
3176 {
3177 return copy()->advance(-n);
3178 }
3179
3180 ptrdiff_t operator - (const SwigPyIterator& x) const
3181 {
3182 return x.distance(*this);
3183 }
3184
3185 static swig_type_info* descriptor() {
3186 static int init = 0;
3187 static swig_type_info* desc = 0;
3188 if (!init) {
3189 desc = SWIG_TypeQuery("swig::SwigPyIterator *")SWIG_TypeQueryModule(&swig_module, &swig_module, "swig::SwigPyIterator *"
)
;
3190 init = 1;
3191 }
3192 return desc;
3193 }
3194 };
3195
3196#if defined(SWIGPYTHON_BUILTIN)
3197 inline PyObject* make_output_iterator_builtin (PyObject *pyself)
3198 {
3199 Py_INCREF(pyself)( ((PyObject*)(pyself))->ob_refcnt++);
3200 return pyself;
3201 }
3202#endif
3203}
3204
3205
3206SWIGINTERNstatic __attribute__ ((__unused__)) int
3207SWIG_AsVal_double (PyObject *obj, double *val)
3208{
3209 int res = SWIG_TypeError-5;
3210 if (PyFloat_Check(obj)((((PyObject*)(obj))->ob_type) == (&PyFloat_Type) || PyType_IsSubtype
((((PyObject*)(obj))->ob_type), (&PyFloat_Type)))
) {
3211 if (val) *val = PyFloat_AsDouble(obj);
3212 return SWIG_OK(0);
3213 } else if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3214 if (val) *val = PyInt_AsLong(obj);
3215 return SWIG_OK(0);
3216 } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3217 double v = PyLong_AsDouble(obj);
3218 if (!PyErr_Occurred()) {
3219 if (val) *val = v;
3220 return SWIG_OK(0);
3221 } else {
3222 PyErr_Clear();
3223 }
3224 }
3225#ifdef SWIG_PYTHON_CAST_MODE
3226 {
3227 int dispatch = 0;
3228 double d = PyFloat_AsDouble(obj);
3229 if (!PyErr_Occurred()) {
3230 if (val) *val = d;
3231 return SWIG_AddCast(SWIG_OK)((0));
3232 } else {
3233 PyErr_Clear();
3234 }
3235 if (!dispatch) {
3236 long v = PyLong_AsLong(obj);
3237 if (!PyErr_Occurred()) {
3238 if (val) *val = v;
3239 return SWIG_AddCast(SWIG_AddCast(SWIG_OK))(((0)));
3240 } else {
3241 PyErr_Clear();
3242 }
3243 }
3244 }
3245#endif
3246 return res;
3247}
3248
3249
3250#include <float.h>
3251
3252
3253#include <math.h>
3254
3255
3256SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int
3257SWIG_CanCastAsInteger(double *d, double min, double max) {
3258 double x = *d;
3259 if ((min <= x && x <= max)) {
3260 double fx = floor(x);
3261 double cx = ceil(x);
3262 double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */
3263 if ((errno(*__error()) == EDOM33) || (errno(*__error()) == ERANGE34)) {
3264 errno(*__error()) = 0;
3265 } else {
3266 double summ, reps, diff;
3267 if (rd < x) {
3268 diff = x - rd;
3269 } else if (rd > x) {
3270 diff = rd - x;
3271 } else {
3272 return 1;
3273 }
3274 summ = rd + x;
3275 reps = diff/summ;
3276 if (reps < 8*DBL_EPSILON2.2204460492503131e-16) {
3277 *d = rd;
3278 return 1;
3279 }
3280 }
3281 }
3282 return 0;
3283}
3284
3285
3286SWIGINTERNstatic __attribute__ ((__unused__)) int
3287SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val)
3288{
3289#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
3290 if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3291 long v = PyInt_AsLong(obj);
3292 if (v >= 0) {
3293 if (val) *val = v;
3294 return SWIG_OK(0);
3295 } else {
3296 return SWIG_OverflowError-7;
3297 }
3298 } else
3299#endif
3300 if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3301 unsigned long v = PyLong_AsUnsignedLong(obj);
3302 if (!PyErr_Occurred()) {
3303 if (val) *val = v;
3304 return SWIG_OK(0);
3305 } else {
3306 PyErr_Clear();
3307#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
3308 {
3309 long v = PyLong_AsLong(obj);
3310 if (!PyErr_Occurred()) {
3311 if (v < 0) {
3312 return SWIG_OverflowError-7;
3313 }
3314 } else {
3315 PyErr_Clear();
3316 }
3317 }
3318#endif
3319 }
3320 }
3321#ifdef SWIG_PYTHON_CAST_MODE
3322 {
3323 int dispatch = 0;
3324 unsigned long v = PyLong_AsUnsignedLong(obj);
3325 if (!PyErr_Occurred()) {
3326 if (val) *val = v;
3327 return SWIG_AddCast(SWIG_OK)((0));
3328 } else {
3329 PyErr_Clear();
3330 }
3331 if (!dispatch) {
3332 double d;
3333 int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d));
3334 if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX(9223372036854775807L *2UL+1UL))) {
3335 if (val) *val = (unsigned long)(d);
3336 return res;
3337 }
3338 }
3339 }
3340#endif
3341 return SWIG_TypeError-5;
3342}
3343
3344
3345SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int
3346SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3347{
3348 unsigned long v;
3349 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3350 if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< size_t >(v);
3351 return res;
3352}
3353
3354
3355 #define SWIG_From_longPyLong_FromLong PyLong_FromLong
3356
3357
3358SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
3359SWIG_From_ptrdiff_t (ptrdiff_t value)
3360{
3361 return SWIG_From_longPyLong_FromLong (static_cast< long >(value));
3362}
3363
3364
3365SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
3366 SWIG_From_bool (bool value)
3367{
3368 return PyBool_FromLong(value ? 1 : 0);
3369}
3370
3371
3372SWIGINTERNstatic __attribute__ ((__unused__)) int
3373SWIG_AsVal_long (PyObject *obj, long* val)
3374{
3375 if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3376 if (val) *val = PyInt_AsLong(obj);
3377 return SWIG_OK(0);
3378 } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3379 long v = PyLong_AsLong(obj);
3380 if (!PyErr_Occurred()) {
3381 if (val) *val = v;
3382 return SWIG_OK(0);
3383 } else {
3384 PyErr_Clear();
3385 }
3386 }
3387#ifdef SWIG_PYTHON_CAST_MODE
3388 {
3389 int dispatch = 0;
3390 long v = PyInt_AsLong(obj);
3391 if (!PyErr_Occurred()) {
3392 if (val) *val = v;
3393 return SWIG_AddCast(SWIG_OK)((0));
3394 } else {
3395 PyErr_Clear();
3396 }
3397 if (!dispatch) {
3398 double d;
3399 int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d));
3400 if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, LONG_MIN(-9223372036854775807L -1L), LONG_MAX9223372036854775807L)) {
3401 if (val) *val = (long)(d);
3402 return res;
3403 }
3404 }
3405 }
3406#endif
3407 return SWIG_TypeError-5;
3408}
3409
3410
3411SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int
3412SWIG_AsVal_ptrdiff_t (PyObject * obj, ptrdiff_t *val)
3413{
3414 long v;
3415 int res = SWIG_AsVal_long (obj, val ? &v : 0);
3416 if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< ptrdiff_t >(v);
3417 return res;
3418}
3419
3420
3421#include <stdexcept>
3422
3423
3424#include <algorithm>
3425
3426
3427#include <vector>
3428
3429
3430#include <utility>
3431
3432
3433#include <map>
3434#include <algorithm>
3435#include <stdexcept>
3436
3437
3438/* Put headers and other declarations here that are needed for compilation */
3439#include "GBase.hpp"
3440#include "GTools.hpp"
3441
3442SWIGINTERNstatic __attribute__ ((__unused__)) char *GBase___str__(GBase *self){
3443 return gammalib::tochar(self->print());
3444 }
3445
3446SWIGINTERNstatic __attribute__ ((__unused__)) swig_type_info*
3447SWIG_pchar_descriptor(void)
3448{
3449 static int init = 0;
3450 static swig_type_info* info = 0;
3451 if (!init) {
3452 info = SWIG_TypeQuery("_p_char")SWIG_TypeQueryModule(&swig_module, &swig_module, "_p_char"
)
;
3453 init = 1;
3454 }
3455 return info;
3456}
3457
3458
3459SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
3460SWIG_FromCharPtrAndSize(const char* carray, size_t size)
3461{
3462 if (carray) {
3463 if (size > INT_MAX2147483647) {
3464 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3465 return pchar_descriptor ?
3466 SWIG_InternalNewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0)SWIG_Python_NewPointerObj(__null, const_cast< char * >(
carray), pchar_descriptor, 0)
: SWIG_Py_Void();
3467 } else {
3468#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
3469 return PyUnicode_FromStringAndSizePyUnicodeUCS2_FromStringAndSize(carray, static_cast< int >(size));
3470#else
3471 return PyString_FromStringAndSize(carray, static_cast< int >(size));
3472#endif
3473 }
3474 } else {
3475 return SWIG_Py_Void();
3476 }
3477}
3478
3479
3480SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
3481SWIG_FromCharPtr(const char *cptr)
3482{
3483 return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
3484}
3485
3486
3487/* Put headers and other declarations here that are needed for compilation */
3488#include "GContainer.hpp"
3489
3490
3491SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
3492 SWIG_From_int (int value)
3493{
3494 return PyInt_FromLong((long) value);
3495}
3496
3497
3498#include <limits.h>
3499#if !defined(SWIG_NO_LLONG_MAX)
3500# if !defined(LLONG_MAX0x7fffffffffffffffLL) && defined(__GNUC__4) && defined (__LONG_LONG_MAX__9223372036854775807LL)
3501# define LLONG_MAX0x7fffffffffffffffLL __LONG_LONG_MAX__9223372036854775807LL
3502# define LLONG_MIN(-0x7fffffffffffffffLL-1) (-LLONG_MAX0x7fffffffffffffffLL - 1LL)
3503# define ULLONG_MAX0xffffffffffffffffULL (LLONG_MAX0x7fffffffffffffffLL * 2ULL + 1ULL)
3504# endif
3505#endif
3506
3507
3508SWIGINTERNstatic __attribute__ ((__unused__)) int
3509SWIG_AsVal_int (PyObject * obj, int *val)
3510{
3511 long v;
3512 int res = SWIG_AsVal_long (obj, &v);
3513 if (SWIG_IsOK(res)(res >= 0)) {
3514 if ((v < INT_MIN(-2147483647 -1) || v > INT_MAX2147483647)) {
3515 return SWIG_OverflowError-7;
3516 } else {
3517 if (val) *val = static_cast< int >(v);
3518 }
3519 }
3520 return res;
3521}
3522
3523SWIGINTERNstatic __attribute__ ((__unused__)) int GContainer___len__(GContainer *self){
3524 return (self->size());
3525 }
3526
3527/* Put headers and other declarations here that are needed for compilation */
3528#include "GRegistry.hpp"
3529#include "GTools.hpp"
3530
3531
3532SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
3533SWIG_From_std_string (const std::string& s)
3534{
3535 return SWIG_FromCharPtrAndSize(s.data(), s.size());
3536}
3537
3538SWIGINTERNstatic __attribute__ ((__unused__)) char *GRegistry___str__(GRegistry *self){
3539 return gammalib::tochar(self->print());
3540 }
3541SWIGINTERNstatic __attribute__ ((__unused__)) int GRegistry___len__(GRegistry *self){
3542 return (self->size());
3543 }
3544#ifdef __cplusplus199711L
3545extern "C" {
3546#endif
3547SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_SwigPyIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3548 PyObject *resultobj = 0;
3549 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3550 void *argp1 = 0 ;
3551 int res1 = 0 ;
3552 PyObject * obj0 = 0 ;
3553
3554 if (!PyArg_ParseTuple(args,(char *)"O:delete_SwigPyIterator",&obj0)) SWIG_failgoto fail;
3555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0x1 | 0, 0)
;
3556 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SwigPyIterator" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_SwigPyIterator" "', argument "
"1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while
(0)
;
3558 }
3559 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3560 delete arg1;
3561 resultobj = SWIG_Py_Void();
3562 return resultobj;
3563fail:
3564 return NULL__null;
3565}
3566
3567
3568SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3569 PyObject *resultobj = 0;
3570 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3571 void *argp1 = 0 ;
3572 int res1 = 0 ;
3573 PyObject * obj0 = 0 ;
3574 PyObject *result = 0 ;
3575
3576 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_value",&obj0)) SWIG_failgoto fail;
3577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
3578 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_value" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator_value" "', argument "
"1"" of type '" "swig::SwigPyIterator const *""'"); goto fail
; } while(0)
;
3580 }
3581 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3582 try {
3583 result = (PyObject *)((swig::SwigPyIterator const *)arg1)->value();
3584 }
3585 catch(swig::stop_iteration &_e) {
3586 {
3587 (void)_e;
3588 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3589 SWIG_failgoto fail;
3590 }
3591 }
3592
3593 resultobj = result;
3594 return resultobj;
3595fail:
3596 return NULL__null;
3597}
3598
3599
3600SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3601 PyObject *resultobj = 0;
3602 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3603 size_t arg2 ;
3604 void *argp1 = 0 ;
3605 int res1 = 0 ;
3606 size_t val2 ;
3607 int ecode2 = 0 ;
3608 PyObject * obj0 = 0 ;
3609 PyObject * obj1 = 0 ;
3610 swig::SwigPyIterator *result = 0 ;
3611
3612 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_incr",&obj0,&obj1)) SWIG_failgoto fail;
3613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
3614 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_incr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator_incr" "', argument "
"1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while
(0)
;
3616 }
3617 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3618 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
3619 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
3620 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_incr" "', argument " "2"" of type '" "size_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator_incr" "', argument "
"2"" of type '" "size_t""'"); goto fail; } while(0)
;
3621 }
3622 arg2 = static_cast< size_t >(val2);
3623 try {
3624 result = (swig::SwigPyIterator *)(arg1)->incr(arg2);
3625 }
3626 catch(swig::stop_iteration &_e) {
3627 {
3628 (void)_e;
3629 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3630 SWIG_failgoto fail;
3631 }
3632 }
3633
3634 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], 0 |
0)
;
3635 return resultobj;
3636fail:
3637 return NULL__null;
3638}
3639
3640
3641SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3642 PyObject *resultobj = 0;
3643 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3644 void *argp1 = 0 ;
3645 int res1 = 0 ;
3646 PyObject * obj0 = 0 ;
3647 swig::SwigPyIterator *result = 0 ;
3648
3649 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_incr",&obj0)) SWIG_failgoto fail;
3650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
3651 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_incr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator_incr" "', argument "
"1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while
(0)
;
3653 }
3654 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3655 try {
3656 result = (swig::SwigPyIterator *)(arg1)->incr();
3657 }
3658 catch(swig::stop_iteration &_e) {
3659 {
3660 (void)_e;
3661 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3662 SWIG_failgoto fail;
3663 }
3664 }
3665
3666 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], 0 |
0)
;
3667 return resultobj;
3668fail:
3669 return NULL__null;
3670}
3671
3672
3673SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr(PyObject *self, PyObject *args) {
3674 int argc;
3675 PyObject *argv[3];
3676 int ii;
3677
3678 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
3679 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
3680 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
3681 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
3682 }
3683 if (argc == 1) {
3684 int _v;
3685 void *vptr = 0;
3686 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
3687 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
3688 if (_v) {
3689 return _wrap_SwigPyIterator_incr__SWIG_1(self, args);
3690 }
3691 }
3692 if (argc == 2) {
3693 int _v;
3694 void *vptr = 0;
3695 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
3696 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
3697 if (_v) {
3698 {
3699 int res = SWIG_AsVal_size_t(argv[1], NULL__null);
3700 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
3701 }
3702 if (_v) {
3703 return _wrap_SwigPyIterator_incr__SWIG_0(self, args);
3704 }
3705 }
3706 }
3707
3708fail:
3709 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_incr'.\n"
3710 " Possible C/C++ prototypes are:\n"
3711 " swig::SwigPyIterator::incr(size_t)\n"
3712 " swig::SwigPyIterator::incr()\n");
3713 return 0;
3714}
3715
3716
3717SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3718 PyObject *resultobj = 0;
3719 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3720 size_t arg2 ;
3721 void *argp1 = 0 ;
3722 int res1 = 0 ;
3723 size_t val2 ;
3724 int ecode2 = 0 ;
3725 PyObject * obj0 = 0 ;
3726 PyObject * obj1 = 0 ;
3727 swig::SwigPyIterator *result = 0 ;
3728
3729 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_decr",&obj0,&obj1)) SWIG_failgoto fail;
3730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
3731 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_decr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator_decr" "', argument "
"1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while
(0)
;
3733 }
3734 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3735 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
3736 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
3737 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_decr" "', argument " "2"" of type '" "size_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator_decr" "', argument "
"2"" of type '" "size_t""'"); goto fail; } while(0)
;
3738 }
3739 arg2 = static_cast< size_t >(val2);
3740 try {
3741 result = (swig::SwigPyIterator *)(arg1)->decr(arg2);
3742 }
3743 catch(swig::stop_iteration &_e) {
3744 {
3745 (void)_e;
3746 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3747 SWIG_failgoto fail;
3748 }
3749 }
3750
3751 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], 0 |
0)
;
3752 return resultobj;
3753fail:
3754 return NULL__null;
3755}
3756
3757
3758SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3759 PyObject *resultobj = 0;
3760 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3761 void *argp1 = 0 ;
3762 int res1 = 0 ;
3763 PyObject * obj0 = 0 ;
3764 swig::SwigPyIterator *result = 0 ;
3765
3766 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_decr",&obj0)) SWIG_failgoto fail;
3767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
3768 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_decr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator_decr" "', argument "
"1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while
(0)
;
3770 }
3771 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3772 try {
3773 result = (swig::SwigPyIterator *)(arg1)->decr();
3774 }
3775 catch(swig::stop_iteration &_e) {
3776 {
3777 (void)_e;
3778 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3779 SWIG_failgoto fail;
3780 }
3781 }
3782
3783 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], 0 |
0)
;
3784 return resultobj;
3785fail:
3786 return NULL__null;
3787}
3788
3789
3790SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr(PyObject *self, PyObject *args) {
3791 int argc;
3792 PyObject *argv[3];
3793 int ii;
3794
3795 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
3796 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
3797 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
3798 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
3799 }
3800 if (argc == 1) {
3801 int _v;
3802 void *vptr = 0;
3803 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
3804 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
3805 if (_v) {
3806 return _wrap_SwigPyIterator_decr__SWIG_1(self, args);
3807 }
3808 }
3809 if (argc == 2) {
3810 int _v;
3811 void *vptr = 0;
3812 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
3813 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
3814 if (_v) {
3815 {
3816 int res = SWIG_AsVal_size_t(argv[1], NULL__null);
3817 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
3818 }
3819 if (_v) {
3820 return _wrap_SwigPyIterator_decr__SWIG_0(self, args);
3821 }
3822 }
3823 }
3824
3825fail:
3826 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_decr'.\n"
3827 " Possible C/C++ prototypes are:\n"
3828 " swig::SwigPyIterator::decr(size_t)\n"
3829 " swig::SwigPyIterator::decr()\n");
3830 return 0;
3831}
3832
3833
3834SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3835 PyObject *resultobj = 0;
3836 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3837 swig::SwigPyIterator *arg2 = 0 ;
3838 void *argp1 = 0 ;
3839 int res1 = 0 ;
3840 void *argp2 = 0 ;
3841 int res2 = 0 ;
3842 PyObject * obj0 = 0 ;
3843 PyObject * obj1 = 0 ;
3844 ptrdiff_t result;
3845
3846 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_distance",&obj0,&obj1)) SWIG_failgoto fail;
3847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
3848 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_distance" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator_distance" "', argument "
"1"" of type '" "swig::SwigPyIterator const *""'"); goto fail
; } while(0)
;
3850 }
3851 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3852 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
3853 if (!SWIG_IsOK(res2)(res2 >= 0)) {
3854 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator_distance" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "SwigPyIterator_distance" "', argument "
"2"" of type '" "swig::SwigPyIterator const &""'"); goto
fail; } while(0)
;
3855 }
3856 if (!argp2) {
3857 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator_distance" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "SwigPyIterator_distance" "', argument " "2"" of type '"
"swig::SwigPyIterator const &""'"); goto fail; } while(0
)
;
3858 }
3859 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
3860 try {
3861 result = ((swig::SwigPyIterator const *)arg1)->distance((swig::SwigPyIterator const &)*arg2);
3862 }
3863 catch(std::invalid_argument &_e) {
3864 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_Python_SetErrorObj(SWIG_Python_ExceptionType(swig_types[
4]), SWIG_Python_NewPointerObj(__null, (new std::invalid_argument
(static_cast< const std::invalid_argument& >(_e))),
swig_types[4], 0x1))
; SWIG_failgoto fail;
3865 }
3866
3867 resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
3868 return resultobj;
3869fail:
3870 return NULL__null;
3871}
3872
3873
3874SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_equal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3875 PyObject *resultobj = 0;
3876 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3877 swig::SwigPyIterator *arg2 = 0 ;
3878 void *argp1 = 0 ;
3879 int res1 = 0 ;
3880 void *argp2 = 0 ;
3881 int res2 = 0 ;
3882 PyObject * obj0 = 0 ;
3883 PyObject * obj1 = 0 ;
3884 bool result;
3885
3886 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_equal",&obj0,&obj1)) SWIG_failgoto fail;
3887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
3888 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_equal" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator_equal" "', argument "
"1"" of type '" "swig::SwigPyIterator const *""'"); goto fail
; } while(0)
;
3890 }
3891 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3892 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
3893 if (!SWIG_IsOK(res2)(res2 >= 0)) {
3894 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator_equal" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "SwigPyIterator_equal" "', argument "
"2"" of type '" "swig::SwigPyIterator const &""'"); goto
fail; } while(0)
;
3895 }
3896 if (!argp2) {
3897 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator_equal" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "SwigPyIterator_equal" "', argument " "2"" of type '"
"swig::SwigPyIterator const &""'"); goto fail; } while(0
)
;
3898 }
3899 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
3900 try {
3901 result = (bool)((swig::SwigPyIterator const *)arg1)->equal((swig::SwigPyIterator const &)*arg2);
3902 }
3903 catch(std::invalid_argument &_e) {
3904 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_Python_SetErrorObj(SWIG_Python_ExceptionType(swig_types[
4]), SWIG_Python_NewPointerObj(__null, (new std::invalid_argument
(static_cast< const std::invalid_argument& >(_e))),
swig_types[4], 0x1))
; SWIG_failgoto fail;
3905 }
3906
3907 resultobj = SWIG_From_bool(static_cast< bool >(result));
3908 return resultobj;
3909fail:
3910 return NULL__null;
3911}
3912
3913
3914SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3915 PyObject *resultobj = 0;
3916 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3917 void *argp1 = 0 ;
3918 int res1 = 0 ;
3919 PyObject * obj0 = 0 ;
3920 swig::SwigPyIterator *result = 0 ;
3921
3922 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_copy",&obj0)) SWIG_failgoto fail;
3923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
3924 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_copy" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator_copy" "', argument "
"1"" of type '" "swig::SwigPyIterator const *""'"); goto fail
; } while(0)
;
3926 }
3927 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3928 result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->copy();
3929 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], 0x1
| 0)
;
3930 return resultobj;
3931fail:
3932 return NULL__null;
3933}
3934
3935
3936SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3937 PyObject *resultobj = 0;
3938 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3939 void *argp1 = 0 ;
3940 int res1 = 0 ;
3941 PyObject * obj0 = 0 ;
3942 PyObject *result = 0 ;
3943
3944 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_next",&obj0)) SWIG_failgoto fail;
3945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
3946 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_next" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator_next" "', argument "
"1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while
(0)
;
3948 }
3949 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3950 try {
3951 result = (PyObject *)(arg1)->next();
3952 }
3953 catch(swig::stop_iteration &_e) {
3954 {
3955 (void)_e;
3956 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3957 SWIG_failgoto fail;
3958 }
3959 }
3960
3961 resultobj = result;
3962 return resultobj;
3963fail:
3964 return NULL__null;
3965}
3966
3967
3968SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___next__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3969 PyObject *resultobj = 0;
3970 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3971 void *argp1 = 0 ;
3972 int res1 = 0 ;
3973 PyObject * obj0 = 0 ;
3974 PyObject *result = 0 ;
3975
3976 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator___next__",&obj0)) SWIG_failgoto fail;
3977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
3978 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___next__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator___next__" "', argument "
"1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while
(0)
;
3980 }
3981 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3982 try {
3983 result = (PyObject *)(arg1)->__next__();
3984 }
3985 catch(swig::stop_iteration &_e) {
3986 {
3987 (void)_e;
3988 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3989 SWIG_failgoto fail;
3990 }
3991 }
3992
3993 resultobj = result;
3994 return resultobj;
3995fail:
3996 return NULL__null;
3997}
3998
3999
4000SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_previous(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4001 PyObject *resultobj = 0;
4002 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4003 void *argp1 = 0 ;
4004 int res1 = 0 ;
4005 PyObject * obj0 = 0 ;
4006 PyObject *result = 0 ;
4007
4008 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_previous",&obj0)) SWIG_failgoto fail;
4009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
4010 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_previous" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator_previous" "', argument "
"1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while
(0)
;
4012 }
4013 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4014 try {
4015 result = (PyObject *)(arg1)->previous();
4016 }
4017 catch(swig::stop_iteration &_e) {
4018 {
4019 (void)_e;
4020 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4021 SWIG_failgoto fail;
4022 }
4023 }
4024
4025 resultobj = result;
4026 return resultobj;
4027fail:
4028 return NULL__null;
4029}
4030
4031
4032SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_advance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4033 PyObject *resultobj = 0;
4034 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4035 ptrdiff_t arg2 ;
4036 void *argp1 = 0 ;
4037 int res1 = 0 ;
4038 ptrdiff_t val2 ;
4039 int ecode2 = 0 ;
4040 PyObject * obj0 = 0 ;
4041 PyObject * obj1 = 0 ;
4042 swig::SwigPyIterator *result = 0 ;
4043
4044 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_advance",&obj0,&obj1)) SWIG_failgoto fail;
4045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
4046 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_advance" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator_advance" "', argument "
"1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while
(0)
;
4048 }
4049 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4050 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4051 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_advance" "', argument " "2"" of type '" "ptrdiff_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator_advance"
"', argument " "2"" of type '" "ptrdiff_t""'"); goto fail; }
while(0)
;
4053 }
4054 arg2 = static_cast< ptrdiff_t >(val2);
4055 try {
4056 result = (swig::SwigPyIterator *)(arg1)->advance(arg2);
4057 }
4058 catch(swig::stop_iteration &_e) {
4059 {
4060 (void)_e;
4061 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4062 SWIG_failgoto fail;
4063 }
4064 }
4065
4066 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], 0 |
0)
;
4067 return resultobj;
4068fail:
4069 return NULL__null;
4070}
4071
4072
4073SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4074 PyObject *resultobj = 0;
4075 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4076 swig::SwigPyIterator *arg2 = 0 ;
4077 void *argp1 = 0 ;
4078 int res1 = 0 ;
4079 void *argp2 = 0 ;
4080 int res2 = 0 ;
4081 PyObject * obj0 = 0 ;
4082 PyObject * obj1 = 0 ;
4083 bool result;
4084
4085 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___eq__",&obj0,&obj1)) SWIG_failgoto fail;
4086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
4087 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___eq__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator___eq__" "', argument "
"1"" of type '" "swig::SwigPyIterator const *""'"); goto fail
; } while(0)
;
4089 }
4090 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4091 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
4092 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4093 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "SwigPyIterator___eq__" "', argument "
"2"" of type '" "swig::SwigPyIterator const &""'"); goto
fail; } while(0)
;
4094 }
4095 if (!argp2) {
4096 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '"
"swig::SwigPyIterator const &""'"); goto fail; } while(0
)
;
4097 }
4098 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4099 result = (bool)((swig::SwigPyIterator const *)arg1)->operator ==((swig::SwigPyIterator const &)*arg2);
4100 resultobj = SWIG_From_bool(static_cast< bool >(result));
4101 return resultobj;
4102fail:
4103 return NULL__null;
4104}
4105
4106
4107SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4108 PyObject *resultobj = 0;
4109 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4110 swig::SwigPyIterator *arg2 = 0 ;
4111 void *argp1 = 0 ;
4112 int res1 = 0 ;
4113 void *argp2 = 0 ;
4114 int res2 = 0 ;
4115 PyObject * obj0 = 0 ;
4116 PyObject * obj1 = 0 ;
4117 bool result;
4118
4119 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___ne__",&obj0,&obj1)) SWIG_failgoto fail;
4120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
4121 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___ne__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator___ne__" "', argument "
"1"" of type '" "swig::SwigPyIterator const *""'"); goto fail
; } while(0)
;
4123 }
4124 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4125 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
4126 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4127 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "SwigPyIterator___ne__" "', argument "
"2"" of type '" "swig::SwigPyIterator const &""'"); goto
fail; } while(0)
;
4128 }
4129 if (!argp2) {
4130 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '"
"swig::SwigPyIterator const &""'"); goto fail; } while(0
)
;
4131 }
4132 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4133 result = (bool)((swig::SwigPyIterator const *)arg1)->operator !=((swig::SwigPyIterator const &)*arg2);
4134 resultobj = SWIG_From_bool(static_cast< bool >(result));
4135 return resultobj;
4136fail:
4137 return NULL__null;
4138}
4139
4140
4141SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4142 PyObject *resultobj = 0;
4143 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4144 ptrdiff_t arg2 ;
4145 void *argp1 = 0 ;
4146 int res1 = 0 ;
4147 ptrdiff_t val2 ;
4148 int ecode2 = 0 ;
4149 PyObject * obj0 = 0 ;
4150 PyObject * obj1 = 0 ;
4151 swig::SwigPyIterator *result = 0 ;
4152
4153 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___iadd__",&obj0,&obj1)) SWIG_failgoto fail;
4154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0x1 | 0, 0)
;
4155 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___iadd__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator___iadd__" "', argument "
"1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while
(0)
;
4157 }
4158 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4159 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4160 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___iadd__" "', argument " "2"" of type '" "ptrdiff_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator___iadd__"
"', argument " "2"" of type '" "ptrdiff_t""'"); goto fail; }
while(0)
;
4162 }
4163 arg2 = static_cast< ptrdiff_t >(val2);
4164 try {
4165 result = (swig::SwigPyIterator *) &(arg1)->operator +=(arg2);
4166 }
4167 catch(swig::stop_iteration &_e) {
4168 {
4169 (void)_e;
4170 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4171 SWIG_failgoto fail;
4172 }
4173 }
4174
4175 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], 0x1
| 0)
;
4176 return resultobj;
4177fail:
4178 return NULL__null;
4179}
4180
4181
4182SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4183 PyObject *resultobj = 0;
4184 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4185 ptrdiff_t arg2 ;
4186 void *argp1 = 0 ;
4187 int res1 = 0 ;
4188 ptrdiff_t val2 ;
4189 int ecode2 = 0 ;
4190 PyObject * obj0 = 0 ;
4191 PyObject * obj1 = 0 ;
4192 swig::SwigPyIterator *result = 0 ;
4193
4194 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___isub__",&obj0,&obj1)) SWIG_failgoto fail;
4195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0x1 | 0, 0)
;
4196 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___isub__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator___isub__" "', argument "
"1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while
(0)
;
4198 }
4199 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4200 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4201 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___isub__" "', argument " "2"" of type '" "ptrdiff_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator___isub__"
"', argument " "2"" of type '" "ptrdiff_t""'"); goto fail; }
while(0)
;
4203 }
4204 arg2 = static_cast< ptrdiff_t >(val2);
4205 try {
4206 result = (swig::SwigPyIterator *) &(arg1)->operator -=(arg2);
4207 }
4208 catch(swig::stop_iteration &_e) {
4209 {
4210 (void)_e;
4211 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4212 SWIG_failgoto fail;
4213 }
4214 }
4215
4216 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], 0x1
| 0)
;
4217 return resultobj;
4218fail:
4219 return NULL__null;
4220}
4221
4222
4223SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4224 PyObject *resultobj = 0;
4225 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4226 ptrdiff_t arg2 ;
4227 void *argp1 = 0 ;
4228 int res1 = 0 ;
4229 ptrdiff_t val2 ;
4230 int ecode2 = 0 ;
4231 PyObject * obj0 = 0 ;
4232 PyObject * obj1 = 0 ;
4233 swig::SwigPyIterator *result = 0 ;
4234
4235 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___add__",&obj0,&obj1)) SWIG_failgoto fail;
4236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
4237 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___add__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator___add__" "', argument "
"1"" of type '" "swig::SwigPyIterator const *""'"); goto fail
; } while(0)
;
4239 }
4240 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4241 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4242 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4243 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___add__" "', argument " "2"" of type '" "ptrdiff_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator___add__"
"', argument " "2"" of type '" "ptrdiff_t""'"); goto fail; }
while(0)
;
4244 }
4245 arg2 = static_cast< ptrdiff_t >(val2);
4246 try {
4247 result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator +(arg2);
4248 }
4249 catch(swig::stop_iteration &_e) {
4250 {
4251 (void)_e;
4252 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4253 SWIG_failgoto fail;
4254 }
4255 }
4256
4257 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], 0x1
| 0)
;
4258 return resultobj;
4259fail:
4260 return NULL__null;
4261}
4262
4263
4264SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4265 PyObject *resultobj = 0;
4266 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4267 ptrdiff_t arg2 ;
4268 void *argp1 = 0 ;
4269 int res1 = 0 ;
4270 ptrdiff_t val2 ;
4271 int ecode2 = 0 ;
4272 PyObject * obj0 = 0 ;
4273 PyObject * obj1 = 0 ;
4274 swig::SwigPyIterator *result = 0 ;
4275
4276 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_failgoto fail;
4277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
4278 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___sub__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator___sub__" "', argument "
"1"" of type '" "swig::SwigPyIterator const *""'"); goto fail
; } while(0)
;
4280 }
4281 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4282 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4283 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4284 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "ptrdiff_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator___sub__"
"', argument " "2"" of type '" "ptrdiff_t""'"); goto fail; }
while(0)
;
4285 }
4286 arg2 = static_cast< ptrdiff_t >(val2);
4287 try {
4288 result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator -(arg2);
4289 }
4290 catch(swig::stop_iteration &_e) {
4291 {
4292 (void)_e;
4293 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4294 SWIG_failgoto fail;
4295 }
4296 }
4297
4298 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], 0x1
| 0)
;
4299 return resultobj;
4300fail:
4301 return NULL__null;
4302}
4303
4304
4305SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4306 PyObject *resultobj = 0;
4307 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4308 swig::SwigPyIterator *arg2 = 0 ;
4309 void *argp1 = 0 ;
4310 int res1 = 0 ;
4311 void *argp2 = 0 ;
4312 int res2 = 0 ;
4313 PyObject * obj0 = 0 ;
4314 PyObject * obj1 = 0 ;
4315 ptrdiff_t result;
4316
4317 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_failgoto fail;
4318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
4319 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___sub__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SwigPyIterator___sub__" "', argument "
"1"" of type '" "swig::SwigPyIterator const *""'"); goto fail
; } while(0)
;
4321 }
4322 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4323 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
4324 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4325 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "SwigPyIterator___sub__" "', argument "
"2"" of type '" "swig::SwigPyIterator const &""'"); goto
fail; } while(0)
;
4326 }
4327 if (!argp2) {
4328 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '"
"swig::SwigPyIterator const &""'"); goto fail; } while(0
)
;
4329 }
4330 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4331 result = ((swig::SwigPyIterator const *)arg1)->operator -((swig::SwigPyIterator const &)*arg2);
4332 resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
4333 return resultobj;
4334fail:
4335 return NULL__null;
4336}
4337
4338
4339SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub__(PyObject *self, PyObject *args) {
4340 int argc;
4341 PyObject *argv[3];
4342 int ii;
4343
4344 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
4345 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
4346 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
4347 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
4348 }
4349 if (argc == 2) {
4350 int _v;
4351 void *vptr = 0;
4352 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
4353 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4354 if (_v) {
4355 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[5], 0, 0);
4356 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4357 if (_v) {
4358 return _wrap_SwigPyIterator___sub____SWIG_1(self, args);
4359 }
4360 }
4361 }
4362 if (argc == 2) {
4363 int _v;
4364 void *vptr = 0;
4365 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
4366 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4367 if (_v) {
4368 {
4369 int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL__null);
4370 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4371 }
4372 if (_v) {
4373 return _wrap_SwigPyIterator___sub____SWIG_0(self, args);
4374 }
4375 }
4376 }
4377
4378fail:
4379 Py_INCREF(Py_NotImplemented)( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt
++)
;
4380 return Py_NotImplemented(&_Py_NotImplementedStruct);
4381}
4382
4383
4384SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *SwigPyIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4385 PyObject *obj;
4386 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
4387 SWIG_TypeNewClientData(SWIGTYPE_p_swig__SwigPyIteratorswig_types[5], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
4388 return SWIG_Py_Void();
4389}
4390
4391SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4392 PyObject *resultobj = 0;
4393 GBase *arg1 = (GBase *) 0 ;
4394 void *argp1 = 0 ;
4395 int res1 = 0 ;
4396 PyObject * obj0 = 0 ;
4397
4398 if (!PyArg_ParseTuple(args,(char *)"O:delete_GBase",&obj0)) SWIG_failgoto fail;
4399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GBase, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0],
0x1 | 0, 0)
;
4400 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GBase" "', argument " "1"" of type '" "GBase *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GBase" "', argument "
"1"" of type '" "GBase *""'"); goto fail; } while(0)
;
4402 }
4403 arg1 = reinterpret_cast< GBase * >(argp1);
4404 delete arg1;
4405 resultobj = SWIG_Py_Void();
4406 return resultobj;
4407fail:
4408 return NULL__null;
4409}
4410
4411
4412SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GBase_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4413 PyObject *resultobj = 0;
4414 GBase *arg1 = (GBase *) 0 ;
4415 void *argp1 = 0 ;
4416 int res1 = 0 ;
4417 PyObject * obj0 = 0 ;
4418
4419 if (!PyArg_ParseTuple(args,(char *)"O:GBase_clear",&obj0)) SWIG_failgoto fail;
4420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GBase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0],
0 | 0, 0)
;
4421 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBase_clear" "', argument " "1"" of type '" "GBase *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GBase_clear" "', argument "
"1"" of type '" "GBase *""'"); goto fail; } while(0)
;
4423 }
4424 arg1 = reinterpret_cast< GBase * >(argp1);
4425 (arg1)->clear();
4426 resultobj = SWIG_Py_Void();
4427 return resultobj;
4428fail:
4429 return NULL__null;
4430}
4431
4432
4433SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GBase_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4434 PyObject *resultobj = 0;
4435 GBase *arg1 = (GBase *) 0 ;
4436 void *argp1 = 0 ;
4437 int res1 = 0 ;
4438 PyObject * obj0 = 0 ;
4439 GBase *result = 0 ;
4440
4441 if (!PyArg_ParseTuple(args,(char *)"O:GBase_clone",&obj0)) SWIG_failgoto fail;
4442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GBase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0],
0 | 0, 0)
;
4443 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBase_clone" "', argument " "1"" of type '" "GBase const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GBase_clone" "', argument "
"1"" of type '" "GBase const *""'"); goto fail; } while(0)
;
4445 }
4446 arg1 = reinterpret_cast< GBase * >(argp1);
4447 result = (GBase *)((GBase const *)arg1)->clone();
4448 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GBase, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[0], 0 |
0)
;
4449 return resultobj;
4450fail:
4451 return NULL__null;
4452}
4453
4454
4455SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GBase___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4456 PyObject *resultobj = 0;
4457 GBase *arg1 = (GBase *) 0 ;
4458 void *argp1 = 0 ;
4459 int res1 = 0 ;
4460 PyObject * obj0 = 0 ;
4461 char *result = 0 ;
4462
4463 if (!PyArg_ParseTuple(args,(char *)"O:GBase___str__",&obj0)) SWIG_failgoto fail;
4464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GBase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0],
0 | 0, 0)
;
4465 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBase___str__" "', argument " "1"" of type '" "GBase *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GBase___str__" "', argument "
"1"" of type '" "GBase *""'"); goto fail; } while(0)
;
4467 }
4468 arg1 = reinterpret_cast< GBase * >(argp1);
4469 result = (char *)GBase___str__(arg1);
4470 resultobj = SWIG_FromCharPtr((const char *)result);
4471 return resultobj;
4472fail:
4473 return NULL__null;
4474}
4475
4476
4477SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4478 PyObject *obj;
4479 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
4480 SWIG_TypeNewClientData(SWIGTYPE_p_GBaseswig_types[0], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
4481 return SWIG_Py_Void();
4482}
4483
4484SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GContainer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4485 PyObject *resultobj = 0;
4486 GContainer *arg1 = (GContainer *) 0 ;
4487 void *argp1 = 0 ;
4488 int res1 = 0 ;
4489 PyObject * obj0 = 0 ;
4490
4491 if (!PyArg_ParseTuple(args,(char *)"O:delete_GContainer",&obj0)) SWIG_failgoto fail;
4492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GContainer, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0x1 | 0, 0)
;
4493 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GContainer" "', argument " "1"" of type '" "GContainer *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GContainer" "', argument "
"1"" of type '" "GContainer *""'"); goto fail; } while(0)
;
4495 }
4496 arg1 = reinterpret_cast< GContainer * >(argp1);
4497 delete arg1;
4498 resultobj = SWIG_Py_Void();
4499 return resultobj;
4500fail:
4501 return NULL__null;
4502}
4503
4504
4505SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GContainer_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4506 PyObject *resultobj = 0;
4507 GContainer *arg1 = (GContainer *) 0 ;
4508 void *argp1 = 0 ;
4509 int res1 = 0 ;
4510 PyObject * obj0 = 0 ;
4511 int result;
4512
4513 if (!PyArg_ParseTuple(args,(char *)"O:GContainer_size",&obj0)) SWIG_failgoto fail;
4514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GContainer, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
4515 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GContainer_size" "', argument " "1"" of type '" "GContainer const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GContainer_size" "', argument "
"1"" of type '" "GContainer const *""'"); goto fail; } while
(0)
;
4517 }
4518 arg1 = reinterpret_cast< GContainer * >(argp1);
4519 result = (int)((GContainer const *)arg1)->size();
4520 resultobj = SWIG_From_int(static_cast< int >(result));
4521 return resultobj;
4522fail:
4523 return NULL__null;
4524}
4525
4526
4527SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GContainer_isempty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4528 PyObject *resultobj = 0;
4529 GContainer *arg1 = (GContainer *) 0 ;
4530 void *argp1 = 0 ;
4531 int res1 = 0 ;
4532 PyObject * obj0 = 0 ;
4533 bool result;
4534
4535 if (!PyArg_ParseTuple(args,(char *)"O:GContainer_isempty",&obj0)) SWIG_failgoto fail;
4536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GContainer, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
4537 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GContainer_isempty" "', argument " "1"" of type '" "GContainer const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GContainer_isempty" "', argument "
"1"" of type '" "GContainer const *""'"); goto fail; } while
(0)
;
4539 }
4540 arg1 = reinterpret_cast< GContainer * >(argp1);
4541 result = (bool)((GContainer const *)arg1)->isempty();
4542 resultobj = SWIG_From_bool(static_cast< bool >(result));
4543 return resultobj;
4544fail:
4545 return NULL__null;
4546}
4547
4548
4549SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GContainer_remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4550 PyObject *resultobj = 0;
4551 GContainer *arg1 = (GContainer *) 0 ;
4552 int *arg2 = 0 ;
4553 void *argp1 = 0 ;
4554 int res1 = 0 ;
4555 int temp2 ;
4556 int val2 ;
4557 int ecode2 = 0 ;
4558 PyObject * obj0 = 0 ;
4559 PyObject * obj1 = 0 ;
4560
4561 if (!PyArg_ParseTuple(args,(char *)"OO:GContainer_remove",&obj0,&obj1)) SWIG_failgoto fail;
4562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GContainer, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
4563 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GContainer_remove" "', argument " "1"" of type '" "GContainer *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GContainer_remove" "', argument "
"1"" of type '" "GContainer *""'"); goto fail; } while(0)
;
4565 }
4566 arg1 = reinterpret_cast< GContainer * >(argp1);
4567 ecode2 = SWIG_AsVal_int(obj1, &val2);
4568 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GContainer_remove" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GContainer_remove" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
4570 }
4571 temp2 = static_cast< int >(val2);
4572 arg2 = &temp2;
4573 (arg1)->remove((int const &)*arg2);
4574 resultobj = SWIG_Py_Void();
4575 return resultobj;
4576fail:
4577 return NULL__null;
4578}
4579
4580
4581SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GContainer_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4582 PyObject *resultobj = 0;
4583 GContainer *arg1 = (GContainer *) 0 ;
4584 int *arg2 = 0 ;
4585 void *argp1 = 0 ;
4586 int res1 = 0 ;
4587 int temp2 ;
4588 int val2 ;
4589 int ecode2 = 0 ;
4590 PyObject * obj0 = 0 ;
4591 PyObject * obj1 = 0 ;
4592
4593 if (!PyArg_ParseTuple(args,(char *)"OO:GContainer_reserve",&obj0,&obj1)) SWIG_failgoto fail;
4594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GContainer, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
4595 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GContainer_reserve" "', argument " "1"" of type '" "GContainer *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GContainer_reserve" "', argument "
"1"" of type '" "GContainer *""'"); goto fail; } while(0)
;
4597 }
4598 arg1 = reinterpret_cast< GContainer * >(argp1);
4599 ecode2 = SWIG_AsVal_int(obj1, &val2);
4600 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4601 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GContainer_reserve" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GContainer_reserve" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
4602 }
4603 temp2 = static_cast< int >(val2);
4604 arg2 = &temp2;
4605 (arg1)->reserve((int const &)*arg2);
4606 resultobj = SWIG_Py_Void();
4607 return resultobj;
4608fail:
4609 return NULL__null;
4610}
4611
4612
4613SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GContainer___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4614 PyObject *resultobj = 0;
4615 GContainer *arg1 = (GContainer *) 0 ;
4616 void *argp1 = 0 ;
4617 int res1 = 0 ;
4618 PyObject * obj0 = 0 ;
4619 int result;
4620
4621 if (!PyArg_ParseTuple(args,(char *)"O:GContainer___len__",&obj0)) SWIG_failgoto fail;
4622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GContainer, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
4623 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GContainer___len__" "', argument " "1"" of type '" "GContainer *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GContainer___len__" "', argument "
"1"" of type '" "GContainer *""'"); goto fail; } while(0)
;
4625 }
4626 arg1 = reinterpret_cast< GContainer * >(argp1);
4627 result = (int)GContainer___len__(arg1);
4628 resultobj = SWIG_From_int(static_cast< int >(result));
4629 return resultobj;
4630fail:
4631 return NULL__null;
4632}
4633
4634
4635SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GContainer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4636 PyObject *obj;
4637 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
4638 SWIG_TypeNewClientData(SWIGTYPE_p_GContainerswig_types[1], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
4639 return SWIG_Py_Void();
4640}
4641
4642SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GRegistry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4643 PyObject *resultobj = 0;
4644 GRegistry *arg1 = (GRegistry *) 0 ;
4645 void *argp1 = 0 ;
4646 int res1 = 0 ;
4647 PyObject * obj0 = 0 ;
4648
4649 if (!PyArg_ParseTuple(args,(char *)"O:delete_GRegistry",&obj0)) SWIG_failgoto fail;
4650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRegistry, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2],
0x1 | 0, 0)
;
4651 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GRegistry" "', argument " "1"" of type '" "GRegistry *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GRegistry" "', argument "
"1"" of type '" "GRegistry *""'"); goto fail; } while(0)
;
4653 }
4654 arg1 = reinterpret_cast< GRegistry * >(argp1);
4655 delete arg1;
4656 resultobj = SWIG_Py_Void();
4657 return resultobj;
4658fail:
4659 return NULL__null;
4660}
4661
4662
4663SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRegistry_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4664 PyObject *resultobj = 0;
4665 GRegistry *arg1 = (GRegistry *) 0 ;
4666 void *argp1 = 0 ;
4667 int res1 = 0 ;
4668 PyObject * obj0 = 0 ;
4669 int result;
4670
4671 if (!PyArg_ParseTuple(args,(char *)"O:GRegistry_size",&obj0)) SWIG_failgoto fail;
4672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRegistry, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2],
0 | 0, 0)
;
4673 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRegistry_size" "', argument " "1"" of type '" "GRegistry const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GRegistry_size" "', argument "
"1"" of type '" "GRegistry const *""'"); goto fail; } while(
0)
;
4675 }
4676 arg1 = reinterpret_cast< GRegistry * >(argp1);
4677 result = (int)((GRegistry const *)arg1)->size();
4678 resultobj = SWIG_From_int(static_cast< int >(result));
4679 return resultobj;
4680fail:
4681 return NULL__null;
4682}
4683
4684
4685SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRegistry_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4686 PyObject *resultobj = 0;
4687 GRegistry *arg1 = (GRegistry *) 0 ;
4688 int *arg2 = 0 ;
4689 void *argp1 = 0 ;
4690 int res1 = 0 ;
4691 int temp2 ;
4692 int val2 ;
4693 int ecode2 = 0 ;
4694 PyObject * obj0 = 0 ;
4695 PyObject * obj1 = 0 ;
4696 std::string result;
4697
4698 if (!PyArg_ParseTuple(args,(char *)"OO:GRegistry_name",&obj0,&obj1)) SWIG_failgoto fail;
4699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRegistry, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2],
0 | 0, 0)
;
4700 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRegistry_name" "', argument " "1"" of type '" "GRegistry const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GRegistry_name" "', argument "
"1"" of type '" "GRegistry const *""'"); goto fail; } while(
0)
;
4702 }
4703 arg1 = reinterpret_cast< GRegistry * >(argp1);
4704 ecode2 = SWIG_AsVal_int(obj1, &val2);
4705 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4706 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GRegistry_name" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GRegistry_name" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
4707 }
4708 temp2 = static_cast< int >(val2);
4709 arg2 = &temp2;
4710 result = ((GRegistry const *)arg1)->name((int const &)*arg2);
4711 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
4712 return resultobj;
4713fail:
4714 return NULL__null;
4715}
4716
4717
4718SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRegistry___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4719 PyObject *resultobj = 0;
4720 GRegistry *arg1 = (GRegistry *) 0 ;
4721 void *argp1 = 0 ;
4722 int res1 = 0 ;
4723 PyObject * obj0 = 0 ;
4724 char *result = 0 ;
4725
4726 if (!PyArg_ParseTuple(args,(char *)"O:GRegistry___str__",&obj0)) SWIG_failgoto fail;
4727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRegistry, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2],
0 | 0, 0)
;
4728 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRegistry___str__" "', argument " "1"" of type '" "GRegistry *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GRegistry___str__" "', argument "
"1"" of type '" "GRegistry *""'"); goto fail; } while(0)
;
4730 }
4731 arg1 = reinterpret_cast< GRegistry * >(argp1);
4732 result = (char *)GRegistry___str__(arg1);
4733 resultobj = SWIG_FromCharPtr((const char *)result);
4734 return resultobj;
4735fail:
4736 return NULL__null;
4737}
4738
4739
4740SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRegistry___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4741 PyObject *resultobj = 0;
4742 GRegistry *arg1 = (GRegistry *) 0 ;
4743 void *argp1 = 0 ;
4744 int res1 = 0 ;
4745 PyObject * obj0 = 0 ;
4746 int result;
4747
4748 if (!PyArg_ParseTuple(args,(char *)"O:GRegistry___len__",&obj0)) SWIG_failgoto fail;
4749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRegistry, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2],
0 | 0, 0)
;
4750 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRegistry___len__" "', argument " "1"" of type '" "GRegistry *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GRegistry___len__" "', argument "
"1"" of type '" "GRegistry *""'"); goto fail; } while(0)
;
4752 }
4753 arg1 = reinterpret_cast< GRegistry * >(argp1);
4754 result = (int)GRegistry___len__(arg1);
4755 resultobj = SWIG_From_int(static_cast< int >(result));
4756 return resultobj;
4757fail:
4758 return NULL__null;
4759}
4760
4761
4762SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GRegistry_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4763 PyObject *obj;
4764 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
4765 SWIG_TypeNewClientData(SWIGTYPE_p_GRegistryswig_types[2], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
4766 return SWIG_Py_Void();
4767}
4768
4769static PyMethodDef SwigMethods[] = {
4770 { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O0x0008, NULL__null},
4771 { (char *)"delete_SwigPyIterator", _wrap_delete_SwigPyIterator, METH_VARARGS0x0001, (char *)"delete_SwigPyIterator(SwigPyIterator self)"},
4772 { (char *)"SwigPyIterator_value", _wrap_SwigPyIterator_value, METH_VARARGS0x0001, (char *)"SwigPyIterator_value(SwigPyIterator self) -> PyObject *"},
4773 { (char *)"SwigPyIterator_incr", _wrap_SwigPyIterator_incr, METH_VARARGS0x0001, (char *)"\n"
4774 "incr(size_t n=1) -> SwigPyIterator\n"
4775 "SwigPyIterator_incr(SwigPyIterator self) -> SwigPyIterator\n"
4776 ""},
4777 { (char *)"SwigPyIterator_decr", _wrap_SwigPyIterator_decr, METH_VARARGS0x0001, (char *)"\n"
4778 "decr(size_t n=1) -> SwigPyIterator\n"
4779 "SwigPyIterator_decr(SwigPyIterator self) -> SwigPyIterator\n"
4780 ""},
4781 { (char *)"SwigPyIterator_distance", _wrap_SwigPyIterator_distance, METH_VARARGS0x0001, (char *)"SwigPyIterator_distance(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t"},
4782 { (char *)"SwigPyIterator_equal", _wrap_SwigPyIterator_equal, METH_VARARGS0x0001, (char *)"SwigPyIterator_equal(SwigPyIterator self, SwigPyIterator x) -> bool"},
4783 { (char *)"SwigPyIterator_copy", _wrap_SwigPyIterator_copy, METH_VARARGS0x0001, (char *)"SwigPyIterator_copy(SwigPyIterator self) -> SwigPyIterator"},
4784 { (char *)"SwigPyIterator_next", _wrap_SwigPyIterator_next, METH_VARARGS0x0001, (char *)"SwigPyIterator_next(SwigPyIterator self) -> PyObject *"},
4785 { (char *)"SwigPyIterator___next__", _wrap_SwigPyIterator___next__, METH_VARARGS0x0001, (char *)"SwigPyIterator___next__(SwigPyIterator self) -> PyObject *"},
4786 { (char *)"SwigPyIterator_previous", _wrap_SwigPyIterator_previous, METH_VARARGS0x0001, (char *)"SwigPyIterator_previous(SwigPyIterator self) -> PyObject *"},
4787 { (char *)"SwigPyIterator_advance", _wrap_SwigPyIterator_advance, METH_VARARGS0x0001, (char *)"SwigPyIterator_advance(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
4788 { (char *)"SwigPyIterator___eq__", _wrap_SwigPyIterator___eq__, METH_VARARGS0x0001, (char *)"SwigPyIterator___eq__(SwigPyIterator self, SwigPyIterator x) -> bool"},
4789 { (char *)"SwigPyIterator___ne__", _wrap_SwigPyIterator___ne__, METH_VARARGS0x0001, (char *)"SwigPyIterator___ne__(SwigPyIterator self, SwigPyIterator x) -> bool"},
4790 { (char *)"SwigPyIterator___iadd__", _wrap_SwigPyIterator___iadd__, METH_VARARGS0x0001, (char *)"SwigPyIterator___iadd__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
4791 { (char *)"SwigPyIterator___isub__", _wrap_SwigPyIterator___isub__, METH_VARARGS0x0001, (char *)"SwigPyIterator___isub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
4792 { (char *)"SwigPyIterator___add__", _wrap_SwigPyIterator___add__, METH_VARARGS0x0001, (char *)"SwigPyIterator___add__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
4793 { (char *)"SwigPyIterator___sub__", _wrap_SwigPyIterator___sub__, METH_VARARGS0x0001, (char *)"\n"
4794 "__sub__(ptrdiff_t n) -> SwigPyIterator\n"
4795 "SwigPyIterator___sub__(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t\n"
4796 ""},
4797 { (char *)"SwigPyIterator_swigregister", SwigPyIterator_swigregister, METH_VARARGS0x0001, NULL__null},
4798 { (char *)"delete_GBase", _wrap_delete_GBase, METH_VARARGS0x0001, (char *)"delete_GBase(GBase self)"},
4799 { (char *)"GBase_clear", _wrap_GBase_clear, METH_VARARGS0x0001, (char *)"GBase_clear(GBase self)"},
4800 { (char *)"GBase_clone", _wrap_GBase_clone, METH_VARARGS0x0001, (char *)"GBase_clone(GBase self) -> GBase"},
4801 { (char *)"GBase___str__", _wrap_GBase___str__, METH_VARARGS0x0001, (char *)"GBase___str__(GBase self) -> char *"},
4802 { (char *)"GBase_swigregister", GBase_swigregister, METH_VARARGS0x0001, NULL__null},
4803 { (char *)"delete_GContainer", _wrap_delete_GContainer, METH_VARARGS0x0001, (char *)"delete_GContainer(GContainer self)"},
4804 { (char *)"GContainer_size", _wrap_GContainer_size, METH_VARARGS0x0001, (char *)"GContainer_size(GContainer self) -> int"},
4805 { (char *)"GContainer_isempty", _wrap_GContainer_isempty, METH_VARARGS0x0001, (char *)"GContainer_isempty(GContainer self) -> bool"},
4806 { (char *)"GContainer_remove", _wrap_GContainer_remove, METH_VARARGS0x0001, (char *)"GContainer_remove(GContainer self, int const & index)"},
4807 { (char *)"GContainer_reserve", _wrap_GContainer_reserve, METH_VARARGS0x0001, (char *)"GContainer_reserve(GContainer self, int const & num)"},
4808 { (char *)"GContainer___len__", _wrap_GContainer___len__, METH_VARARGS0x0001, (char *)"GContainer___len__(GContainer self) -> int"},
4809 { (char *)"GContainer_swigregister", GContainer_swigregister, METH_VARARGS0x0001, NULL__null},
4810 { (char *)"delete_GRegistry", _wrap_delete_GRegistry, METH_VARARGS0x0001, (char *)"delete_GRegistry(GRegistry self)"},
4811 { (char *)"GRegistry_size", _wrap_GRegistry_size, METH_VARARGS0x0001, (char *)"GRegistry_size(GRegistry self) -> int"},
4812 { (char *)"GRegistry_name", _wrap_GRegistry_name, METH_VARARGS0x0001, (char *)"GRegistry_name(GRegistry self, int const & index) -> std::string"},
4813 { (char *)"GRegistry___str__", _wrap_GRegistry___str__, METH_VARARGS0x0001, (char *)"GRegistry___str__(GRegistry self) -> char *"},
4814 { (char *)"GRegistry___len__", _wrap_GRegistry___len__, METH_VARARGS0x0001, (char *)"GRegistry___len__(GRegistry self) -> int"},
4815 { (char *)"GRegistry_swigregister", GRegistry_swigregister, METH_VARARGS0x0001, NULL__null},
4816 { NULL__null, NULL__null, 0, NULL__null }
4817};
4818
4819
4820/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
4821
4822static void *_p_GContainerTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
4823 return (void *)((GBase *) ((GContainer *) x));
4824}
4825static swig_type_info _swigt__p_GBase = {"_p_GBase", "GBase *", 0, 0, (void*)0, 0};
4826static swig_type_info _swigt__p_GContainer = {"_p_GContainer", "GContainer *", 0, 0, (void*)0, 0};
4827static swig_type_info _swigt__p_GRegistry = {"_p_GRegistry", "GRegistry *", 0, 0, (void*)0, 0};
4828static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
4829static swig_type_info _swigt__p_std__invalid_argument = {"_p_std__invalid_argument", "std::invalid_argument *", 0, 0, (void*)0, 0};
4830static swig_type_info _swigt__p_swig__SwigPyIterator = {"_p_swig__SwigPyIterator", "swig::SwigPyIterator *", 0, 0, (void*)0, 0};
4831
4832static swig_type_info *swig_type_initial[] = {
4833 &_swigt__p_GBase,
4834 &_swigt__p_GContainer,
4835 &_swigt__p_GRegistry,
4836 &_swigt__p_char,
4837 &_swigt__p_std__invalid_argument,
4838 &_swigt__p_swig__SwigPyIterator,
4839};
4840
4841static swig_cast_info _swigc__p_GBase[] = { {&_swigt__p_GBase, 0, 0, 0}, {&_swigt__p_GContainer, _p_GContainerTo_p_GBase, 0, 0},{0, 0, 0, 0}};
4842static swig_cast_info _swigc__p_GContainer[] = { {&_swigt__p_GContainer, 0, 0, 0},{0, 0, 0, 0}};
4843static swig_cast_info _swigc__p_GRegistry[] = { {&_swigt__p_GRegistry, 0, 0, 0},{0, 0, 0, 0}};
4844static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
4845static swig_cast_info _swigc__p_std__invalid_argument[] = { {&_swigt__p_std__invalid_argument, 0, 0, 0},{0, 0, 0, 0}};
4846static swig_cast_info _swigc__p_swig__SwigPyIterator[] = { {&_swigt__p_swig__SwigPyIterator, 0, 0, 0},{0, 0, 0, 0}};
4847
4848static swig_cast_info *swig_cast_initial[] = {
4849 _swigc__p_GBase,
4850 _swigc__p_GContainer,
4851 _swigc__p_GRegistry,
4852 _swigc__p_char,
4853 _swigc__p_std__invalid_argument,
4854 _swigc__p_swig__SwigPyIterator,
4855};
4856
4857
4858/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
4859
4860static swig_const_info swig_const_table[] = {
4861{0, 0, 0, 0.0, 0, 0}};
4862
4863#ifdef __cplusplus199711L
4864}
4865#endif
4866/* -----------------------------------------------------------------------------
4867 * Type initialization:
4868 * This problem is tough by the requirement that no dynamic
4869 * memory is used. Also, since swig_type_info structures store pointers to
4870 * swig_cast_info structures and swig_cast_info structures store pointers back
4871 * to swig_type_info structures, we need some lookup code at initialization.
4872 * The idea is that swig generates all the structures that are needed.
4873 * The runtime then collects these partially filled structures.
4874 * The SWIG_InitializeModule function takes these initial arrays out of
4875 * swig_module, and does all the lookup, filling in the swig_module.types
4876 * array with the correct data and linking the correct swig_cast_info
4877 * structures together.
4878 *
4879 * The generated swig_type_info structures are assigned staticly to an initial
4880 * array. We just loop through that array, and handle each type individually.
4881 * First we lookup if this type has been already loaded, and if so, use the
4882 * loaded structure instead of the generated one. Then we have to fill in the
4883 * cast linked list. The cast data is initially stored in something like a
4884 * two-dimensional array. Each row corresponds to a type (there are the same
4885 * number of rows as there are in the swig_type_initial array). Each entry in
4886 * a column is one of the swig_cast_info structures for that type.
4887 * The cast_initial array is actually an array of arrays, because each row has
4888 * a variable number of columns. So to actually build the cast linked list,
4889 * we find the array of casts associated with the type, and loop through it
4890 * adding the casts to the list. The one last trick we need to do is making
4891 * sure the type pointer in the swig_cast_info struct is correct.
4892 *
4893 * First off, we lookup the cast->type name to see if it is already loaded.
4894 * There are three cases to handle:
4895 * 1) If the cast->type has already been loaded AND the type we are adding
4896 * casting info to has not been loaded (it is in this module), THEN we
4897 * replace the cast->type pointer with the type pointer that has already
4898 * been loaded.
4899 * 2) If BOTH types (the one we are adding casting info to, and the
4900 * cast->type) are loaded, THEN the cast info has already been loaded by
4901 * the previous module so we just ignore it.
4902 * 3) Finally, if cast->type has not already been loaded, then we add that
4903 * swig_cast_info to the linked list (because the cast->type) pointer will
4904 * be correct.
4905 * ----------------------------------------------------------------------------- */
4906
4907#ifdef __cplusplus199711L
4908extern "C" {
4909#if 0
4910} /* c-mode */
4911#endif
4912#endif
4913
4914#if 0
4915#define SWIGRUNTIME_DEBUG
4916#endif
4917
4918
4919SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
4920SWIG_InitializeModule(void *clientdata) {
4921 size_t i;
4922 swig_module_info *module_head, *iter;
4923 int found, init;
4924
4925 /* check to see if the circular list has been setup, if not, set it up */
4926 if (swig_module.next==0) {
4927 /* Initialize the swig_module */
4928 swig_module.type_initial = swig_type_initial;
4929 swig_module.cast_initial = swig_cast_initial;
4930 swig_module.next = &swig_module;
4931 init = 1;
4932 } else {
4933 init = 0;
4934 }
4935
4936 /* Try and load any already created modules */
4937 module_head = SWIG_GetModule(clientdata)SWIG_Python_GetModule(clientdata);
4938 if (!module_head) {
4939 /* This is the first module loaded for this interpreter */
4940 /* so set the swig module into the interpreter */
4941 SWIG_SetModule(clientdata, &swig_module)SWIG_Python_SetModule(&swig_module);
4942 module_head = &swig_module;
Value stored to 'module_head' is never read
4943 } else {
4944 /* the interpreter has loaded a SWIG module, but has it loaded this one? */
4945 found=0;
4946 iter=module_head;
4947 do {
4948 if (iter==&swig_module) {
4949 found=1;
4950 break;
4951 }
4952 iter=iter->next;
4953 } while (iter!= module_head);
4954
4955 /* if the is found in the list, then all is done and we may leave */
4956 if (found) return;
4957 /* otherwise we must add out module into the list */
4958 swig_module.next = module_head->next;
4959 module_head->next = &swig_module;
4960 }
4961
4962 /* When multiple interpreters are used, a module could have already been initialized in
4963 a different interpreter, but not yet have a pointer in this interpreter.
4964 In this case, we do not want to continue adding types... everything should be
4965 set up already */
4966 if (init == 0) return;
4967
4968 /* Now work on filling in swig_module.types */
4969#ifdef SWIGRUNTIME_DEBUG
4970 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
4971#endif
4972 for (i = 0; i < swig_module.size; ++i) {
4973 swig_type_info *type = 0;
4974 swig_type_info *ret;
4975 swig_cast_info *cast;
4976
4977#ifdef SWIGRUNTIME_DEBUG
4978 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
4979#endif
4980
4981 /* if there is another module already loaded */
4982 if (swig_module.next != &swig_module) {
4983 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
4984 }
4985 if (type) {
4986 /* Overwrite clientdata field */
4987#ifdef SWIGRUNTIME_DEBUG
4988 printf("SWIG_InitializeModule: found type %s\n", type->name);
4989#endif
4990 if (swig_module.type_initial[i]->clientdata) {
4991 type->clientdata = swig_module.type_initial[i]->clientdata;
4992#ifdef SWIGRUNTIME_DEBUG
4993 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
4994#endif
4995 }
4996 } else {
4997 type = swig_module.type_initial[i];
4998 }
4999
5000 /* Insert casting types */
5001 cast = swig_module.cast_initial[i];
5002 while (cast->type) {
5003 /* Don't need to add information already in the list */
5004 ret = 0;
5005#ifdef SWIGRUNTIME_DEBUG
5006 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
5007#endif
5008 if (swig_module.next != &swig_module) {
5009 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
5010#ifdef SWIGRUNTIME_DEBUG
5011 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
5012#endif
5013 }
5014 if (ret) {
5015 if (type == swig_module.type_initial[i]) {
5016#ifdef SWIGRUNTIME_DEBUG
5017 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
5018#endif
5019 cast->type = ret;
5020 ret = 0;
5021 } else {
5022 /* Check for casting already in the list */
5023 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
5024#ifdef SWIGRUNTIME_DEBUG
5025 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
5026#endif
5027 if (!ocast) ret = 0;
5028 }
5029 }
5030
5031 if (!ret) {
5032#ifdef SWIGRUNTIME_DEBUG
5033 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
5034#endif
5035 if (type->cast) {
5036 type->cast->prev = cast;
5037 cast->next = type->cast;
5038 }
5039 type->cast = cast;
5040 }
5041 cast++;
5042 }
5043 /* Set entry in modules->types array equal to the type */
5044 swig_module.types[i] = type;
5045 }
5046 swig_module.types[i] = 0;
5047
5048#ifdef SWIGRUNTIME_DEBUG
5049 printf("**** SWIG_InitializeModule: Cast List ******\n");
5050 for (i = 0; i < swig_module.size; ++i) {
5051 int j = 0;
5052 swig_cast_info *cast = swig_module.cast_initial[i];
5053 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
5054 while (cast->type) {
5055 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
5056 cast++;
5057 ++j;
5058 }
5059 printf("---- Total casts: %d\n",j);
5060 }
5061 printf("**** SWIG_InitializeModule: Cast List ******\n");
5062#endif
5063}
5064
5065/* This function will propagate the clientdata field of type to
5066* any new swig_type_info structures that have been added into the list
5067* of equivalent types. It is like calling
5068* SWIG_TypeClientData(type, clientdata) a second time.
5069*/
5070SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
5071SWIG_PropagateClientData(void) {
5072 size_t i;
5073 swig_cast_info *equiv;
5074 static int init_run = 0;
5075
5076 if (init_run) return;
5077 init_run = 1;
5078
5079 for (i = 0; i < swig_module.size; i++) {
5080 if (swig_module.types[i]->clientdata) {
5081 equiv = swig_module.types[i]->cast;
5082 while (equiv) {
5083 if (!equiv->converter) {
5084 if (equiv->type && !equiv->type->clientdata)
5085 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
5086 }
5087 equiv = equiv->next;
5088 }
5089 }
5090 }
5091}
5092
5093#ifdef __cplusplus199711L
5094#if 0
5095{
5096 /* c-mode */
5097#endif
5098}
5099#endif
5100
5101
5102
5103#ifdef __cplusplus199711L
5104extern "C" {
5105#endif
5106
5107 /* Python-specific SWIG API */
5108#define SWIG_newvarlink()SWIG_Python_newvarlink() SWIG_Python_newvarlink()
5109#define SWIG_addvarlink(p, name, get_attr, set_attr)SWIG_Python_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
5110#define SWIG_InstallConstants(d, constants)SWIG_Python_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
5111
5112 /* -----------------------------------------------------------------------------
5113 * global variable support code.
5114 * ----------------------------------------------------------------------------- */
5115
5116 typedef struct swig_globalvar {
5117 char *name; /* Name of global variable */
5118 PyObject *(*get_attr)(void); /* Return the current value */
5119 int (*set_attr)(PyObject *); /* Set the value */
5120 struct swig_globalvar *next;
5121 } swig_globalvar;
5122
5123 typedef struct swig_varlinkobject {
5124 PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type;
5125 swig_globalvar *vars;
5126 } swig_varlinkobject;
5127
5128 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
5129 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
5130#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
5131 return PyUnicode_InternFromString("<Swig global variables>");
5132#else
5133 return PyString_FromString("<Swig global variables>");
5134#endif
5135 }
5136
5137 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
5138 swig_varlink_str(swig_varlinkobject *v) {
5139#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
5140 PyObject *str = PyUnicode_InternFromString("(");
5141 PyObject *tail;
5142 PyObject *joined;
5143 swig_globalvar *var;
5144 for (var = v->vars; var; var=var->next) {
5145 tail = PyUnicode_FromStringPyUnicodeUCS2_FromString(var->name);
5146 joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail);
5147 Py_DecRef(str);
5148 Py_DecRef(tail);
5149 str = joined;
5150 if (var->next) {
5151 tail = PyUnicode_InternFromString(", ");
5152 joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail);
5153 Py_DecRef(str);
5154 Py_DecRef(tail);
5155 str = joined;
5156 }
5157 }
5158 tail = PyUnicode_InternFromString(")");
5159 joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail);
5160 Py_DecRef(str);
5161 Py_DecRef(tail);
5162 str = joined;
5163#else
5164 PyObject *str = PyString_FromString("(");
5165 swig_globalvar *var;
5166 for (var = v->vars; var; var=var->next) {
5167 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
5168 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
5169 }
5170 PyString_ConcatAndDel(&str,PyString_FromString(")"));
5171#endif
5172 return str;
5173 }
5174
5175 SWIGINTERNstatic __attribute__ ((__unused__)) int
5176 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
5177 char *tmp;
5178 PyObject *str = swig_varlink_str(v);
5179 fprintf(fp,"Swig global variables ");
5180 fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str));
5181 SWIG_Python_str_DelForPy3(tmp);
5182 Py_DECREF(str)do { if ( --((PyObject*)(str))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(str)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(str)))); } while (0)
;
5183 return 0;
5184 }
5185
5186 SWIGINTERNstatic __attribute__ ((__unused__)) void
5187 swig_varlink_dealloc(swig_varlinkobject *v) {
5188 swig_globalvar *var = v->vars;
5189 while (var) {
5190 swig_globalvar *n = var->next;
5191 free(var->name);
5192 free(var);
5193 var = n;
5194 }
5195 }
5196
5197 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
5198 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
5199 PyObject *res = NULL__null;
5200 swig_globalvar *var = v->vars;
5201 while (var) {
5202 if (strcmp(var->name,n) == 0) {
5203 res = (*var->get_attr)();
5204 break;
5205 }
5206 var = var->next;
5207 }
5208 if (res == NULL__null && !PyErr_Occurred()) {
5209 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
5210 }
5211 return res;
5212 }
5213
5214 SWIGINTERNstatic __attribute__ ((__unused__)) int
5215 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
5216 int res = 1;
5217 swig_globalvar *var = v->vars;
5218 while (var) {
5219 if (strcmp(var->name,n) == 0) {
5220 res = (*var->set_attr)(p);
5221 break;
5222 }
5223 var = var->next;
5224 }
5225 if (res == 1 && !PyErr_Occurred()) {
5226 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
5227 }
5228 return res;
5229 }
5230
5231 SWIGINTERNstatic __attribute__ ((__unused__)) PyTypeObject*
5232 swig_varlink_type(void) {
5233 static char varlink__doc__[] = "Swig var link object";
5234 static PyTypeObject varlink_type;
5235 static int type_init = 0;
5236 if (!type_init) {
5237 const PyTypeObject tmp = {
5238 /* PyObject header changed in Python 3 */
5239#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
5240 PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0,
5241#else
5242 PyObject_HEAD_INIT(NULL)1, __null,
5243 0, /* ob_size */
5244#endif
5245 (char *)"swigvarlink", /* tp_name */
5246 sizeof(swig_varlinkobject), /* tp_basicsize */
5247 0, /* tp_itemsize */
5248 (destructor) swig_varlink_dealloc, /* tp_dealloc */
5249 (printfunc) swig_varlink_print, /* tp_print */
5250 (getattrfunc) swig_varlink_getattr, /* tp_getattr */
5251 (setattrfunc) swig_varlink_setattr, /* tp_setattr */
5252 0, /* tp_compare */
5253 (reprfunc) swig_varlink_repr, /* tp_repr */
5254 0, /* tp_as_number */
5255 0, /* tp_as_sequence */
5256 0, /* tp_as_mapping */
5257 0, /* tp_hash */
5258 0, /* tp_call */
5259 (reprfunc) swig_varlink_str, /* tp_str */
5260 0, /* tp_getattro */
5261 0, /* tp_setattro */
5262 0, /* tp_as_buffer */
5263 0, /* tp_flags */
5264 varlink__doc__, /* tp_doc */
5265 0, /* tp_traverse */
5266 0, /* tp_clear */
5267 0, /* tp_richcompare */
5268 0, /* tp_weaklistoffset */
5269#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000
5270 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
5271#endif
5272#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000
5273 0, /* tp_del */
5274#endif
5275#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02060000
5276 0, /* tp_version */
5277#endif
5278#ifdef COUNT_ALLOCS
5279 0,0,0,0 /* tp_alloc -> tp_next */
5280#endif
5281 };
5282 varlink_type = tmp;
5283 type_init = 1;
5284#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
5285 varlink_type.ob_type = &PyType_Type;
5286#else
5287 if (PyType_Ready(&varlink_type) < 0)
5288 return NULL__null;
5289#endif
5290 }
5291 return &varlink_type;
5292 }
5293
5294 /* Create a variable linking object for use later */
5295 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
5296 SWIG_Python_newvarlink(void) {
5297 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type())( (swig_varlinkobject *) PyObject_Init( (PyObject *) PyObject_Malloc
( ( (swig_varlink_type())->tp_basicsize ) ), (swig_varlink_type
())) )
;
5298 if (result) {
5299 result->vars = 0;
5300 }
5301 return ((PyObject*) result);
5302 }
5303
5304 SWIGINTERNstatic __attribute__ ((__unused__)) void
5305 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
5306 swig_varlinkobject *v = (swig_varlinkobject *) p;
5307 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
5308 if (gv) {
5309 size_t size = strlen(name)+1;
5310 gv->name = (char *)malloc(size);
5311 if (gv->name) {
5312 strncpy(gv->name,name,size);
5313 gv->get_attr = get_attr;
5314 gv->set_attr = set_attr;
5315 gv->next = v->vars;
5316 }
5317 }
5318 v->vars = gv;
5319 }
5320
5321 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
5322 SWIG_globals(void) {
5323 static PyObject *_SWIG_globals = 0;
5324 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink()SWIG_Python_newvarlink();
5325 return _SWIG_globals;
5326 }
5327
5328 /* -----------------------------------------------------------------------------
5329 * constants/methods manipulation
5330 * ----------------------------------------------------------------------------- */
5331
5332 /* Install Constants */
5333 SWIGINTERNstatic __attribute__ ((__unused__)) void
5334 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
5335 PyObject *obj = 0;
5336 size_t i;
5337 for (i = 0; constants[i].type; ++i) {
5338 switch(constants[i].type) {
5339 case SWIG_PY_POINTER4:
5340 obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0)SWIG_Python_NewPointerObj(__null, constants[i].pvalue, *(constants
[i]).ptype, 0)
;
5341 break;
5342 case SWIG_PY_BINARY5:
5343 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype))SWIG_Python_NewPackedObj(constants[i].pvalue, constants[i].lvalue
, *(constants[i].ptype))
;
5344 break;
5345 default:
5346 obj = 0;
5347 break;
5348 }
5349 if (obj) {
5350 PyDict_SetItemString(d, constants[i].name, obj);
5351 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
5352 }
5353 }
5354 }
5355
5356 /* -----------------------------------------------------------------------------*/
5357 /* Fix SwigMethods to carry the callback ptrs when needed */
5358 /* -----------------------------------------------------------------------------*/
5359
5360 SWIGINTERNstatic __attribute__ ((__unused__)) void
5361 SWIG_Python_FixMethods(PyMethodDef *methods,
5362 swig_const_info *const_table,
5363 swig_type_info **types,
5364 swig_type_info **types_initial) {
5365 size_t i;
5366 for (i = 0; methods[i].ml_name; ++i) {
5367 const char *c = methods[i].ml_doc;
5368 if (c && (c = strstr(c, "swig_ptr: "))) {
5369 int j;
5370 swig_const_info *ci = 0;
5371 const char *name = c + 10;
5372 for (j = 0; const_table[j].type; ++j) {
5373 if (strncmp(const_table[j].name, name,
5374 strlen(const_table[j].name)) == 0) {
5375 ci = &(const_table[j]);
5376 break;
5377 }
5378 }
5379 if (ci) {
5380 void *ptr = (ci->type == SWIG_PY_POINTER4) ? ci->pvalue : 0;
5381 if (ptr) {
5382 size_t shift = (ci->ptype) - types;
5383 swig_type_info *ty = types_initial[shift];
5384 size_t ldoc = (c - methods[i].ml_doc);
5385 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
5386 char *ndoc = (char*)malloc(ldoc + lptr + 10);
5387 if (ndoc) {
5388 char *buff = ndoc;
5389 strncpy(buff, methods[i].ml_doc, ldoc);
5390 buff += ldoc;
5391 strncpy(buff, "swig_ptr: ", 10);
5392 buff += 10;
5393 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
5394 methods[i].ml_doc = ndoc;
5395 }
5396 }
5397 }
5398 }
5399 }
5400 }
5401
5402#ifdef __cplusplus199711L
5403}
5404#endif
5405
5406/* -----------------------------------------------------------------------------*
5407 * Partial Init method
5408 * -----------------------------------------------------------------------------*/
5409
5410#ifdef __cplusplus199711L
5411extern "C"
5412#endif
5413
5414SWIGEXPORT__attribute__ ((visibility("default")))
5415#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
5416PyObject*
5417#else
5418void
5419#endif
5420SWIG_initinit_base(void) {
5421 PyObject *m, *d, *md;
5422#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
5423 static struct PyModuleDef SWIG_module = {
5424# if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03020000
5425 PyModuleDef_HEAD_INIT,
5426# else
5427 {
5428 PyObject_HEAD_INIT(NULL)1, __null,
5429 NULL__null, /* m_init */
5430 0, /* m_index */
5431 NULL__null, /* m_copy */
5432 },
5433# endif
5434 (char *) SWIG_name"_base",
5435 NULL__null,
5436 -1,
5437 SwigMethods,
5438 NULL__null,
5439 NULL__null,
5440 NULL__null,
5441 NULL__null
5442 };
5443#endif
5444
5445#if defined(SWIGPYTHON_BUILTIN)
5446 static SwigPyClientData SwigPyObject_clientdata = {
5447 0, 0, 0, 0, 0, 0, 0
5448 };
5449 static PyGetSetDef this_getset_def = {
5450 (char *)"this", &SwigPyBuiltin_ThisClosure, NULL__null, NULL__null, NULL__null
5451 };
5452 static SwigPyGetSet thisown_getset_closure = {
5453 (PyCFunction) SwigPyObject_own,
5454 (PyCFunction) SwigPyObject_own
5455 };
5456 static PyGetSetDef thisown_getset_def = {
5457 (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL__null, &thisown_getset_closure
5458 };
5459 PyObject *metatype_args;
5460 PyTypeObject *builtin_pytype;
5461 int builtin_base_count;
5462 swig_type_info *builtin_basetype;
5463 PyObject *tuple;
5464 PyGetSetDescrObject *static_getset;
5465 PyTypeObject *metatype;
5466 SwigPyClientData *cd;
5467 PyObject *public_interface, *public_symbol;
5468 PyObject *this_descr;
5469 PyObject *thisown_descr;
5470 int i;
5471
5472 (void)builtin_pytype;
5473 (void)builtin_base_count;
5474 (void)builtin_basetype;
5475 (void)tuple;
5476 (void)static_getset;
5477
5478 /* metatype is used to implement static member variables. */
5479 metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type);
5480 assert(metatype_args)((void)0);
5481 metatype = (PyTypeObject *) PyType_Type.tp_call((PyObject *) &PyType_Type, metatype_args, NULL__null);
5482 assert(metatype)((void)0);
5483 Py_DECREF(metatype_args)do { if ( --((PyObject*)(metatype_args))->ob_refcnt != 0) ;
else ( (*(((PyObject*)((PyObject *)(metatype_args)))->ob_type
)->tp_dealloc)((PyObject *)((PyObject *)(metatype_args))))
; } while (0)
;
5484 metatype->tp_setattro = (setattrofunc) &SwigPyObjectType_setattro;
5485 assert(PyType_Ready(metatype) >= 0)((void)0);
5486#endif
5487
5488 /* Fix SwigMethods to carry the callback ptrs when needed */
5489 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
5490
5491#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
5492 m = PyModule_Create(&SWIG_module);
5493#else
5494 m = Py_InitModule((char *) SWIG_name, SwigMethods)Py_InitModule4_64((char *) "_base", SwigMethods, (char *)__null
, (PyObject *)__null, 1013)
;
5495#endif
5496 md = d = PyModule_GetDict(m);
5497 (void)md;
5498
5499 SWIG_InitializeModule(0);
5500
5501#ifdef SWIGPYTHON_BUILTIN
5502 SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject")SWIG_MangledTypeQueryModule(&swig_module, &swig_module
, "_p_SwigPyObject")
;
5503 assert(SwigPyObject_stype)((void)0);
5504 cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
5505 if (!cd) {
5506 SwigPyObject_stype->clientdata = &SwigPyObject_clientdata;
5507 SwigPyObject_clientdata.pytype = SwigPyObject_TypeOnce();
5508 } else if (SwigPyObject_TypeOnce()->tp_basicsize != cd->pytype->tp_basicsize) {
5509 PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules.");
5510# if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
5511 return NULL__null;
5512# else
5513 return;
5514# endif
5515 }
5516
5517 /* All objects have a 'this' attribute */
5518 this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def);
5519 (void)this_descr;
5520
5521 /* All objects have a 'thisown' attribute */
5522 thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def);
5523 (void)thisown_descr;
5524
5525 public_interface = PyList_New(0);
5526 public_symbol = 0;
5527 (void)public_symbol;
5528
5529 PyDict_SetItemString(md, "__all__", public_interface);
5530 Py_DECREF(public_interface)do { if ( --((PyObject*)(public_interface))->ob_refcnt != 0
) ; else ( (*(((PyObject*)((PyObject *)(public_interface)))->
ob_type)->tp_dealloc)((PyObject *)((PyObject *)(public_interface
)))); } while (0)
;
5531 for (i = 0; SwigMethods[i].ml_name != NULL__null; ++i)
5532 SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name);
5533 for (i = 0; swig_const_table[i].name != 0; ++i)
5534 SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name);
5535#endif
5536
5537 SWIG_InstallConstants(d,swig_const_table)SWIG_Python_InstallConstants(d, swig_const_table);
5538
5539#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
5540 return m;
5541#else
5542 return;
5543#endif
5544}
5545