Bug Summary

File:pyext/gammalib/xspec_wrap.cpp
Location:line 8087, 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_GArfswig_types[0] swig_types[0]
2941#define SWIGTYPE_p_GBaseswig_types[1] swig_types[1]
2942#define SWIGTYPE_p_GEboundsswig_types[2] swig_types[2]
2943#define SWIGTYPE_p_GEnergyswig_types[3] swig_types[3]
2944#define SWIGTYPE_p_GFitsswig_types[4] swig_types[4]
2945#define SWIGTYPE_p_GFitsTableswig_types[5] swig_types[5]
2946#define SWIGTYPE_p_GPhaswig_types[6] swig_types[6]
2947#define SWIGTYPE_p_GRmfswig_types[7] swig_types[7]
2948#define SWIGTYPE_p_charswig_types[8] swig_types[8]
2949#define SWIGTYPE_p_doubleswig_types[9] swig_types[9]
2950#define SWIGTYPE_p_std__invalid_argumentswig_types[10] swig_types[10]
2951#define SWIGTYPE_p_swig__SwigPyIteratorswig_types[11] swig_types[11]
2952static swig_type_info *swig_types[13];
2953static swig_module_info swig_module = {swig_types, 12, 0, 0, 0, 0};
2954#define SWIG_TypeQuery(name)SWIG_TypeQueryModule(&swig_module, &swig_module, name
)
SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2955#define SWIG_MangledTypeQuery(name)SWIG_MangledTypeQueryModule(&swig_module, &swig_module
, name)
SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2956
2957/* -------- TYPES TABLE (END) -------- */
2958
2959#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
<= 0x02000000)
2960# if !defined(SWIG_PYTHON_CLASSIC)
2961# error "This python version requires swig to be run with the '-classic' option"
2962# endif
2963#endif
2964
2965/*-----------------------------------------------
2966 @(target):= _xspec.so
2967 ------------------------------------------------*/
2968#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
2969# define SWIG_initinit_xspec PyInit__xspec
2970
2971#else
2972# define SWIG_initinit_xspec init_xspec
2973
2974#endif
2975#define SWIG_name"_xspec" "_xspec"
2976
2977#define SWIGVERSION0x020011 0x020011
2978#define SWIG_VERSION0x020011 SWIGVERSION0x020011
2979
2980
2981#define SWIG_as_voidptr(a)const_cast< void * >(static_cast< const void * >(
a))
const_cast< void * >(static_cast< const void * >(a))
2982#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))
2983
2984
2985#include <stdexcept>
2986
2987
2988namespace swig {
2989 class SwigPtr_PyObject {
2990 protected:
2991 PyObject *_obj;
2992
2993 public:
2994 SwigPtr_PyObject() :_obj(0)
2995 {
2996 }
2997
2998 SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj)
2999 {
3000 Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt
++); } while (0)
;
3001 }
3002
3003 SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj)
3004 {
3005 if (initial_ref) {
3006 Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt
++); } while (0)
;
3007 }
3008 }
3009
3010 SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item)
3011 {
3012 Py_XINCREF(item._obj)do { if ((item._obj) == __null) ; else ( ((PyObject*)(item._obj
))->ob_refcnt++); } while (0)
;
3013 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)
;
3014 _obj = item._obj;
3015 return *this;
3016 }
3017
3018 ~SwigPtr_PyObject()
3019 {
3020 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)
;
3021 }
3022
3023 operator PyObject *() const
3024 {
3025 return _obj;
3026 }
3027
3028 PyObject *operator->() const
3029 {
3030 return _obj;
3031 }
3032 };
3033}
3034
3035
3036namespace swig {
3037 struct SwigVar_PyObject : SwigPtr_PyObject {
3038 SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { }
3039
3040 SwigVar_PyObject & operator = (PyObject* obj)
3041 {
3042 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)
;
3043 _obj = obj;
3044 return *this;
3045 }
3046 };
3047}
3048
3049
3050#include <stddef.h>
3051#include "GException.hpp"
3052#include "GTools.hpp"
3053
3054
3055#include <stdexcept>
3056
3057
3058#if defined(__GNUC__4)
3059# if __GNUC__4 == 2 && __GNUC_MINOR <= 96
3060# define SWIG_STD_NOMODERN_STL
3061# endif
3062#endif
3063
3064
3065#include <string>
3066#include <stdexcept>
3067#include <stddef.h>
3068
3069
3070#include <string>
3071
3072
3073#include <iostream>
3074
3075#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03020000
3076# define SWIGPY_SLICE_ARG(obj)((PySliceObject*) (obj)) ((PyObject*) (obj))
3077#else
3078# define SWIGPY_SLICE_ARG(obj)((PySliceObject*) (obj)) ((PySliceObject*) (obj))
3079#endif
3080
3081
3082 #include <stddef.h>
3083
3084
3085namespace swig {
3086 struct stop_iteration {
3087 };
3088
3089 struct SwigPyIterator {
3090 private:
3091 SwigPtr_PyObject _seq;
3092
3093 protected:
3094 SwigPyIterator(PyObject *seq) : _seq(seq)
3095 {
3096 }
3097
3098 public:
3099 virtual ~SwigPyIterator() {}
3100
3101 // Access iterator method, required by Python
3102 virtual PyObject *value() const = 0;
3103
3104 // Forward iterator method, required by Python
3105 virtual SwigPyIterator *incr(size_t n = 1) = 0;
3106
3107 // Backward iterator method, very common in C++, but not required in Python
3108 virtual SwigPyIterator *decr(size_t /*n*/ = 1)
3109 {
3110 throw stop_iteration();
3111 }
3112
3113 // Random access iterator methods, but not required in Python
3114 virtual ptrdiff_t distance(const SwigPyIterator &/*x*/) const
3115 {
3116 throw std::invalid_argument("operation not supported");
3117 }
3118
3119 virtual bool equal (const SwigPyIterator &/*x*/) const
3120 {
3121 throw std::invalid_argument("operation not supported");
3122 }
3123
3124 // C++ common/needed methods
3125 virtual SwigPyIterator *copy() const = 0;
3126
3127 PyObject *next()
3128 {
3129 SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads
3130 PyObject *obj = value();
3131 incr();
3132 SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads
3133 return obj;
3134 }
3135
3136 /* Make an alias for Python 3.x */
3137 PyObject *__next__()
3138 {
3139 return next();
3140 }
3141
3142 PyObject *previous()
3143 {
3144 SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads
3145 decr();
3146 PyObject *obj = value();
3147 SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads
3148 return obj;
3149 }
3150
3151 SwigPyIterator *advance(ptrdiff_t n)
3152 {
3153 return (n > 0) ? incr(n) : decr(-n);
3154 }
3155
3156 bool operator == (const SwigPyIterator& x) const
3157 {
3158 return equal(x);
3159 }
3160
3161 bool operator != (const SwigPyIterator& x) const
3162 {
3163 return ! operator==(x);
3164 }
3165
3166 SwigPyIterator& operator += (ptrdiff_t n)
3167 {
3168 return *advance(n);
3169 }
3170
3171 SwigPyIterator& operator -= (ptrdiff_t n)
3172 {
3173 return *advance(-n);
3174 }
3175
3176 SwigPyIterator* operator + (ptrdiff_t n) const
3177 {
3178 return copy()->advance(n);
3179 }
3180
3181 SwigPyIterator* operator - (ptrdiff_t n) const
3182 {
3183 return copy()->advance(-n);
3184 }
3185
3186 ptrdiff_t operator - (const SwigPyIterator& x) const
3187 {
3188 return x.distance(*this);
3189 }
3190
3191 static swig_type_info* descriptor() {
3192 static int init = 0;
3193 static swig_type_info* desc = 0;
3194 if (!init) {
3195 desc = SWIG_TypeQuery("swig::SwigPyIterator *")SWIG_TypeQueryModule(&swig_module, &swig_module, "swig::SwigPyIterator *"
)
;
3196 init = 1;
3197 }
3198 return desc;
3199 }
3200 };
3201
3202#if defined(SWIGPYTHON_BUILTIN)
3203 inline PyObject* make_output_iterator_builtin (PyObject *pyself)
3204 {
3205 Py_INCREF(pyself)( ((PyObject*)(pyself))->ob_refcnt++);
3206 return pyself;
3207 }
3208#endif
3209}
3210
3211
3212SWIGINTERNstatic __attribute__ ((__unused__)) int
3213SWIG_AsVal_double (PyObject *obj, double *val)
3214{
3215 int res = SWIG_TypeError-5;
3216 if (PyFloat_Check(obj)((((PyObject*)(obj))->ob_type) == (&PyFloat_Type) || PyType_IsSubtype
((((PyObject*)(obj))->ob_type), (&PyFloat_Type)))
) {
3217 if (val) *val = PyFloat_AsDouble(obj);
3218 return SWIG_OK(0);
3219 } else if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3220 if (val) *val = PyInt_AsLong(obj);
3221 return SWIG_OK(0);
3222 } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3223 double v = PyLong_AsDouble(obj);
3224 if (!PyErr_Occurred()) {
3225 if (val) *val = v;
3226 return SWIG_OK(0);
3227 } else {
3228 PyErr_Clear();
3229 }
3230 }
3231#ifdef SWIG_PYTHON_CAST_MODE
3232 {
3233 int dispatch = 0;
3234 double d = PyFloat_AsDouble(obj);
3235 if (!PyErr_Occurred()) {
3236 if (val) *val = d;
3237 return SWIG_AddCast(SWIG_OK)((0));
3238 } else {
3239 PyErr_Clear();
3240 }
3241 if (!dispatch) {
3242 long v = PyLong_AsLong(obj);
3243 if (!PyErr_Occurred()) {
3244 if (val) *val = v;
3245 return SWIG_AddCast(SWIG_AddCast(SWIG_OK))(((0)));
3246 } else {
3247 PyErr_Clear();
3248 }
3249 }
3250 }
3251#endif
3252 return res;
3253}
3254
3255
3256#include <float.h>
3257
3258
3259#include <math.h>
3260
3261
3262SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int
3263SWIG_CanCastAsInteger(double *d, double min, double max) {
3264 double x = *d;
3265 if ((min <= x && x <= max)) {
3266 double fx = floor(x);
3267 double cx = ceil(x);
3268 double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */
3269 if ((errno(*__error()) == EDOM33) || (errno(*__error()) == ERANGE34)) {
3270 errno(*__error()) = 0;
3271 } else {
3272 double summ, reps, diff;
3273 if (rd < x) {
3274 diff = x - rd;
3275 } else if (rd > x) {
3276 diff = rd - x;
3277 } else {
3278 return 1;
3279 }
3280 summ = rd + x;
3281 reps = diff/summ;
3282 if (reps < 8*DBL_EPSILON2.2204460492503131e-16) {
3283 *d = rd;
3284 return 1;
3285 }
3286 }
3287 }
3288 return 0;
3289}
3290
3291
3292SWIGINTERNstatic __attribute__ ((__unused__)) int
3293SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val)
3294{
3295#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
3296 if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3297 long v = PyInt_AsLong(obj);
3298 if (v >= 0) {
3299 if (val) *val = v;
3300 return SWIG_OK(0);
3301 } else {
3302 return SWIG_OverflowError-7;
3303 }
3304 } else
3305#endif
3306 if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3307 unsigned long v = PyLong_AsUnsignedLong(obj);
3308 if (!PyErr_Occurred()) {
3309 if (val) *val = v;
3310 return SWIG_OK(0);
3311 } else {
3312 PyErr_Clear();
3313#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
3314 {
3315 long v = PyLong_AsLong(obj);
3316 if (!PyErr_Occurred()) {
3317 if (v < 0) {
3318 return SWIG_OverflowError-7;
3319 }
3320 } else {
3321 PyErr_Clear();
3322 }
3323 }
3324#endif
3325 }
3326 }
3327#ifdef SWIG_PYTHON_CAST_MODE
3328 {
3329 int dispatch = 0;
3330 unsigned long v = PyLong_AsUnsignedLong(obj);
3331 if (!PyErr_Occurred()) {
3332 if (val) *val = v;
3333 return SWIG_AddCast(SWIG_OK)((0));
3334 } else {
3335 PyErr_Clear();
3336 }
3337 if (!dispatch) {
3338 double d;
3339 int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d));
3340 if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX(9223372036854775807L *2UL+1UL))) {
3341 if (val) *val = (unsigned long)(d);
3342 return res;
3343 }
3344 }
3345 }
3346#endif
3347 return SWIG_TypeError-5;
3348}
3349
3350
3351SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int
3352SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3353{
3354 unsigned long v;
3355 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3356 if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< size_t >(v);
3357 return res;
3358}
3359
3360
3361 #define SWIG_From_longPyLong_FromLong PyLong_FromLong
3362
3363
3364SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
3365SWIG_From_ptrdiff_t (ptrdiff_t value)
3366{
3367 return SWIG_From_longPyLong_FromLong (static_cast< long >(value));
3368}
3369
3370
3371SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
3372 SWIG_From_bool (bool value)
3373{
3374 return PyBool_FromLong(value ? 1 : 0);
3375}
3376
3377
3378SWIGINTERNstatic __attribute__ ((__unused__)) int
3379SWIG_AsVal_long (PyObject *obj, long* val)
3380{
3381 if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3382 if (val) *val = PyInt_AsLong(obj);
3383 return SWIG_OK(0);
3384 } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3385 long v = PyLong_AsLong(obj);
3386 if (!PyErr_Occurred()) {
3387 if (val) *val = v;
3388 return SWIG_OK(0);
3389 } else {
3390 PyErr_Clear();
3391 }
3392 }
3393#ifdef SWIG_PYTHON_CAST_MODE
3394 {
3395 int dispatch = 0;
3396 long v = PyInt_AsLong(obj);
3397 if (!PyErr_Occurred()) {
3398 if (val) *val = v;
3399 return SWIG_AddCast(SWIG_OK)((0));
3400 } else {
3401 PyErr_Clear();
3402 }
3403 if (!dispatch) {
3404 double d;
3405 int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d));
3406 if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, LONG_MIN(-9223372036854775807L -1L), LONG_MAX9223372036854775807L)) {
3407 if (val) *val = (long)(d);
3408 return res;
3409 }
3410 }
3411 }
3412#endif
3413 return SWIG_TypeError-5;
3414}
3415
3416
3417SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int
3418SWIG_AsVal_ptrdiff_t (PyObject * obj, ptrdiff_t *val)
3419{
3420 long v;
3421 int res = SWIG_AsVal_long (obj, val ? &v : 0);
3422 if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< ptrdiff_t >(v);
3423 return res;
3424}
3425
3426
3427#include <stdexcept>
3428
3429
3430#include <algorithm>
3431
3432
3433#include <vector>
3434
3435
3436#include <utility>
3437
3438
3439#include <map>
3440#include <algorithm>
3441#include <stdexcept>
3442
3443
3444/* Put headers and other declarations here that are needed for compilation */
3445#include "GArf.hpp"
3446#include "GTools.hpp"
3447
3448
3449SWIGINTERNstatic __attribute__ ((__unused__)) swig_type_info*
3450SWIG_pchar_descriptor(void)
3451{
3452 static int init = 0;
3453 static swig_type_info* info = 0;
3454 if (!init) {
3455 info = SWIG_TypeQuery("_p_char")SWIG_TypeQueryModule(&swig_module, &swig_module, "_p_char"
)
;
3456 init = 1;
3457 }
3458 return info;
3459}
3460
3461
3462SWIGINTERNstatic __attribute__ ((__unused__)) int
3463SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
3464{
3465#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
3466 if (PyUnicode_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
28))) != 0)
)
3467#else
3468 if (PyString_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
27))) != 0)
)
3469#endif
3470 {
3471 char *cstr; Py_ssize_t len;
3472#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
3473 if (!alloc && cptr) {
3474 /* We can't allow converting without allocation, since the internal
3475 representation of string in Python 3 is UCS-2/UCS-4 but we require
3476 a UTF-8 representation.
3477 TODO(bhy) More detailed explanation */
3478 return SWIG_RuntimeError-3;
3479 }
3480 obj = PyUnicode_AsUTF8StringPyUnicodeUCS2_AsUTF8String(obj);
3481 PyBytes_AsStringAndSizePyString_AsStringAndSize(obj, &cstr, &len);
3482 if(alloc) *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1));
3483#else
3484 PyString_AsStringAndSize(obj, &cstr, &len);
3485#endif
3486 if (cptr) {
3487 if (alloc) {
3488 /*
3489 In python the user should not be able to modify the inner
3490 string representation. To warranty that, if you define
3491 SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string
3492 buffer is always returned.
3493
3494 The default behavior is just to return the pointer value,
3495 so, be careful.
3496 */
3497#if defined(SWIG_PYTHON_SAFE_CSTRINGS)
3498 if (*alloc != SWIG_OLDOBJ((0)))
3499#else
3500 if (*alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1)))
3501#endif
3502 {
3503 *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1)));
3504 *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1));
3505 }
3506 else {
3507 *cptr = cstr;
3508 *alloc = SWIG_OLDOBJ((0));
3509 }
3510 } else {
3511 #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
3512 assert(0)((void)0); /* Should never reach here in Python 3 */
3513 #endif
3514 *cptr = SWIG_Python_str_AsChar(obj);
3515 }
3516 }
3517 if (psize) *psize = len + 1;
3518#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
3519 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)
;
3520#endif
3521 return SWIG_OK(0);
3522 } else {
3523 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3524 if (pchar_descriptor) {
3525 void* vptr = 0;
3526 if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0)SWIG_Python_ConvertPtrAndOwn(obj, &vptr, pchar_descriptor
, 0, 0)
== SWIG_OK(0)) {
3527 if (cptr) *cptr = (char *) vptr;
3528 if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
3529 if (alloc) *alloc = SWIG_OLDOBJ((0));
3530 return SWIG_OK(0);
3531 }
3532 }
3533 }
3534 return SWIG_TypeError-5;
3535}
3536
3537
3538SWIGINTERNstatic __attribute__ ((__unused__)) int
3539SWIG_AsPtr_std_string (PyObject * obj, std::string **val)
3540{
3541 char* buf = 0 ; size_t size = 0; int alloc = SWIG_OLDOBJ((0));
3542 if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)
) >= 0)
) {
3543 if (buf) {
3544 if (val) *val = new std::string(buf, size - 1);
3545 if (alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) delete[] buf;
3546 return SWIG_NEWOBJ((0) | ((1 << 8) << 1));
3547 } else {
3548 if (val) *val = 0;
3549 return SWIG_OLDOBJ((0));
3550 }
3551 } else {
3552 static int init = 0;
3553 static swig_type_info* descriptor = 0;
3554 if (!init) {
3555 descriptor = SWIG_TypeQuery("std::string" " *")SWIG_TypeQueryModule(&swig_module, &swig_module, "std::string"
" *")
;
3556 init = 1;
3557 }
3558 if (descriptor) {
3559 std::string *vptr;
3560 int res = SWIG_ConvertPtr(obj, (void**)&vptr, descriptor, 0)SWIG_Python_ConvertPtrAndOwn(obj, (void**)&vptr, descriptor
, 0, 0)
;
3561 if (SWIG_IsOK(res)(res >= 0) && val) *val = vptr;
3562 return res;
3563 }
3564 }
3565 return SWIG_ERROR(-1);
3566}
3567
3568
3569SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
3570 SWIG_From_int (int value)
3571{
3572 return PyInt_FromLong((long) value);
3573}
3574
3575
3576#include <limits.h>
3577#if !defined(SWIG_NO_LLONG_MAX)
3578# if !defined(LLONG_MAX0x7fffffffffffffffLL) && defined(__GNUC__4) && defined (__LONG_LONG_MAX__9223372036854775807LL)
3579# define LLONG_MAX0x7fffffffffffffffLL __LONG_LONG_MAX__9223372036854775807LL
3580# define LLONG_MIN(-0x7fffffffffffffffLL-1) (-LLONG_MAX0x7fffffffffffffffLL - 1LL)
3581# define ULLONG_MAX0xffffffffffffffffULL (LLONG_MAX0x7fffffffffffffffLL * 2ULL + 1ULL)
3582# endif
3583#endif
3584
3585
3586SWIGINTERNstatic __attribute__ ((__unused__)) int
3587SWIG_AsVal_int (PyObject * obj, int *val)
3588{
3589 long v;
3590 int res = SWIG_AsVal_long (obj, &v);
3591 if (SWIG_IsOK(res)(res >= 0)) {
3592 if ((v < INT_MIN(-2147483647 -1) || v > INT_MAX2147483647)) {
3593 return SWIG_OverflowError-7;
3594 } else {
3595 if (val) *val = static_cast< int >(v);
3596 }
3597 }
3598 return res;
3599}
3600
3601
3602SWIGINTERNstatic __attribute__ ((__unused__)) int
3603SWIG_AsVal_bool (PyObject *obj, bool *val)
3604{
3605 int r = PyObject_IsTrue(obj);
3606 if (r == -1)
3607 return SWIG_ERROR(-1);
3608 if (val) *val = r ? true : false;
3609 return SWIG_OK(0);
3610}
3611
3612SWIGINTERNstatic __attribute__ ((__unused__)) double GArf___getitem__(GArf *self,int const &index){
3613 if (index >= 0 && index < self->size()) {
3614 return (*self)[index];
3615 }
3616 else {
3617 throw GException::out_of_range("__getitem__(int)", index, self->size());
3618 }
3619 }
3620
3621 #define SWIG_From_doublePyFloat_FromDouble PyFloat_FromDouble
3622
3623SWIGINTERNstatic __attribute__ ((__unused__)) void GArf___setitem__(GArf *self,int const &index,double const &value){
3624 if (index>=0 && index < self->size()) {
3625 (*self)[index] = value;
3626 return;
3627 }
3628 else {
3629 throw GException::out_of_range("__setitem__(int)", index, self->size());
3630 }
3631 }
3632SWIGINTERNstatic __attribute__ ((__unused__)) int GArf___len__(GArf *self){
3633 return (self->size());
3634 }
3635SWIGINTERNstatic __attribute__ ((__unused__)) GArf GArf_copy(GArf *self){
3636 return (*self);
3637 }
3638
3639/* Put headers and other declarations here that are needed for compilation */
3640#include "GPha.hpp"
3641#include "GTools.hpp"
3642
3643
3644SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
3645SWIG_FromCharPtrAndSize(const char* carray, size_t size)
3646{
3647 if (carray) {
3648 if (size > INT_MAX2147483647) {
3649 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3650 return pchar_descriptor ?
3651 SWIG_InternalNewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0)SWIG_Python_NewPointerObj(__null, const_cast< char * >(
carray), pchar_descriptor, 0)
: SWIG_Py_Void();
3652 } else {
3653#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
3654 return PyUnicode_FromStringAndSizePyUnicodeUCS2_FromStringAndSize(carray, static_cast< int >(size));
3655#else
3656 return PyString_FromStringAndSize(carray, static_cast< int >(size));
3657#endif
3658 }
3659 } else {
3660 return SWIG_Py_Void();
3661 }
3662}
3663
3664
3665SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
3666SWIG_From_std_string (const std::string& s)
3667{
3668 return SWIG_FromCharPtrAndSize(s.data(), s.size());
3669}
3670
3671SWIGINTERNstatic __attribute__ ((__unused__)) double GPha___getitem__(GPha *self,int const &index){
3672 if (index >= 0 && index < self->size()) {
3673 return (*self)[index];
3674 }
3675 else {
3676 throw GException::out_of_range("__getitem__(int)", index, self->size());
3677 }
3678 }
3679SWIGINTERNstatic __attribute__ ((__unused__)) void GPha___setitem__(GPha *self,int const &index,double const &value){
3680 if (index>=0 && index < self->size()) {
3681 (*self)[index] = value;
3682 return;
3683 }
3684 else {
3685 throw GException::out_of_range("__setitem__(int)", index, self->size());
3686 }
3687 }
3688SWIGINTERNstatic __attribute__ ((__unused__)) int GPha___len__(GPha *self){
3689 return (self->size());
3690 }
3691SWIGINTERNstatic __attribute__ ((__unused__)) GPha GPha_copy(GPha *self){
3692 return (*self);
3693 }
3694
3695/* Put headers and other declarations here that are needed for compilation */
3696#include "GRmf.hpp"
3697#include "GTools.hpp"
3698
3699
3700/* Put headers and other declarations here that are needed for compilation */
3701
3702
3703static int var_tuple_to_index(PyObject *input, int *ptr) {
3704 if (PySequence_Check(input)) {
3705 int size = PyObject_LengthPyObject_Size(input);
3706 if (size > 4) {
3707 PyErr_SetString(PyExc_ValueError,"Too many arguments in tuple");
3708 return 0;
3709 }
3710 ptr[0] = size;
3711 for (int i = 0; i < size; i++) {
3712 PyObject *o = PySequence_GetItem(input,i);
3713 if (!PyInt_Check(o)((((o)->ob_type)->tp_flags & ((1L<<23))) != 0
)
) {
3714 Py_XDECREF(o)do { if ((o) == __null) ; else do { if ( --((PyObject*)(o))->
ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(o)))->
ob_type)->tp_dealloc)((PyObject *)((PyObject *)(o)))); } while
(0); } while (0)
;
3715 PyErr_SetString(PyExc_ValueError,"Expecting a tuple of integers");
3716 return 0;
3717 }
3718 ptr[i+1] = (int)PyInt_AsLong(o);
3719 Py_DECREF(o)do { if ( --((PyObject*)(o))->ob_refcnt != 0) ; else ( (*(
((PyObject*)((PyObject *)(o)))->ob_type)->tp_dealloc)((
PyObject *)((PyObject *)(o)))); } while (0)
;
3720 }
3721 return 1;
3722 }
3723 else {
3724 ptr[0] = 1;
3725 if (!PyInt_Check(input)((((input)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3726 PyErr_SetString(PyExc_ValueError,"Expecting an integer");
3727 return 0;
3728 }
3729 ptr[1] = (int)PyInt_AsLong(input);
3730 return 1;
3731 }
3732}
3733
3734SWIGINTERNstatic __attribute__ ((__unused__)) double GRmf___getitem__(GRmf *self,int GTuple[2]){
3735 return self->at(GTuple[0], GTuple[1]);
3736 }
3737SWIGINTERNstatic __attribute__ ((__unused__)) void GRmf___setitem__(GRmf *self,int GTuple[2],double const &value){
3738 self->at(GTuple[0], GTuple[1]) = value;
3739 }
3740SWIGINTERNstatic __attribute__ ((__unused__)) int GRmf___len__(GRmf *self){
3741 return (self->size());
3742 }
3743SWIGINTERNstatic __attribute__ ((__unused__)) GRmf GRmf_copy(GRmf *self){
3744 return (*self);
3745 }
3746#ifdef __cplusplus199711L
3747extern "C" {
3748#endif
3749SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_SwigPyIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3750 PyObject *resultobj = 0;
3751 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3752 void *argp1 = 0 ;
3753 int res1 = 0 ;
3754 PyObject * obj0 = 0 ;
3755
3756 if (!PyArg_ParseTuple(args,(char *)"O:delete_SwigPyIterator",&obj0)) SWIG_failgoto fail;
3757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0x1 | 0, 0)
;
3758 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3759 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)
;
3760 }
3761 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3762 delete arg1;
3763 resultobj = SWIG_Py_Void();
3764 return resultobj;
3765fail:
3766 return NULL__null;
3767}
3768
3769
3770SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3771 PyObject *resultobj = 0;
3772 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3773 void *argp1 = 0 ;
3774 int res1 = 0 ;
3775 PyObject * obj0 = 0 ;
3776 PyObject *result = 0 ;
3777
3778 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_value",&obj0)) SWIG_failgoto fail;
3779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
3780 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3781 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)
;
3782 }
3783 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3784 try {
3785 result = (PyObject *)((swig::SwigPyIterator const *)arg1)->value();
3786 }
3787 catch(swig::stop_iteration &_e) {
3788 {
3789 (void)_e;
3790 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3791 SWIG_failgoto fail;
3792 }
3793 }
3794
3795 resultobj = result;
3796 return resultobj;
3797fail:
3798 return NULL__null;
3799}
3800
3801
3802SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3803 PyObject *resultobj = 0;
3804 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3805 size_t arg2 ;
3806 void *argp1 = 0 ;
3807 int res1 = 0 ;
3808 size_t val2 ;
3809 int ecode2 = 0 ;
3810 PyObject * obj0 = 0 ;
3811 PyObject * obj1 = 0 ;
3812 swig::SwigPyIterator *result = 0 ;
3813
3814 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_incr",&obj0,&obj1)) SWIG_failgoto fail;
3815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
3816 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3817 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)
;
3818 }
3819 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3820 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
3821 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
3822 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)
;
3823 }
3824 arg2 = static_cast< size_t >(val2);
3825 try {
3826 result = (swig::SwigPyIterator *)(arg1)->incr(arg2);
3827 }
3828 catch(swig::stop_iteration &_e) {
3829 {
3830 (void)_e;
3831 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3832 SWIG_failgoto fail;
3833 }
3834 }
3835
3836 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[11], 0
| 0)
;
3837 return resultobj;
3838fail:
3839 return NULL__null;
3840}
3841
3842
3843SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3844 PyObject *resultobj = 0;
3845 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3846 void *argp1 = 0 ;
3847 int res1 = 0 ;
3848 PyObject * obj0 = 0 ;
3849 swig::SwigPyIterator *result = 0 ;
3850
3851 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_incr",&obj0)) SWIG_failgoto fail;
3852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
3853 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3854 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)
;
3855 }
3856 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3857 try {
3858 result = (swig::SwigPyIterator *)(arg1)->incr();
3859 }
3860 catch(swig::stop_iteration &_e) {
3861 {
3862 (void)_e;
3863 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3864 SWIG_failgoto fail;
3865 }
3866 }
3867
3868 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[11], 0
| 0)
;
3869 return resultobj;
3870fail:
3871 return NULL__null;
3872}
3873
3874
3875SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr(PyObject *self, PyObject *args) {
3876 int argc;
3877 PyObject *argv[3];
3878 int ii;
3879
3880 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
3881 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
3882 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
3883 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
3884 }
3885 if (argc == 1) {
3886 int _v;
3887 void *vptr = 0;
3888 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11
], 0, 0)
;
3889 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
3890 if (_v) {
3891 return _wrap_SwigPyIterator_incr__SWIG_1(self, args);
3892 }
3893 }
3894 if (argc == 2) {
3895 int _v;
3896 void *vptr = 0;
3897 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11
], 0, 0)
;
3898 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
3899 if (_v) {
3900 {
3901 int res = SWIG_AsVal_size_t(argv[1], NULL__null);
3902 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
3903 }
3904 if (_v) {
3905 return _wrap_SwigPyIterator_incr__SWIG_0(self, args);
3906 }
3907 }
3908 }
3909
3910fail:
3911 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_incr'.\n"
3912 " Possible C/C++ prototypes are:\n"
3913 " swig::SwigPyIterator::incr(size_t)\n"
3914 " swig::SwigPyIterator::incr()\n");
3915 return 0;
3916}
3917
3918
3919SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3920 PyObject *resultobj = 0;
3921 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3922 size_t arg2 ;
3923 void *argp1 = 0 ;
3924 int res1 = 0 ;
3925 size_t val2 ;
3926 int ecode2 = 0 ;
3927 PyObject * obj0 = 0 ;
3928 PyObject * obj1 = 0 ;
3929 swig::SwigPyIterator *result = 0 ;
3930
3931 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_decr",&obj0,&obj1)) SWIG_failgoto fail;
3932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
3933 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3934 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)
;
3935 }
3936 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3937 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
3938 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
3939 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)
;
3940 }
3941 arg2 = static_cast< size_t >(val2);
3942 try {
3943 result = (swig::SwigPyIterator *)(arg1)->decr(arg2);
3944 }
3945 catch(swig::stop_iteration &_e) {
3946 {
3947 (void)_e;
3948 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3949 SWIG_failgoto fail;
3950 }
3951 }
3952
3953 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[11], 0
| 0)
;
3954 return resultobj;
3955fail:
3956 return NULL__null;
3957}
3958
3959
3960SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3961 PyObject *resultobj = 0;
3962 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3963 void *argp1 = 0 ;
3964 int res1 = 0 ;
3965 PyObject * obj0 = 0 ;
3966 swig::SwigPyIterator *result = 0 ;
3967
3968 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_decr",&obj0)) SWIG_failgoto fail;
3969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
3970 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3971 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)
;
3972 }
3973 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3974 try {
3975 result = (swig::SwigPyIterator *)(arg1)->decr();
3976 }
3977 catch(swig::stop_iteration &_e) {
3978 {
3979 (void)_e;
3980 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3981 SWIG_failgoto fail;
3982 }
3983 }
3984
3985 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[11], 0
| 0)
;
3986 return resultobj;
3987fail:
3988 return NULL__null;
3989}
3990
3991
3992SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr(PyObject *self, PyObject *args) {
3993 int argc;
3994 PyObject *argv[3];
3995 int ii;
3996
3997 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
3998 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
3999 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
4000 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
4001 }
4002 if (argc == 1) {
4003 int _v;
4004 void *vptr = 0;
4005 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11
], 0, 0)
;
4006 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4007 if (_v) {
4008 return _wrap_SwigPyIterator_decr__SWIG_1(self, args);
4009 }
4010 }
4011 if (argc == 2) {
4012 int _v;
4013 void *vptr = 0;
4014 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11
], 0, 0)
;
4015 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4016 if (_v) {
4017 {
4018 int res = SWIG_AsVal_size_t(argv[1], NULL__null);
4019 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4020 }
4021 if (_v) {
4022 return _wrap_SwigPyIterator_decr__SWIG_0(self, args);
4023 }
4024 }
4025 }
4026
4027fail:
4028 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_decr'.\n"
4029 " Possible C/C++ prototypes are:\n"
4030 " swig::SwigPyIterator::decr(size_t)\n"
4031 " swig::SwigPyIterator::decr()\n");
4032 return 0;
4033}
4034
4035
4036SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4037 PyObject *resultobj = 0;
4038 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4039 swig::SwigPyIterator *arg2 = 0 ;
4040 void *argp1 = 0 ;
4041 int res1 = 0 ;
4042 void *argp2 = 0 ;
4043 int res2 = 0 ;
4044 PyObject * obj0 = 0 ;
4045 PyObject * obj1 = 0 ;
4046 ptrdiff_t result;
4047
4048 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_distance",&obj0,&obj1)) SWIG_failgoto fail;
4049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
4050 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4051 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)
;
4052 }
4053 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4054 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[11]
, 0 | 0, 0)
;
4055 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4056 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)
;
4057 }
4058 if (!argp2) {
4059 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
)
;
4060 }
4061 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4062 try {
4063 result = ((swig::SwigPyIterator const *)arg1)->distance((swig::SwigPyIterator const &)*arg2);
4064 }
4065 catch(std::invalid_argument &_e) {
4066 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[
10]), SWIG_Python_NewPointerObj(__null, (new std::invalid_argument
(static_cast< const std::invalid_argument& >(_e))),
swig_types[10], 0x1))
; SWIG_failgoto fail;
4067 }
4068
4069 resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
4070 return resultobj;
4071fail:
4072 return NULL__null;
4073}
4074
4075
4076SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_equal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4077 PyObject *resultobj = 0;
4078 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4079 swig::SwigPyIterator *arg2 = 0 ;
4080 void *argp1 = 0 ;
4081 int res1 = 0 ;
4082 void *argp2 = 0 ;
4083 int res2 = 0 ;
4084 PyObject * obj0 = 0 ;
4085 PyObject * obj1 = 0 ;
4086 bool result;
4087
4088 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_equal",&obj0,&obj1)) SWIG_failgoto fail;
4089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
4090 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4091 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)
;
4092 }
4093 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4094 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[11]
, 0 | 0, 0)
;
4095 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4096 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)
;
4097 }
4098 if (!argp2) {
4099 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
)
;
4100 }
4101 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4102 try {
4103 result = (bool)((swig::SwigPyIterator const *)arg1)->equal((swig::SwigPyIterator const &)*arg2);
4104 }
4105 catch(std::invalid_argument &_e) {
4106 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[
10]), SWIG_Python_NewPointerObj(__null, (new std::invalid_argument
(static_cast< const std::invalid_argument& >(_e))),
swig_types[10], 0x1))
; SWIG_failgoto fail;
4107 }
4108
4109 resultobj = SWIG_From_bool(static_cast< bool >(result));
4110 return resultobj;
4111fail:
4112 return NULL__null;
4113}
4114
4115
4116SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4117 PyObject *resultobj = 0;
4118 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4119 void *argp1 = 0 ;
4120 int res1 = 0 ;
4121 PyObject * obj0 = 0 ;
4122 swig::SwigPyIterator *result = 0 ;
4123
4124 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_copy",&obj0)) SWIG_failgoto fail;
4125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
4126 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4127 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)
;
4128 }
4129 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4130 result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->copy();
4131 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[11], 0x1
| 0)
;
4132 return resultobj;
4133fail:
4134 return NULL__null;
4135}
4136
4137
4138SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4139 PyObject *resultobj = 0;
4140 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4141 void *argp1 = 0 ;
4142 int res1 = 0 ;
4143 PyObject * obj0 = 0 ;
4144 PyObject *result = 0 ;
4145
4146 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_next",&obj0)) SWIG_failgoto fail;
4147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
4148 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4149 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)
;
4150 }
4151 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4152 try {
4153 result = (PyObject *)(arg1)->next();
4154 }
4155 catch(swig::stop_iteration &_e) {
4156 {
4157 (void)_e;
4158 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4159 SWIG_failgoto fail;
4160 }
4161 }
4162
4163 resultobj = result;
4164 return resultobj;
4165fail:
4166 return NULL__null;
4167}
4168
4169
4170SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___next__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4171 PyObject *resultobj = 0;
4172 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4173 void *argp1 = 0 ;
4174 int res1 = 0 ;
4175 PyObject * obj0 = 0 ;
4176 PyObject *result = 0 ;
4177
4178 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator___next__",&obj0)) SWIG_failgoto fail;
4179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
4180 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4181 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)
;
4182 }
4183 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4184 try {
4185 result = (PyObject *)(arg1)->__next__();
4186 }
4187 catch(swig::stop_iteration &_e) {
4188 {
4189 (void)_e;
4190 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4191 SWIG_failgoto fail;
4192 }
4193 }
4194
4195 resultobj = result;
4196 return resultobj;
4197fail:
4198 return NULL__null;
4199}
4200
4201
4202SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_previous(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4203 PyObject *resultobj = 0;
4204 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4205 void *argp1 = 0 ;
4206 int res1 = 0 ;
4207 PyObject * obj0 = 0 ;
4208 PyObject *result = 0 ;
4209
4210 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_previous",&obj0)) SWIG_failgoto fail;
4211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
4212 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4213 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)
;
4214 }
4215 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4216 try {
4217 result = (PyObject *)(arg1)->previous();
4218 }
4219 catch(swig::stop_iteration &_e) {
4220 {
4221 (void)_e;
4222 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4223 SWIG_failgoto fail;
4224 }
4225 }
4226
4227 resultobj = result;
4228 return resultobj;
4229fail:
4230 return NULL__null;
4231}
4232
4233
4234SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_advance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4235 PyObject *resultobj = 0;
4236 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4237 ptrdiff_t arg2 ;
4238 void *argp1 = 0 ;
4239 int res1 = 0 ;
4240 ptrdiff_t val2 ;
4241 int ecode2 = 0 ;
4242 PyObject * obj0 = 0 ;
4243 PyObject * obj1 = 0 ;
4244 swig::SwigPyIterator *result = 0 ;
4245
4246 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_advance",&obj0,&obj1)) SWIG_failgoto fail;
4247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
4248 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4249 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)
;
4250 }
4251 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4252 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4253 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4254 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)
;
4255 }
4256 arg2 = static_cast< ptrdiff_t >(val2);
4257 try {
4258 result = (swig::SwigPyIterator *)(arg1)->advance(arg2);
4259 }
4260 catch(swig::stop_iteration &_e) {
4261 {
4262 (void)_e;
4263 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4264 SWIG_failgoto fail;
4265 }
4266 }
4267
4268 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[11], 0
| 0)
;
4269 return resultobj;
4270fail:
4271 return NULL__null;
4272}
4273
4274
4275SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4276 PyObject *resultobj = 0;
4277 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4278 swig::SwigPyIterator *arg2 = 0 ;
4279 void *argp1 = 0 ;
4280 int res1 = 0 ;
4281 void *argp2 = 0 ;
4282 int res2 = 0 ;
4283 PyObject * obj0 = 0 ;
4284 PyObject * obj1 = 0 ;
4285 bool result;
4286
4287 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___eq__",&obj0,&obj1)) SWIG_failgoto fail;
4288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
4289 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4290 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)
;
4291 }
4292 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4293 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[11]
, 0 | 0, 0)
;
4294 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4295 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)
;
4296 }
4297 if (!argp2) {
4298 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
)
;
4299 }
4300 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4301 result = (bool)((swig::SwigPyIterator const *)arg1)->operator ==((swig::SwigPyIterator const &)*arg2);
4302 resultobj = SWIG_From_bool(static_cast< bool >(result));
4303 return resultobj;
4304fail:
4305 return NULL__null;
4306}
4307
4308
4309SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4310 PyObject *resultobj = 0;
4311 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4312 swig::SwigPyIterator *arg2 = 0 ;
4313 void *argp1 = 0 ;
4314 int res1 = 0 ;
4315 void *argp2 = 0 ;
4316 int res2 = 0 ;
4317 PyObject * obj0 = 0 ;
4318 PyObject * obj1 = 0 ;
4319 bool result;
4320
4321 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___ne__",&obj0,&obj1)) SWIG_failgoto fail;
4322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
4323 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4324 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)
;
4325 }
4326 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4327 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[11]
, 0 | 0, 0)
;
4328 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4329 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)
;
4330 }
4331 if (!argp2) {
4332 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
)
;
4333 }
4334 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4335 result = (bool)((swig::SwigPyIterator const *)arg1)->operator !=((swig::SwigPyIterator const &)*arg2);
4336 resultobj = SWIG_From_bool(static_cast< bool >(result));
4337 return resultobj;
4338fail:
4339 return NULL__null;
4340}
4341
4342
4343SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4344 PyObject *resultobj = 0;
4345 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4346 ptrdiff_t arg2 ;
4347 void *argp1 = 0 ;
4348 int res1 = 0 ;
4349 ptrdiff_t val2 ;
4350 int ecode2 = 0 ;
4351 PyObject * obj0 = 0 ;
4352 PyObject * obj1 = 0 ;
4353 swig::SwigPyIterator *result = 0 ;
4354
4355 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___iadd__",&obj0,&obj1)) SWIG_failgoto fail;
4356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0x1 | 0, 0)
;
4357 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4358 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)
;
4359 }
4360 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4361 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4362 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4363 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)
;
4364 }
4365 arg2 = static_cast< ptrdiff_t >(val2);
4366 try {
4367 result = (swig::SwigPyIterator *) &(arg1)->operator +=(arg2);
4368 }
4369 catch(swig::stop_iteration &_e) {
4370 {
4371 (void)_e;
4372 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4373 SWIG_failgoto fail;
4374 }
4375 }
4376
4377 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[11], 0x1
| 0)
;
4378 return resultobj;
4379fail:
4380 return NULL__null;
4381}
4382
4383
4384SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4385 PyObject *resultobj = 0;
4386 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4387 ptrdiff_t arg2 ;
4388 void *argp1 = 0 ;
4389 int res1 = 0 ;
4390 ptrdiff_t val2 ;
4391 int ecode2 = 0 ;
4392 PyObject * obj0 = 0 ;
4393 PyObject * obj1 = 0 ;
4394 swig::SwigPyIterator *result = 0 ;
4395
4396 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___isub__",&obj0,&obj1)) SWIG_failgoto fail;
4397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0x1 | 0, 0)
;
4398 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4399 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)
;
4400 }
4401 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4402 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4403 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4404 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)
;
4405 }
4406 arg2 = static_cast< ptrdiff_t >(val2);
4407 try {
4408 result = (swig::SwigPyIterator *) &(arg1)->operator -=(arg2);
4409 }
4410 catch(swig::stop_iteration &_e) {
4411 {
4412 (void)_e;
4413 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4414 SWIG_failgoto fail;
4415 }
4416 }
4417
4418 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[11], 0x1
| 0)
;
4419 return resultobj;
4420fail:
4421 return NULL__null;
4422}
4423
4424
4425SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4426 PyObject *resultobj = 0;
4427 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4428 ptrdiff_t arg2 ;
4429 void *argp1 = 0 ;
4430 int res1 = 0 ;
4431 ptrdiff_t val2 ;
4432 int ecode2 = 0 ;
4433 PyObject * obj0 = 0 ;
4434 PyObject * obj1 = 0 ;
4435 swig::SwigPyIterator *result = 0 ;
4436
4437 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___add__",&obj0,&obj1)) SWIG_failgoto fail;
4438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
4439 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4440 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)
;
4441 }
4442 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4443 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4444 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4445 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)
;
4446 }
4447 arg2 = static_cast< ptrdiff_t >(val2);
4448 try {
4449 result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator +(arg2);
4450 }
4451 catch(swig::stop_iteration &_e) {
4452 {
4453 (void)_e;
4454 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4455 SWIG_failgoto fail;
4456 }
4457 }
4458
4459 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[11], 0x1
| 0)
;
4460 return resultobj;
4461fail:
4462 return NULL__null;
4463}
4464
4465
4466SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4467 PyObject *resultobj = 0;
4468 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4469 ptrdiff_t arg2 ;
4470 void *argp1 = 0 ;
4471 int res1 = 0 ;
4472 ptrdiff_t val2 ;
4473 int ecode2 = 0 ;
4474 PyObject * obj0 = 0 ;
4475 PyObject * obj1 = 0 ;
4476 swig::SwigPyIterator *result = 0 ;
4477
4478 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_failgoto fail;
4479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
4480 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4481 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)
;
4482 }
4483 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4484 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4485 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4486 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)
;
4487 }
4488 arg2 = static_cast< ptrdiff_t >(val2);
4489 try {
4490 result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator -(arg2);
4491 }
4492 catch(swig::stop_iteration &_e) {
4493 {
4494 (void)_e;
4495 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4496 SWIG_failgoto fail;
4497 }
4498 }
4499
4500 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[11], 0x1
| 0)
;
4501 return resultobj;
4502fail:
4503 return NULL__null;
4504}
4505
4506
4507SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4508 PyObject *resultobj = 0;
4509 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4510 swig::SwigPyIterator *arg2 = 0 ;
4511 void *argp1 = 0 ;
4512 int res1 = 0 ;
4513 void *argp2 = 0 ;
4514 int res2 = 0 ;
4515 PyObject * obj0 = 0 ;
4516 PyObject * obj1 = 0 ;
4517 ptrdiff_t result;
4518
4519 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_failgoto fail;
4520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
4521 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4522 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)
;
4523 }
4524 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4525 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[11]
, 0 | 0, 0)
;
4526 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4527 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)
;
4528 }
4529 if (!argp2) {
4530 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
)
;
4531 }
4532 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4533 result = ((swig::SwigPyIterator const *)arg1)->operator -((swig::SwigPyIterator const &)*arg2);
4534 resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
4535 return resultobj;
4536fail:
4537 return NULL__null;
4538}
4539
4540
4541SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub__(PyObject *self, PyObject *args) {
4542 int argc;
4543 PyObject *argv[3];
4544 int ii;
4545
4546 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
4547 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
4548 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
4549 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
4550 }
4551 if (argc == 2) {
4552 int _v;
4553 void *vptr = 0;
4554 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11
], 0, 0)
;
4555 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4556 if (_v) {
4557 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[11], 0, 0
)
;
4558 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4559 if (_v) {
4560 return _wrap_SwigPyIterator___sub____SWIG_1(self, args);
4561 }
4562 }
4563 }
4564 if (argc == 2) {
4565 int _v;
4566 void *vptr = 0;
4567 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11
], 0, 0)
;
4568 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4569 if (_v) {
4570 {
4571 int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL__null);
4572 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4573 }
4574 if (_v) {
4575 return _wrap_SwigPyIterator___sub____SWIG_0(self, args);
4576 }
4577 }
4578 }
4579
4580fail:
4581 Py_INCREF(Py_NotImplemented)( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt
++)
;
4582 return Py_NotImplemented(&_Py_NotImplementedStruct);
4583}
4584
4585
4586SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *SwigPyIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4587 PyObject *obj;
4588 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
4589 SWIG_TypeNewClientData(SWIGTYPE_p_swig__SwigPyIteratorswig_types[11], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
4590 return SWIG_Py_Void();
4591}
4592
4593SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GArf__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4594 PyObject *resultobj = 0;
4595 GArf *result = 0 ;
4596
4597 if (!PyArg_ParseTuple(args,(char *)":new_GArf")) SWIG_failgoto fail;
4598 {
4599 try {
4600 result = (GArf *)new GArf();
4601 }
4602 catch (const GException::out_of_range& e) {
4603 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4604 }
4605 catch (const GExceptionHandler& e) {
4606 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4607 }
4608 catch (const std::exception& e) {
4609 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4610 }
4611 }
4612 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GArf, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[0], ((
0x1 << 1) | 0x1) | 0)
;
4613 return resultobj;
4614fail:
4615 return NULL__null;
4616}
4617
4618
4619SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GArf__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4620 PyObject *resultobj = 0;
4621 std::string *arg1 = 0 ;
4622 int res1 = SWIG_OLDOBJ((0)) ;
4623 PyObject * obj0 = 0 ;
4624 GArf *result = 0 ;
4625
4626 if (!PyArg_ParseTuple(args,(char *)"O:new_GArf",&obj0)) SWIG_failgoto fail;
4627 {
4628 std::string *ptr = (std::string *)0;
4629 res1 = SWIG_AsPtr_std_string(obj0, &ptr);
4630 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GArf" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GArf" "', argument " "1"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
4632 }
4633 if (!ptr) {
4634 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GArf" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GArf" "', argument " "1"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
4635 }
4636 arg1 = ptr;
4637 }
4638 {
4639 try {
4640 result = (GArf *)new GArf((std::string const &)*arg1);
4641 }
4642 catch (const GException::out_of_range& e) {
4643 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4644 }
4645 catch (const GExceptionHandler& e) {
4646 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4647 }
4648 catch (const std::exception& e) {
4649 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4650 }
4651 }
4652 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GArf, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[0], ((
0x1 << 1) | 0x1) | 0)
;
4653 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
4654 return resultobj;
4655fail:
4656 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
4657 return NULL__null;
4658}
4659
4660
4661SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GArf__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4662 PyObject *resultobj = 0;
4663 GEbounds *arg1 = 0 ;
4664 void *argp1 = 0 ;
4665 int res1 = 0 ;
4666 PyObject * obj0 = 0 ;
4667 GArf *result = 0 ;
4668
4669 if (!PyArg_ParseTuple(args,(char *)"O:new_GArf",&obj0)) SWIG_failgoto fail;
4670 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GEbounds, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2],
0 | 0, 0)
;
4671 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GArf" "', argument " "1"" of type '" "GEbounds const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GArf" "', argument " "1"
" of type '" "GEbounds const &""'"); goto fail; } while(0
)
;
4673 }
4674 if (!argp1) {
4675 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GArf" "', argument " "1"" of type '" "GEbounds const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GArf" "', argument " "1"" of type '" "GEbounds const &"
"'"); goto fail; } while(0)
;
4676 }
4677 arg1 = reinterpret_cast< GEbounds * >(argp1);
4678 {
4679 try {
4680 result = (GArf *)new GArf((GEbounds const &)*arg1);
4681 }
4682 catch (const GException::out_of_range& e) {
4683 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4684 }
4685 catch (const GExceptionHandler& e) {
4686 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4687 }
4688 catch (const std::exception& e) {
4689 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4690 }
4691 }
4692 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GArf, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[0], ((
0x1 << 1) | 0x1) | 0)
;
4693 return resultobj;
4694fail:
4695 return NULL__null;
4696}
4697
4698
4699SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GArf__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4700 PyObject *resultobj = 0;
4701 GArf *arg1 = 0 ;
4702 void *argp1 = 0 ;
4703 int res1 = 0 ;
4704 PyObject * obj0 = 0 ;
4705 GArf *result = 0 ;
4706
4707 if (!PyArg_ParseTuple(args,(char *)"O:new_GArf",&obj0)) SWIG_failgoto fail;
4708 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GArf, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0],
0 | 0, 0)
;
4709 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GArf" "', argument " "1"" of type '" "GArf const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GArf" "', argument " "1"
" of type '" "GArf const &""'"); goto fail; } while(0)
;
4711 }
4712 if (!argp1) {
4713 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GArf" "', argument " "1"" of type '" "GArf const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GArf" "', argument " "1"" of type '" "GArf const &"
"'"); goto fail; } while(0)
;
4714 }
4715 arg1 = reinterpret_cast< GArf * >(argp1);
4716 {
4717 try {
4718 result = (GArf *)new GArf((GArf const &)*arg1);
4719 }
4720 catch (const GException::out_of_range& e) {
4721 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4722 }
4723 catch (const GExceptionHandler& e) {
4724 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4725 }
4726 catch (const std::exception& e) {
4727 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4728 }
4729 }
4730 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GArf, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[0], ((
0x1 << 1) | 0x1) | 0)
;
4731 return resultobj;
4732fail:
4733 return NULL__null;
4734}
4735
4736
4737SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GArf(PyObject *self, PyObject *args) {
4738 int argc;
4739 PyObject *argv[2];
4740 int ii;
4741
4742 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
4743 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
4744 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
4745 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
4746 }
4747 if (argc == 0) {
4748 return _wrap_new_GArf__SWIG_0(self, args);
4749 }
4750 if (argc == 1) {
4751 int _v;
4752 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GEbounds, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[2], 0, 0);
4753 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4754 if (_v) {
4755 return _wrap_new_GArf__SWIG_2(self, args);
4756 }
4757 }
4758 if (argc == 1) {
4759 int _v;
4760 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GArf, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[0], 0, 0);
4761 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4762 if (_v) {
4763 return _wrap_new_GArf__SWIG_3(self, args);
4764 }
4765 }
4766 if (argc == 1) {
4767 int _v;
4768 int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
4769 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4770 if (_v) {
4771 return _wrap_new_GArf__SWIG_1(self, args);
4772 }
4773 }
4774
4775fail:
4776 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GArf'.\n"
4777 " Possible C/C++ prototypes are:\n"
4778 " GArf::GArf()\n"
4779 " GArf::GArf(std::string const &)\n"
4780 " GArf::GArf(GEbounds const &)\n"
4781 " GArf::GArf(GArf const &)\n");
4782 return 0;
4783}
4784
4785
4786SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GArf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4787 PyObject *resultobj = 0;
4788 GArf *arg1 = (GArf *) 0 ;
4789 void *argp1 = 0 ;
4790 int res1 = 0 ;
4791 PyObject * obj0 = 0 ;
4792
4793 if (!PyArg_ParseTuple(args,(char *)"O:delete_GArf",&obj0)) SWIG_failgoto fail;
4794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GArf, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0],
0x1 | 0, 0)
;
4795 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GArf" "', argument " "1"" of type '" "GArf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GArf" "', argument "
"1"" of type '" "GArf *""'"); goto fail; } while(0)
;
4797 }
4798 arg1 = reinterpret_cast< GArf * >(argp1);
4799 {
4800 try {
4801 delete arg1;
4802 }
4803 catch (const GException::out_of_range& e) {
4804 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4805 }
4806 catch (const GExceptionHandler& e) {
4807 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4808 }
4809 catch (const std::exception& e) {
4810 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4811 }
4812 }
4813 resultobj = SWIG_Py_Void();
4814 return resultobj;
4815fail:
4816 return NULL__null;
4817}
4818
4819
4820SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GArf_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4821 PyObject *resultobj = 0;
4822 GArf *arg1 = (GArf *) 0 ;
4823 void *argp1 = 0 ;
4824 int res1 = 0 ;
4825 PyObject * obj0 = 0 ;
4826
4827 if (!PyArg_ParseTuple(args,(char *)"O:GArf_clear",&obj0)) SWIG_failgoto fail;
4828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GArf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0],
0 | 0, 0)
;
4829 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GArf_clear" "', argument " "1"" of type '" "GArf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GArf_clear" "', argument "
"1"" of type '" "GArf *""'"); goto fail; } while(0)
;
4831 }
4832 arg1 = reinterpret_cast< GArf * >(argp1);
4833 {
4834 try {
4835 (arg1)->clear();
4836 }
4837 catch (const GException::out_of_range& e) {
4838 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4839 }
4840 catch (const GExceptionHandler& e) {
4841 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4842 }
4843 catch (const std::exception& e) {
4844 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4845 }
4846 }
4847 resultobj = SWIG_Py_Void();
4848 return resultobj;
4849fail:
4850 return NULL__null;
4851}
4852
4853
4854SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GArf_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4855 PyObject *resultobj = 0;
4856 GArf *arg1 = (GArf *) 0 ;
4857 void *argp1 = 0 ;
4858 int res1 = 0 ;
4859 PyObject * obj0 = 0 ;
4860 GArf *result = 0 ;
4861
4862 if (!PyArg_ParseTuple(args,(char *)"O:GArf_clone",&obj0)) SWIG_failgoto fail;
4863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GArf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0],
0 | 0, 0)
;
4864 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GArf_clone" "', argument " "1"" of type '" "GArf const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GArf_clone" "', argument "
"1"" of type '" "GArf const *""'"); goto fail; } while(0)
;
4866 }
4867 arg1 = reinterpret_cast< GArf * >(argp1);
4868 {
4869 try {
4870 result = (GArf *)((GArf const *)arg1)->clone();
4871 }
4872 catch (const GException::out_of_range& e) {
4873 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4874 }
4875 catch (const GExceptionHandler& e) {
4876 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4877 }
4878 catch (const std::exception& e) {
4879 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4880 }
4881 }
4882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GArf, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[0], 0 |
0)
;
4883 return resultobj;
4884fail:
4885 return NULL__null;
4886}
4887
4888
4889SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GArf_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4890 PyObject *resultobj = 0;
4891 GArf *arg1 = (GArf *) 0 ;
4892 void *argp1 = 0 ;
4893 int res1 = 0 ;
4894 PyObject * obj0 = 0 ;
4895 int result;
4896
4897 if (!PyArg_ParseTuple(args,(char *)"O:GArf_size",&obj0)) SWIG_failgoto fail;
4898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GArf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0],
0 | 0, 0)
;
4899 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GArf_size" "', argument " "1"" of type '" "GArf const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GArf_size" "', argument " "1"
" of type '" "GArf const *""'"); goto fail; } while(0)
;
4901 }
4902 arg1 = reinterpret_cast< GArf * >(argp1);
4903 {
4904 try {
4905 result = (int)((GArf const *)arg1)->size();
4906 }
4907 catch (const GException::out_of_range& e) {
4908 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4909 }
4910 catch (const GExceptionHandler& e) {
4911 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4912 }
4913 catch (const std::exception& e) {
4914 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4915 }
4916 }
4917 resultobj = SWIG_From_int(static_cast< int >(result));
4918 return resultobj;
4919fail:
4920 return NULL__null;
4921}
4922
4923
4924SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GArf_at(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4925 PyObject *resultobj = 0;
4926 GArf *arg1 = (GArf *) 0 ;
4927 int *arg2 = 0 ;
4928 void *argp1 = 0 ;
4929 int res1 = 0 ;
4930 int temp2 ;
4931 int val2 ;
4932 int ecode2 = 0 ;
4933 PyObject * obj0 = 0 ;
4934 PyObject * obj1 = 0 ;
4935 double *result = 0 ;
4936
4937 if (!PyArg_ParseTuple(args,(char *)"OO:GArf_at",&obj0,&obj1)) SWIG_failgoto fail;
4938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GArf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0],
0 | 0, 0)
;
4939 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GArf_at" "', argument " "1"" of type '" "GArf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GArf_at" "', argument " "1"
" of type '" "GArf *""'"); goto fail; } while(0)
;
4941 }
4942 arg1 = reinterpret_cast< GArf * >(argp1);
4943 ecode2 = SWIG_AsVal_int(obj1, &val2);
4944 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4945 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GArf_at" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GArf_at" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
4946 }
4947 temp2 = static_cast< int >(val2);
4948 arg2 = &temp2;
4949 {
4950 try {
4951 result = (double *) &(arg1)->at((int const &)*arg2);
4952 }
4953 catch (const GException::out_of_range& e) {
4954 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4955 }
4956 catch (const GExceptionHandler& e) {
4957 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4958 }
4959 catch (const std::exception& e) {
4960 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4961 }
4962 }
4963 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[9], 0 |
0)
;
4964 return resultobj;
4965fail:
4966 return NULL__null;
4967}
4968
4969
4970SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GArf_ebounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4971 PyObject *resultobj = 0;
4972 GArf *arg1 = (GArf *) 0 ;
4973 void *argp1 = 0 ;
4974 int res1 = 0 ;
4975 PyObject * obj0 = 0 ;
4976 GEbounds *result = 0 ;
4977
4978 if (!PyArg_ParseTuple(args,(char *)"O:GArf_ebounds",&obj0)) SWIG_failgoto fail;
4979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GArf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0],
0 | 0, 0)
;
4980 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GArf_ebounds" "', argument " "1"" of type '" "GArf const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GArf_ebounds" "', argument "
"1"" of type '" "GArf const *""'"); goto fail; } while(0)
;
4982 }
4983 arg1 = reinterpret_cast< GArf * >(argp1);
4984 {
4985 try {
4986 result = (GEbounds *) &((GArf const *)arg1)->ebounds();
4987 }
4988 catch (const GException::out_of_range& e) {
4989 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4990 }
4991 catch (const GExceptionHandler& e) {
4992 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4993 }
4994 catch (const std::exception& e) {
4995 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4996 }
4997 }
4998 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[2], 0 |
0)
;
4999 return resultobj;
5000fail:
5001 return NULL__null;
5002}
5003
5004
5005SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GArf_load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5006 PyObject *resultobj = 0;
5007 GArf *arg1 = (GArf *) 0 ;
5008 std::string *arg2 = 0 ;
5009 void *argp1 = 0 ;
5010 int res1 = 0 ;
5011 int res2 = SWIG_OLDOBJ((0)) ;
5012 PyObject * obj0 = 0 ;
5013 PyObject * obj1 = 0 ;
5014
5015 if (!PyArg_ParseTuple(args,(char *)"OO:GArf_load",&obj0,&obj1)) SWIG_failgoto fail;
5016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GArf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0],
0 | 0, 0)
;
5017 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GArf_load" "', argument " "1"" of type '" "GArf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GArf_load" "', argument " "1"
" of type '" "GArf *""'"); goto fail; } while(0)
;
5019 }
5020 arg1 = reinterpret_cast< GArf * >(argp1);
5021 {
5022 std::string *ptr = (std::string *)0;
5023 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
5024 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5025 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GArf_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GArf_load" "', argument " "2"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
5026 }
5027 if (!ptr) {
5028 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GArf_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GArf_load" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
5029 }
5030 arg2 = ptr;
5031 }
5032 {
5033 try {
5034 (arg1)->load((std::string const &)*arg2);
5035 }
5036 catch (const GException::out_of_range& e) {
5037 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5038 }
5039 catch (const GExceptionHandler& e) {
5040 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5041 }
5042 catch (const std::exception& e) {
5043 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5044 }
5045 }
5046 resultobj = SWIG_Py_Void();
5047 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
5048 return resultobj;
5049fail:
5050 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
5051 return NULL__null;
5052}
5053
5054
5055SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GArf_save__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5056 PyObject *resultobj = 0;
5057 GArf *arg1 = (GArf *) 0 ;
5058 std::string *arg2 = 0 ;
5059 bool *arg3 = 0 ;
5060 void *argp1 = 0 ;
5061 int res1 = 0 ;
5062 int res2 = SWIG_OLDOBJ((0)) ;
5063 bool temp3 ;
5064 bool val3 ;
5065 int ecode3 = 0 ;
5066 PyObject * obj0 = 0 ;
5067 PyObject * obj1 = 0 ;
5068 PyObject * obj2 = 0 ;
5069
5070 if (!PyArg_ParseTuple(args,(char *)"OOO:GArf_save",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
5071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GArf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0],
0 | 0, 0)
;
5072 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GArf_save" "', argument " "1"" of type '" "GArf const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GArf_save" "', argument " "1"
" of type '" "GArf const *""'"); goto fail; } while(0)
;
5074 }
5075 arg1 = reinterpret_cast< GArf * >(argp1);
5076 {
5077 std::string *ptr = (std::string *)0;
5078 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
5079 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5080 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GArf_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GArf_save" "', argument " "2"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
5081 }
5082 if (!ptr) {
5083 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GArf_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GArf_save" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
5084 }
5085 arg2 = ptr;
5086 }
5087 ecode3 = SWIG_AsVal_bool(obj2, &val3);
5088 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
5089 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GArf_save" "', argument " "3"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GArf_save" "', argument "
"3"" of type '" "bool""'"); goto fail; } while(0)
;
5090 }
5091 temp3 = static_cast< bool >(val3);
5092 arg3 = &temp3;
5093 {
5094 try {
5095 ((GArf const *)arg1)->save((std::string const &)*arg2,(bool const &)*arg3);
5096 }
5097 catch (const GException::out_of_range& e) {
5098 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5099 }
5100 catch (const GExceptionHandler& e) {
5101 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5102 }
5103 catch (const std::exception& e) {
5104 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5105 }
5106 }
5107 resultobj = SWIG_Py_Void();
5108 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
5109 return resultobj;
5110fail:
5111 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
5112 return NULL__null;
5113}
5114
5115
5116SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GArf_save__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5117 PyObject *resultobj = 0;
5118 GArf *arg1 = (GArf *) 0 ;
5119 std::string *arg2 = 0 ;
5120 void *argp1 = 0 ;
5121 int res1 = 0 ;
5122 int res2 = SWIG_OLDOBJ((0)) ;
5123 PyObject * obj0 = 0 ;
5124 PyObject * obj1 = 0 ;
5125
5126 if (!PyArg_ParseTuple(args,(char *)"OO:GArf_save",&obj0,&obj1)) SWIG_failgoto fail;
5127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GArf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0],
0 | 0, 0)
;
5128 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GArf_save" "', argument " "1"" of type '" "GArf const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GArf_save" "', argument " "1"
" of type '" "GArf const *""'"); goto fail; } while(0)
;
5130 }
5131 arg1 = reinterpret_cast< GArf * >(argp1);
5132 {
5133 std::string *ptr = (std::string *)0;
5134 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
5135 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5136 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GArf_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GArf_save" "', argument " "2"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
5137 }
5138 if (!ptr) {
5139 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GArf_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GArf_save" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
5140 }
5141 arg2 = ptr;
5142 }
5143 {
5144 try {
5145 ((GArf const *)arg1)->save((std::string const &)*arg2);
5146 }
5147 catch (const GException::out_of_range& e) {
5148 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5149 }
5150 catch (const GExceptionHandler& e) {
5151 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5152 }
5153 catch (const std::exception& e) {
5154 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5155 }
5156 }
5157 resultobj = SWIG_Py_Void();
5158 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
5159 return resultobj;
5160fail:
5161 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
5162 return NULL__null;
5163}
5164
5165
5166SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GArf_save(PyObject *self, PyObject *args) {
5167 int argc;
5168 PyObject *argv[4];
5169 int ii;
5170
5171 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5172 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
5173 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
5174 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5175 }
5176 if (argc == 2) {
5177 int _v;
5178 void *vptr = 0;
5179 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GArf, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[0
], 0, 0)
;
5180 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5181 if (_v) {
5182 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
5183 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5184 if (_v) {
5185 return _wrap_GArf_save__SWIG_1(self, args);
5186 }
5187 }
5188 }
5189 if (argc == 3) {
5190 int _v;
5191 void *vptr = 0;
5192 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GArf, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[0
], 0, 0)
;
5193 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5194 if (_v) {
5195 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
5196 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5197 if (_v) {
5198 {
5199 int res = SWIG_AsVal_bool(argv[2], NULL__null);
5200 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5201 }
5202 if (_v) {
5203 return _wrap_GArf_save__SWIG_0(self, args);
5204 }
5205 }
5206 }
5207 }
5208
5209fail:
5210 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GArf_save'.\n"
5211 " Possible C/C++ prototypes are:\n"
5212 " GArf::save(std::string const &,bool const &) const\n"
5213 " GArf::save(std::string const &) const\n");
5214 return 0;
5215}
5216
5217
5218SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GArf_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5219 PyObject *resultobj = 0;
5220 GArf *arg1 = (GArf *) 0 ;
5221 GFitsTable *arg2 = 0 ;
5222 void *argp1 = 0 ;
5223 int res1 = 0 ;
5224 void *argp2 = 0 ;
5225 int res2 = 0 ;
5226 PyObject * obj0 = 0 ;
5227 PyObject * obj1 = 0 ;
5228
5229 if (!PyArg_ParseTuple(args,(char *)"OO:GArf_read",&obj0,&obj1)) SWIG_failgoto fail;
5230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GArf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0],
0 | 0, 0)
;
5231 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GArf_read" "', argument " "1"" of type '" "GArf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GArf_read" "', argument " "1"
" of type '" "GArf *""'"); goto fail; } while(0)
;
5233 }
5234 arg1 = reinterpret_cast< GArf * >(argp1);
5235 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFitsTable, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
5236 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5237 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GArf_read" "', argument " "2"" of type '" "GFitsTable const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GArf_read" "', argument " "2"
" of type '" "GFitsTable const &""'"); goto fail; } while
(0)
;
5238 }
5239 if (!argp2) {
5240 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GArf_read" "', argument " "2"" of type '" "GFitsTable const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GArf_read" "', argument " "2"" of type '" "GFitsTable const &"
"'"); goto fail; } while(0)
;
5241 }
5242 arg2 = reinterpret_cast< GFitsTable * >(argp2);
5243 {
5244 try {
5245 (arg1)->read((GFitsTable const &)*arg2);
5246 }
5247 catch (const GException::out_of_range& e) {
5248 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5249 }
5250 catch (const GExceptionHandler& e) {
5251 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5252 }
5253 catch (const std::exception& e) {
5254 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5255 }
5256 }
5257 resultobj = SWIG_Py_Void();
5258 return resultobj;
5259fail:
5260 return NULL__null;
5261}
5262
5263
5264SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GArf_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5265 PyObject *resultobj = 0;
5266 GArf *arg1 = (GArf *) 0 ;
5267 GFits *arg2 = 0 ;
5268 void *argp1 = 0 ;
5269 int res1 = 0 ;
5270 void *argp2 = 0 ;
5271 int res2 = 0 ;
5272 PyObject * obj0 = 0 ;
5273 PyObject * obj1 = 0 ;
5274
5275 if (!PyArg_ParseTuple(args,(char *)"OO:GArf_write",&obj0,&obj1)) SWIG_failgoto fail;
5276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GArf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0],
0 | 0, 0)
;
5277 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GArf_write" "', argument " "1"" of type '" "GArf const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GArf_write" "', argument "
"1"" of type '" "GArf const *""'"); goto fail; } while(0)
;
5279 }
5280 arg1 = reinterpret_cast< GArf * >(argp1);
5281 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFits, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[4],
0, 0)
;
5282 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5283 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GArf_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GArf_write" "', argument "
"2"" of type '" "GFits &""'"); goto fail; } while(0)
;
5284 }
5285 if (!argp2) {
5286 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GArf_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GArf_write" "', argument " "2"" of type '" "GFits &"
"'"); goto fail; } while(0)
;
5287 }
5288 arg2 = reinterpret_cast< GFits * >(argp2);
5289 {
5290 try {
5291 ((GArf const *)arg1)->write(*arg2);
5292 }
5293 catch (const GException::out_of_range& e) {
5294 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5295 }
5296 catch (const GExceptionHandler& e) {
5297 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5298 }
5299 catch (const std::exception& e) {
5300 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5301 }
5302 }
5303 resultobj = SWIG_Py_Void();
5304 return resultobj;
5305fail:
5306 return NULL__null;
5307}
5308
5309
5310SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GArf___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5311 PyObject *resultobj = 0;
5312 GArf *arg1 = (GArf *) 0 ;
5313 int *arg2 = 0 ;
5314 void *argp1 = 0 ;
5315 int res1 = 0 ;
5316 int temp2 ;
5317 int val2 ;
5318 int ecode2 = 0 ;
5319 PyObject * obj0 = 0 ;
5320 PyObject * obj1 = 0 ;
5321 double result;
5322
5323 if (!PyArg_ParseTuple(args,(char *)"OO:GArf___getitem__",&obj0,&obj1)) SWIG_failgoto fail;
5324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GArf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0],
0 | 0, 0)
;
5325 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GArf___getitem__" "', argument " "1"" of type '" "GArf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GArf___getitem__" "', argument "
"1"" of type '" "GArf *""'"); goto fail; } while(0)
;
5327 }
5328 arg1 = reinterpret_cast< GArf * >(argp1);
5329 ecode2 = SWIG_AsVal_int(obj1, &val2);
5330 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5331 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GArf___getitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GArf___getitem__" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
5332 }
5333 temp2 = static_cast< int >(val2);
5334 arg2 = &temp2;
5335 {
5336 try {
5337 result = (double)GArf___getitem__(arg1,(int const &)*arg2);
5338 }
5339 catch (const GException::out_of_range& e) {
5340 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5341 }
5342 catch (const GExceptionHandler& e) {
5343 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5344 }
5345 catch (const std::exception& e) {
5346 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5347 }
5348 }
5349 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
5350 return resultobj;
5351fail:
5352 return NULL__null;
5353}
5354
5355
5356SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GArf___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5357 PyObject *resultobj = 0;
5358 GArf *arg1 = (GArf *) 0 ;
5359 int *arg2 = 0 ;
5360 double *arg3 = 0 ;
5361 void *argp1 = 0 ;
5362 int res1 = 0 ;
5363 int temp2 ;
5364 int val2 ;
5365 int ecode2 = 0 ;
5366 double temp3 ;
5367 double val3 ;
5368 int ecode3 = 0 ;
5369 PyObject * obj0 = 0 ;
5370 PyObject * obj1 = 0 ;
5371 PyObject * obj2 = 0 ;
5372
5373 if (!PyArg_ParseTuple(args,(char *)"OOO:GArf___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
5374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GArf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0],
0 | 0, 0)
;
5375 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GArf___setitem__" "', argument " "1"" of type '" "GArf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GArf___setitem__" "', argument "
"1"" of type '" "GArf *""'"); goto fail; } while(0)
;
5377 }
5378 arg1 = reinterpret_cast< GArf * >(argp1);
5379 ecode2 = SWIG_AsVal_int(obj1, &val2);
5380 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5381 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GArf___setitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GArf___setitem__" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
5382 }
5383 temp2 = static_cast< int >(val2);
5384 arg2 = &temp2;
5385 ecode3 = SWIG_AsVal_double(obj2, &val3);
5386 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
5387 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GArf___setitem__" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GArf___setitem__" "', argument "
"3"" of type '" "double""'"); goto fail; } while(0)
;
5388 }
5389 temp3 = static_cast< double >(val3);
5390 arg3 = &temp3;
5391 {
5392 try {
5393 GArf___setitem__(arg1,(int const &)*arg2,(double const &)*arg3);
5394 }
5395 catch (const GException::out_of_range& e) {
5396 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5397 }
5398 catch (const GExceptionHandler& e) {
5399 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5400 }
5401 catch (const std::exception& e) {
5402 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5403 }
5404 }
5405 resultobj = SWIG_Py_Void();
5406 return resultobj;
5407fail:
5408 return NULL__null;
5409}
5410
5411
5412SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GArf___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5413 PyObject *resultobj = 0;
5414 GArf *arg1 = (GArf *) 0 ;
5415 void *argp1 = 0 ;
5416 int res1 = 0 ;
5417 PyObject * obj0 = 0 ;
5418 int result;
5419
5420 if (!PyArg_ParseTuple(args,(char *)"O:GArf___len__",&obj0)) SWIG_failgoto fail;
5421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GArf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0],
0 | 0, 0)
;
5422 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GArf___len__" "', argument " "1"" of type '" "GArf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GArf___len__" "', argument "
"1"" of type '" "GArf *""'"); goto fail; } while(0)
;
5424 }
5425 arg1 = reinterpret_cast< GArf * >(argp1);
5426 {
5427 try {
5428 result = (int)GArf___len__(arg1);
5429 }
5430 catch (const GException::out_of_range& e) {
5431 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5432 }
5433 catch (const GExceptionHandler& e) {
5434 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5435 }
5436 catch (const std::exception& e) {
5437 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5438 }
5439 }
5440 resultobj = SWIG_From_int(static_cast< int >(result));
5441 return resultobj;
5442fail:
5443 return NULL__null;
5444}
5445
5446
5447SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GArf_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5448 PyObject *resultobj = 0;
5449 GArf *arg1 = (GArf *) 0 ;
5450 void *argp1 = 0 ;
5451 int res1 = 0 ;
5452 PyObject * obj0 = 0 ;
5453 GArf result;
5454
5455 if (!PyArg_ParseTuple(args,(char *)"O:GArf_copy",&obj0)) SWIG_failgoto fail;
5456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GArf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0],
0 | 0, 0)
;
5457 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GArf_copy" "', argument " "1"" of type '" "GArf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GArf_copy" "', argument " "1"
" of type '" "GArf *""'"); goto fail; } while(0)
;
5459 }
5460 arg1 = reinterpret_cast< GArf * >(argp1);
5461 {
5462 try {
5463 result = GArf_copy(arg1);
5464 }
5465 catch (const GException::out_of_range& e) {
5466 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5467 }
5468 catch (const GExceptionHandler& e) {
5469 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5470 }
5471 catch (const std::exception& e) {
5472 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5473 }
5474 }
5475 resultobj = SWIG_NewPointerObj((new GArf(static_cast< const GArf& >(result))), SWIGTYPE_p_GArf, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GArf(static_cast< const
GArf& >(result))), swig_types[0], 0x1 | 0)
;
5476 return resultobj;
5477fail:
5478 return NULL__null;
5479}
5480
5481
5482SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GArf_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5483 PyObject *obj;
5484 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
5485 SWIG_TypeNewClientData(SWIGTYPE_p_GArfswig_types[0], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
5486 return SWIG_Py_Void();
5487}
5488
5489SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GPha__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5490 PyObject *resultobj = 0;
5491 GPha *result = 0 ;
5492
5493 if (!PyArg_ParseTuple(args,(char *)":new_GPha")) SWIG_failgoto fail;
5494 {
5495 try {
5496 result = (GPha *)new GPha();
5497 }
5498 catch (const GException::out_of_range& e) {
5499 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5500 }
5501 catch (const GExceptionHandler& e) {
5502 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5503 }
5504 catch (const std::exception& e) {
5505 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5506 }
5507 }
5508 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPha, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[6], ((
0x1 << 1) | 0x1) | 0)
;
5509 return resultobj;
5510fail:
5511 return NULL__null;
5512}
5513
5514
5515SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GPha__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5516 PyObject *resultobj = 0;
5517 std::string *arg1 = 0 ;
5518 int res1 = SWIG_OLDOBJ((0)) ;
5519 PyObject * obj0 = 0 ;
5520 GPha *result = 0 ;
5521
5522 if (!PyArg_ParseTuple(args,(char *)"O:new_GPha",&obj0)) SWIG_failgoto fail;
5523 {
5524 std::string *ptr = (std::string *)0;
5525 res1 = SWIG_AsPtr_std_string(obj0, &ptr);
5526 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GPha" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GPha" "', argument " "1"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
5528 }
5529 if (!ptr) {
5530 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GPha" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GPha" "', argument " "1"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
5531 }
5532 arg1 = ptr;
5533 }
5534 {
5535 try {
5536 result = (GPha *)new GPha((std::string const &)*arg1);
5537 }
5538 catch (const GException::out_of_range& e) {
5539 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5540 }
5541 catch (const GExceptionHandler& e) {
5542 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5543 }
5544 catch (const std::exception& e) {
5545 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5546 }
5547 }
5548 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPha, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[6], ((
0x1 << 1) | 0x1) | 0)
;
5549 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
5550 return resultobj;
5551fail:
5552 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
5553 return NULL__null;
5554}
5555
5556
5557SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GPha__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5558 PyObject *resultobj = 0;
5559 GEbounds *arg1 = 0 ;
5560 void *argp1 = 0 ;
5561 int res1 = 0 ;
5562 PyObject * obj0 = 0 ;
5563 GPha *result = 0 ;
5564
5565 if (!PyArg_ParseTuple(args,(char *)"O:new_GPha",&obj0)) SWIG_failgoto fail;
5566 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GEbounds, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2],
0 | 0, 0)
;
5567 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GPha" "', argument " "1"" of type '" "GEbounds const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GPha" "', argument " "1"
" of type '" "GEbounds const &""'"); goto fail; } while(0
)
;
5569 }
5570 if (!argp1) {
5571 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GPha" "', argument " "1"" of type '" "GEbounds const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GPha" "', argument " "1"" of type '" "GEbounds const &"
"'"); goto fail; } while(0)
;
5572 }
5573 arg1 = reinterpret_cast< GEbounds * >(argp1);
5574 {
5575 try {
5576 result = (GPha *)new GPha((GEbounds const &)*arg1);
5577 }
5578 catch (const GException::out_of_range& e) {
5579 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5580 }
5581 catch (const GExceptionHandler& e) {
5582 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5583 }
5584 catch (const std::exception& e) {
5585 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5586 }
5587 }
5588 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPha, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[6], ((
0x1 << 1) | 0x1) | 0)
;
5589 return resultobj;
5590fail:
5591 return NULL__null;
5592}
5593
5594
5595SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GPha__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5596 PyObject *resultobj = 0;
5597 int *arg1 = 0 ;
5598 int temp1 ;
5599 int val1 ;
5600 int ecode1 = 0 ;
5601 PyObject * obj0 = 0 ;
5602 GPha *result = 0 ;
5603
5604 if (!PyArg_ParseTuple(args,(char *)"O:new_GPha",&obj0)) SWIG_failgoto fail;
5605 ecode1 = SWIG_AsVal_int(obj0, &val1);
5606 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
5607 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GPha" "', argument " "1"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "new_GPha" "', argument "
"1"" of type '" "int""'"); goto fail; } while(0)
;
5608 }
5609 temp1 = static_cast< int >(val1);
5610 arg1 = &temp1;
5611 {
5612 try {
5613 result = (GPha *)new GPha((int const &)*arg1);
5614 }
5615 catch (const GException::out_of_range& e) {
5616 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5617 }
5618 catch (const GExceptionHandler& e) {
5619 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5620 }
5621 catch (const std::exception& e) {
5622 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5623 }
5624 }
5625 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPha, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[6], ((
0x1 << 1) | 0x1) | 0)
;
5626 return resultobj;
5627fail:
5628 return NULL__null;
5629}
5630
5631
5632SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GPha__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5633 PyObject *resultobj = 0;
5634 GPha *arg1 = 0 ;
5635 void *argp1 = 0 ;
5636 int res1 = 0 ;
5637 PyObject * obj0 = 0 ;
5638 GPha *result = 0 ;
5639
5640 if (!PyArg_ParseTuple(args,(char *)"O:new_GPha",&obj0)) SWIG_failgoto fail;
5641 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GPha, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
5642 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GPha" "', argument " "1"" of type '" "GPha const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GPha" "', argument " "1"
" of type '" "GPha const &""'"); goto fail; } while(0)
;
5644 }
5645 if (!argp1) {
5646 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GPha" "', argument " "1"" of type '" "GPha const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GPha" "', argument " "1"" of type '" "GPha const &"
"'"); goto fail; } while(0)
;
5647 }
5648 arg1 = reinterpret_cast< GPha * >(argp1);
5649 {
5650 try {
5651 result = (GPha *)new GPha((GPha const &)*arg1);
5652 }
5653 catch (const GException::out_of_range& e) {
5654 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5655 }
5656 catch (const GExceptionHandler& e) {
5657 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5658 }
5659 catch (const std::exception& e) {
5660 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5661 }
5662 }
5663 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPha, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[6], ((
0x1 << 1) | 0x1) | 0)
;
5664 return resultobj;
5665fail:
5666 return NULL__null;
5667}
5668
5669
5670SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GPha(PyObject *self, PyObject *args) {
5671 int argc;
5672 PyObject *argv[2];
5673 int ii;
5674
5675 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5676 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
5677 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
5678 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5679 }
5680 if (argc == 0) {
5681 return _wrap_new_GPha__SWIG_0(self, args);
5682 }
5683 if (argc == 1) {
5684 int _v;
5685 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GEbounds, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[2], 0, 0);
5686 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5687 if (_v) {
5688 return _wrap_new_GPha__SWIG_2(self, args);
5689 }
5690 }
5691 if (argc == 1) {
5692 int _v;
5693 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GPha, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[6], 0, 0);
5694 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5695 if (_v) {
5696 return _wrap_new_GPha__SWIG_4(self, args);
5697 }
5698 }
5699 if (argc == 1) {
5700 int _v;
5701 {
5702 int res = SWIG_AsVal_int(argv[0], NULL__null);
5703 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5704 }
5705 if (_v) {
5706 return _wrap_new_GPha__SWIG_3(self, args);
5707 }
5708 }
5709 if (argc == 1) {
5710 int _v;
5711 int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
5712 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5713 if (_v) {
5714 return _wrap_new_GPha__SWIG_1(self, args);
5715 }
5716 }
5717
5718fail:
5719 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GPha'.\n"
5720 " Possible C/C++ prototypes are:\n"
5721 " GPha::GPha()\n"
5722 " GPha::GPha(std::string const &)\n"
5723 " GPha::GPha(GEbounds const &)\n"
5724 " GPha::GPha(int const &)\n"
5725 " GPha::GPha(GPha const &)\n");
5726 return 0;
5727}
5728
5729
5730SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GPha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5731 PyObject *resultobj = 0;
5732 GPha *arg1 = (GPha *) 0 ;
5733 void *argp1 = 0 ;
5734 int res1 = 0 ;
5735 PyObject * obj0 = 0 ;
5736
5737 if (!PyArg_ParseTuple(args,(char *)"O:delete_GPha",&obj0)) SWIG_failgoto fail;
5738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPha, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0x1 | 0, 0)
;
5739 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GPha" "', argument " "1"" of type '" "GPha *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GPha" "', argument "
"1"" of type '" "GPha *""'"); goto fail; } while(0)
;
5741 }
5742 arg1 = reinterpret_cast< GPha * >(argp1);
5743 {
5744 try {
5745 delete arg1;
5746 }
5747 catch (const GException::out_of_range& e) {
5748 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5749 }
5750 catch (const GExceptionHandler& e) {
5751 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5752 }
5753 catch (const std::exception& e) {
5754 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5755 }
5756 }
5757 resultobj = SWIG_Py_Void();
5758 return resultobj;
5759fail:
5760 return NULL__null;
5761}
5762
5763
5764SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPha_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5765 PyObject *resultobj = 0;
5766 GPha *arg1 = (GPha *) 0 ;
5767 void *argp1 = 0 ;
5768 int res1 = 0 ;
5769 PyObject * obj0 = 0 ;
5770
5771 if (!PyArg_ParseTuple(args,(char *)"O:GPha_clear",&obj0)) SWIG_failgoto fail;
5772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPha, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
5773 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPha_clear" "', argument " "1"" of type '" "GPha *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPha_clear" "', argument "
"1"" of type '" "GPha *""'"); goto fail; } while(0)
;
5775 }
5776 arg1 = reinterpret_cast< GPha * >(argp1);
5777 {
5778 try {
5779 (arg1)->clear();
5780 }
5781 catch (const GException::out_of_range& e) {
5782 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5783 }
5784 catch (const GExceptionHandler& e) {
5785 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5786 }
5787 catch (const std::exception& e) {
5788 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5789 }
5790 }
5791 resultobj = SWIG_Py_Void();
5792 return resultobj;
5793fail:
5794 return NULL__null;
5795}
5796
5797
5798SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPha_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5799 PyObject *resultobj = 0;
5800 GPha *arg1 = (GPha *) 0 ;
5801 void *argp1 = 0 ;
5802 int res1 = 0 ;
5803 PyObject * obj0 = 0 ;
5804 GPha *result = 0 ;
5805
5806 if (!PyArg_ParseTuple(args,(char *)"O:GPha_clone",&obj0)) SWIG_failgoto fail;
5807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPha, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
5808 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPha_clone" "', argument " "1"" of type '" "GPha const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPha_clone" "', argument "
"1"" of type '" "GPha const *""'"); goto fail; } while(0)
;
5810 }
5811 arg1 = reinterpret_cast< GPha * >(argp1);
5812 {
5813 try {
5814 result = (GPha *)((GPha const *)arg1)->clone();
5815 }
5816 catch (const GException::out_of_range& e) {
5817 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5818 }
5819 catch (const GExceptionHandler& e) {
5820 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5821 }
5822 catch (const std::exception& e) {
5823 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5824 }
5825 }
5826 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPha, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[6], 0 |
0)
;
5827 return resultobj;
5828fail:
5829 return NULL__null;
5830}
5831
5832
5833SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPha_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5834 PyObject *resultobj = 0;
5835 GPha *arg1 = (GPha *) 0 ;
5836 void *argp1 = 0 ;
5837 int res1 = 0 ;
5838 PyObject * obj0 = 0 ;
5839 int result;
5840
5841 if (!PyArg_ParseTuple(args,(char *)"O:GPha_size",&obj0)) SWIG_failgoto fail;
5842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPha, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
5843 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPha_size" "', argument " "1"" of type '" "GPha const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPha_size" "', argument " "1"
" of type '" "GPha const *""'"); goto fail; } while(0)
;
5845 }
5846 arg1 = reinterpret_cast< GPha * >(argp1);
5847 {
5848 try {
5849 result = (int)((GPha const *)arg1)->size();
5850 }
5851 catch (const GException::out_of_range& e) {
5852 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5853 }
5854 catch (const GExceptionHandler& e) {
5855 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5856 }
5857 catch (const std::exception& e) {
5858 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5859 }
5860 }
5861 resultobj = SWIG_From_int(static_cast< int >(result));
5862 return resultobj;
5863fail:
5864 return NULL__null;
5865}
5866
5867
5868SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPha_at(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5869 PyObject *resultobj = 0;
5870 GPha *arg1 = (GPha *) 0 ;
5871 int *arg2 = 0 ;
5872 void *argp1 = 0 ;
5873 int res1 = 0 ;
5874 int temp2 ;
5875 int val2 ;
5876 int ecode2 = 0 ;
5877 PyObject * obj0 = 0 ;
5878 PyObject * obj1 = 0 ;
5879 double *result = 0 ;
5880
5881 if (!PyArg_ParseTuple(args,(char *)"OO:GPha_at",&obj0,&obj1)) SWIG_failgoto fail;
5882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPha, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
5883 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPha_at" "', argument " "1"" of type '" "GPha *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPha_at" "', argument " "1"
" of type '" "GPha *""'"); goto fail; } while(0)
;
5885 }
5886 arg1 = reinterpret_cast< GPha * >(argp1);
5887 ecode2 = SWIG_AsVal_int(obj1, &val2);
5888 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5889 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GPha_at" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GPha_at" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
5890 }
5891 temp2 = static_cast< int >(val2);
5892 arg2 = &temp2;
5893 {
5894 try {
5895 result = (double *) &(arg1)->at((int const &)*arg2);
5896 }
5897 catch (const GException::out_of_range& e) {
5898 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5899 }
5900 catch (const GExceptionHandler& e) {
5901 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5902 }
5903 catch (const std::exception& e) {
5904 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5905 }
5906 }
5907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[9], 0 |
0)
;
5908 return resultobj;
5909fail:
5910 return NULL__null;
5911}
5912
5913
5914SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPha_ebounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5915 PyObject *resultobj = 0;
5916 GPha *arg1 = (GPha *) 0 ;
5917 void *argp1 = 0 ;
5918 int res1 = 0 ;
5919 PyObject * obj0 = 0 ;
5920 GEbounds *result = 0 ;
5921
5922 if (!PyArg_ParseTuple(args,(char *)"O:GPha_ebounds",&obj0)) SWIG_failgoto fail;
5923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPha, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
5924 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPha_ebounds" "', argument " "1"" of type '" "GPha const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPha_ebounds" "', argument "
"1"" of type '" "GPha const *""'"); goto fail; } while(0)
;
5926 }
5927 arg1 = reinterpret_cast< GPha * >(argp1);
5928 {
5929 try {
5930 result = (GEbounds *) &((GPha const *)arg1)->ebounds();
5931 }
5932 catch (const GException::out_of_range& e) {
5933 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5934 }
5935 catch (const GExceptionHandler& e) {
5936 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5937 }
5938 catch (const std::exception& e) {
5939 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5940 }
5941 }
5942 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[2], 0 |
0)
;
5943 return resultobj;
5944fail:
5945 return NULL__null;
5946}
5947
5948
5949SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPha_counts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5950 PyObject *resultobj = 0;
5951 GPha *arg1 = (GPha *) 0 ;
5952 void *argp1 = 0 ;
5953 int res1 = 0 ;
5954 PyObject * obj0 = 0 ;
5955 double result;
5956
5957 if (!PyArg_ParseTuple(args,(char *)"O:GPha_counts",&obj0)) SWIG_failgoto fail;
5958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPha, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
5959 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPha_counts" "', argument " "1"" of type '" "GPha const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPha_counts" "', argument "
"1"" of type '" "GPha const *""'"); goto fail; } while(0)
;
5961 }
5962 arg1 = reinterpret_cast< GPha * >(argp1);
5963 {
5964 try {
5965 result = (double)((GPha const *)arg1)->counts();
5966 }
5967 catch (const GException::out_of_range& e) {
5968 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5969 }
5970 catch (const GExceptionHandler& e) {
5971 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5972 }
5973 catch (const std::exception& e) {
5974 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5975 }
5976 }
5977 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
5978 return resultobj;
5979fail:
5980 return NULL__null;
5981}
5982
5983
5984SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPha_underflow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5985 PyObject *resultobj = 0;
5986 GPha *arg1 = (GPha *) 0 ;
5987 void *argp1 = 0 ;
5988 int res1 = 0 ;
5989 PyObject * obj0 = 0 ;
5990 double *result = 0 ;
5991
5992 if (!PyArg_ParseTuple(args,(char *)"O:GPha_underflow",&obj0)) SWIG_failgoto fail;
5993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPha, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
5994 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPha_underflow" "', argument " "1"" of type '" "GPha const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPha_underflow" "', argument "
"1"" of type '" "GPha const *""'"); goto fail; } while(0)
;
5996 }
5997 arg1 = reinterpret_cast< GPha * >(argp1);
5998 {
5999 try {
6000 result = (double *) &((GPha const *)arg1)->underflow();
6001 }
6002 catch (const GException::out_of_range& e) {
6003 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6004 }
6005 catch (const GExceptionHandler& e) {
6006 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6007 }
6008 catch (const std::exception& e) {
6009 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6010 }
6011 }
6012 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result));
6013 return resultobj;
6014fail:
6015 return NULL__null;
6016}
6017
6018
6019SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPha_overflow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6020 PyObject *resultobj = 0;
6021 GPha *arg1 = (GPha *) 0 ;
6022 void *argp1 = 0 ;
6023 int res1 = 0 ;
6024 PyObject * obj0 = 0 ;
6025 double *result = 0 ;
6026
6027 if (!PyArg_ParseTuple(args,(char *)"O:GPha_overflow",&obj0)) SWIG_failgoto fail;
6028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPha, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
6029 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPha_overflow" "', argument " "1"" of type '" "GPha const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPha_overflow" "', argument "
"1"" of type '" "GPha const *""'"); goto fail; } while(0)
;
6031 }
6032 arg1 = reinterpret_cast< GPha * >(argp1);
6033 {
6034 try {
6035 result = (double *) &((GPha const *)arg1)->overflow();
6036 }
6037 catch (const GException::out_of_range& e) {
6038 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6039 }
6040 catch (const GExceptionHandler& e) {
6041 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6042 }
6043 catch (const std::exception& e) {
6044 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6045 }
6046 }
6047 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result));
6048 return resultobj;
6049fail:
6050 return NULL__null;
6051}
6052
6053
6054SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPha_outflow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6055 PyObject *resultobj = 0;
6056 GPha *arg1 = (GPha *) 0 ;
6057 void *argp1 = 0 ;
6058 int res1 = 0 ;
6059 PyObject * obj0 = 0 ;
6060 double *result = 0 ;
6061
6062 if (!PyArg_ParseTuple(args,(char *)"O:GPha_outflow",&obj0)) SWIG_failgoto fail;
6063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPha, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
6064 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPha_outflow" "', argument " "1"" of type '" "GPha const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPha_outflow" "', argument "
"1"" of type '" "GPha const *""'"); goto fail; } while(0)
;
6066 }
6067 arg1 = reinterpret_cast< GPha * >(argp1);
6068 {
6069 try {
6070 result = (double *) &((GPha const *)arg1)->outflow();
6071 }
6072 catch (const GException::out_of_range& e) {
6073 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6074 }
6075 catch (const GExceptionHandler& e) {
6076 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6077 }
6078 catch (const std::exception& e) {
6079 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6080 }
6081 }
6082 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result));
6083 return resultobj;
6084fail:
6085 return NULL__null;
6086}
6087
6088
6089SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPha_fill__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6090 PyObject *resultobj = 0;
6091 GPha *arg1 = (GPha *) 0 ;
6092 GEnergy *arg2 = 0 ;
6093 double *arg3 = 0 ;
6094 void *argp1 = 0 ;
6095 int res1 = 0 ;
6096 void *argp2 = 0 ;
6097 int res2 = 0 ;
6098 double temp3 ;
6099 double val3 ;
6100 int ecode3 = 0 ;
6101 PyObject * obj0 = 0 ;
6102 PyObject * obj1 = 0 ;
6103 PyObject * obj2 = 0 ;
6104
6105 if (!PyArg_ParseTuple(args,(char *)"OOO:GPha_fill",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
6106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPha, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
6107 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPha_fill" "', argument " "1"" of type '" "GPha *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPha_fill" "', argument " "1"
" of type '" "GPha *""'"); goto fail; } while(0)
;
6109 }
6110 arg1 = reinterpret_cast< GPha * >(argp1);
6111 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
6112 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6113 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GPha_fill" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GPha_fill" "', argument " "2"
" of type '" "GEnergy const &""'"); goto fail; } while(0)
;
6114 }
6115 if (!argp2) {
6116 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPha_fill" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GPha_fill" "', argument " "2"" of type '" "GEnergy const &"
"'"); goto fail; } while(0)
;
6117 }
6118 arg2 = reinterpret_cast< GEnergy * >(argp2);
6119 ecode3 = SWIG_AsVal_double(obj2, &val3);
6120 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
6121 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GPha_fill" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GPha_fill" "', argument "
"3"" of type '" "double""'"); goto fail; } while(0)
;
6122 }
6123 temp3 = static_cast< double >(val3);
6124 arg3 = &temp3;
6125 {
6126 try {
6127 (arg1)->fill((GEnergy const &)*arg2,(double const &)*arg3);
6128 }
6129 catch (const GException::out_of_range& e) {
6130 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6131 }
6132 catch (const GExceptionHandler& e) {
6133 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6134 }
6135 catch (const std::exception& e) {
6136 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6137 }
6138 }
6139 resultobj = SWIG_Py_Void();
6140 return resultobj;
6141fail:
6142 return NULL__null;
6143}
6144
6145
6146SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPha_fill__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6147 PyObject *resultobj = 0;
6148 GPha *arg1 = (GPha *) 0 ;
6149 GEnergy *arg2 = 0 ;
6150 void *argp1 = 0 ;
6151 int res1 = 0 ;
6152 void *argp2 = 0 ;
6153 int res2 = 0 ;
6154 PyObject * obj0 = 0 ;
6155 PyObject * obj1 = 0 ;
6156
6157 if (!PyArg_ParseTuple(args,(char *)"OO:GPha_fill",&obj0,&obj1)) SWIG_failgoto fail;
6158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPha, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
6159 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPha_fill" "', argument " "1"" of type '" "GPha *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPha_fill" "', argument " "1"
" of type '" "GPha *""'"); goto fail; } while(0)
;
6161 }
6162 arg1 = reinterpret_cast< GPha * >(argp1);
6163 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
6164 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6165 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GPha_fill" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GPha_fill" "', argument " "2"
" of type '" "GEnergy const &""'"); goto fail; } while(0)
;
6166 }
6167 if (!argp2) {
6168 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPha_fill" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GPha_fill" "', argument " "2"" of type '" "GEnergy const &"
"'"); goto fail; } while(0)
;
6169 }
6170 arg2 = reinterpret_cast< GEnergy * >(argp2);
6171 {
6172 try {
6173 (arg1)->fill((GEnergy const &)*arg2);
6174 }
6175 catch (const GException::out_of_range& e) {
6176 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6177 }
6178 catch (const GExceptionHandler& e) {
6179 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6180 }
6181 catch (const std::exception& e) {
6182 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6183 }
6184 }
6185 resultobj = SWIG_Py_Void();
6186 return resultobj;
6187fail:
6188 return NULL__null;
6189}
6190
6191
6192SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPha_fill(PyObject *self, PyObject *args) {
6193 int argc;
6194 PyObject *argv[4];
6195 int ii;
6196
6197 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
6198 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
6199 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
6200 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
6201 }
6202 if (argc == 2) {
6203 int _v;
6204 void *vptr = 0;
6205 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPha, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6
], 0, 0)
;
6206 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6207 if (_v) {
6208 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[3], 0, 0);
6209 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6210 if (_v) {
6211 return _wrap_GPha_fill__SWIG_1(self, args);
6212 }
6213 }
6214 }
6215 if (argc == 3) {
6216 int _v;
6217 void *vptr = 0;
6218 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPha, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6
], 0, 0)
;
6219 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6220 if (_v) {
6221 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[3], 0, 0);
6222 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6223 if (_v) {
6224 {
6225 int res = SWIG_AsVal_double(argv[2], NULL__null);
6226 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6227 }
6228 if (_v) {
6229 return _wrap_GPha_fill__SWIG_0(self, args);
6230 }
6231 }
6232 }
6233 }
6234
6235fail:
6236 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GPha_fill'.\n"
6237 " Possible C/C++ prototypes are:\n"
6238 " GPha::fill(GEnergy const &,double const &)\n"
6239 " GPha::fill(GEnergy const &)\n");
6240 return 0;
6241}
6242
6243
6244SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPha_load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6245 PyObject *resultobj = 0;
6246 GPha *arg1 = (GPha *) 0 ;
6247 std::string *arg2 = 0 ;
6248 void *argp1 = 0 ;
6249 int res1 = 0 ;
6250 int res2 = SWIG_OLDOBJ((0)) ;
6251 PyObject * obj0 = 0 ;
6252 PyObject * obj1 = 0 ;
6253
6254 if (!PyArg_ParseTuple(args,(char *)"OO:GPha_load",&obj0,&obj1)) SWIG_failgoto fail;
6255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPha, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
6256 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPha_load" "', argument " "1"" of type '" "GPha *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPha_load" "', argument " "1"
" of type '" "GPha *""'"); goto fail; } while(0)
;
6258 }
6259 arg1 = reinterpret_cast< GPha * >(argp1);
6260 {
6261 std::string *ptr = (std::string *)0;
6262 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
6263 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6264 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GPha_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GPha_load" "', argument " "2"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
6265 }
6266 if (!ptr) {
6267 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPha_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GPha_load" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
6268 }
6269 arg2 = ptr;
6270 }
6271 {
6272 try {
6273 (arg1)->load((std::string const &)*arg2);
6274 }
6275 catch (const GException::out_of_range& e) {
6276 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6277 }
6278 catch (const GExceptionHandler& e) {
6279 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6280 }
6281 catch (const std::exception& e) {
6282 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6283 }
6284 }
6285 resultobj = SWIG_Py_Void();
6286 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
6287 return resultobj;
6288fail:
6289 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
6290 return NULL__null;
6291}
6292
6293
6294SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPha_save__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6295 PyObject *resultobj = 0;
6296 GPha *arg1 = (GPha *) 0 ;
6297 std::string *arg2 = 0 ;
6298 bool *arg3 = 0 ;
6299 void *argp1 = 0 ;
6300 int res1 = 0 ;
6301 int res2 = SWIG_OLDOBJ((0)) ;
6302 bool temp3 ;
6303 bool val3 ;
6304 int ecode3 = 0 ;
6305 PyObject * obj0 = 0 ;
6306 PyObject * obj1 = 0 ;
6307 PyObject * obj2 = 0 ;
6308
6309 if (!PyArg_ParseTuple(args,(char *)"OOO:GPha_save",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
6310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPha, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
6311 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPha_save" "', argument " "1"" of type '" "GPha const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPha_save" "', argument " "1"
" of type '" "GPha const *""'"); goto fail; } while(0)
;
6313 }
6314 arg1 = reinterpret_cast< GPha * >(argp1);
6315 {
6316 std::string *ptr = (std::string *)0;
6317 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
6318 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6319 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GPha_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GPha_save" "', argument " "2"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
6320 }
6321 if (!ptr) {
6322 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPha_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GPha_save" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
6323 }
6324 arg2 = ptr;
6325 }
6326 ecode3 = SWIG_AsVal_bool(obj2, &val3);
6327 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
6328 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GPha_save" "', argument " "3"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GPha_save" "', argument "
"3"" of type '" "bool""'"); goto fail; } while(0)
;
6329 }
6330 temp3 = static_cast< bool >(val3);
6331 arg3 = &temp3;
6332 {
6333 try {
6334 ((GPha const *)arg1)->save((std::string const &)*arg2,(bool const &)*arg3);
6335 }
6336 catch (const GException::out_of_range& e) {
6337 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6338 }
6339 catch (const GExceptionHandler& e) {
6340 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6341 }
6342 catch (const std::exception& e) {
6343 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6344 }
6345 }
6346 resultobj = SWIG_Py_Void();
6347 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
6348 return resultobj;
6349fail:
6350 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
6351 return NULL__null;
6352}
6353
6354
6355SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPha_save__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6356 PyObject *resultobj = 0;
6357 GPha *arg1 = (GPha *) 0 ;
6358 std::string *arg2 = 0 ;
6359 void *argp1 = 0 ;
6360 int res1 = 0 ;
6361 int res2 = SWIG_OLDOBJ((0)) ;
6362 PyObject * obj0 = 0 ;
6363 PyObject * obj1 = 0 ;
6364
6365 if (!PyArg_ParseTuple(args,(char *)"OO:GPha_save",&obj0,&obj1)) SWIG_failgoto fail;
6366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPha, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
6367 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPha_save" "', argument " "1"" of type '" "GPha const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPha_save" "', argument " "1"
" of type '" "GPha const *""'"); goto fail; } while(0)
;
6369 }
6370 arg1 = reinterpret_cast< GPha * >(argp1);
6371 {
6372 std::string *ptr = (std::string *)0;
6373 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
6374 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6375 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GPha_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GPha_save" "', argument " "2"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
6376 }
6377 if (!ptr) {
6378 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPha_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GPha_save" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
6379 }
6380 arg2 = ptr;
6381 }
6382 {
6383 try {
6384 ((GPha const *)arg1)->save((std::string const &)*arg2);
6385 }
6386 catch (const GException::out_of_range& e) {
6387 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6388 }
6389 catch (const GExceptionHandler& e) {
6390 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6391 }
6392 catch (const std::exception& e) {
6393 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6394 }
6395 }
6396 resultobj = SWIG_Py_Void();
6397 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
6398 return resultobj;
6399fail:
6400 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
6401 return NULL__null;
6402}
6403
6404
6405SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPha_save(PyObject *self, PyObject *args) {
6406 int argc;
6407 PyObject *argv[4];
6408 int ii;
6409
6410 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
6411 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
6412 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
6413 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
6414 }
6415 if (argc == 2) {
6416 int _v;
6417 void *vptr = 0;
6418 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPha, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6
], 0, 0)
;
6419 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6420 if (_v) {
6421 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
6422 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6423 if (_v) {
6424 return _wrap_GPha_save__SWIG_1(self, args);
6425 }
6426 }
6427 }
6428 if (argc == 3) {
6429 int _v;
6430 void *vptr = 0;
6431 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPha, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6
], 0, 0)
;
6432 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6433 if (_v) {
6434 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
6435 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6436 if (_v) {
6437 {
6438 int res = SWIG_AsVal_bool(argv[2], NULL__null);
6439 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6440 }
6441 if (_v) {
6442 return _wrap_GPha_save__SWIG_0(self, args);
6443 }
6444 }
6445 }
6446 }
6447
6448fail:
6449 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GPha_save'.\n"
6450 " Possible C/C++ prototypes are:\n"
6451 " GPha::save(std::string const &,bool const &) const\n"
6452 " GPha::save(std::string const &) const\n");
6453 return 0;
6454}
6455
6456
6457SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPha_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6458 PyObject *resultobj = 0;
6459 GPha *arg1 = (GPha *) 0 ;
6460 GFitsTable *arg2 = 0 ;
6461 void *argp1 = 0 ;
6462 int res1 = 0 ;
6463 void *argp2 = 0 ;
6464 int res2 = 0 ;
6465 PyObject * obj0 = 0 ;
6466 PyObject * obj1 = 0 ;
6467
6468 if (!PyArg_ParseTuple(args,(char *)"OO:GPha_read",&obj0,&obj1)) SWIG_failgoto fail;
6469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPha, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
6470 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPha_read" "', argument " "1"" of type '" "GPha *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPha_read" "', argument " "1"
" of type '" "GPha *""'"); goto fail; } while(0)
;
6472 }
6473 arg1 = reinterpret_cast< GPha * >(argp1);
6474 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFitsTable, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
6475 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6476 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GPha_read" "', argument " "2"" of type '" "GFitsTable const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GPha_read" "', argument " "2"
" of type '" "GFitsTable const &""'"); goto fail; } while
(0)
;
6477 }
6478 if (!argp2) {
6479 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPha_read" "', argument " "2"" of type '" "GFitsTable const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GPha_read" "', argument " "2"" of type '" "GFitsTable const &"
"'"); goto fail; } while(0)
;
6480 }
6481 arg2 = reinterpret_cast< GFitsTable * >(argp2);
6482 {
6483 try {
6484 (arg1)->read((GFitsTable const &)*arg2);
6485 }
6486 catch (const GException::out_of_range& e) {
6487 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6488 }
6489 catch (const GExceptionHandler& e) {
6490 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6491 }
6492 catch (const std::exception& e) {
6493 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6494 }
6495 }
6496 resultobj = SWIG_Py_Void();
6497 return resultobj;
6498fail:
6499 return NULL__null;
6500}
6501
6502
6503SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPha_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6504 PyObject *resultobj = 0;
6505 GPha *arg1 = (GPha *) 0 ;
6506 GFits *arg2 = 0 ;
6507 void *argp1 = 0 ;
6508 int res1 = 0 ;
6509 void *argp2 = 0 ;
6510 int res2 = 0 ;
6511 PyObject * obj0 = 0 ;
6512 PyObject * obj1 = 0 ;
6513
6514 if (!PyArg_ParseTuple(args,(char *)"OO:GPha_write",&obj0,&obj1)) SWIG_failgoto fail;
6515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPha, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
6516 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPha_write" "', argument " "1"" of type '" "GPha const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPha_write" "', argument "
"1"" of type '" "GPha const *""'"); goto fail; } while(0)
;
6518 }
6519 arg1 = reinterpret_cast< GPha * >(argp1);
6520 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFits, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[4],
0, 0)
;
6521 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6522 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GPha_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GPha_write" "', argument "
"2"" of type '" "GFits &""'"); goto fail; } while(0)
;
6523 }
6524 if (!argp2) {
6525 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPha_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GPha_write" "', argument " "2"" of type '" "GFits &"
"'"); goto fail; } while(0)
;
6526 }
6527 arg2 = reinterpret_cast< GFits * >(argp2);
6528 {
6529 try {
6530 ((GPha const *)arg1)->write(*arg2);
6531 }
6532 catch (const GException::out_of_range& e) {
6533 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6534 }
6535 catch (const GExceptionHandler& e) {
6536 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6537 }
6538 catch (const std::exception& e) {
6539 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6540 }
6541 }
6542 resultobj = SWIG_Py_Void();
6543 return resultobj;
6544fail:
6545 return NULL__null;
6546}
6547
6548
6549SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPha_filename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6550 PyObject *resultobj = 0;
6551 GPha *arg1 = (GPha *) 0 ;
6552 void *argp1 = 0 ;
6553 int res1 = 0 ;
6554 PyObject * obj0 = 0 ;
6555 std::string *result = 0 ;
6556
6557 if (!PyArg_ParseTuple(args,(char *)"O:GPha_filename",&obj0)) SWIG_failgoto fail;
6558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPha, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
6559 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPha_filename" "', argument " "1"" of type '" "GPha const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPha_filename" "', argument "
"1"" of type '" "GPha const *""'"); goto fail; } while(0)
;
6561 }
6562 arg1 = reinterpret_cast< GPha * >(argp1);
6563 {
6564 try {
6565 result = (std::string *) &((GPha const *)arg1)->filename();
6566 }
6567 catch (const GException::out_of_range& e) {
6568 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6569 }
6570 catch (const GExceptionHandler& e) {
6571 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6572 }
6573 catch (const std::exception& e) {
6574 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6575 }
6576 }
6577 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
6578 return resultobj;
6579fail:
6580 return NULL__null;
6581}
6582
6583
6584SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPha___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6585 PyObject *resultobj = 0;
6586 GPha *arg1 = (GPha *) 0 ;
6587 int *arg2 = 0 ;
6588 void *argp1 = 0 ;
6589 int res1 = 0 ;
6590 int temp2 ;
6591 int val2 ;
6592 int ecode2 = 0 ;
6593 PyObject * obj0 = 0 ;
6594 PyObject * obj1 = 0 ;
6595 double result;
6596
6597 if (!PyArg_ParseTuple(args,(char *)"OO:GPha___getitem__",&obj0,&obj1)) SWIG_failgoto fail;
6598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPha, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
6599 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPha___getitem__" "', argument " "1"" of type '" "GPha *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPha___getitem__" "', argument "
"1"" of type '" "GPha *""'"); goto fail; } while(0)
;
6601 }
6602 arg1 = reinterpret_cast< GPha * >(argp1);
6603 ecode2 = SWIG_AsVal_int(obj1, &val2);
6604 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6605 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GPha___getitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GPha___getitem__" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
6606 }
6607 temp2 = static_cast< int >(val2);
6608 arg2 = &temp2;
6609 {
6610 try {
6611 result = (double)GPha___getitem__(arg1,(int const &)*arg2);
6612 }
6613 catch (const GException::out_of_range& e) {
6614 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6615 }
6616 catch (const GExceptionHandler& e) {
6617 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6618 }
6619 catch (const std::exception& e) {
6620 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6621 }
6622 }
6623 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
6624 return resultobj;
6625fail:
6626 return NULL__null;
6627}
6628
6629
6630SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPha___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6631 PyObject *resultobj = 0;
6632 GPha *arg1 = (GPha *) 0 ;
6633 int *arg2 = 0 ;
6634 double *arg3 = 0 ;
6635 void *argp1 = 0 ;
6636 int res1 = 0 ;
6637 int temp2 ;
6638 int val2 ;
6639 int ecode2 = 0 ;
6640 double temp3 ;
6641 double val3 ;
6642 int ecode3 = 0 ;
6643 PyObject * obj0 = 0 ;
6644 PyObject * obj1 = 0 ;
6645 PyObject * obj2 = 0 ;
6646
6647 if (!PyArg_ParseTuple(args,(char *)"OOO:GPha___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
6648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPha, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
6649 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPha___setitem__" "', argument " "1"" of type '" "GPha *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPha___setitem__" "', argument "
"1"" of type '" "GPha *""'"); goto fail; } while(0)
;
6651 }
6652 arg1 = reinterpret_cast< GPha * >(argp1);
6653 ecode2 = SWIG_AsVal_int(obj1, &val2);
6654 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6655 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GPha___setitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GPha___setitem__" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
6656 }
6657 temp2 = static_cast< int >(val2);
6658 arg2 = &temp2;
6659 ecode3 = SWIG_AsVal_double(obj2, &val3);
6660 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
6661 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GPha___setitem__" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GPha___setitem__" "', argument "
"3"" of type '" "double""'"); goto fail; } while(0)
;
6662 }
6663 temp3 = static_cast< double >(val3);
6664 arg3 = &temp3;
6665 {
6666 try {
6667 GPha___setitem__(arg1,(int const &)*arg2,(double const &)*arg3);
6668 }
6669 catch (const GException::out_of_range& e) {
6670 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6671 }
6672 catch (const GExceptionHandler& e) {
6673 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6674 }
6675 catch (const std::exception& e) {
6676 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6677 }
6678 }
6679 resultobj = SWIG_Py_Void();
6680 return resultobj;
6681fail:
6682 return NULL__null;
6683}
6684
6685
6686SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPha___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6687 PyObject *resultobj = 0;
6688 GPha *arg1 = (GPha *) 0 ;
6689 void *argp1 = 0 ;
6690 int res1 = 0 ;
6691 PyObject * obj0 = 0 ;
6692 int result;
6693
6694 if (!PyArg_ParseTuple(args,(char *)"O:GPha___len__",&obj0)) SWIG_failgoto fail;
6695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPha, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
6696 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPha___len__" "', argument " "1"" of type '" "GPha *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPha___len__" "', argument "
"1"" of type '" "GPha *""'"); goto fail; } while(0)
;
6698 }
6699 arg1 = reinterpret_cast< GPha * >(argp1);
6700 {
6701 try {
6702 result = (int)GPha___len__(arg1);
6703 }
6704 catch (const GException::out_of_range& e) {
6705 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6706 }
6707 catch (const GExceptionHandler& e) {
6708 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6709 }
6710 catch (const std::exception& e) {
6711 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6712 }
6713 }
6714 resultobj = SWIG_From_int(static_cast< int >(result));
6715 return resultobj;
6716fail:
6717 return NULL__null;
6718}
6719
6720
6721SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPha_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6722 PyObject *resultobj = 0;
6723 GPha *arg1 = (GPha *) 0 ;
6724 void *argp1 = 0 ;
6725 int res1 = 0 ;
6726 PyObject * obj0 = 0 ;
6727 GPha result;
6728
6729 if (!PyArg_ParseTuple(args,(char *)"O:GPha_copy",&obj0)) SWIG_failgoto fail;
6730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPha, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
6731 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPha_copy" "', argument " "1"" of type '" "GPha *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPha_copy" "', argument " "1"
" of type '" "GPha *""'"); goto fail; } while(0)
;
6733 }
6734 arg1 = reinterpret_cast< GPha * >(argp1);
6735 {
6736 try {
6737 result = GPha_copy(arg1);
6738 }
6739 catch (const GException::out_of_range& e) {
6740 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6741 }
6742 catch (const GExceptionHandler& e) {
6743 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6744 }
6745 catch (const std::exception& e) {
6746 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6747 }
6748 }
6749 resultobj = SWIG_NewPointerObj((new GPha(static_cast< const GPha& >(result))), SWIGTYPE_p_GPha, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GPha(static_cast< const
GPha& >(result))), swig_types[6], 0x1 | 0)
;
6750 return resultobj;
6751fail:
6752 return NULL__null;
6753}
6754
6755
6756SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GPha_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6757 PyObject *obj;
6758 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
6759 SWIG_TypeNewClientData(SWIGTYPE_p_GPhaswig_types[6], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
6760 return SWIG_Py_Void();
6761}
6762
6763SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GRmf__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6764 PyObject *resultobj = 0;
6765 GRmf *result = 0 ;
6766
6767 if (!PyArg_ParseTuple(args,(char *)":new_GRmf")) SWIG_failgoto fail;
6768 {
6769 try {
6770 result = (GRmf *)new GRmf();
6771 }
6772 catch (const GException::out_of_range& e) {
6773 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6774 }
6775 catch (const GExceptionHandler& e) {
6776 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6777 }
6778 catch (const std::exception& e) {
6779 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6780 }
6781 }
6782 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GRmf, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], ((
0x1 << 1) | 0x1) | 0)
;
6783 return resultobj;
6784fail:
6785 return NULL__null;
6786}
6787
6788
6789SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GRmf__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6790 PyObject *resultobj = 0;
6791 std::string *arg1 = 0 ;
6792 int res1 = SWIG_OLDOBJ((0)) ;
6793 PyObject * obj0 = 0 ;
6794 GRmf *result = 0 ;
6795
6796 if (!PyArg_ParseTuple(args,(char *)"O:new_GRmf",&obj0)) SWIG_failgoto fail;
6797 {
6798 std::string *ptr = (std::string *)0;
6799 res1 = SWIG_AsPtr_std_string(obj0, &ptr);
6800 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GRmf" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GRmf" "', argument " "1"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
6802 }
6803 if (!ptr) {
6804 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GRmf" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GRmf" "', argument " "1"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
6805 }
6806 arg1 = ptr;
6807 }
6808 {
6809 try {
6810 result = (GRmf *)new GRmf((std::string const &)*arg1);
6811 }
6812 catch (const GException::out_of_range& e) {
6813 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6814 }
6815 catch (const GExceptionHandler& e) {
6816 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6817 }
6818 catch (const std::exception& e) {
6819 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6820 }
6821 }
6822 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GRmf, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], ((
0x1 << 1) | 0x1) | 0)
;
6823 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
6824 return resultobj;
6825fail:
6826 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
6827 return NULL__null;
6828}
6829
6830
6831SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GRmf__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6832 PyObject *resultobj = 0;
6833 GEbounds *arg1 = 0 ;
6834 GEbounds *arg2 = 0 ;
6835 void *argp1 = 0 ;
6836 int res1 = 0 ;
6837 void *argp2 = 0 ;
6838 int res2 = 0 ;
6839 PyObject * obj0 = 0 ;
6840 PyObject * obj1 = 0 ;
6841 GRmf *result = 0 ;
6842
6843 if (!PyArg_ParseTuple(args,(char *)"OO:new_GRmf",&obj0,&obj1)) SWIG_failgoto fail;
6844 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GEbounds, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2],
0 | 0, 0)
;
6845 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GRmf" "', argument " "1"" of type '" "GEbounds const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GRmf" "', argument " "1"
" of type '" "GEbounds const &""'"); goto fail; } while(0
)
;
6847 }
6848 if (!argp1) {
6849 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GRmf" "', argument " "1"" of type '" "GEbounds const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GRmf" "', argument " "1"" of type '" "GEbounds const &"
"'"); goto fail; } while(0)
;
6850 }
6851 arg1 = reinterpret_cast< GEbounds * >(argp1);
6852 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEbounds, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[2],
0 | 0, 0)
;
6853 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6854 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GRmf" "', argument " "2"" of type '" "GEbounds const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "new_GRmf" "', argument " "2"
" of type '" "GEbounds const &""'"); goto fail; } while(0
)
;
6855 }
6856 if (!argp2) {
6857 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GRmf" "', argument " "2"" of type '" "GEbounds const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GRmf" "', argument " "2"" of type '" "GEbounds const &"
"'"); goto fail; } while(0)
;
6858 }
6859 arg2 = reinterpret_cast< GEbounds * >(argp2);
6860 {
6861 try {
6862 result = (GRmf *)new GRmf((GEbounds const &)*arg1,(GEbounds const &)*arg2);
6863 }
6864 catch (const GException::out_of_range& e) {
6865 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6866 }
6867 catch (const GExceptionHandler& e) {
6868 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6869 }
6870 catch (const std::exception& e) {
6871 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6872 }
6873 }
6874 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GRmf, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], ((
0x1 << 1) | 0x1) | 0)
;
6875 return resultobj;
6876fail:
6877 return NULL__null;
6878}
6879
6880
6881SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GRmf__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6882 PyObject *resultobj = 0;
6883 GRmf *arg1 = 0 ;
6884 void *argp1 = 0 ;
6885 int res1 = 0 ;
6886 PyObject * obj0 = 0 ;
6887 GRmf *result = 0 ;
6888
6889 if (!PyArg_ParseTuple(args,(char *)"O:new_GRmf",&obj0)) SWIG_failgoto fail;
6890 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GRmf, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
6891 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GRmf" "', argument " "1"" of type '" "GRmf const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GRmf" "', argument " "1"
" of type '" "GRmf const &""'"); goto fail; } while(0)
;
6893 }
6894 if (!argp1) {
6895 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GRmf" "', argument " "1"" of type '" "GRmf const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GRmf" "', argument " "1"" of type '" "GRmf const &"
"'"); goto fail; } while(0)
;
6896 }
6897 arg1 = reinterpret_cast< GRmf * >(argp1);
6898 {
6899 try {
6900 result = (GRmf *)new GRmf((GRmf const &)*arg1);
6901 }
6902 catch (const GException::out_of_range& e) {
6903 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6904 }
6905 catch (const GExceptionHandler& e) {
6906 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6907 }
6908 catch (const std::exception& e) {
6909 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6910 }
6911 }
6912 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GRmf, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], ((
0x1 << 1) | 0x1) | 0)
;
6913 return resultobj;
6914fail:
6915 return NULL__null;
6916}
6917
6918
6919SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GRmf(PyObject *self, PyObject *args) {
6920 int argc;
6921 PyObject *argv[3];
6922 int ii;
6923
6924 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
6925 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
6926 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
6927 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
6928 }
6929 if (argc == 0) {
6930 return _wrap_new_GRmf__SWIG_0(self, args);
6931 }
6932 if (argc == 1) {
6933 int _v;
6934 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GRmf, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[7], 0, 0);
6935 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6936 if (_v) {
6937 return _wrap_new_GRmf__SWIG_3(self, args);
6938 }
6939 }
6940 if (argc == 1) {
6941 int _v;
6942 int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
6943 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6944 if (_v) {
6945 return _wrap_new_GRmf__SWIG_1(self, args);
6946 }
6947 }
6948 if (argc == 2) {
6949 int _v;
6950 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GEbounds, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[2], 0, 0);
6951 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6952 if (_v) {
6953 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GEbounds, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[2], 0, 0);
6954 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6955 if (_v) {
6956 return _wrap_new_GRmf__SWIG_2(self, args);
6957 }
6958 }
6959 }
6960
6961fail:
6962 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GRmf'.\n"
6963 " Possible C/C++ prototypes are:\n"
6964 " GRmf::GRmf()\n"
6965 " GRmf::GRmf(std::string const &)\n"
6966 " GRmf::GRmf(GEbounds const &,GEbounds const &)\n"
6967 " GRmf::GRmf(GRmf const &)\n");
6968 return 0;
6969}
6970
6971
6972SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GRmf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6973 PyObject *resultobj = 0;
6974 GRmf *arg1 = (GRmf *) 0 ;
6975 void *argp1 = 0 ;
6976 int res1 = 0 ;
6977 PyObject * obj0 = 0 ;
6978
6979 if (!PyArg_ParseTuple(args,(char *)"O:delete_GRmf",&obj0)) SWIG_failgoto fail;
6980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRmf, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0x1 | 0, 0)
;
6981 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GRmf" "', argument " "1"" of type '" "GRmf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GRmf" "', argument "
"1"" of type '" "GRmf *""'"); goto fail; } while(0)
;
6983 }
6984 arg1 = reinterpret_cast< GRmf * >(argp1);
6985 {
6986 try {
6987 delete arg1;
6988 }
6989 catch (const GException::out_of_range& e) {
6990 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6991 }
6992 catch (const GExceptionHandler& e) {
6993 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6994 }
6995 catch (const std::exception& e) {
6996 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6997 }
6998 }
6999 resultobj = SWIG_Py_Void();
7000 return resultobj;
7001fail:
7002 return NULL__null;
7003}
7004
7005
7006SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRmf_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7007 PyObject *resultobj = 0;
7008 GRmf *arg1 = (GRmf *) 0 ;
7009 void *argp1 = 0 ;
7010 int res1 = 0 ;
7011 PyObject * obj0 = 0 ;
7012
7013 if (!PyArg_ParseTuple(args,(char *)"O:GRmf_clear",&obj0)) SWIG_failgoto fail;
7014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRmf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
7015 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRmf_clear" "', argument " "1"" of type '" "GRmf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GRmf_clear" "', argument "
"1"" of type '" "GRmf *""'"); goto fail; } while(0)
;
7017 }
7018 arg1 = reinterpret_cast< GRmf * >(argp1);
7019 {
7020 try {
7021 (arg1)->clear();
7022 }
7023 catch (const GException::out_of_range& e) {
7024 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7025 }
7026 catch (const GExceptionHandler& e) {
7027 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7028 }
7029 catch (const std::exception& e) {
7030 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7031 }
7032 }
7033 resultobj = SWIG_Py_Void();
7034 return resultobj;
7035fail:
7036 return NULL__null;
7037}
7038
7039
7040SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRmf_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7041 PyObject *resultobj = 0;
7042 GRmf *arg1 = (GRmf *) 0 ;
7043 void *argp1 = 0 ;
7044 int res1 = 0 ;
7045 PyObject * obj0 = 0 ;
7046 GRmf *result = 0 ;
7047
7048 if (!PyArg_ParseTuple(args,(char *)"O:GRmf_clone",&obj0)) SWIG_failgoto fail;
7049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRmf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
7050 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRmf_clone" "', argument " "1"" of type '" "GRmf const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GRmf_clone" "', argument "
"1"" of type '" "GRmf const *""'"); goto fail; } while(0)
;
7052 }
7053 arg1 = reinterpret_cast< GRmf * >(argp1);
7054 {
7055 try {
7056 result = (GRmf *)((GRmf const *)arg1)->clone();
7057 }
7058 catch (const GException::out_of_range& e) {
7059 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7060 }
7061 catch (const GExceptionHandler& e) {
7062 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7063 }
7064 catch (const std::exception& e) {
7065 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7066 }
7067 }
7068 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GRmf, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
7069 return resultobj;
7070fail:
7071 return NULL__null;
7072}
7073
7074
7075SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRmf_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7076 PyObject *resultobj = 0;
7077 GRmf *arg1 = (GRmf *) 0 ;
7078 void *argp1 = 0 ;
7079 int res1 = 0 ;
7080 PyObject * obj0 = 0 ;
7081 int result;
7082
7083 if (!PyArg_ParseTuple(args,(char *)"O:GRmf_size",&obj0)) SWIG_failgoto fail;
7084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRmf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
7085 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRmf_size" "', argument " "1"" of type '" "GRmf const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GRmf_size" "', argument " "1"
" of type '" "GRmf const *""'"); goto fail; } while(0)
;
7087 }
7088 arg1 = reinterpret_cast< GRmf * >(argp1);
7089 {
7090 try {
7091 result = (int)((GRmf const *)arg1)->size();
7092 }
7093 catch (const GException::out_of_range& e) {
7094 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7095 }
7096 catch (const GExceptionHandler& e) {
7097 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7098 }
7099 catch (const std::exception& e) {
7100 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7101 }
7102 }
7103 resultobj = SWIG_From_int(static_cast< int >(result));
7104 return resultobj;
7105fail:
7106 return NULL__null;
7107}
7108
7109
7110SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRmf_ntrue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7111 PyObject *resultobj = 0;
7112 GRmf *arg1 = (GRmf *) 0 ;
7113 void *argp1 = 0 ;
7114 int res1 = 0 ;
7115 PyObject * obj0 = 0 ;
7116 int result;
7117
7118 if (!PyArg_ParseTuple(args,(char *)"O:GRmf_ntrue",&obj0)) SWIG_failgoto fail;
7119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRmf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
7120 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRmf_ntrue" "', argument " "1"" of type '" "GRmf const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GRmf_ntrue" "', argument "
"1"" of type '" "GRmf const *""'"); goto fail; } while(0)
;
7122 }
7123 arg1 = reinterpret_cast< GRmf * >(argp1);
7124 {
7125 try {
7126 result = (int)((GRmf const *)arg1)->ntrue();
7127 }
7128 catch (const GException::out_of_range& e) {
7129 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7130 }
7131 catch (const GExceptionHandler& e) {
7132 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7133 }
7134 catch (const std::exception& e) {
7135 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7136 }
7137 }
7138 resultobj = SWIG_From_int(static_cast< int >(result));
7139 return resultobj;
7140fail:
7141 return NULL__null;
7142}
7143
7144
7145SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRmf_nmeasured(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7146 PyObject *resultobj = 0;
7147 GRmf *arg1 = (GRmf *) 0 ;
7148 void *argp1 = 0 ;
7149 int res1 = 0 ;
7150 PyObject * obj0 = 0 ;
7151 int result;
7152
7153 if (!PyArg_ParseTuple(args,(char *)"O:GRmf_nmeasured",&obj0)) SWIG_failgoto fail;
7154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRmf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
7155 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRmf_nmeasured" "', argument " "1"" of type '" "GRmf const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GRmf_nmeasured" "', argument "
"1"" of type '" "GRmf const *""'"); goto fail; } while(0)
;
7157 }
7158 arg1 = reinterpret_cast< GRmf * >(argp1);
7159 {
7160 try {
7161 result = (int)((GRmf const *)arg1)->nmeasured();
7162 }
7163 catch (const GException::out_of_range& e) {
7164 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7165 }
7166 catch (const GExceptionHandler& e) {
7167 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7168 }
7169 catch (const std::exception& e) {
7170 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7171 }
7172 }
7173 resultobj = SWIG_From_int(static_cast< int >(result));
7174 return resultobj;
7175fail:
7176 return NULL__null;
7177}
7178
7179
7180SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRmf_at(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7181 PyObject *resultobj = 0;
7182 GRmf *arg1 = (GRmf *) 0 ;
7183 int *arg2 = 0 ;
7184 int *arg3 = 0 ;
7185 void *argp1 = 0 ;
7186 int res1 = 0 ;
7187 int temp2 ;
7188 int val2 ;
7189 int ecode2 = 0 ;
7190 int temp3 ;
7191 int val3 ;
7192 int ecode3 = 0 ;
7193 PyObject * obj0 = 0 ;
7194 PyObject * obj1 = 0 ;
7195 PyObject * obj2 = 0 ;
7196 double *result = 0 ;
7197
7198 if (!PyArg_ParseTuple(args,(char *)"OOO:GRmf_at",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
7199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRmf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
7200 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRmf_at" "', argument " "1"" of type '" "GRmf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GRmf_at" "', argument " "1"
" of type '" "GRmf *""'"); goto fail; } while(0)
;
7202 }
7203 arg1 = reinterpret_cast< GRmf * >(argp1);
7204 ecode2 = SWIG_AsVal_int(obj1, &val2);
7205 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
7206 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GRmf_at" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GRmf_at" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
7207 }
7208 temp2 = static_cast< int >(val2);
7209 arg2 = &temp2;
7210 ecode3 = SWIG_AsVal_int(obj2, &val3);
7211 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
7212 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GRmf_at" "', argument " "3"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GRmf_at" "', argument "
"3"" of type '" "int""'"); goto fail; } while(0)
;
7213 }
7214 temp3 = static_cast< int >(val3);
7215 arg3 = &temp3;
7216 {
7217 try {
7218 result = (double *) &(arg1)->at((int const &)*arg2,(int const &)*arg3);
7219 }
7220 catch (const GException::out_of_range& e) {
7221 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7222 }
7223 catch (const GExceptionHandler& e) {
7224 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7225 }
7226 catch (const std::exception& e) {
7227 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7228 }
7229 }
7230 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[9], 0 |
0)
;
7231 return resultobj;
7232fail:
7233 return NULL__null;
7234}
7235
7236
7237SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRmf_etrue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7238 PyObject *resultobj = 0;
7239 GRmf *arg1 = (GRmf *) 0 ;
7240 void *argp1 = 0 ;
7241 int res1 = 0 ;
7242 PyObject * obj0 = 0 ;
7243 GEbounds *result = 0 ;
7244
7245 if (!PyArg_ParseTuple(args,(char *)"O:GRmf_etrue",&obj0)) SWIG_failgoto fail;
7246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRmf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
7247 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRmf_etrue" "', argument " "1"" of type '" "GRmf const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GRmf_etrue" "', argument "
"1"" of type '" "GRmf const *""'"); goto fail; } while(0)
;
7249 }
7250 arg1 = reinterpret_cast< GRmf * >(argp1);
7251 {
7252 try {
7253 result = (GEbounds *) &((GRmf const *)arg1)->etrue();
7254 }
7255 catch (const GException::out_of_range& e) {
7256 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7257 }
7258 catch (const GExceptionHandler& e) {
7259 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7260 }
7261 catch (const std::exception& e) {
7262 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7263 }
7264 }
7265 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[2], 0 |
0)
;
7266 return resultobj;
7267fail:
7268 return NULL__null;
7269}
7270
7271
7272SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRmf_emeasured(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7273 PyObject *resultobj = 0;
7274 GRmf *arg1 = (GRmf *) 0 ;
7275 void *argp1 = 0 ;
7276 int res1 = 0 ;
7277 PyObject * obj0 = 0 ;
7278 GEbounds *result = 0 ;
7279
7280 if (!PyArg_ParseTuple(args,(char *)"O:GRmf_emeasured",&obj0)) SWIG_failgoto fail;
7281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRmf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
7282 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRmf_emeasured" "', argument " "1"" of type '" "GRmf const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GRmf_emeasured" "', argument "
"1"" of type '" "GRmf const *""'"); goto fail; } while(0)
;
7284 }
7285 arg1 = reinterpret_cast< GRmf * >(argp1);
7286 {
7287 try {
7288 result = (GEbounds *) &((GRmf const *)arg1)->emeasured();
7289 }
7290 catch (const GException::out_of_range& e) {
7291 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7292 }
7293 catch (const GExceptionHandler& e) {
7294 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7295 }
7296 catch (const std::exception& e) {
7297 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7298 }
7299 }
7300 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[2], 0 |
0)
;
7301 return resultobj;
7302fail:
7303 return NULL__null;
7304}
7305
7306
7307SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRmf_load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7308 PyObject *resultobj = 0;
7309 GRmf *arg1 = (GRmf *) 0 ;
7310 std::string *arg2 = 0 ;
7311 void *argp1 = 0 ;
7312 int res1 = 0 ;
7313 int res2 = SWIG_OLDOBJ((0)) ;
7314 PyObject * obj0 = 0 ;
7315 PyObject * obj1 = 0 ;
7316
7317 if (!PyArg_ParseTuple(args,(char *)"OO:GRmf_load",&obj0,&obj1)) SWIG_failgoto fail;
7318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRmf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
7319 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRmf_load" "', argument " "1"" of type '" "GRmf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GRmf_load" "', argument " "1"
" of type '" "GRmf *""'"); goto fail; } while(0)
;
7321 }
7322 arg1 = reinterpret_cast< GRmf * >(argp1);
7323 {
7324 std::string *ptr = (std::string *)0;
7325 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
7326 if (!SWIG_IsOK(res2)(res2 >= 0)) {
7327 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GRmf_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GRmf_load" "', argument " "2"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
7328 }
7329 if (!ptr) {
7330 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GRmf_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GRmf_load" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
7331 }
7332 arg2 = ptr;
7333 }
7334 {
7335 try {
7336 (arg1)->load((std::string const &)*arg2);
7337 }
7338 catch (const GException::out_of_range& e) {
7339 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7340 }
7341 catch (const GExceptionHandler& e) {
7342 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7343 }
7344 catch (const std::exception& e) {
7345 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7346 }
7347 }
7348 resultobj = SWIG_Py_Void();
7349 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
7350 return resultobj;
7351fail:
7352 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
7353 return NULL__null;
7354}
7355
7356
7357SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRmf_save__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7358 PyObject *resultobj = 0;
7359 GRmf *arg1 = (GRmf *) 0 ;
7360 std::string *arg2 = 0 ;
7361 bool *arg3 = 0 ;
7362 void *argp1 = 0 ;
7363 int res1 = 0 ;
7364 int res2 = SWIG_OLDOBJ((0)) ;
7365 bool temp3 ;
7366 bool val3 ;
7367 int ecode3 = 0 ;
7368 PyObject * obj0 = 0 ;
7369 PyObject * obj1 = 0 ;
7370 PyObject * obj2 = 0 ;
7371
7372 if (!PyArg_ParseTuple(args,(char *)"OOO:GRmf_save",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
7373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRmf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
7374 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRmf_save" "', argument " "1"" of type '" "GRmf const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GRmf_save" "', argument " "1"
" of type '" "GRmf const *""'"); goto fail; } while(0)
;
7376 }
7377 arg1 = reinterpret_cast< GRmf * >(argp1);
7378 {
7379 std::string *ptr = (std::string *)0;
7380 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
7381 if (!SWIG_IsOK(res2)(res2 >= 0)) {
7382 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GRmf_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GRmf_save" "', argument " "2"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
7383 }
7384 if (!ptr) {
7385 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GRmf_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GRmf_save" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
7386 }
7387 arg2 = ptr;
7388 }
7389 ecode3 = SWIG_AsVal_bool(obj2, &val3);
7390 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
7391 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GRmf_save" "', argument " "3"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GRmf_save" "', argument "
"3"" of type '" "bool""'"); goto fail; } while(0)
;
7392 }
7393 temp3 = static_cast< bool >(val3);
7394 arg3 = &temp3;
7395 {
7396 try {
7397 ((GRmf const *)arg1)->save((std::string const &)*arg2,(bool const &)*arg3);
7398 }
7399 catch (const GException::out_of_range& e) {
7400 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7401 }
7402 catch (const GExceptionHandler& e) {
7403 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7404 }
7405 catch (const std::exception& e) {
7406 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7407 }
7408 }
7409 resultobj = SWIG_Py_Void();
7410 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
7411 return resultobj;
7412fail:
7413 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
7414 return NULL__null;
7415}
7416
7417
7418SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRmf_save__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7419 PyObject *resultobj = 0;
7420 GRmf *arg1 = (GRmf *) 0 ;
7421 std::string *arg2 = 0 ;
7422 void *argp1 = 0 ;
7423 int res1 = 0 ;
7424 int res2 = SWIG_OLDOBJ((0)) ;
7425 PyObject * obj0 = 0 ;
7426 PyObject * obj1 = 0 ;
7427
7428 if (!PyArg_ParseTuple(args,(char *)"OO:GRmf_save",&obj0,&obj1)) SWIG_failgoto fail;
7429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRmf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
7430 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRmf_save" "', argument " "1"" of type '" "GRmf const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GRmf_save" "', argument " "1"
" of type '" "GRmf const *""'"); goto fail; } while(0)
;
7432 }
7433 arg1 = reinterpret_cast< GRmf * >(argp1);
7434 {
7435 std::string *ptr = (std::string *)0;
7436 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
7437 if (!SWIG_IsOK(res2)(res2 >= 0)) {
7438 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GRmf_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GRmf_save" "', argument " "2"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
7439 }
7440 if (!ptr) {
7441 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GRmf_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GRmf_save" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
7442 }
7443 arg2 = ptr;
7444 }
7445 {
7446 try {
7447 ((GRmf const *)arg1)->save((std::string const &)*arg2);
7448 }
7449 catch (const GException::out_of_range& e) {
7450 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7451 }
7452 catch (const GExceptionHandler& e) {
7453 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7454 }
7455 catch (const std::exception& e) {
7456 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7457 }
7458 }
7459 resultobj = SWIG_Py_Void();
7460 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
7461 return resultobj;
7462fail:
7463 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
7464 return NULL__null;
7465}
7466
7467
7468SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRmf_save(PyObject *self, PyObject *args) {
7469 int argc;
7470 PyObject *argv[4];
7471 int ii;
7472
7473 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
7474 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
7475 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
7476 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
7477 }
7478 if (argc == 2) {
7479 int _v;
7480 void *vptr = 0;
7481 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GRmf, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7
], 0, 0)
;
7482 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7483 if (_v) {
7484 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
7485 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7486 if (_v) {
7487 return _wrap_GRmf_save__SWIG_1(self, args);
7488 }
7489 }
7490 }
7491 if (argc == 3) {
7492 int _v;
7493 void *vptr = 0;
7494 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GRmf, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7
], 0, 0)
;
7495 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7496 if (_v) {
7497 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
7498 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7499 if (_v) {
7500 {
7501 int res = SWIG_AsVal_bool(argv[2], NULL__null);
7502 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7503 }
7504 if (_v) {
7505 return _wrap_GRmf_save__SWIG_0(self, args);
7506 }
7507 }
7508 }
7509 }
7510
7511fail:
7512 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GRmf_save'.\n"
7513 " Possible C/C++ prototypes are:\n"
7514 " GRmf::save(std::string const &,bool const &) const\n"
7515 " GRmf::save(std::string const &) const\n");
7516 return 0;
7517}
7518
7519
7520SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRmf_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7521 PyObject *resultobj = 0;
7522 GRmf *arg1 = (GRmf *) 0 ;
7523 GFitsTable *arg2 = 0 ;
7524 void *argp1 = 0 ;
7525 int res1 = 0 ;
7526 void *argp2 = 0 ;
7527 int res2 = 0 ;
7528 PyObject * obj0 = 0 ;
7529 PyObject * obj1 = 0 ;
7530
7531 if (!PyArg_ParseTuple(args,(char *)"OO:GRmf_read",&obj0,&obj1)) SWIG_failgoto fail;
7532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRmf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
7533 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRmf_read" "', argument " "1"" of type '" "GRmf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GRmf_read" "', argument " "1"
" of type '" "GRmf *""'"); goto fail; } while(0)
;
7535 }
7536 arg1 = reinterpret_cast< GRmf * >(argp1);
7537 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFitsTable, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
7538 if (!SWIG_IsOK(res2)(res2 >= 0)) {
7539 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GRmf_read" "', argument " "2"" of type '" "GFitsTable const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GRmf_read" "', argument " "2"
" of type '" "GFitsTable const &""'"); goto fail; } while
(0)
;
7540 }
7541 if (!argp2) {
7542 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GRmf_read" "', argument " "2"" of type '" "GFitsTable const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GRmf_read" "', argument " "2"" of type '" "GFitsTable const &"
"'"); goto fail; } while(0)
;
7543 }
7544 arg2 = reinterpret_cast< GFitsTable * >(argp2);
7545 {
7546 try {
7547 (arg1)->read((GFitsTable const &)*arg2);
7548 }
7549 catch (const GException::out_of_range& e) {
7550 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7551 }
7552 catch (const GExceptionHandler& e) {
7553 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7554 }
7555 catch (const std::exception& e) {
7556 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7557 }
7558 }
7559 resultobj = SWIG_Py_Void();
7560 return resultobj;
7561fail:
7562 return NULL__null;
7563}
7564
7565
7566SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRmf_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7567 PyObject *resultobj = 0;
7568 GRmf *arg1 = (GRmf *) 0 ;
7569 GFits *arg2 = 0 ;
7570 void *argp1 = 0 ;
7571 int res1 = 0 ;
7572 void *argp2 = 0 ;
7573 int res2 = 0 ;
7574 PyObject * obj0 = 0 ;
7575 PyObject * obj1 = 0 ;
7576
7577 if (!PyArg_ParseTuple(args,(char *)"OO:GRmf_write",&obj0,&obj1)) SWIG_failgoto fail;
7578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRmf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
7579 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRmf_write" "', argument " "1"" of type '" "GRmf const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GRmf_write" "', argument "
"1"" of type '" "GRmf const *""'"); goto fail; } while(0)
;
7581 }
7582 arg1 = reinterpret_cast< GRmf * >(argp1);
7583 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFits, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[4],
0, 0)
;
7584 if (!SWIG_IsOK(res2)(res2 >= 0)) {
7585 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GRmf_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GRmf_write" "', argument "
"2"" of type '" "GFits &""'"); goto fail; } while(0)
;
7586 }
7587 if (!argp2) {
7588 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GRmf_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GRmf_write" "', argument " "2"" of type '" "GFits &"
"'"); goto fail; } while(0)
;
7589 }
7590 arg2 = reinterpret_cast< GFits * >(argp2);
7591 {
7592 try {
7593 ((GRmf const *)arg1)->write(*arg2);
7594 }
7595 catch (const GException::out_of_range& e) {
7596 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7597 }
7598 catch (const GExceptionHandler& e) {
7599 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7600 }
7601 catch (const std::exception& e) {
7602 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7603 }
7604 }
7605 resultobj = SWIG_Py_Void();
7606 return resultobj;
7607fail:
7608 return NULL__null;
7609}
7610
7611
7612SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRmf___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7613 PyObject *resultobj = 0;
7614 GRmf *arg1 = (GRmf *) 0 ;
7615 int *arg2 ;
7616 void *argp1 = 0 ;
7617 int res1 = 0 ;
7618 int temp2[2] ;
7619 PyObject * obj0 = 0 ;
7620 PyObject * obj1 = 0 ;
7621 double result;
7622
7623 if (!PyArg_ParseTuple(args,(char *)"OO:GRmf___getitem__",&obj0,&obj1)) SWIG_failgoto fail;
7624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRmf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
7625 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRmf___getitem__" "', argument " "1"" of type '" "GRmf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GRmf___getitem__" "', argument "
"1"" of type '" "GRmf *""'"); goto fail; } while(0)
;
7627 }
7628 arg1 = reinterpret_cast< GRmf * >(argp1);
7629 {
7630 if (!PySequence_Check(obj1)) {
7631 PyErr_SetString(PyExc_ValueError,"Expected a sequence");
7632 return NULL__null;
7633 }
7634 if (PySequence_LengthPySequence_Size(obj1) != 2) {
7635 PyErr_SetString(PyExc_ValueError,"Size mismatch. Expected 2 elements");
7636 return NULL__null;
7637 }
7638 for (int i = 0; i < 2; ++i) {
7639 PyObject *o = PySequence_GetItem(obj1,i);
7640 if (PyInt_Check(o)((((o)->ob_type)->tp_flags & ((1L<<23))) != 0
)
) {
7641 temp2[i] = (int)PyInt_AsLong(o);
7642 }
7643 else {
7644 PyErr_SetString(PyExc_ValueError,"Indices must be integers");
7645 return NULL__null;
7646 }
7647 }
7648 arg2 = temp2;
7649 }
7650 {
7651 try {
7652 result = (double)GRmf___getitem__(arg1,arg2);
7653 }
7654 catch (const GException::out_of_range& e) {
7655 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7656 }
7657 catch (const GExceptionHandler& e) {
7658 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7659 }
7660 catch (const std::exception& e) {
7661 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7662 }
7663 }
7664 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
7665 return resultobj;
7666fail:
7667 return NULL__null;
7668}
7669
7670
7671SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRmf___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7672 PyObject *resultobj = 0;
7673 GRmf *arg1 = (GRmf *) 0 ;
7674 int *arg2 ;
7675 double *arg3 = 0 ;
7676 void *argp1 = 0 ;
7677 int res1 = 0 ;
7678 int temp2[2] ;
7679 double temp3 ;
7680 double val3 ;
7681 int ecode3 = 0 ;
7682 PyObject * obj0 = 0 ;
7683 PyObject * obj1 = 0 ;
7684 PyObject * obj2 = 0 ;
7685
7686 if (!PyArg_ParseTuple(args,(char *)"OOO:GRmf___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
7687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRmf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
7688 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRmf___setitem__" "', argument " "1"" of type '" "GRmf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GRmf___setitem__" "', argument "
"1"" of type '" "GRmf *""'"); goto fail; } while(0)
;
7690 }
7691 arg1 = reinterpret_cast< GRmf * >(argp1);
7692 {
7693 if (!PySequence_Check(obj1)) {
7694 PyErr_SetString(PyExc_ValueError,"Expected a sequence");
7695 return NULL__null;
7696 }
7697 if (PySequence_LengthPySequence_Size(obj1) != 2) {
7698 PyErr_SetString(PyExc_ValueError,"Size mismatch. Expected 2 elements");
7699 return NULL__null;
7700 }
7701 for (int i = 0; i < 2; ++i) {
7702 PyObject *o = PySequence_GetItem(obj1,i);
7703 if (PyInt_Check(o)((((o)->ob_type)->tp_flags & ((1L<<23))) != 0
)
) {
7704 temp2[i] = (int)PyInt_AsLong(o);
7705 }
7706 else {
7707 PyErr_SetString(PyExc_ValueError,"Indices must be integers");
7708 return NULL__null;
7709 }
7710 }
7711 arg2 = temp2;
7712 }
7713 ecode3 = SWIG_AsVal_double(obj2, &val3);
7714 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
7715 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GRmf___setitem__" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GRmf___setitem__" "', argument "
"3"" of type '" "double""'"); goto fail; } while(0)
;
7716 }
7717 temp3 = static_cast< double >(val3);
7718 arg3 = &temp3;
7719 {
7720 try {
7721 GRmf___setitem__(arg1,arg2,(double const &)*arg3);
7722 }
7723 catch (const GException::out_of_range& e) {
7724 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7725 }
7726 catch (const GExceptionHandler& e) {
7727 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7728 }
7729 catch (const std::exception& e) {
7730 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7731 }
7732 }
7733 resultobj = SWIG_Py_Void();
7734 return resultobj;
7735fail:
7736 return NULL__null;
7737}
7738
7739
7740SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRmf___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7741 PyObject *resultobj = 0;
7742 GRmf *arg1 = (GRmf *) 0 ;
7743 void *argp1 = 0 ;
7744 int res1 = 0 ;
7745 PyObject * obj0 = 0 ;
7746 int result;
7747
7748 if (!PyArg_ParseTuple(args,(char *)"O:GRmf___len__",&obj0)) SWIG_failgoto fail;
7749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRmf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
7750 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRmf___len__" "', argument " "1"" of type '" "GRmf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GRmf___len__" "', argument "
"1"" of type '" "GRmf *""'"); goto fail; } while(0)
;
7752 }
7753 arg1 = reinterpret_cast< GRmf * >(argp1);
7754 {
7755 try {
7756 result = (int)GRmf___len__(arg1);
7757 }
7758 catch (const GException::out_of_range& e) {
7759 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7760 }
7761 catch (const GExceptionHandler& e) {
7762 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7763 }
7764 catch (const std::exception& e) {
7765 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7766 }
7767 }
7768 resultobj = SWIG_From_int(static_cast< int >(result));
7769 return resultobj;
7770fail:
7771 return NULL__null;
7772}
7773
7774
7775SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRmf_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7776 PyObject *resultobj = 0;
7777 GRmf *arg1 = (GRmf *) 0 ;
7778 void *argp1 = 0 ;
7779 int res1 = 0 ;
7780 PyObject * obj0 = 0 ;
7781 GRmf result;
7782
7783 if (!PyArg_ParseTuple(args,(char *)"O:GRmf_copy",&obj0)) SWIG_failgoto fail;
7784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRmf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
7785 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRmf_copy" "', argument " "1"" of type '" "GRmf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GRmf_copy" "', argument " "1"
" of type '" "GRmf *""'"); goto fail; } while(0)
;
7787 }
7788 arg1 = reinterpret_cast< GRmf * >(argp1);
7789 {
7790 try {
7791 result = GRmf_copy(arg1);
7792 }
7793 catch (const GException::out_of_range& e) {
7794 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7795 }
7796 catch (const GExceptionHandler& e) {
7797 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7798 }
7799 catch (const std::exception& e) {
7800 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7801 }
7802 }
7803 resultobj = SWIG_NewPointerObj((new GRmf(static_cast< const GRmf& >(result))), SWIGTYPE_p_GRmf, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GRmf(static_cast< const
GRmf& >(result))), swig_types[7], 0x1 | 0)
;
7804 return resultobj;
7805fail:
7806 return NULL__null;
7807}
7808
7809
7810SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GRmf_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7811 PyObject *obj;
7812 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
7813 SWIG_TypeNewClientData(SWIGTYPE_p_GRmfswig_types[7], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
7814 return SWIG_Py_Void();
7815}
7816
7817static PyMethodDef SwigMethods[] = {
7818 { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O0x0008, NULL__null},
7819 { (char *)"delete_SwigPyIterator", _wrap_delete_SwigPyIterator, METH_VARARGS0x0001, (char *)"delete_SwigPyIterator(SwigPyIterator self)"},
7820 { (char *)"SwigPyIterator_value", _wrap_SwigPyIterator_value, METH_VARARGS0x0001, (char *)"SwigPyIterator_value(SwigPyIterator self) -> PyObject *"},
7821 { (char *)"SwigPyIterator_incr", _wrap_SwigPyIterator_incr, METH_VARARGS0x0001, (char *)"\n"
7822 "incr(size_t n=1) -> SwigPyIterator\n"
7823 "SwigPyIterator_incr(SwigPyIterator self) -> SwigPyIterator\n"
7824 ""},
7825 { (char *)"SwigPyIterator_decr", _wrap_SwigPyIterator_decr, METH_VARARGS0x0001, (char *)"\n"
7826 "decr(size_t n=1) -> SwigPyIterator\n"
7827 "SwigPyIterator_decr(SwigPyIterator self) -> SwigPyIterator\n"
7828 ""},
7829 { (char *)"SwigPyIterator_distance", _wrap_SwigPyIterator_distance, METH_VARARGS0x0001, (char *)"SwigPyIterator_distance(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t"},
7830 { (char *)"SwigPyIterator_equal", _wrap_SwigPyIterator_equal, METH_VARARGS0x0001, (char *)"SwigPyIterator_equal(SwigPyIterator self, SwigPyIterator x) -> bool"},
7831 { (char *)"SwigPyIterator_copy", _wrap_SwigPyIterator_copy, METH_VARARGS0x0001, (char *)"SwigPyIterator_copy(SwigPyIterator self) -> SwigPyIterator"},
7832 { (char *)"SwigPyIterator_next", _wrap_SwigPyIterator_next, METH_VARARGS0x0001, (char *)"SwigPyIterator_next(SwigPyIterator self) -> PyObject *"},
7833 { (char *)"SwigPyIterator___next__", _wrap_SwigPyIterator___next__, METH_VARARGS0x0001, (char *)"SwigPyIterator___next__(SwigPyIterator self) -> PyObject *"},
7834 { (char *)"SwigPyIterator_previous", _wrap_SwigPyIterator_previous, METH_VARARGS0x0001, (char *)"SwigPyIterator_previous(SwigPyIterator self) -> PyObject *"},
7835 { (char *)"SwigPyIterator_advance", _wrap_SwigPyIterator_advance, METH_VARARGS0x0001, (char *)"SwigPyIterator_advance(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
7836 { (char *)"SwigPyIterator___eq__", _wrap_SwigPyIterator___eq__, METH_VARARGS0x0001, (char *)"SwigPyIterator___eq__(SwigPyIterator self, SwigPyIterator x) -> bool"},
7837 { (char *)"SwigPyIterator___ne__", _wrap_SwigPyIterator___ne__, METH_VARARGS0x0001, (char *)"SwigPyIterator___ne__(SwigPyIterator self, SwigPyIterator x) -> bool"},
7838 { (char *)"SwigPyIterator___iadd__", _wrap_SwigPyIterator___iadd__, METH_VARARGS0x0001, (char *)"SwigPyIterator___iadd__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
7839 { (char *)"SwigPyIterator___isub__", _wrap_SwigPyIterator___isub__, METH_VARARGS0x0001, (char *)"SwigPyIterator___isub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
7840 { (char *)"SwigPyIterator___add__", _wrap_SwigPyIterator___add__, METH_VARARGS0x0001, (char *)"SwigPyIterator___add__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
7841 { (char *)"SwigPyIterator___sub__", _wrap_SwigPyIterator___sub__, METH_VARARGS0x0001, (char *)"\n"
7842 "__sub__(ptrdiff_t n) -> SwigPyIterator\n"
7843 "SwigPyIterator___sub__(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t\n"
7844 ""},
7845 { (char *)"SwigPyIterator_swigregister", SwigPyIterator_swigregister, METH_VARARGS0x0001, NULL__null},
7846 { (char *)"new_GArf", _wrap_new_GArf, METH_VARARGS0x0001, (char *)"\n"
7847 "GArf()\n"
7848 "GArf(std::string const & filename)\n"
7849 "GArf(GEbounds const & ebds)\n"
7850 "new_GArf(GArf arf) -> GArf\n"
7851 ""},
7852 { (char *)"delete_GArf", _wrap_delete_GArf, METH_VARARGS0x0001, (char *)"delete_GArf(GArf self)"},
7853 { (char *)"GArf_clear", _wrap_GArf_clear, METH_VARARGS0x0001, (char *)"GArf_clear(GArf self)"},
7854 { (char *)"GArf_clone", _wrap_GArf_clone, METH_VARARGS0x0001, (char *)"GArf_clone(GArf self) -> GArf"},
7855 { (char *)"GArf_size", _wrap_GArf_size, METH_VARARGS0x0001, (char *)"GArf_size(GArf self) -> int"},
7856 { (char *)"GArf_at", _wrap_GArf_at, METH_VARARGS0x0001, (char *)"GArf_at(GArf self, int const & index) -> double &"},
7857 { (char *)"GArf_ebounds", _wrap_GArf_ebounds, METH_VARARGS0x0001, (char *)"GArf_ebounds(GArf self) -> GEbounds const &"},
7858 { (char *)"GArf_load", _wrap_GArf_load, METH_VARARGS0x0001, (char *)"GArf_load(GArf self, std::string const & filename)"},
7859 { (char *)"GArf_save", _wrap_GArf_save, METH_VARARGS0x0001, (char *)"\n"
7860 "save(std::string const & filename, bool const & clobber=False)\n"
7861 "GArf_save(GArf self, std::string const & filename)\n"
7862 ""},
7863 { (char *)"GArf_read", _wrap_GArf_read, METH_VARARGS0x0001, (char *)"GArf_read(GArf self, GFitsTable const & table)"},
7864 { (char *)"GArf_write", _wrap_GArf_write, METH_VARARGS0x0001, (char *)"GArf_write(GArf self, GFits & fits)"},
7865 { (char *)"GArf___getitem__", _wrap_GArf___getitem__, METH_VARARGS0x0001, (char *)"GArf___getitem__(GArf self, int const & index) -> double"},
7866 { (char *)"GArf___setitem__", _wrap_GArf___setitem__, METH_VARARGS0x0001, (char *)"GArf___setitem__(GArf self, int const & index, double const & value)"},
7867 { (char *)"GArf___len__", _wrap_GArf___len__, METH_VARARGS0x0001, (char *)"GArf___len__(GArf self) -> int"},
7868 { (char *)"GArf_copy", _wrap_GArf_copy, METH_VARARGS0x0001, (char *)"GArf_copy(GArf self) -> GArf"},
7869 { (char *)"GArf_swigregister", GArf_swigregister, METH_VARARGS0x0001, NULL__null},
7870 { (char *)"new_GPha", _wrap_new_GPha, METH_VARARGS0x0001, (char *)"\n"
7871 "GPha()\n"
7872 "GPha(std::string const & filename)\n"
7873 "GPha(GEbounds const & ebds)\n"
7874 "GPha(int const & bins)\n"
7875 "new_GPha(GPha pha) -> GPha\n"
7876 ""},
7877 { (char *)"delete_GPha", _wrap_delete_GPha, METH_VARARGS0x0001, (char *)"delete_GPha(GPha self)"},
7878 { (char *)"GPha_clear", _wrap_GPha_clear, METH_VARARGS0x0001, (char *)"GPha_clear(GPha self)"},
7879 { (char *)"GPha_clone", _wrap_GPha_clone, METH_VARARGS0x0001, (char *)"GPha_clone(GPha self) -> GPha"},
7880 { (char *)"GPha_size", _wrap_GPha_size, METH_VARARGS0x0001, (char *)"GPha_size(GPha self) -> int"},
7881 { (char *)"GPha_at", _wrap_GPha_at, METH_VARARGS0x0001, (char *)"GPha_at(GPha self, int const & index) -> double &"},
7882 { (char *)"GPha_ebounds", _wrap_GPha_ebounds, METH_VARARGS0x0001, (char *)"GPha_ebounds(GPha self) -> GEbounds const &"},
7883 { (char *)"GPha_counts", _wrap_GPha_counts, METH_VARARGS0x0001, (char *)"GPha_counts(GPha self) -> double"},
7884 { (char *)"GPha_underflow", _wrap_GPha_underflow, METH_VARARGS0x0001, (char *)"GPha_underflow(GPha self) -> double const &"},
7885 { (char *)"GPha_overflow", _wrap_GPha_overflow, METH_VARARGS0x0001, (char *)"GPha_overflow(GPha self) -> double const &"},
7886 { (char *)"GPha_outflow", _wrap_GPha_outflow, METH_VARARGS0x0001, (char *)"GPha_outflow(GPha self) -> double const &"},
7887 { (char *)"GPha_fill", _wrap_GPha_fill, METH_VARARGS0x0001, (char *)"\n"
7888 "fill(GEnergy const & energy, double const & value=1.0)\n"
7889 "GPha_fill(GPha self, GEnergy const & energy)\n"
7890 ""},
7891 { (char *)"GPha_load", _wrap_GPha_load, METH_VARARGS0x0001, (char *)"GPha_load(GPha self, std::string const & filename)"},
7892 { (char *)"GPha_save", _wrap_GPha_save, METH_VARARGS0x0001, (char *)"\n"
7893 "save(std::string const & filename, bool const & clobber=False)\n"
7894 "GPha_save(GPha self, std::string const & filename)\n"
7895 ""},
7896 { (char *)"GPha_read", _wrap_GPha_read, METH_VARARGS0x0001, (char *)"GPha_read(GPha self, GFitsTable const & table)"},
7897 { (char *)"GPha_write", _wrap_GPha_write, METH_VARARGS0x0001, (char *)"GPha_write(GPha self, GFits & fits)"},
7898 { (char *)"GPha_filename", _wrap_GPha_filename, METH_VARARGS0x0001, (char *)"GPha_filename(GPha self) -> std::string const &"},
7899 { (char *)"GPha___getitem__", _wrap_GPha___getitem__, METH_VARARGS0x0001, (char *)"GPha___getitem__(GPha self, int const & index) -> double"},
7900 { (char *)"GPha___setitem__", _wrap_GPha___setitem__, METH_VARARGS0x0001, (char *)"GPha___setitem__(GPha self, int const & index, double const & value)"},
7901 { (char *)"GPha___len__", _wrap_GPha___len__, METH_VARARGS0x0001, (char *)"GPha___len__(GPha self) -> int"},
7902 { (char *)"GPha_copy", _wrap_GPha_copy, METH_VARARGS0x0001, (char *)"GPha_copy(GPha self) -> GPha"},
7903 { (char *)"GPha_swigregister", GPha_swigregister, METH_VARARGS0x0001, NULL__null},
7904 { (char *)"new_GRmf", _wrap_new_GRmf, METH_VARARGS0x0001, (char *)"\n"
7905 "GRmf()\n"
7906 "GRmf(std::string const & filename)\n"
7907 "GRmf(GEbounds const & etrue, GEbounds const & emeasured)\n"
7908 "new_GRmf(GRmf rmf) -> GRmf\n"
7909 ""},
7910 { (char *)"delete_GRmf", _wrap_delete_GRmf, METH_VARARGS0x0001, (char *)"delete_GRmf(GRmf self)"},
7911 { (char *)"GRmf_clear", _wrap_GRmf_clear, METH_VARARGS0x0001, (char *)"GRmf_clear(GRmf self)"},
7912 { (char *)"GRmf_clone", _wrap_GRmf_clone, METH_VARARGS0x0001, (char *)"GRmf_clone(GRmf self) -> GRmf"},
7913 { (char *)"GRmf_size", _wrap_GRmf_size, METH_VARARGS0x0001, (char *)"GRmf_size(GRmf self) -> int"},
7914 { (char *)"GRmf_ntrue", _wrap_GRmf_ntrue, METH_VARARGS0x0001, (char *)"GRmf_ntrue(GRmf self) -> int"},
7915 { (char *)"GRmf_nmeasured", _wrap_GRmf_nmeasured, METH_VARARGS0x0001, (char *)"GRmf_nmeasured(GRmf self) -> int"},
7916 { (char *)"GRmf_at", _wrap_GRmf_at, METH_VARARGS0x0001, (char *)"GRmf_at(GRmf self, int const & itrue, int const & imeasured) -> double &"},
7917 { (char *)"GRmf_etrue", _wrap_GRmf_etrue, METH_VARARGS0x0001, (char *)"GRmf_etrue(GRmf self) -> GEbounds const &"},
7918 { (char *)"GRmf_emeasured", _wrap_GRmf_emeasured, METH_VARARGS0x0001, (char *)"GRmf_emeasured(GRmf self) -> GEbounds const &"},
7919 { (char *)"GRmf_load", _wrap_GRmf_load, METH_VARARGS0x0001, (char *)"GRmf_load(GRmf self, std::string const & filename)"},
7920 { (char *)"GRmf_save", _wrap_GRmf_save, METH_VARARGS0x0001, (char *)"\n"
7921 "save(std::string const & filename, bool const & clobber=False)\n"
7922 "GRmf_save(GRmf self, std::string const & filename)\n"
7923 ""},
7924 { (char *)"GRmf_read", _wrap_GRmf_read, METH_VARARGS0x0001, (char *)"GRmf_read(GRmf self, GFitsTable const & table)"},
7925 { (char *)"GRmf_write", _wrap_GRmf_write, METH_VARARGS0x0001, (char *)"GRmf_write(GRmf self, GFits & fits)"},
7926 { (char *)"GRmf___getitem__", _wrap_GRmf___getitem__, METH_VARARGS0x0001, (char *)"GRmf___getitem__(GRmf self, int [2] GTuple) -> double"},
7927 { (char *)"GRmf___setitem__", _wrap_GRmf___setitem__, METH_VARARGS0x0001, (char *)"GRmf___setitem__(GRmf self, int [2] GTuple, double const & value)"},
7928 { (char *)"GRmf___len__", _wrap_GRmf___len__, METH_VARARGS0x0001, (char *)"GRmf___len__(GRmf self) -> int"},
7929 { (char *)"GRmf_copy", _wrap_GRmf_copy, METH_VARARGS0x0001, (char *)"GRmf_copy(GRmf self) -> GRmf"},
7930 { (char *)"GRmf_swigregister", GRmf_swigregister, METH_VARARGS0x0001, NULL__null},
7931 { NULL__null, NULL__null, 0, NULL__null }
7932};
7933
7934
7935/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
7936
7937static void *_p_GPhaTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
7938 return (void *)((GBase *) ((GPha *) x));
7939}
7940static void *_p_GArfTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
7941 return (void *)((GBase *) ((GArf *) x));
7942}
7943static void *_p_GRmfTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
7944 return (void *)((GBase *) ((GRmf *) x));
7945}
7946static swig_type_info _swigt__p_GArf = {"_p_GArf", "GArf *", 0, 0, (void*)0, 0};
7947static swig_type_info _swigt__p_GBase = {"_p_GBase", "GBase *", 0, 0, (void*)0, 0};
7948static swig_type_info _swigt__p_GEbounds = {"_p_GEbounds", "GEbounds *", 0, 0, (void*)0, 0};
7949static swig_type_info _swigt__p_GEnergy = {"_p_GEnergy", "GEnergy *", 0, 0, (void*)0, 0};
7950static swig_type_info _swigt__p_GFits = {"_p_GFits", "GFits *", 0, 0, (void*)0, 0};
7951static swig_type_info _swigt__p_GFitsTable = {"_p_GFitsTable", "GFitsTable *", 0, 0, (void*)0, 0};
7952static swig_type_info _swigt__p_GPha = {"_p_GPha", "GPha *", 0, 0, (void*)0, 0};
7953static swig_type_info _swigt__p_GRmf = {"_p_GRmf", "GRmf *", 0, 0, (void*)0, 0};
7954static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
7955static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
7956static swig_type_info _swigt__p_std__invalid_argument = {"_p_std__invalid_argument", "std::invalid_argument *", 0, 0, (void*)0, 0};
7957static swig_type_info _swigt__p_swig__SwigPyIterator = {"_p_swig__SwigPyIterator", "swig::SwigPyIterator *", 0, 0, (void*)0, 0};
7958
7959static swig_type_info *swig_type_initial[] = {
7960 &_swigt__p_GArf,
7961 &_swigt__p_GBase,
7962 &_swigt__p_GEbounds,
7963 &_swigt__p_GEnergy,
7964 &_swigt__p_GFits,
7965 &_swigt__p_GFitsTable,
7966 &_swigt__p_GPha,
7967 &_swigt__p_GRmf,
7968 &_swigt__p_char,
7969 &_swigt__p_double,
7970 &_swigt__p_std__invalid_argument,
7971 &_swigt__p_swig__SwigPyIterator,
7972};
7973
7974static swig_cast_info _swigc__p_GArf[] = { {&_swigt__p_GArf, 0, 0, 0},{0, 0, 0, 0}};
7975static swig_cast_info _swigc__p_GBase[] = { {&_swigt__p_GPha, _p_GPhaTo_p_GBase, 0, 0}, {&_swigt__p_GArf, _p_GArfTo_p_GBase, 0, 0}, {&_swigt__p_GRmf, _p_GRmfTo_p_GBase, 0, 0}, {&_swigt__p_GBase, 0, 0, 0},{0, 0, 0, 0}};
7976static swig_cast_info _swigc__p_GEbounds[] = { {&_swigt__p_GEbounds, 0, 0, 0},{0, 0, 0, 0}};
7977static swig_cast_info _swigc__p_GEnergy[] = { {&_swigt__p_GEnergy, 0, 0, 0},{0, 0, 0, 0}};
7978static swig_cast_info _swigc__p_GFits[] = { {&_swigt__p_GFits, 0, 0, 0},{0, 0, 0, 0}};
7979static swig_cast_info _swigc__p_GFitsTable[] = { {&_swigt__p_GFitsTable, 0, 0, 0},{0, 0, 0, 0}};
7980static swig_cast_info _swigc__p_GPha[] = { {&_swigt__p_GPha, 0, 0, 0},{0, 0, 0, 0}};
7981static swig_cast_info _swigc__p_GRmf[] = { {&_swigt__p_GRmf, 0, 0, 0},{0, 0, 0, 0}};
7982static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
7983static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
7984static swig_cast_info _swigc__p_std__invalid_argument[] = { {&_swigt__p_std__invalid_argument, 0, 0, 0},{0, 0, 0, 0}};
7985static swig_cast_info _swigc__p_swig__SwigPyIterator[] = { {&_swigt__p_swig__SwigPyIterator, 0, 0, 0},{0, 0, 0, 0}};
7986
7987static swig_cast_info *swig_cast_initial[] = {
7988 _swigc__p_GArf,
7989 _swigc__p_GBase,
7990 _swigc__p_GEbounds,
7991 _swigc__p_GEnergy,
7992 _swigc__p_GFits,
7993 _swigc__p_GFitsTable,
7994 _swigc__p_GPha,
7995 _swigc__p_GRmf,
7996 _swigc__p_char,
7997 _swigc__p_double,
7998 _swigc__p_std__invalid_argument,
7999 _swigc__p_swig__SwigPyIterator,
8000};
8001
8002
8003/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
8004
8005static swig_const_info swig_const_table[] = {
8006{0, 0, 0, 0.0, 0, 0}};
8007
8008#ifdef __cplusplus199711L
8009}
8010#endif
8011/* -----------------------------------------------------------------------------
8012 * Type initialization:
8013 * This problem is tough by the requirement that no dynamic
8014 * memory is used. Also, since swig_type_info structures store pointers to
8015 * swig_cast_info structures and swig_cast_info structures store pointers back
8016 * to swig_type_info structures, we need some lookup code at initialization.
8017 * The idea is that swig generates all the structures that are needed.
8018 * The runtime then collects these partially filled structures.
8019 * The SWIG_InitializeModule function takes these initial arrays out of
8020 * swig_module, and does all the lookup, filling in the swig_module.types
8021 * array with the correct data and linking the correct swig_cast_info
8022 * structures together.
8023 *
8024 * The generated swig_type_info structures are assigned staticly to an initial
8025 * array. We just loop through that array, and handle each type individually.
8026 * First we lookup if this type has been already loaded, and if so, use the
8027 * loaded structure instead of the generated one. Then we have to fill in the
8028 * cast linked list. The cast data is initially stored in something like a
8029 * two-dimensional array. Each row corresponds to a type (there are the same
8030 * number of rows as there are in the swig_type_initial array). Each entry in
8031 * a column is one of the swig_cast_info structures for that type.
8032 * The cast_initial array is actually an array of arrays, because each row has
8033 * a variable number of columns. So to actually build the cast linked list,
8034 * we find the array of casts associated with the type, and loop through it
8035 * adding the casts to the list. The one last trick we need to do is making
8036 * sure the type pointer in the swig_cast_info struct is correct.
8037 *
8038 * First off, we lookup the cast->type name to see if it is already loaded.
8039 * There are three cases to handle:
8040 * 1) If the cast->type has already been loaded AND the type we are adding
8041 * casting info to has not been loaded (it is in this module), THEN we
8042 * replace the cast->type pointer with the type pointer that has already
8043 * been loaded.
8044 * 2) If BOTH types (the one we are adding casting info to, and the
8045 * cast->type) are loaded, THEN the cast info has already been loaded by
8046 * the previous module so we just ignore it.
8047 * 3) Finally, if cast->type has not already been loaded, then we add that
8048 * swig_cast_info to the linked list (because the cast->type) pointer will
8049 * be correct.
8050 * ----------------------------------------------------------------------------- */
8051
8052#ifdef __cplusplus199711L
8053extern "C" {
8054#if 0
8055} /* c-mode */
8056#endif
8057#endif
8058
8059#if 0
8060#define SWIGRUNTIME_DEBUG
8061#endif
8062
8063
8064SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
8065SWIG_InitializeModule(void *clientdata) {
8066 size_t i;
8067 swig_module_info *module_head, *iter;
8068 int found, init;
8069
8070 /* check to see if the circular list has been setup, if not, set it up */
8071 if (swig_module.next==0) {
8072 /* Initialize the swig_module */
8073 swig_module.type_initial = swig_type_initial;
8074 swig_module.cast_initial = swig_cast_initial;
8075 swig_module.next = &swig_module;
8076 init = 1;
8077 } else {
8078 init = 0;
8079 }
8080
8081 /* Try and load any already created modules */
8082 module_head = SWIG_GetModule(clientdata)SWIG_Python_GetModule(clientdata);
8083 if (!module_head) {
8084 /* This is the first module loaded for this interpreter */
8085 /* so set the swig module into the interpreter */
8086 SWIG_SetModule(clientdata, &swig_module)SWIG_Python_SetModule(&swig_module);
8087 module_head = &swig_module;
Value stored to 'module_head' is never read
8088 } else {
8089 /* the interpreter has loaded a SWIG module, but has it loaded this one? */
8090 found=0;
8091 iter=module_head;
8092 do {
8093 if (iter==&swig_module) {
8094 found=1;
8095 break;
8096 }
8097 iter=iter->next;
8098 } while (iter!= module_head);
8099
8100 /* if the is found in the list, then all is done and we may leave */
8101 if (found) return;
8102 /* otherwise we must add out module into the list */
8103 swig_module.next = module_head->next;
8104 module_head->next = &swig_module;
8105 }
8106
8107 /* When multiple interpreters are used, a module could have already been initialized in
8108 a different interpreter, but not yet have a pointer in this interpreter.
8109 In this case, we do not want to continue adding types... everything should be
8110 set up already */
8111 if (init == 0) return;
8112
8113 /* Now work on filling in swig_module.types */
8114#ifdef SWIGRUNTIME_DEBUG
8115 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
8116#endif
8117 for (i = 0; i < swig_module.size; ++i) {
8118 swig_type_info *type = 0;
8119 swig_type_info *ret;
8120 swig_cast_info *cast;
8121
8122#ifdef SWIGRUNTIME_DEBUG
8123 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
8124#endif
8125
8126 /* if there is another module already loaded */
8127 if (swig_module.next != &swig_module) {
8128 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
8129 }
8130 if (type) {
8131 /* Overwrite clientdata field */
8132#ifdef SWIGRUNTIME_DEBUG
8133 printf("SWIG_InitializeModule: found type %s\n", type->name);
8134#endif
8135 if (swig_module.type_initial[i]->clientdata) {
8136 type->clientdata = swig_module.type_initial[i]->clientdata;
8137#ifdef SWIGRUNTIME_DEBUG
8138 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
8139#endif
8140 }
8141 } else {
8142 type = swig_module.type_initial[i];
8143 }
8144
8145 /* Insert casting types */
8146 cast = swig_module.cast_initial[i];
8147 while (cast->type) {
8148 /* Don't need to add information already in the list */
8149 ret = 0;
8150#ifdef SWIGRUNTIME_DEBUG
8151 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
8152#endif
8153 if (swig_module.next != &swig_module) {
8154 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
8155#ifdef SWIGRUNTIME_DEBUG
8156 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
8157#endif
8158 }
8159 if (ret) {
8160 if (type == swig_module.type_initial[i]) {
8161#ifdef SWIGRUNTIME_DEBUG
8162 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
8163#endif
8164 cast->type = ret;
8165 ret = 0;
8166 } else {
8167 /* Check for casting already in the list */
8168 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
8169#ifdef SWIGRUNTIME_DEBUG
8170 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
8171#endif
8172 if (!ocast) ret = 0;
8173 }
8174 }
8175
8176 if (!ret) {
8177#ifdef SWIGRUNTIME_DEBUG
8178 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
8179#endif
8180 if (type->cast) {
8181 type->cast->prev = cast;
8182 cast->next = type->cast;
8183 }
8184 type->cast = cast;
8185 }
8186 cast++;
8187 }
8188 /* Set entry in modules->types array equal to the type */
8189 swig_module.types[i] = type;
8190 }
8191 swig_module.types[i] = 0;
8192
8193#ifdef SWIGRUNTIME_DEBUG
8194 printf("**** SWIG_InitializeModule: Cast List ******\n");
8195 for (i = 0; i < swig_module.size; ++i) {
8196 int j = 0;
8197 swig_cast_info *cast = swig_module.cast_initial[i];
8198 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
8199 while (cast->type) {
8200 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
8201 cast++;
8202 ++j;
8203 }
8204 printf("---- Total casts: %d\n",j);
8205 }
8206 printf("**** SWIG_InitializeModule: Cast List ******\n");
8207#endif
8208}
8209
8210/* This function will propagate the clientdata field of type to
8211* any new swig_type_info structures that have been added into the list
8212* of equivalent types. It is like calling
8213* SWIG_TypeClientData(type, clientdata) a second time.
8214*/
8215SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
8216SWIG_PropagateClientData(void) {
8217 size_t i;
8218 swig_cast_info *equiv;
8219 static int init_run = 0;
8220
8221 if (init_run) return;
8222 init_run = 1;
8223
8224 for (i = 0; i < swig_module.size; i++) {
8225 if (swig_module.types[i]->clientdata) {
8226 equiv = swig_module.types[i]->cast;
8227 while (equiv) {
8228 if (!equiv->converter) {
8229 if (equiv->type && !equiv->type->clientdata)
8230 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
8231 }
8232 equiv = equiv->next;
8233 }
8234 }
8235 }
8236}
8237
8238#ifdef __cplusplus199711L
8239#if 0
8240{
8241 /* c-mode */
8242#endif
8243}
8244#endif
8245
8246
8247
8248#ifdef __cplusplus199711L
8249extern "C" {
8250#endif
8251
8252 /* Python-specific SWIG API */
8253#define SWIG_newvarlink()SWIG_Python_newvarlink() SWIG_Python_newvarlink()
8254#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)
8255#define SWIG_InstallConstants(d, constants)SWIG_Python_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
8256
8257 /* -----------------------------------------------------------------------------
8258 * global variable support code.
8259 * ----------------------------------------------------------------------------- */
8260
8261 typedef struct swig_globalvar {
8262 char *name; /* Name of global variable */
8263 PyObject *(*get_attr)(void); /* Return the current value */
8264 int (*set_attr)(PyObject *); /* Set the value */
8265 struct swig_globalvar *next;
8266 } swig_globalvar;
8267
8268 typedef struct swig_varlinkobject {
8269 PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type;
8270 swig_globalvar *vars;
8271 } swig_varlinkobject;
8272
8273 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
8274 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
8275#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
8276 return PyUnicode_InternFromString("<Swig global variables>");
8277#else
8278 return PyString_FromString("<Swig global variables>");
8279#endif
8280 }
8281
8282 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
8283 swig_varlink_str(swig_varlinkobject *v) {
8284#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
8285 PyObject *str = PyUnicode_InternFromString("(");
8286 PyObject *tail;
8287 PyObject *joined;
8288 swig_globalvar *var;
8289 for (var = v->vars; var; var=var->next) {
8290 tail = PyUnicode_FromStringPyUnicodeUCS2_FromString(var->name);
8291 joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail);
8292 Py_DecRef(str);
8293 Py_DecRef(tail);
8294 str = joined;
8295 if (var->next) {
8296 tail = PyUnicode_InternFromString(", ");
8297 joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail);
8298 Py_DecRef(str);
8299 Py_DecRef(tail);
8300 str = joined;
8301 }
8302 }
8303 tail = PyUnicode_InternFromString(")");
8304 joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail);
8305 Py_DecRef(str);
8306 Py_DecRef(tail);
8307 str = joined;
8308#else
8309 PyObject *str = PyString_FromString("(");
8310 swig_globalvar *var;
8311 for (var = v->vars; var; var=var->next) {
8312 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
8313 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
8314 }
8315 PyString_ConcatAndDel(&str,PyString_FromString(")"));
8316#endif
8317 return str;
8318 }
8319
8320 SWIGINTERNstatic __attribute__ ((__unused__)) int
8321 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
8322 char *tmp;
8323 PyObject *str = swig_varlink_str(v);
8324 fprintf(fp,"Swig global variables ");
8325 fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str));
8326 SWIG_Python_str_DelForPy3(tmp);
8327 Py_DECREF(str)do { if ( --((PyObject*)(str))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(str)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(str)))); } while (0)
;
8328 return 0;
8329 }
8330
8331 SWIGINTERNstatic __attribute__ ((__unused__)) void
8332 swig_varlink_dealloc(swig_varlinkobject *v) {
8333 swig_globalvar *var = v->vars;
8334 while (var) {
8335 swig_globalvar *n = var->next;
8336 free(var->name);
8337 free(var);
8338 var = n;
8339 }
8340 }
8341
8342 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
8343 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
8344 PyObject *res = NULL__null;
8345 swig_globalvar *var = v->vars;
8346 while (var) {
8347 if (strcmp(var->name,n) == 0) {
8348 res = (*var->get_attr)();
8349 break;
8350 }
8351 var = var->next;
8352 }
8353 if (res == NULL__null && !PyErr_Occurred()) {
8354 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
8355 }
8356 return res;
8357 }
8358
8359 SWIGINTERNstatic __attribute__ ((__unused__)) int
8360 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
8361 int res = 1;
8362 swig_globalvar *var = v->vars;
8363 while (var) {
8364 if (strcmp(var->name,n) == 0) {
8365 res = (*var->set_attr)(p);
8366 break;
8367 }
8368 var = var->next;
8369 }
8370 if (res == 1 && !PyErr_Occurred()) {
8371 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
8372 }
8373 return res;
8374 }
8375
8376 SWIGINTERNstatic __attribute__ ((__unused__)) PyTypeObject*
8377 swig_varlink_type(void) {
8378 static char varlink__doc__[] = "Swig var link object";
8379 static PyTypeObject varlink_type;
8380 static int type_init = 0;
8381 if (!type_init) {
8382 const PyTypeObject tmp = {
8383 /* PyObject header changed in Python 3 */
8384#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
8385 PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0,
8386#else
8387 PyObject_HEAD_INIT(NULL)1, __null,
8388 0, /* ob_size */
8389#endif
8390 (char *)"swigvarlink", /* tp_name */
8391 sizeof(swig_varlinkobject), /* tp_basicsize */
8392 0, /* tp_itemsize */
8393 (destructor) swig_varlink_dealloc, /* tp_dealloc */
8394 (printfunc) swig_varlink_print, /* tp_print */
8395 (getattrfunc) swig_varlink_getattr, /* tp_getattr */
8396 (setattrfunc) swig_varlink_setattr, /* tp_setattr */
8397 0, /* tp_compare */
8398 (reprfunc) swig_varlink_repr, /* tp_repr */
8399 0, /* tp_as_number */
8400 0, /* tp_as_sequence */
8401 0, /* tp_as_mapping */
8402 0, /* tp_hash */
8403 0, /* tp_call */
8404 (reprfunc) swig_varlink_str, /* tp_str */
8405 0, /* tp_getattro */
8406 0, /* tp_setattro */
8407 0, /* tp_as_buffer */
8408 0, /* tp_flags */
8409 varlink__doc__, /* tp_doc */
8410 0, /* tp_traverse */
8411 0, /* tp_clear */
8412 0, /* tp_richcompare */
8413 0, /* tp_weaklistoffset */
8414#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000
8415 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
8416#endif
8417#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000
8418 0, /* tp_del */
8419#endif
8420#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02060000
8421 0, /* tp_version */
8422#endif
8423#ifdef COUNT_ALLOCS
8424 0,0,0,0 /* tp_alloc -> tp_next */
8425#endif
8426 };
8427 varlink_type = tmp;
8428 type_init = 1;
8429#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
8430 varlink_type.ob_type = &PyType_Type;
8431#else
8432 if (PyType_Ready(&varlink_type) < 0)
8433 return NULL__null;
8434#endif
8435 }
8436 return &varlink_type;
8437 }
8438
8439 /* Create a variable linking object for use later */
8440 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
8441 SWIG_Python_newvarlink(void) {
8442 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
())) )
;
8443 if (result) {
8444 result->vars = 0;
8445 }
8446 return ((PyObject*) result);
8447 }
8448
8449 SWIGINTERNstatic __attribute__ ((__unused__)) void
8450 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
8451 swig_varlinkobject *v = (swig_varlinkobject *) p;
8452 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
8453 if (gv) {
8454 size_t size = strlen(name)+1;
8455 gv->name = (char *)malloc(size);
8456 if (gv->name) {
8457 strncpy(gv->name,name,size);
8458 gv->get_attr = get_attr;
8459 gv->set_attr = set_attr;
8460 gv->next = v->vars;
8461 }
8462 }
8463 v->vars = gv;
8464 }
8465
8466 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
8467 SWIG_globals(void) {
8468 static PyObject *_SWIG_globals = 0;
8469 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink()SWIG_Python_newvarlink();
8470 return _SWIG_globals;
8471 }
8472
8473 /* -----------------------------------------------------------------------------
8474 * constants/methods manipulation
8475 * ----------------------------------------------------------------------------- */
8476
8477 /* Install Constants */
8478 SWIGINTERNstatic __attribute__ ((__unused__)) void
8479 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
8480 PyObject *obj = 0;
8481 size_t i;
8482 for (i = 0; constants[i].type; ++i) {
8483 switch(constants[i].type) {
8484 case SWIG_PY_POINTER4:
8485 obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0)SWIG_Python_NewPointerObj(__null, constants[i].pvalue, *(constants
[i]).ptype, 0)
;
8486 break;
8487 case SWIG_PY_BINARY5:
8488 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype))SWIG_Python_NewPackedObj(constants[i].pvalue, constants[i].lvalue
, *(constants[i].ptype))
;
8489 break;
8490 default:
8491 obj = 0;
8492 break;
8493 }
8494 if (obj) {
8495 PyDict_SetItemString(d, constants[i].name, obj);
8496 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
8497 }
8498 }
8499 }
8500
8501 /* -----------------------------------------------------------------------------*/
8502 /* Fix SwigMethods to carry the callback ptrs when needed */
8503 /* -----------------------------------------------------------------------------*/
8504
8505 SWIGINTERNstatic __attribute__ ((__unused__)) void
8506 SWIG_Python_FixMethods(PyMethodDef *methods,
8507 swig_const_info *const_table,
8508 swig_type_info **types,
8509 swig_type_info **types_initial) {
8510 size_t i;
8511 for (i = 0; methods[i].ml_name; ++i) {
8512 const char *c = methods[i].ml_doc;
8513 if (c && (c = strstr(c, "swig_ptr: "))) {
8514 int j;
8515 swig_const_info *ci = 0;
8516 const char *name = c + 10;
8517 for (j = 0; const_table[j].type; ++j) {
8518 if (strncmp(const_table[j].name, name,
8519 strlen(const_table[j].name)) == 0) {
8520 ci = &(const_table[j]);
8521 break;
8522 }
8523 }
8524 if (ci) {
8525 void *ptr = (ci->type == SWIG_PY_POINTER4) ? ci->pvalue : 0;
8526 if (ptr) {
8527 size_t shift = (ci->ptype) - types;
8528 swig_type_info *ty = types_initial[shift];
8529 size_t ldoc = (c - methods[i].ml_doc);
8530 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
8531 char *ndoc = (char*)malloc(ldoc + lptr + 10);
8532 if (ndoc) {
8533 char *buff = ndoc;
8534 strncpy(buff, methods[i].ml_doc, ldoc);
8535 buff += ldoc;
8536 strncpy(buff, "swig_ptr: ", 10);
8537 buff += 10;
8538 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
8539 methods[i].ml_doc = ndoc;
8540 }
8541 }
8542 }
8543 }
8544 }
8545 }
8546
8547#ifdef __cplusplus199711L
8548}
8549#endif
8550
8551/* -----------------------------------------------------------------------------*
8552 * Partial Init method
8553 * -----------------------------------------------------------------------------*/
8554
8555#ifdef __cplusplus199711L
8556extern "C"
8557#endif
8558
8559SWIGEXPORT__attribute__ ((visibility("default")))
8560#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
8561PyObject*
8562#else
8563void
8564#endif
8565SWIG_initinit_xspec(void) {
8566 PyObject *m, *d, *md;
8567#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
8568 static struct PyModuleDef SWIG_module = {
8569# if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03020000
8570 PyModuleDef_HEAD_INIT,
8571# else
8572 {
8573 PyObject_HEAD_INIT(NULL)1, __null,
8574 NULL__null, /* m_init */
8575 0, /* m_index */
8576 NULL__null, /* m_copy */
8577 },
8578# endif
8579 (char *) SWIG_name"_xspec",
8580 NULL__null,
8581 -1,
8582 SwigMethods,
8583 NULL__null,
8584 NULL__null,
8585 NULL__null,
8586 NULL__null
8587 };
8588#endif
8589
8590#if defined(SWIGPYTHON_BUILTIN)
8591 static SwigPyClientData SwigPyObject_clientdata = {
8592 0, 0, 0, 0, 0, 0, 0
8593 };
8594 static PyGetSetDef this_getset_def = {
8595 (char *)"this", &SwigPyBuiltin_ThisClosure, NULL__null, NULL__null, NULL__null
8596 };
8597 static SwigPyGetSet thisown_getset_closure = {
8598 (PyCFunction) SwigPyObject_own,
8599 (PyCFunction) SwigPyObject_own
8600 };
8601 static PyGetSetDef thisown_getset_def = {
8602 (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL__null, &thisown_getset_closure
8603 };
8604 PyObject *metatype_args;
8605 PyTypeObject *builtin_pytype;
8606 int builtin_base_count;
8607 swig_type_info *builtin_basetype;
8608 PyObject *tuple;
8609 PyGetSetDescrObject *static_getset;
8610 PyTypeObject *metatype;
8611 SwigPyClientData *cd;
8612 PyObject *public_interface, *public_symbol;
8613 PyObject *this_descr;
8614 PyObject *thisown_descr;
8615 int i;
8616
8617 (void)builtin_pytype;
8618 (void)builtin_base_count;
8619 (void)builtin_basetype;
8620 (void)tuple;
8621 (void)static_getset;
8622
8623 /* metatype is used to implement static member variables. */
8624 metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type);
8625 assert(metatype_args)((void)0);
8626 metatype = (PyTypeObject *) PyType_Type.tp_call((PyObject *) &PyType_Type, metatype_args, NULL__null);
8627 assert(metatype)((void)0);
8628 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)
;
8629 metatype->tp_setattro = (setattrofunc) &SwigPyObjectType_setattro;
8630 assert(PyType_Ready(metatype) >= 0)((void)0);
8631#endif
8632
8633 /* Fix SwigMethods to carry the callback ptrs when needed */
8634 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
8635
8636#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
8637 m = PyModule_Create(&SWIG_module);
8638#else
8639 m = Py_InitModule((char *) SWIG_name, SwigMethods)Py_InitModule4_64((char *) "_xspec", SwigMethods, (char *)__null
, (PyObject *)__null, 1013)
;
8640#endif
8641 md = d = PyModule_GetDict(m);
8642 (void)md;
8643
8644 SWIG_InitializeModule(0);
8645
8646#ifdef SWIGPYTHON_BUILTIN
8647 SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject")SWIG_MangledTypeQueryModule(&swig_module, &swig_module
, "_p_SwigPyObject")
;
8648 assert(SwigPyObject_stype)((void)0);
8649 cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
8650 if (!cd) {
8651 SwigPyObject_stype->clientdata = &SwigPyObject_clientdata;
8652 SwigPyObject_clientdata.pytype = SwigPyObject_TypeOnce();
8653 } else if (SwigPyObject_TypeOnce()->tp_basicsize != cd->pytype->tp_basicsize) {
8654 PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules.");
8655# if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
8656 return NULL__null;
8657# else
8658 return;
8659# endif
8660 }
8661
8662 /* All objects have a 'this' attribute */
8663 this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def);
8664 (void)this_descr;
8665
8666 /* All objects have a 'thisown' attribute */
8667 thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def);
8668 (void)thisown_descr;
8669
8670 public_interface = PyList_New(0);
8671 public_symbol = 0;
8672 (void)public_symbol;
8673
8674 PyDict_SetItemString(md, "__all__", public_interface);
8675 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)
;
8676 for (i = 0; SwigMethods[i].ml_name != NULL__null; ++i)
8677 SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name);
8678 for (i = 0; swig_const_table[i].name != 0; ++i)
8679 SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name);
8680#endif
8681
8682 SWIG_InstallConstants(d,swig_const_table)SWIG_Python_InstallConstants(d, swig_const_table);
8683
8684#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
8685 return m;
8686#else
8687 return;
8688#endif
8689}
8690