Bug Summary

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

Annotated Source Code

1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 2.0.11
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14
15#ifdef __cplusplus199711L
16/* SwigValueWrapper is described in swig.swg */
17template<typename T> class SwigValueWrapper {
18 struct SwigMovePointer {
19 T *ptr;
20 SwigMovePointer(T *p) : ptr(p) { }
21 ~SwigMovePointer() { delete ptr; }
22 SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
23 } pointer;
24 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
25 SwigValueWrapper(const SwigValueWrapper<T>& rhs);
26public:
27 SwigValueWrapper() : pointer(0) { }
28 SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
29 operator T&() const { return *pointer.ptr; }
30 T *operator&() { return pointer.ptr; }
31};
32
33template <typename T> T SwigValueInit() {
34 return T();
35}
36#endif
37
38/* -----------------------------------------------------------------------------
39 * This section contains generic SWIG labels for method/variable
40 * declarations/attributes, and other compiler dependent labels.
41 * ----------------------------------------------------------------------------- */
42
43/* template workaround for compilers that cannot correctly implement the C++ standard */
44#ifndef SWIGTEMPLATEDISAMBIGUATOR
45# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
46# define SWIGTEMPLATEDISAMBIGUATOR template
47# elif defined(__HP_aCC)
48/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
49/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
50# define SWIGTEMPLATEDISAMBIGUATOR template
51# else
52# define SWIGTEMPLATEDISAMBIGUATOR
53# endif
54#endif
55
56/* inline attribute */
57#ifndef SWIGINLINEinline
58# if defined(__cplusplus199711L) || (defined(__GNUC__4) && !defined(__STRICT_ANSI__))
59# define SWIGINLINEinline inline
60# else
61# define SWIGINLINEinline
62# endif
63#endif
64
65/* attribute recognised by some compilers to avoid 'unused' warnings */
66#ifndef SWIGUNUSED__attribute__ ((__unused__))
67# if defined(__GNUC__4)
68# if !(defined(__cplusplus199711L)) || (__GNUC__4 > 3 || (__GNUC__4 == 3 && __GNUC_MINOR__2 >= 4))
69# define SWIGUNUSED__attribute__ ((__unused__)) __attribute__ ((__unused__))
70# else
71# define SWIGUNUSED__attribute__ ((__unused__))
72# endif
73# elif defined(__ICC)
74# define SWIGUNUSED__attribute__ ((__unused__)) __attribute__ ((__unused__))
75# else
76# define SWIGUNUSED__attribute__ ((__unused__))
77# endif
78#endif
79
80#ifndef SWIG_MSC_UNSUPPRESS_4505
81# if defined(_MSC_VER)
82# pragma warning(disable : 4505) /* unreferenced local function has been removed */
83# endif
84#endif
85
86#ifndef SWIGUNUSEDPARM
87# ifdef __cplusplus199711L
88# define SWIGUNUSEDPARM(p)
89# else
90# define SWIGUNUSEDPARM(p) p SWIGUNUSED__attribute__ ((__unused__))
91# endif
92#endif
93
94/* internal SWIG method */
95#ifndef SWIGINTERNstatic __attribute__ ((__unused__))
96# define SWIGINTERNstatic __attribute__ ((__unused__)) static SWIGUNUSED__attribute__ ((__unused__))
97#endif
98
99/* internal inline SWIG method */
100#ifndef SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline
101# define SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline SWIGINTERNstatic __attribute__ ((__unused__)) SWIGINLINEinline
102#endif
103
104/* exporting methods */
105#if (__GNUC__4 >= 4) || (__GNUC__4 == 3 && __GNUC_MINOR__2 >= 4)
106# ifndef GCC_HASCLASSVISIBILITY
107# define GCC_HASCLASSVISIBILITY
108# endif
109#endif
110
111#ifndef SWIGEXPORT__attribute__ ((visibility("default")))
112# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
113# if defined(STATIC_LINKED)
114# define SWIGEXPORT__attribute__ ((visibility("default")))
115# else
116# define SWIGEXPORT__attribute__ ((visibility("default"))) __declspec(dllexport)
117# endif
118# else
119# if defined(__GNUC__4) && defined(GCC_HASCLASSVISIBILITY)
120# define SWIGEXPORT__attribute__ ((visibility("default"))) __attribute__ ((visibility("default")))
121# else
122# define SWIGEXPORT__attribute__ ((visibility("default")))
123# endif
124# endif
125#endif
126
127/* calling conventions for Windows */
128#ifndef SWIGSTDCALL
129# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
130# define SWIGSTDCALL __stdcall
131# else
132# define SWIGSTDCALL
133# endif
134#endif
135
136/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
137#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
138# define _CRT_SECURE_NO_DEPRECATE
139#endif
140
141/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
142#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
143# define _SCL_SECURE_NO_DEPRECATE
144#endif
145
146
147
148#if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG)
149/* Use debug wrappers with the Python release dll */
150# undef _DEBUG
151# include <Python.h>
152# define _DEBUG
153#else
154# include <Python.h>
155#endif
156
157/* -----------------------------------------------------------------------------
158 * swigrun.swg
159 *
160 * This file contains generic C API SWIG runtime support for pointer
161 * type checking.
162 * ----------------------------------------------------------------------------- */
163
164/* This should only be incremented when either the layout of swig_type_info changes,
165 or for whatever reason, the runtime changes incompatibly */
166#define SWIG_RUNTIME_VERSION"4" "4"
167
168/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
169#ifdef SWIG_TYPE_TABLE
170# define SWIG_QUOTE_STRING(x) #x
171# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
172# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
173#else
174# define SWIG_TYPE_TABLE_NAME
175#endif
176
177/*
178 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
179 creating a static or dynamic library from the SWIG runtime code.
180 In 99.9% of the cases, SWIG just needs to declare them as 'static'.
181
182 But only do this if strictly necessary, ie, if you have problems
183 with your compiler or suchlike.
184*/
185
186#ifndef SWIGRUNTIMEstatic __attribute__ ((__unused__))
187# define SWIGRUNTIMEstatic __attribute__ ((__unused__)) SWIGINTERNstatic __attribute__ ((__unused__))
188#endif
189
190#ifndef SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline
191# define SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline SWIGRUNTIMEstatic __attribute__ ((__unused__)) SWIGINLINEinline
192#endif
193
194/* Generic buffer size */
195#ifndef SWIG_BUFFER_SIZE1024
196# define SWIG_BUFFER_SIZE1024 1024
197#endif
198
199/* Flags for pointer conversions */
200#define SWIG_POINTER_DISOWN0x1 0x1
201#define SWIG_CAST_NEW_MEMORY0x2 0x2
202
203/* Flags for new pointer objects */
204#define SWIG_POINTER_OWN0x1 0x1
205
206
207/*
208 Flags/methods for returning states.
209
210 The SWIG conversion methods, as ConvertPtr, return an integer
211 that tells if the conversion was successful or not. And if not,
212 an error code can be returned (see swigerrors.swg for the codes).
213
214 Use the following macros/flags to set or process the returning
215 states.
216
217 In old versions of SWIG, code such as the following was usually written:
218
219 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
220 // success code
221 } else {
222 //fail code
223 }
224
225 Now you can be more explicit:
226
227 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
228 if (SWIG_IsOK(res)) {
229 // success code
230 } else {
231 // fail code
232 }
233
234 which is the same really, but now you can also do
235
236 Type *ptr;
237 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
238 if (SWIG_IsOK(res)) {
239 // success code
240 if (SWIG_IsNewObj(res) {
241 ...
242 delete *ptr;
243 } else {
244 ...
245 }
246 } else {
247 // fail code
248 }
249
250 I.e., now SWIG_ConvertPtr can return new objects and you can
251 identify the case and take care of the deallocation. Of course that
252 also requires SWIG_ConvertPtr to return new result values, such as
253
254 int SWIG_ConvertPtr(obj, ptr,...) {
255 if (<obj is ok>) {
256 if (<need new object>) {
257 *ptr = <ptr to new allocated object>;
258 return SWIG_NEWOBJ;
259 } else {
260 *ptr = <ptr to old object>;
261 return SWIG_OLDOBJ;
262 }
263 } else {
264 return SWIG_BADOBJ;
265 }
266 }
267
268 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
269 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
270 SWIG errors code.
271
272 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
273 allows to return the 'cast rank', for example, if you have this
274
275 int food(double)
276 int fooi(int);
277
278 and you call
279
280 food(1) // cast rank '1' (1 -> 1.0)
281 fooi(1) // cast rank '0'
282
283 just use the SWIG_AddCast()/SWIG_CheckState()
284*/
285
286#define SWIG_OK(0) (0)
287#define SWIG_ERROR(-1) (-1)
288#define SWIG_IsOK(r)(r >= 0) (r >= 0)
289#define SWIG_ArgError(r)((r != (-1)) ? r : -5) ((r != SWIG_ERROR(-1)) ? r : SWIG_TypeError-5)
290
291/* The CastRankLimit says how many bits are used for the cast rank */
292#define SWIG_CASTRANKLIMIT(1 << 8) (1 << 8)
293/* The NewMask denotes the object was created (using new/malloc) */
294#define SWIG_NEWOBJMASK((1 << 8) << 1) (SWIG_CASTRANKLIMIT(1 << 8) << 1)
295/* The TmpMask is for in/out typemaps that use temporal objects */
296#define SWIG_TMPOBJMASK(((1 << 8) << 1) << 1) (SWIG_NEWOBJMASK((1 << 8) << 1) << 1)
297/* Simple returning values */
298#define SWIG_BADOBJ((-1)) (SWIG_ERROR(-1))
299#define SWIG_OLDOBJ((0)) (SWIG_OK(0))
300#define SWIG_NEWOBJ((0) | ((1 << 8) << 1)) (SWIG_OK(0) | SWIG_NEWOBJMASK((1 << 8) << 1))
301#define SWIG_TMPOBJ((0) | (((1 << 8) << 1) << 1)) (SWIG_OK(0) | SWIG_TMPOBJMASK(((1 << 8) << 1) << 1))
302/* Check, add and del mask methods */
303#define SWIG_AddNewMask(r)((r >= 0) ? (r | ((1 << 8) << 1)) : r) (SWIG_IsOK(r)(r >= 0) ? (r | SWIG_NEWOBJMASK((1 << 8) << 1)) : r)
304#define SWIG_DelNewMask(r)((r >= 0) ? (r & ~((1 << 8) << 1)) : r) (SWIG_IsOK(r)(r >= 0) ? (r & ~SWIG_NEWOBJMASK((1 << 8) << 1)) : r)
305#define SWIG_IsNewObj(r)((r >= 0) && (r & ((1 << 8) << 1))
)
(SWIG_IsOK(r)(r >= 0) && (r & SWIG_NEWOBJMASK((1 << 8) << 1)))
306#define SWIG_AddTmpMask(r)((r >= 0) ? (r | (((1 << 8) << 1) << 1))
: r)
(SWIG_IsOK(r)(r >= 0) ? (r | SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)) : r)
307#define SWIG_DelTmpMask(r)((r >= 0) ? (r & ~(((1 << 8) << 1) <<
1)) : r)
(SWIG_IsOK(r)(r >= 0) ? (r & ~SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)) : r)
308#define SWIG_IsTmpObj(r)((r >= 0) && (r & (((1 << 8) << 1)
<< 1)))
(SWIG_IsOK(r)(r >= 0) && (r & SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)))
309
310/* Cast-Rank Mode */
311#if defined(SWIG_CASTRANK_MODE)
312# ifndef SWIG_TypeRank
313# define SWIG_TypeRank unsigned long
314# endif
315# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
316# define SWIG_MAXCASTRANK (2)
317# endif
318# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT(1 << 8)) -1)
319# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
320SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int SWIG_AddCast(int r)(int r) {
321 return SWIG_IsOK(r)(r >= 0) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR(-1)) : r;
322}
323SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int SWIG_CheckState(int r)((int r >= 0) ? 1 : 0) {
324 return SWIG_IsOK(r)(r >= 0) ? SWIG_CastRank(r) + 1 : 0;
325}
326#else /* no cast-rank mode */
327# define SWIG_AddCast(r)(r) (r)
328# define SWIG_CheckState(r)((r >= 0) ? 1 : 0) (SWIG_IsOK(r)(r >= 0) ? 1 : 0)
329#endif
330
331
332#include <string.h>
333
334#ifdef __cplusplus199711L
335extern "C" {
336#endif
337
338typedef void *(*swig_converter_func)(void *, int *);
339typedef struct swig_type_info *(*swig_dycast_func)(void **);
340
341/* Structure to store information on one type */
342typedef struct swig_type_info {
343 const char *name; /* mangled name of this type */
344 const char *str; /* human readable name of this type */
345 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
346 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
347 void *clientdata; /* language specific type data */
348 int owndata; /* flag if the structure owns the clientdata */
349} swig_type_info;
350
351/* Structure to store a type and conversion function used for casting */
352typedef struct swig_cast_info {
353 swig_type_info *type; /* pointer to type that is equivalent to this type */
354 swig_converter_func converter; /* function to cast the void pointers */
355 struct swig_cast_info *next; /* pointer to next cast in linked list */
356 struct swig_cast_info *prev; /* pointer to the previous cast */
357} swig_cast_info;
358
359/* Structure used to store module information
360 * Each module generates one structure like this, and the runtime collects
361 * all of these structures and stores them in a circularly linked list.*/
362typedef struct swig_module_info {
363 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
364 size_t size; /* Number of types in this module */
365 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
366 swig_type_info **type_initial; /* Array of initially generated type structures */
367 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
368 void *clientdata; /* Language specific module data */
369} swig_module_info;
370
371/*
372 Compare two type names skipping the space characters, therefore
373 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
374
375 Return 0 when the two name types are equivalent, as in
376 strncmp, but skipping ' '.
377*/
378SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
379SWIG_TypeNameComp(const char *f1, const char *l1,
380 const char *f2, const char *l2) {
381 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
382 while ((*f1 == ' ') && (f1 != l1)) ++f1;
383 while ((*f2 == ' ') && (f2 != l2)) ++f2;
384 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
385 }
386 return (int)((l1 - f1) - (l2 - f2));
387}
388
389/*
390 Check type equivalence in a name list like <name1>|<name2>|...
391 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
392*/
393SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
394SWIG_TypeCmp(const char *nb, const char *tb) {
395 int equiv = 1;
396 const char* te = tb + strlen(tb);
397 const char* ne = nb;
398 while (equiv != 0 && *ne) {
399 for (nb = ne; *ne; ++ne) {
400 if (*ne == '|') break;
401 }
402 equiv = SWIG_TypeNameComp(nb, ne, tb, te);
403 if (*ne) ++ne;
404 }
405 return equiv;
406}
407
408/*
409 Check type equivalence in a name list like <name1>|<name2>|...
410 Return 0 if not equal, 1 if equal
411*/
412SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
413SWIG_TypeEquiv(const char *nb, const char *tb) {
414 return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
415}
416
417/*
418 Check the typename
419*/
420SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_cast_info *
421SWIG_TypeCheck(const char *c, swig_type_info *ty) {
422 if (ty) {
423 swig_cast_info *iter = ty->cast;
424 while (iter) {
425 if (strcmp(iter->type->name, c) == 0) {
426 if (iter == ty->cast)
427 return iter;
428 /* Move iter to the top of the linked list */
429 iter->prev->next = iter->next;
430 if (iter->next)
431 iter->next->prev = iter->prev;
432 iter->next = ty->cast;
433 iter->prev = 0;
434 if (ty->cast) ty->cast->prev = iter;
435 ty->cast = iter;
436 return iter;
437 }
438 iter = iter->next;
439 }
440 }
441 return 0;
442}
443
444/*
445 Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
446*/
447SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_cast_info *
448SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
449 if (ty) {
450 swig_cast_info *iter = ty->cast;
451 while (iter) {
452 if (iter->type == from) {
453 if (iter == ty->cast)
454 return iter;
455 /* Move iter to the top of the linked list */
456 iter->prev->next = iter->next;
457 if (iter->next)
458 iter->next->prev = iter->prev;
459 iter->next = ty->cast;
460 iter->prev = 0;
461 if (ty->cast) ty->cast->prev = iter;
462 ty->cast = iter;
463 return iter;
464 }
465 iter = iter->next;
466 }
467 }
468 return 0;
469}
470
471/*
472 Cast a pointer up an inheritance hierarchy
473*/
474SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline void *
475SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
476 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
477}
478
479/*
480 Dynamic pointer casting. Down an inheritance hierarchy
481*/
482SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
483SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
484 swig_type_info *lastty = ty;
485 if (!ty || !ty->dcast) return ty;
486 while (ty && (ty->dcast)) {
487 ty = (*ty->dcast)(ptr);
488 if (ty) lastty = ty;
489 }
490 return lastty;
491}
492
493/*
494 Return the name associated with this type
495*/
496SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline const char *
497SWIG_TypeName(const swig_type_info *ty) {
498 return ty->name;
499}
500
501/*
502 Return the pretty name associated with this type,
503 that is an unmangled type name in a form presentable to the user.
504*/
505SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
506SWIG_TypePrettyName(const swig_type_info *type) {
507 /* The "str" field contains the equivalent pretty names of the
508 type, separated by vertical-bar characters. We choose
509 to print the last name, as it is often (?) the most
510 specific. */
511 if (!type) return NULL__null;
512 if (type->str != NULL__null) {
513 const char *last_name = type->str;
514 const char *s;
515 for (s = type->str; *s; s++)
516 if (*s == '|') last_name = s+1;
517 return last_name;
518 }
519 else
520 return type->name;
521}
522
523/*
524 Set the clientdata field for a type
525*/
526SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
527SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
528 swig_cast_info *cast = ti->cast;
529 /* if (ti->clientdata == clientdata) return; */
530 ti->clientdata = clientdata;
531
532 while (cast) {
533 if (!cast->converter) {
534 swig_type_info *tc = cast->type;
535 if (!tc->clientdata) {
536 SWIG_TypeClientData(tc, clientdata);
537 }
538 }
539 cast = cast->next;
540 }
541}
542SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
543SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
544 SWIG_TypeClientData(ti, clientdata);
545 ti->owndata = 1;
546}
547
548/*
549 Search for a swig_type_info structure only by mangled name
550 Search is a O(log #types)
551
552 We start searching at module start, and finish searching when start == end.
553 Note: if start == end at the beginning of the function, we go all the way around
554 the circular list.
555*/
556SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
557SWIG_MangledTypeQueryModule(swig_module_info *start,
558 swig_module_info *end,
559 const char *name) {
560 swig_module_info *iter = start;
561 do {
562 if (iter->size) {
563 register size_t l = 0;
564 register size_t r = iter->size - 1;
565 do {
566 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
567 register size_t i = (l + r) >> 1;
568 const char *iname = iter->types[i]->name;
569 if (iname) {
570 register int compare = strcmp(name, iname);
571 if (compare == 0) {
572 return iter->types[i];
573 } else if (compare < 0) {
574 if (i) {
575 r = i - 1;
576 } else {
577 break;
578 }
579 } else if (compare > 0) {
580 l = i + 1;
581 }
582 } else {
583 break; /* should never happen */
584 }
585 } while (l <= r);
586 }
587 iter = iter->next;
588 } while (iter != end);
589 return 0;
590}
591
592/*
593 Search for a swig_type_info structure for either a mangled name or a human readable name.
594 It first searches the mangled names of the types, which is a O(log #types)
595 If a type is not found it then searches the human readable names, which is O(#types).
596
597 We start searching at module start, and finish searching when start == end.
598 Note: if start == end at the beginning of the function, we go all the way around
599 the circular list.
600*/
601SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
602SWIG_TypeQueryModule(swig_module_info *start,
603 swig_module_info *end,
604 const char *name) {
605 /* STEP 1: Search the name field using binary search */
606 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
607 if (ret) {
608 return ret;
609 } else {
610 /* STEP 2: If the type hasn't been found, do a complete search
611 of the str field (the human readable name) */
612 swig_module_info *iter = start;
613 do {
614 register size_t i = 0;
615 for (; i < iter->size; ++i) {
616 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
617 return iter->types[i];
618 }
619 iter = iter->next;
620 } while (iter != end);
621 }
622
623 /* neither found a match */
624 return 0;
625}
626
627/*
628 Pack binary data into a string
629*/
630SWIGRUNTIMEstatic __attribute__ ((__unused__)) char *
631SWIG_PackData(char *c, void *ptr, size_t sz) {
632 static const char hex[17] = "0123456789abcdef";
633 register const unsigned char *u = (unsigned char *) ptr;
634 register const unsigned char *eu = u + sz;
635 for (; u != eu; ++u) {
636 register unsigned char uu = *u;
637 *(c++) = hex[(uu & 0xf0) >> 4];
638 *(c++) = hex[uu & 0xf];
639 }
640 return c;
641}
642
643/*
644 Unpack binary data from a string
645*/
646SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
647SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
648 register unsigned char *u = (unsigned char *) ptr;
649 register const unsigned char *eu = u + sz;
650 for (; u != eu; ++u) {
651 register char d = *(c++);
652 register unsigned char uu;
653 if ((d >= '0') && (d <= '9'))
654 uu = ((d - '0') << 4);
655 else if ((d >= 'a') && (d <= 'f'))
656 uu = ((d - ('a'-10)) << 4);
657 else
658 return (char *) 0;
659 d = *(c++);
660 if ((d >= '0') && (d <= '9'))
661 uu |= (d - '0');
662 else if ((d >= 'a') && (d <= 'f'))
663 uu |= (d - ('a'-10));
664 else
665 return (char *) 0;
666 *u = uu;
667 }
668 return c;
669}
670
671/*
672 Pack 'void *' into a string buffer.
673*/
674SWIGRUNTIMEstatic __attribute__ ((__unused__)) char *
675SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
676 char *r = buff;
677 if ((2*sizeof(void *) + 2) > bsz) return 0;
678 *(r++) = '_';
679 r = SWIG_PackData(r,&ptr,sizeof(void *));
680 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
681 strcpy(r,name);
682 return buff;
683}
684
685SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
686SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
687 if (*c != '_') {
688 if (strcmp(c,"NULL") == 0) {
689 *ptr = (void *) 0;
690 return name;
691 } else {
692 return 0;
693 }
694 }
695 return SWIG_UnpackData(++c,ptr,sizeof(void *));
696}
697
698SWIGRUNTIMEstatic __attribute__ ((__unused__)) char *
699SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
700 char *r = buff;
701 size_t lname = (name ? strlen(name) : 0);
702 if ((2*sz + 2 + lname) > bsz) return 0;
703 *(r++) = '_';
704 r = SWIG_PackData(r,ptr,sz);
705 if (lname) {
706 strncpy(r,name,lname+1);
707 } else {
708 *r = 0;
709 }
710 return buff;
711}
712
713SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
714SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
715 if (*c != '_') {
716 if (strcmp(c,"NULL") == 0) {
717 memset(ptr,0,sz);
718 return name;
719 } else {
720 return 0;
721 }
722 }
723 return SWIG_UnpackData(++c,ptr,sz);
724}
725
726#ifdef __cplusplus199711L
727}
728#endif
729
730/* Errors in SWIG */
731#define SWIG_UnknownError-1 -1
732#define SWIG_IOError-2 -2
733#define SWIG_RuntimeError-3 -3
734#define SWIG_IndexError-4 -4
735#define SWIG_TypeError-5 -5
736#define SWIG_DivisionByZero-6 -6
737#define SWIG_OverflowError-7 -7
738#define SWIG_SyntaxError-8 -8
739#define SWIG_ValueError-9 -9
740#define SWIG_SystemError-10 -10
741#define SWIG_AttributeError-11 -11
742#define SWIG_MemoryError-12 -12
743#define SWIG_NullReferenceError-13 -13
744
745
746
747/* Compatibility macros for Python 3 */
748#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
749
750#define PyClass_Check(obj)((obj)->ob_type == &PyClass_Type) PyObject_IsInstance(obj, (PyObject *)&PyType_Type)
751#define PyInt_Check(x)((((x)->ob_type)->tp_flags & ((1L<<23))) != 0
)
PyLong_Check(x)((((((PyObject*)(x))->ob_type))->tp_flags & ((1L<<
24))) != 0)
752#define PyInt_AsLong(x) PyLong_AsLong(x)
753#define PyInt_FromLong(x) PyLong_FromLong(x)
754#define PyInt_FromSize_t(x) PyLong_FromSize_t(x)
755#define PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<27))) != 0)
PyBytes_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<27))) != 0)
756#define PyString_FromString(x) PyUnicode_FromStringPyUnicodeUCS2_FromString(x)
757#define PyString_Format(fmt, args) PyUnicode_FormatPyUnicodeUCS2_Format(fmt, args)
758#define PyString_AsString(str) PyBytes_AsStringPyString_AsString(str)
759#define PyString_Size(str) PyBytes_SizePyString_Size(str)
760#define PyString_InternFromString(key) PyUnicode_InternFromString(key)
761#define Py_TPFLAGS_HAVE_CLASS(1L<<8) Py_TPFLAGS_BASETYPE(1L<<10)
762#define PyString_AS_STRING(x)(((PyStringObject *)(x))->ob_sval) PyUnicode_AS_STRING(x)
763#define _PyLong_FromSsize_tPyLong_FromSsize_t(x) PyLong_FromSsize_t(x)
764
765#endif
766
767#ifndef Py_TYPE
768# define Py_TYPE(op)(((PyObject*)(op))->ob_type) ((op)->ob_type)
769#endif
770
771/* SWIG APIs for compatibility of both Python 2 & 3 */
772
773#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
774# define SWIG_Python_str_FromFormatPyString_FromFormat PyUnicode_FromFormatPyUnicodeUCS2_FromFormat
775#else
776# define SWIG_Python_str_FromFormatPyString_FromFormat PyString_FromFormat
777#endif
778
779
780/* Warning: This function will allocate a new string in Python 3,
781 * so please call SWIG_Python_str_DelForPy3(x) to free the space.
782 */
783SWIGINTERNstatic __attribute__ ((__unused__)) char*
784SWIG_Python_str_AsChar(PyObject *str)
785{
786#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
787 char *cstr;
788 char *newstr;
789 Py_ssize_t len;
790 str = PyUnicode_AsUTF8StringPyUnicodeUCS2_AsUTF8String(str);
791 PyBytes_AsStringAndSizePyString_AsStringAndSize(str, &cstr, &len);
792 newstr = (char *) malloc(len+1);
793 memcpy(newstr, cstr, len+1);
794 Py_XDECREF(str)do { if ((str) == __null) ; else do { if ( --((PyObject*)(str
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
str)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)
(str)))); } while (0); } while (0)
;
795 return newstr;
796#else
797 return PyString_AsString(str);
798#endif
799}
800
801#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
802# define SWIG_Python_str_DelForPy3(x) free( (void*) (x) )
803#else
804# define SWIG_Python_str_DelForPy3(x)
805#endif
806
807
808SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
809SWIG_Python_str_FromChar(const char *c)
810{
811#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
812 return PyUnicode_FromStringPyUnicodeUCS2_FromString(c);
813#else
814 return PyString_FromString(c);
815#endif
816}
817
818/* Add PyOS_snprintf for old Pythons */
819#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
820# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
821# define PyOS_snprintf _snprintf
822# else
823# define PyOS_snprintf snprintf
824# endif
825#endif
826
827/* A crude PyString_FromFormat implementation for old Pythons */
828#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
829
830#ifndef SWIG_PYBUFFER_SIZE
831# define SWIG_PYBUFFER_SIZE 1024
832#endif
833
834static PyObject *
835PyString_FromFormat(const char *fmt, ...) {
836 va_list ap;
837 char buf[SWIG_PYBUFFER_SIZE * 2];
838 int res;
839 va_start(ap, fmt)__builtin_va_start(ap, fmt);
840 res = vsnprintf(buf, sizeof(buf), fmt, ap);
841 va_end(ap)__builtin_va_end(ap);
842 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
843}
844#endif
845
846/* Add PyObject_Del for old Pythons */
847#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x01060000
848# define PyObject_DelPyObject_Free(op) PyMem_DELfree((op))
849#endif
850#ifndef PyObject_DELPyObject_Free
851# define PyObject_DELPyObject_Free PyObject_DelPyObject_Free
852#endif
853
854/* A crude PyExc_StopIteration exception for old Pythons */
855#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
856# ifndef PyExc_StopIteration
857# define PyExc_StopIteration PyExc_RuntimeError
858# endif
859# ifndef PyObject_GenericGetAttr
860# define PyObject_GenericGetAttr 0
861# endif
862#endif
863
864/* Py_NotImplemented is defined in 2.1 and up. */
865#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02010000
866# ifndef Py_NotImplemented(&_Py_NotImplementedStruct)
867# define Py_NotImplemented(&_Py_NotImplementedStruct) PyExc_RuntimeError
868# endif
869#endif
870
871/* A crude PyString_AsStringAndSize implementation for old Pythons */
872#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02010000
873# ifndef PyString_AsStringAndSize
874# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
875# endif
876#endif
877
878/* PySequence_Size for old Pythons */
879#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02000000
880# ifndef PySequence_Size
881# define PySequence_Size PySequence_LengthPySequence_Size
882# endif
883#endif
884
885/* PyBool_FromLong for old Pythons */
886#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
887static
888PyObject *PyBool_FromLong(long ok)
889{
890 PyObject *result = ok ? Py_True((PyObject *) &_Py_TrueStruct) : Py_False((PyObject *) &_Py_ZeroStruct);
891 Py_INCREF(result)( ((PyObject*)(result))->ob_refcnt++);
892 return result;
893}
894#endif
895
896/* Py_ssize_t for old Pythons */
897/* This code is as recommended by: */
898/* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */
899#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02050000 && !defined(PY_SSIZE_T_MIN(-((Py_ssize_t)(((size_t)-1)>>1))-1))
900typedef int Py_ssize_t;
901# define PY_SSIZE_T_MAX((Py_ssize_t)(((size_t)-1)>>1)) INT_MAX2147483647
902# define PY_SSIZE_T_MIN(-((Py_ssize_t)(((size_t)-1)>>1))-1) INT_MIN(-2147483647 -1)
903typedef inquiry lenfunc;
904typedef intargfunc ssizeargfunc;
905typedef intintargfunc ssizessizeargfunc;
906typedef intobjargproc ssizeobjargproc;
907typedef intintobjargproc ssizessizeobjargproc;
908typedef getreadbufferproc readbufferproc;
909typedef getwritebufferproc writebufferproc;
910typedef getsegcountproc segcountproc;
911typedef getcharbufferproc charbufferproc;
912static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc))
913{
914 long result = 0;
915 PyObject *i = PyNumber_Int(x);
916 if (i) {
917 result = PyInt_AsLong(i);
918 Py_DECREF(i)do { if ( --((PyObject*)(i))->ob_refcnt != 0) ; else ( (*(
((PyObject*)((PyObject *)(i)))->ob_type)->tp_dealloc)((
PyObject *)((PyObject *)(i)))); } while (0)
;
919 }
920 return result;
921}
922#endif
923
924#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02050000
925#define PyInt_FromSize_t(x) PyInt_FromLong((long)x)
926#endif
927
928#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02040000
929#define Py_VISIT(op)do { if (op) { int vret = visit((PyObject *)(op), arg); if (vret
) return vret; } } while (0)
\
930 do { \
931 if (op) { \
932 int vret = visit((op), arg); \
933 if (vret) \
934 return vret; \
935 } \
936 } while (0)
937#endif
938
939#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
940typedef struct {
941 PyTypeObject type;
942 PyNumberMethods as_number;
943 PyMappingMethods as_mapping;
944 PySequenceMethods as_sequence;
945 PyBufferProcs as_buffer;
946 PyObject *name, *slots;
947} PyHeapTypeObject;
948#endif
949
950#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
951typedef destructor freefunc;
952#endif
953
954#if ((PY_MAJOR_VERSION2 == 2 && PY_MINOR_VERSION7 > 6) || \
955 (PY_MAJOR_VERSION2 == 3 && PY_MINOR_VERSION7 > 0) || \
956 (PY_MAJOR_VERSION2 > 3))
957# define SWIGPY_USE_CAPSULE
958# define SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ) ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4" ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME)
959#endif
960
961#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03020000
962#define PyDescr_TYPE(x)(((PyDescrObject *)(x))->d_type) (((PyDescrObject *)(x))->d_type)
963#define PyDescr_NAME(x)(((PyDescrObject *)(x))->d_name) (((PyDescrObject *)(x))->d_name)
964#endif
965
966/* -----------------------------------------------------------------------------
967 * error manipulation
968 * ----------------------------------------------------------------------------- */
969
970SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
971SWIG_Python_ErrorType(int code) {
972 PyObject* type = 0;
973 switch(code) {
974 case SWIG_MemoryError-12:
975 type = PyExc_MemoryError;
976 break;
977 case SWIG_IOError-2:
978 type = PyExc_IOError;
979 break;
980 case SWIG_RuntimeError-3:
981 type = PyExc_RuntimeError;
982 break;
983 case SWIG_IndexError-4:
984 type = PyExc_IndexError;
985 break;
986 case SWIG_TypeError-5:
987 type = PyExc_TypeError;
988 break;
989 case SWIG_DivisionByZero-6:
990 type = PyExc_ZeroDivisionError;
991 break;
992 case SWIG_OverflowError-7:
993 type = PyExc_OverflowError;
994 break;
995 case SWIG_SyntaxError-8:
996 type = PyExc_SyntaxError;
997 break;
998 case SWIG_ValueError-9:
999 type = PyExc_ValueError;
1000 break;
1001 case SWIG_SystemError-10:
1002 type = PyExc_SystemError;
1003 break;
1004 case SWIG_AttributeError-11:
1005 type = PyExc_AttributeError;
1006 break;
1007 default:
1008 type = PyExc_RuntimeError;
1009 }
1010 return type;
1011}
1012
1013
1014SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
1015SWIG_Python_AddErrorMsg(const char* mesg)
1016{
1017 PyObject *type = 0;
1018 PyObject *value = 0;
1019 PyObject *traceback = 0;
1020
1021 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
1022 if (value) {
1023 char *tmp;
1024 PyObject *old_str = PyObject_Str(value);
1025 PyErr_Clear();
1026 Py_XINCREF(type)do { if ((type) == __null) ; else ( ((PyObject*)(type))->ob_refcnt
++); } while (0)
;
1027
1028 PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
1029 SWIG_Python_str_DelForPy3(tmp);
1030 Py_DECREF(old_str)do { if ( --((PyObject*)(old_str))->ob_refcnt != 0) ; else
( (*(((PyObject*)((PyObject *)(old_str)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(old_str)))); } while (0)
;
1031 Py_DECREF(value)do { if ( --((PyObject*)(value))->ob_refcnt != 0) ; else (
(*(((PyObject*)((PyObject *)(value)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(value)))); } while (0)
;
1032 } else {
1033 PyErr_SetString(PyExc_RuntimeError, mesg);
1034 }
1035}
1036
1037#if defined(SWIG_PYTHON_NO_THREADS)
1038# if defined(SWIG_PYTHON_THREADS)
1039# undef SWIG_PYTHON_THREADS
1040# endif
1041#endif
1042#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
1043# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
1044# if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
1045# define SWIG_PYTHON_USE_GIL
1046# endif
1047# endif
1048# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
1049# ifndef SWIG_PYTHON_INITIALIZE_THREADS
1050# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
1051# endif
1052# ifdef __cplusplus199711L /* C++ code */
1053 class SWIG_Python_Thread_Block {
1054 bool status;
1055 PyGILState_STATE state;
1056 public:
1057 void end() { if (status) { PyGILState_Release(state); status = false;} }
1058 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
1059 ~SWIG_Python_Thread_Block() { end(); }
1060 };
1061 class SWIG_Python_Thread_Allow {
1062 bool status;
1063 PyThreadState *save;
1064 public:
1065 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
1066 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
1067 ~SWIG_Python_Thread_Allow() { end(); }
1068 };
1069# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
1070# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
1071# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
1072# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
1073# else /* C code */
1074# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
1075# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
1076# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
1077# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
1078# endif
1079# else /* Old thread way, not implemented, user must provide it */
1080# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
1081# define SWIG_PYTHON_INITIALIZE_THREADS
1082# endif
1083# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
1084# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1085# endif
1086# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
1087# define SWIG_PYTHON_THREAD_END_BLOCK
1088# endif
1089# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
1090# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1091# endif
1092# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
1093# define SWIG_PYTHON_THREAD_END_ALLOW
1094# endif
1095# endif
1096#else /* No thread support */
1097# define SWIG_PYTHON_INITIALIZE_THREADS
1098# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1099# define SWIG_PYTHON_THREAD_END_BLOCK
1100# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1101# define SWIG_PYTHON_THREAD_END_ALLOW
1102#endif
1103
1104/* -----------------------------------------------------------------------------
1105 * Python API portion that goes into the runtime
1106 * ----------------------------------------------------------------------------- */
1107
1108#ifdef __cplusplus199711L
1109extern "C" {
1110#endif
1111
1112/* -----------------------------------------------------------------------------
1113 * Constant declarations
1114 * ----------------------------------------------------------------------------- */
1115
1116/* Constant Types */
1117#define SWIG_PY_POINTER4 4
1118#define SWIG_PY_BINARY5 5
1119
1120/* Constant information structure */
1121typedef struct swig_const_info {
1122 int type;
1123 char *name;
1124 long lvalue;
1125 double dvalue;
1126 void *pvalue;
1127 swig_type_info **ptype;
1128} swig_const_info;
1129
1130
1131/* -----------------------------------------------------------------------------
1132 * Wrapper of PyInstanceMethod_New() used in Python 3
1133 * It is exported to the generated module, used for -fastproxy
1134 * ----------------------------------------------------------------------------- */
1135#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1136SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func)
1137{
1138 return PyInstanceMethod_New(func);
1139}
1140#else
1141SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(func))
1142{
1143 return NULL__null;
1144}
1145#endif
1146
1147#ifdef __cplusplus199711L
1148}
1149#endif
1150
1151
1152/* -----------------------------------------------------------------------------
1153 * pyrun.swg
1154 *
1155 * This file contains the runtime support for Python modules
1156 * and includes code for managing global variables and pointer
1157 * type checking.
1158 *
1159 * ----------------------------------------------------------------------------- */
1160
1161/* Common SWIG API */
1162
1163/* for raw pointers */
1164#define SWIG_Python_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1165#define SWIG_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) SWIG_Python_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1166#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
1167
1168#ifdef SWIGPYTHON_BUILTIN
1169#define SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags)
1170#else
1171#define SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_Python_NewPointerObj(NULL__null, ptr, type, flags)
1172#endif
1173
1174#define SWIG_InternalNewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_Python_NewPointerObj(NULL__null, ptr, type, flags)
1175
1176#define SWIG_CheckImplicit(ty)SWIG_Python_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
1177#define SWIG_AcquirePtr(ptr, src)SWIG_Python_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
1178#define swig_owntypeint int
1179
1180/* for raw packed data */
1181#define SWIG_ConvertPacked(obj, ptr, sz, ty)SWIG_Python_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1182#define SWIG_NewPackedObj(ptr, sz, type)SWIG_Python_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1183
1184/* for class or struct pointers */
1185#define SWIG_ConvertInstance(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) SWIG_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1186#define SWIG_NewInstanceObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags)
1187
1188/* for C or C++ function pointers */
1189#define SWIG_ConvertFunctionPtr(obj, pptr, type)SWIG_Python_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1190#define SWIG_NewFunctionPtrObj(ptr, type)SWIG_Python_NewPointerObj(__null, ptr, type, 0) SWIG_Python_NewPointerObj(NULL__null, ptr, type, 0)
1191
1192/* for C++ member pointers, ie, member methods */
1193#define SWIG_ConvertMember(obj, ptr, sz, ty)SWIG_Python_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1194#define SWIG_NewMemberObj(ptr, sz, type)SWIG_Python_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1195
1196
1197/* Runtime API */
1198
1199#define SWIG_GetModule(clientdata)SWIG_Python_GetModule(clientdata) SWIG_Python_GetModule(clientdata)
1200#define SWIG_SetModule(clientdata, pointer)SWIG_Python_SetModule(pointer) SWIG_Python_SetModule(pointer)
1201#define SWIG_NewClientData(obj)SwigPyClientData_New(obj) SwigPyClientData_New(obj)
1202
1203#define SWIG_SetErrorObjSWIG_Python_SetErrorObj SWIG_Python_SetErrorObj
1204#define SWIG_SetErrorMsgSWIG_Python_SetErrorMsg SWIG_Python_SetErrorMsg
1205#define SWIG_ErrorType(code)SWIG_Python_ErrorType(code) SWIG_Python_ErrorType(code)
1206#define SWIG_Error(code, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code)SWIG_Python_ErrorType(code), msg)
1207#define SWIG_failgoto fail goto fail
1208
1209
1210/* Runtime API implementation */
1211
1212/* Error manipulation */
1213
1214SWIGINTERNstatic __attribute__ ((__unused__)) void
1215SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1216 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1217 PyErr_SetObject(errtype, obj);
1218 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
1219 SWIG_PYTHON_THREAD_END_BLOCK;
1220}
1221
1222SWIGINTERNstatic __attribute__ ((__unused__)) void
1223SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1224 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1225 PyErr_SetString(errtype, msg);
1226 SWIG_PYTHON_THREAD_END_BLOCK;
1227}
1228
1229#define SWIG_Python_Raise(obj, type, desc)SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1230
1231/* Set a constant value */
1232
1233#if defined(SWIGPYTHON_BUILTIN)
1234
1235SWIGINTERNstatic __attribute__ ((__unused__)) void
1236SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) {
1237 PyObject *s = PyString_InternFromString(key);
1238 PyList_Append(seq, s);
1239 Py_DECREF(s)do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(
((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((
PyObject *)((PyObject *)(s)))); } while (0)
;
1240}
1241
1242SWIGINTERNstatic __attribute__ ((__unused__)) void
1243SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) {
1244#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
1245 PyDict_SetItemString(d, (char *)name, obj);
1246#else
1247 PyDict_SetItemString(d, name, obj);
1248#endif
1249 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
1250 if (public_interface)
1251 SwigPyBuiltin_AddPublicSymbol(public_interface, name);
1252}
1253
1254#else
1255
1256SWIGINTERNstatic __attribute__ ((__unused__)) void
1257SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1258#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
1259 PyDict_SetItemString(d, (char *)name, obj);
1260#else
1261 PyDict_SetItemString(d, name, obj);
1262#endif
1263 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
1264}
1265
1266#endif
1267
1268/* Append a value to the result obj */
1269
1270SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
1271SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1272#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1273 if (!result) {
1274 result = obj;
1275 } else if (result == Py_None(&_Py_NoneStruct)) {
1276 Py_DECREF(result)do { if ( --((PyObject*)(result))->ob_refcnt != 0) ; else (
(*(((PyObject*)((PyObject *)(result)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(result)))); } while (0)
;
1277 result = obj;
1278 } else {
1279 if (!PyList_Check(result)((((((PyObject*)(result))->ob_type))->tp_flags & ((
1L<<25))) != 0)
) {
1280 PyObject *o2 = result;
1281 result = PyList_New(1);
1282 PyList_SetItem(result, 0, o2);
1283 }
1284 PyList_Append(result,obj);
1285 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
1286 }
1287 return result;
1288#else
1289 PyObject* o2;
1290 PyObject* o3;
1291 if (!result) {
1292 result = obj;
1293 } else if (result == Py_None(&_Py_NoneStruct)) {
1294 Py_DECREF(result)do { if ( --((PyObject*)(result))->ob_refcnt != 0) ; else (
(*(((PyObject*)((PyObject *)(result)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(result)))); } while (0)
;
1295 result = obj;
1296 } else {
1297 if (!PyTuple_Check(result)((((((PyObject*)(result))->ob_type))->tp_flags & ((
1L<<26))) != 0)
) {
1298 o2 = result;
1299 result = PyTuple_New(1);
1300 PyTuple_SET_ITEM(result, 0, o2)(((PyTupleObject *)(result))->ob_item[0] = o2);
1301 }
1302 o3 = PyTuple_New(1);
1303 PyTuple_SET_ITEM(o3, 0, obj)(((PyTupleObject *)(o3))->ob_item[0] = obj);
1304 o2 = result;
1305 result = PySequence_Concat(o2, o3);
1306 Py_DECREF(o2)do { if ( --((PyObject*)(o2))->ob_refcnt != 0) ; else ( (*
(((PyObject*)((PyObject *)(o2)))->ob_type)->tp_dealloc)
((PyObject *)((PyObject *)(o2)))); } while (0)
;
1307 Py_DECREF(o3)do { if ( --((PyObject*)(o3))->ob_refcnt != 0) ; else ( (*
(((PyObject*)((PyObject *)(o3)))->ob_type)->tp_dealloc)
((PyObject *)((PyObject *)(o3)))); } while (0)
;
1308 }
1309 return result;
1310#endif
1311}
1312
1313/* Unpack the argument tuple */
1314
1315SWIGINTERNstatic __attribute__ ((__unused__)) int
1316SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
1317{
1318 if (!args) {
1319 if (!min && !max) {
1320 return 1;
1321 } else {
1322 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1323 name, (min == max ? "" : "at least "), (int)min);
1324 return 0;
1325 }
1326 }
1327 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) {
1328 if (min <= 1 && max >= 1) {
1329 register int i;
1330 objs[0] = args;
1331 for (i = 1; i < max; ++i) {
1332 objs[i] = 0;
1333 }
1334 return 2;
1335 }
1336 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1337 return 0;
1338 } else {
1339 register Py_ssize_t l = PyTuple_GET_SIZE(args)(((PyVarObject*)(args))->ob_size);
1340 if (l < min) {
1341 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1342 name, (min == max ? "" : "at least "), (int)min, (int)l);
1343 return 0;
1344 } else if (l > max) {
1345 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1346 name, (min == max ? "" : "at most "), (int)max, (int)l);
1347 return 0;
1348 } else {
1349 register int i;
1350 for (i = 0; i < l; ++i) {
1351 objs[i] = PyTuple_GET_ITEM(args, i)(((PyTupleObject *)(args))->ob_item[i]);
1352 }
1353 for (; l < max; ++l) {
1354 objs[l] = 0;
1355 }
1356 return i + 1;
1357 }
1358 }
1359}
1360
1361/* A functor is a function object with one single object argument */
1362#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000
1363#define SWIG_Python_CallFunctor(functor, obj)PyObject_CallFunctionObjArgs(functor, obj, __null); PyObject_CallFunctionObjArgs(functor, obj, NULL__null);
1364#else
1365#define SWIG_Python_CallFunctor(functor, obj)PyObject_CallFunctionObjArgs(functor, obj, __null); PyObject_CallFunction(functor, "O", obj);
1366#endif
1367
1368/*
1369 Helper for static pointer initialization for both C and C++ code, for example
1370 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1371*/
1372#ifdef __cplusplus199711L
1373#define SWIG_STATIC_POINTER(var)var var
1374#else
1375#define SWIG_STATIC_POINTER(var)var var = 0; if (!var) var
1376#endif
1377
1378/* -----------------------------------------------------------------------------
1379 * Pointer declarations
1380 * ----------------------------------------------------------------------------- */
1381
1382/* Flags for new pointer objects */
1383#define SWIG_POINTER_NOSHADOW(0x1 << 1) (SWIG_POINTER_OWN0x1 << 1)
1384#define SWIG_POINTER_NEW((0x1 << 1) | 0x1) (SWIG_POINTER_NOSHADOW(0x1 << 1) | SWIG_POINTER_OWN0x1)
1385
1386#define SWIG_POINTER_IMPLICIT_CONV(0x1 << 1) (SWIG_POINTER_DISOWN0x1 << 1)
1387
1388#define SWIG_BUILTIN_TP_INIT(0x1 << 2) (SWIG_POINTER_OWN0x1 << 2)
1389#define SWIG_BUILTIN_INIT((0x1 << 2) | 0x1) (SWIG_BUILTIN_TP_INIT(0x1 << 2) | SWIG_POINTER_OWN0x1)
1390
1391#ifdef __cplusplus199711L
1392extern "C" {
1393#endif
1394
1395/* How to access Py_None */
1396#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1397# ifndef SWIG_PYTHON_NO_BUILD_NONE
1398# ifndef SWIG_PYTHON_BUILD_NONE
1399# define SWIG_PYTHON_BUILD_NONE
1400# endif
1401# endif
1402#endif
1403
1404#ifdef SWIG_PYTHON_BUILD_NONE
1405# ifdef Py_None(&_Py_NoneStruct)
1406# undef Py_None(&_Py_NoneStruct)
1407# define Py_None(&_Py_NoneStruct) SWIG_Py_None()
1408# endif
1409SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
1410_SWIG_Py_None(void)
1411{
1412 PyObject *none = Py_BuildValue((char*)"");
1413 Py_DECREF(none)do { if ( --((PyObject*)(none))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(none)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(none)))); } while (0)
;
1414 return none;
1415}
1416SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1417SWIG_Py_None(void)
1418{
1419 static PyObject *SWIG_STATIC_POINTER(none)none = _SWIG_Py_None();
1420 return none;
1421}
1422#endif
1423
1424/* The python void return value */
1425
1426SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
1427SWIG_Py_Void(void)
1428{
1429 PyObject *none = Py_None(&_Py_NoneStruct);
1430 Py_INCREF(none)( ((PyObject*)(none))->ob_refcnt++);
1431 return none;
1432}
1433
1434/* SwigPyClientData */
1435
1436typedef struct {
1437 PyObject *klass;
1438 PyObject *newraw;
1439 PyObject *newargs;
1440 PyObject *destroy;
1441 int delargs;
1442 int implicitconv;
1443 PyTypeObject *pytype;
1444} SwigPyClientData;
1445
1446SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int
1447SWIG_Python_CheckImplicit(swig_type_info *ty)
1448{
1449 SwigPyClientData *data = (SwigPyClientData *)ty->clientdata;
1450 return data ? data->implicitconv : 0;
1451}
1452
1453SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
1454SWIG_Python_ExceptionType(swig_type_info *desc) {
1455 SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0;
1456 PyObject *klass = data ? data->klass : 0;
1457 return (klass ? klass : PyExc_RuntimeError);
1458}
1459
1460
1461SWIGRUNTIMEstatic __attribute__ ((__unused__)) SwigPyClientData *
1462SwigPyClientData_New(PyObject* obj)
1463{
1464 if (!obj) {
1465 return 0;
1466 } else {
1467 SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData));
1468 /* the klass element */
1469 data->klass = obj;
1470 Py_INCREF(data->klass)( ((PyObject*)(data->klass))->ob_refcnt++);
1471 /* the newraw method and newargs arguments used to create a new raw instance */
1472 if (PyClass_Check(obj)((obj)->ob_type == &PyClass_Type)) {
1473 data->newraw = 0;
1474 data->newargs = obj;
1475 Py_INCREF(obj)( ((PyObject*)(obj))->ob_refcnt++);
1476 } else {
1477#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000)
1478 data->newraw = 0;
1479#else
1480 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1481#endif
1482 if (data->newraw) {
1483 Py_INCREF(data->newraw)( ((PyObject*)(data->newraw))->ob_refcnt++);
1484 data->newargs = PyTuple_New(1);
1485 PyTuple_SetItem(data->newargs, 0, obj);
1486 } else {
1487 data->newargs = obj;
1488 }
1489 Py_INCREF(data->newargs)( ((PyObject*)(data->newargs))->ob_refcnt++);
1490 }
1491 /* the destroy method, aka as the C++ delete method */
1492 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1493 if (PyErr_Occurred()) {
1494 PyErr_Clear();
1495 data->destroy = 0;
1496 }
1497 if (data->destroy) {
1498 int flags;
1499 Py_INCREF(data->destroy)( ((PyObject*)(data->destroy))->ob_refcnt++);
1500 flags = PyCFunction_GET_FLAGS(data->destroy)(((PyCFunctionObject *)data->destroy) -> m_ml -> ml_flags
)
;
1501#ifdef METH_O0x0008
1502 data->delargs = !(flags & (METH_O0x0008));
1503#else
1504 data->delargs = 0;
1505#endif
1506 } else {
1507 data->delargs = 0;
1508 }
1509 data->implicitconv = 0;
1510 data->pytype = 0;
1511 return data;
1512 }
1513}
1514
1515SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
1516SwigPyClientData_Del(SwigPyClientData *data) {
1517 Py_XDECREF(data->newraw)do { if ((data->newraw) == __null) ; else do { if ( --((PyObject
*)(data->newraw))->ob_refcnt != 0) ; else ( (*(((PyObject
*)((PyObject *)(data->newraw)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(data->newraw)))); } while (0);
} while (0)
;
1518 Py_XDECREF(data->newargs)do { if ((data->newargs) == __null) ; else do { if ( --((PyObject
*)(data->newargs))->ob_refcnt != 0) ; else ( (*(((PyObject
*)((PyObject *)(data->newargs)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(data->newargs)))); } while (0)
; } while (0)
;
1519 Py_XDECREF(data->destroy)do { if ((data->destroy) == __null) ; else do { if ( --((PyObject
*)(data->destroy))->ob_refcnt != 0) ; else ( (*(((PyObject
*)((PyObject *)(data->destroy)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(data->destroy)))); } while (0)
; } while (0)
;
1520}
1521
1522/* =============== SwigPyObject =====================*/
1523
1524typedef struct {
1525 PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type;
1526 void *ptr;
1527 swig_type_info *ty;
1528 int own;
1529 PyObject *next;
1530#ifdef SWIGPYTHON_BUILTIN
1531 PyObject *dict;
1532#endif
1533} SwigPyObject;
1534
1535SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1536SwigPyObject_long(SwigPyObject *v)
1537{
1538 return PyLong_FromVoidPtr(v->ptr);
1539}
1540
1541SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1542SwigPyObject_format(const char* fmt, SwigPyObject *v)
1543{
1544 PyObject *res = NULL__null;
1545 PyObject *args = PyTuple_New(1);
1546 if (args) {
1547 if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) {
1548 PyObject *ofmt = SWIG_Python_str_FromChar(fmt);
1549 if (ofmt) {
1550#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1551 res = PyUnicode_FormatPyUnicodeUCS2_Format(ofmt,args);
1552#else
1553 res = PyString_Format(ofmt,args);
1554#endif
1555 Py_DECREF(ofmt)do { if ( --((PyObject*)(ofmt))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(ofmt)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(ofmt)))); } while (0)
;
1556 }
1557 Py_DECREF(args)do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(args)))); } while (0)
;
1558 }
1559 }
1560 return res;
1561}
1562
1563SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1564SwigPyObject_oct(SwigPyObject *v)
1565{
1566 return SwigPyObject_format("%o",v);
1567}
1568
1569SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1570SwigPyObject_hex(SwigPyObject *v)
1571{
1572 return SwigPyObject_format("%x",v);
1573}
1574
1575SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1576#ifdef METH_NOARGS0x0004
1577SwigPyObject_repr(SwigPyObject *v)
1578#else
1579SwigPyObject_repr(SwigPyObject *v, PyObject *args)
1580#endif
1581{
1582 const char *name = SWIG_TypePrettyName(v->ty);
1583 PyObject *repr = SWIG_Python_str_FromFormatPyString_FromFormat("<Swig Object of type '%s' at %p>", (name ? name : "unknown"), (void *)v);
1584 if (v->next) {
1585# ifdef METH_NOARGS0x0004
1586 PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next);
1587# else
1588 PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args);
1589# endif
1590# if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1591 PyObject *joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(repr, nrep);
1592 Py_DecRef(repr);
1593 Py_DecRef(nrep);
1594 repr = joined;
1595# else
1596 PyString_ConcatAndDel(&repr,nrep);
1597# endif
1598 }
1599 return repr;
1600}
1601
1602SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
1603SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w)
1604{
1605 void *i = v->ptr;
1606 void *j = w->ptr;
1607 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1608}
1609
1610/* Added for Python 3.x, would it also be useful for Python 2.x? */
1611SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
1612SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
1613{
1614 PyObject* res;
1615 if( op != Py_EQ2 && op != Py_NE3 ) {
1616 Py_INCREF(Py_NotImplemented)( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt
++)
;
1617 return Py_NotImplemented(&_Py_NotImplementedStruct);
1618 }
1619 res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ2) ? 1 : 0);
1620 return res;
1621}
1622
1623
1624SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* SwigPyObject_TypeOnce(void);
1625
1626#ifdef SWIGPYTHON_BUILTIN
1627static swig_type_info *SwigPyObject_stype = 0;
1628SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
1629SwigPyObject_type(void) {
1630 SwigPyClientData *cd;
1631 assert(SwigPyObject_stype)((void)0);
1632 cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
1633 assert(cd)((void)0);
1634 assert(cd->pytype)((void)0);
1635 return cd->pytype;
1636}
1637#else
1638SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
1639SwigPyObject_type(void) {
1640 static PyTypeObject *SWIG_STATIC_POINTER(type)type = SwigPyObject_TypeOnce();
1641 return type;
1642}
1643#endif
1644
1645SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int
1646SwigPyObject_Check(PyObject *op) {
1647#ifdef SWIGPYTHON_BUILTIN
1648 PyTypeObject *target_tp = SwigPyObject_type();
1649 if (PyType_IsSubtype(op->ob_type, target_tp))
1650 return 1;
1651 return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0);
1652#else
1653 return (Py_TYPE(op)(((PyObject*)(op))->ob_type) == SwigPyObject_type())
1654 || (strcmp(Py_TYPE(op)(((PyObject*)(op))->ob_type)->tp_name,"SwigPyObject") == 0);
1655#endif
1656}
1657
1658SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1659SwigPyObject_New(void *ptr, swig_type_info *ty, int own);
1660
1661SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
1662SwigPyObject_dealloc(PyObject *v)
1663{
1664 SwigPyObject *sobj = (SwigPyObject *) v;
1665 PyObject *next = sobj->next;
1666 if (sobj->own == SWIG_POINTER_OWN0x1) {
1667 swig_type_info *ty = sobj->ty;
1668 SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
1669 PyObject *destroy = data ? data->destroy : 0;
1670 if (destroy) {
1671 /* destroy is always a VARARGS method */
1672 PyObject *res;
1673 if (data->delargs) {
1674 /* we need to create a temporary object to carry the destroy operation */
1675 PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
1676 res = SWIG_Python_CallFunctor(destroy, tmp)PyObject_CallFunctionObjArgs(destroy, tmp, __null);;
1677 Py_DECREF(tmp)do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(tmp)))); } while (0)
;
1678 } else {
1679 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy)(((PyCFunctionObject *)destroy) -> m_ml -> ml_meth);
1680 PyObject *mself = PyCFunction_GET_SELF(destroy)(((PyCFunctionObject *)destroy) -> m_self);
1681 res = ((*meth)(mself, v));
1682 }
1683 Py_XDECREF(res)do { if ((res) == __null) ; else do { if ( --((PyObject*)(res
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
res)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)
(res)))); } while (0); } while (0)
;
1684 }
1685#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1686 else {
1687 const char *name = SWIG_TypePrettyName(ty);
1688 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown"));
1689 }
1690#endif
1691 }
1692 Py_XDECREF(next)do { if ((next) == __null) ; else do { if ( --((PyObject*)(next
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
next)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *
)(next)))); } while (0); } while (0)
;
1693 PyObject_DELPyObject_Free(v);
1694}
1695
1696SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
1697SwigPyObject_append(PyObject* v, PyObject* next)
1698{
1699 SwigPyObject *sobj = (SwigPyObject *) v;
1700#ifndef METH_O0x0008
1701 PyObject *tmp = 0;
1702 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL__null;
1703 next = tmp;
1704#endif
1705 if (!SwigPyObject_Check(next)) {
1706 return NULL__null;
1707 }
1708 sobj->next = next;
1709 Py_INCREF(next)( ((PyObject*)(next))->ob_refcnt++);
1710 return SWIG_Py_Void();
1711}
1712
1713SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
1714#ifdef METH_NOARGS0x0004
1715SwigPyObject_next(PyObject* v)
1716#else
1717SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1718#endif
1719{
1720 SwigPyObject *sobj = (SwigPyObject *) v;
1721 if (sobj->next) {
1722 Py_INCREF(sobj->next)( ((PyObject*)(sobj->next))->ob_refcnt++);
1723 return sobj->next;
1724 } else {
1725 return SWIG_Py_Void();
1726 }
1727}
1728
1729SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
1730#ifdef METH_NOARGS0x0004
1731SwigPyObject_disown(PyObject *v)
1732#else
1733SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1734#endif
1735{
1736 SwigPyObject *sobj = (SwigPyObject *)v;
1737 sobj->own = 0;
1738 return SWIG_Py_Void();
1739}
1740
1741SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
1742#ifdef METH_NOARGS0x0004
1743SwigPyObject_acquire(PyObject *v)
1744#else
1745SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1746#endif
1747{
1748 SwigPyObject *sobj = (SwigPyObject *)v;
1749 sobj->own = SWIG_POINTER_OWN0x1;
1750 return SWIG_Py_Void();
1751}
1752
1753SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
1754SwigPyObject_own(PyObject *v, PyObject *args)
1755{
1756 PyObject *val = 0;
1757#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000)
1758 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1759#elif (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02050000)
1760 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1761#else
1762 if (!PyArg_UnpackTuple(args, "own", 0, 1, &val))
1763#endif
1764 {
1765 return NULL__null;
1766 }
1767 else
1768 {
1769 SwigPyObject *sobj = (SwigPyObject *)v;
1770 PyObject *obj = PyBool_FromLong(sobj->own);
1771 if (val) {
1772#ifdef METH_NOARGS0x0004
1773 if (PyObject_IsTrue(val)) {
1774 SwigPyObject_acquire(v);
1775 } else {
1776 SwigPyObject_disown(v);
1777 }
1778#else
1779 if (PyObject_IsTrue(val)) {
1780 SwigPyObject_acquire(v,args);
1781 } else {
1782 SwigPyObject_disown(v,args);
1783 }
1784#endif
1785 }
1786 return obj;
1787 }
1788}
1789
1790#ifdef METH_O0x0008
1791static PyMethodDef
1792swigobject_methods[] = {
1793 {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS0x0004, (char *)"releases ownership of the pointer"},
1794 {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS0x0004, (char *)"acquires ownership of the pointer"},
1795 {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS0x0001, (char *)"returns/sets ownership of the pointer"},
1796 {(char *)"append", (PyCFunction)SwigPyObject_append, METH_O0x0008, (char *)"appends another 'this' object"},
1797 {(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS0x0004, (char *)"returns the next 'this' object"},
1798 {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS0x0004, (char *)"returns object representation"},
1799 {0, 0, 0, 0}
1800};
1801#else
1802static PyMethodDef
1803swigobject_methods[] = {
1804 {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS0x0001, (char *)"releases ownership of the pointer"},
1805 {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS0x0001, (char *)"aquires ownership of the pointer"},
1806 {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS0x0001, (char *)"returns/sets ownership of the pointer"},
1807 {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS0x0001, (char *)"appends another 'this' object"},
1808 {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS0x0001, (char *)"returns the next 'this' object"},
1809 {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS0x0001, (char *)"returns object representation"},
1810 {0, 0, 0, 0}
1811};
1812#endif
1813
1814#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
1815SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
1816SwigPyObject_getattr(SwigPyObject *sobj,char *name)
1817{
1818 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1819}
1820#endif
1821
1822SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
1823SwigPyObject_TypeOnce(void) {
1824 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1825
1826 static PyNumberMethods SwigPyObject_as_number = {
1827 (binaryfunc)0, /*nb_add*/
1828 (binaryfunc)0, /*nb_subtract*/
1829 (binaryfunc)0, /*nb_multiply*/
1830 /* nb_divide removed in Python 3 */
1831#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
1832 (binaryfunc)0, /*nb_divide*/
1833#endif
1834 (binaryfunc)0, /*nb_remainder*/
1835 (binaryfunc)0, /*nb_divmod*/
1836 (ternaryfunc)0,/*nb_power*/
1837 (unaryfunc)0, /*nb_negative*/
1838 (unaryfunc)0, /*nb_positive*/
1839 (unaryfunc)0, /*nb_absolute*/
1840 (inquiry)0, /*nb_nonzero*/
1841 0, /*nb_invert*/
1842 0, /*nb_lshift*/
1843 0, /*nb_rshift*/
1844 0, /*nb_and*/
1845 0, /*nb_xor*/
1846 0, /*nb_or*/
1847#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
1848 0, /*nb_coerce*/
1849#endif
1850 (unaryfunc)SwigPyObject_long, /*nb_int*/
1851#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
1852 (unaryfunc)SwigPyObject_long, /*nb_long*/
1853#else
1854 0, /*nb_reserved*/
1855#endif
1856 (unaryfunc)0, /*nb_float*/
1857#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
1858 (unaryfunc)SwigPyObject_oct, /*nb_oct*/
1859 (unaryfunc)SwigPyObject_hex, /*nb_hex*/
1860#endif
1861#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000 /* 3.0 */
1862 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */
1863#elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02050000 /* 2.5.0 */
1864 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */
1865#elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000 /* 2.2.0 */
1866 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1867#elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02000000 /* 2.0.0 */
1868 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1869#endif
1870 };
1871
1872 static PyTypeObject swigpyobject_type;
1873 static int type_init = 0;
1874 if (!type_init) {
1875 const PyTypeObject tmp = {
1876 /* PyObject header changed in Python 3 */
1877#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1878 PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0,
1879#else
1880 PyObject_HEAD_INIT(NULL)1, __null,
1881 0, /* ob_size */
1882#endif
1883 (char *)"SwigPyObject", /* tp_name */
1884 sizeof(SwigPyObject), /* tp_basicsize */
1885 0, /* tp_itemsize */
1886 (destructor)SwigPyObject_dealloc, /* tp_dealloc */
1887 0, /* tp_print */
1888#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
1889 (getattrfunc)SwigPyObject_getattr, /* tp_getattr */
1890#else
1891 (getattrfunc)0, /* tp_getattr */
1892#endif
1893 (setattrfunc)0, /* tp_setattr */
1894#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1895 0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */
1896#else
1897 (cmpfunc)SwigPyObject_compare, /* tp_compare */
1898#endif
1899 (reprfunc)SwigPyObject_repr, /* tp_repr */
1900 &SwigPyObject_as_number, /* tp_as_number */
1901 0, /* tp_as_sequence */
1902 0, /* tp_as_mapping */
1903 (hashfunc)0, /* tp_hash */
1904 (ternaryfunc)0, /* tp_call */
1905 0, /* tp_str */
1906 PyObject_GenericGetAttr, /* tp_getattro */
1907 0, /* tp_setattro */
1908 0, /* tp_as_buffer */
1909 Py_TPFLAGS_DEFAULT( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<
5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<
17) | 0)
, /* tp_flags */
1910 swigobject_doc, /* tp_doc */
1911 0, /* tp_traverse */
1912 0, /* tp_clear */
1913 (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */
1914 0, /* tp_weaklistoffset */
1915#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000
1916 0, /* tp_iter */
1917 0, /* tp_iternext */
1918 swigobject_methods, /* tp_methods */
1919 0, /* tp_members */
1920 0, /* tp_getset */
1921 0, /* tp_base */
1922 0, /* tp_dict */
1923 0, /* tp_descr_get */
1924 0, /* tp_descr_set */
1925 0, /* tp_dictoffset */
1926 0, /* tp_init */
1927 0, /* tp_alloc */
1928 0, /* tp_new */
1929 0, /* tp_free */
1930 0, /* tp_is_gc */
1931 0, /* tp_bases */
1932 0, /* tp_mro */
1933 0, /* tp_cache */
1934 0, /* tp_subclasses */
1935 0, /* tp_weaklist */
1936#endif
1937#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000
1938 0, /* tp_del */
1939#endif
1940#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02060000
1941 0, /* tp_version */
1942#endif
1943#ifdef COUNT_ALLOCS
1944 0,0,0,0 /* tp_alloc -> tp_next */
1945#endif
1946 };
1947 swigpyobject_type = tmp;
1948 type_init = 1;
1949#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
1950 swigpyobject_type.ob_type = &PyType_Type;
1951#else
1952 if (PyType_Ready(&swigpyobject_type) < 0)
1953 return NULL__null;
1954#endif
1955 }
1956 return &swigpyobject_type;
1957}
1958
1959SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1960SwigPyObject_New(void *ptr, swig_type_info *ty, int own)
1961{
1962 SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type())( (SwigPyObject *) PyObject_Init( (PyObject *) PyObject_Malloc
( ( (SwigPyObject_type())->tp_basicsize ) ), (SwigPyObject_type
())) )
;
1963 if (sobj) {
1964 sobj->ptr = ptr;
1965 sobj->ty = ty;
1966 sobj->own = own;
1967 sobj->next = 0;
1968 }
1969 return (PyObject *)sobj;
1970}
1971
1972/* -----------------------------------------------------------------------------
1973 * Implements a simple Swig Packed type, and use it instead of string
1974 * ----------------------------------------------------------------------------- */
1975
1976typedef struct {
1977 PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type;
1978 void *pack;
1979 swig_type_info *ty;
1980 size_t size;
1981} SwigPyPacked;
1982
1983SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
1984SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1985{
1986 char result[SWIG_BUFFER_SIZE1024];
1987 fputs("<Swig Packed ", fp);
1988 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1989 fputs("at ", fp);
1990 fputs(result, fp);
1991 }
1992 fputs(v->ty->name,fp);
1993 fputs(">", fp);
1994 return 0;
1995}
1996
1997SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1998SwigPyPacked_repr(SwigPyPacked *v)
1999{
2000 char result[SWIG_BUFFER_SIZE1024];
2001 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
2002 return SWIG_Python_str_FromFormatPyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
2003 } else {
2004 return SWIG_Python_str_FromFormatPyString_FromFormat("<Swig Packed %s>", v->ty->name);
2005 }
2006}
2007
2008SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2009SwigPyPacked_str(SwigPyPacked *v)
2010{
2011 char result[SWIG_BUFFER_SIZE1024];
2012 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
2013 return SWIG_Python_str_FromFormatPyString_FromFormat("%s%s", result, v->ty->name);
2014 } else {
2015 return SWIG_Python_str_FromChar(v->ty->name);
2016 }
2017}
2018
2019SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2020SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w)
2021{
2022 size_t i = v->size;
2023 size_t j = w->size;
2024 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
2025 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
2026}
2027
2028SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* SwigPyPacked_TypeOnce(void);
2029
2030SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
2031SwigPyPacked_type(void) {
2032 static PyTypeObject *SWIG_STATIC_POINTER(type)type = SwigPyPacked_TypeOnce();
2033 return type;
2034}
2035
2036SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int
2037SwigPyPacked_Check(PyObject *op) {
2038 return ((op)->ob_type == SwigPyPacked_TypeOnce())
2039 || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0);
2040}
2041
2042SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2043SwigPyPacked_dealloc(PyObject *v)
2044{
2045 if (SwigPyPacked_Check(v)) {
2046 SwigPyPacked *sobj = (SwigPyPacked *) v;
2047 free(sobj->pack);
2048 }
2049 PyObject_DELPyObject_Free(v);
2050}
2051
2052SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
2053SwigPyPacked_TypeOnce(void) {
2054 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
2055 static PyTypeObject swigpypacked_type;
2056 static int type_init = 0;
2057 if (!type_init) {
2058 const PyTypeObject tmp = {
2059 /* PyObject header changed in Python 3 */
2060#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
2061 PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0,
2062#else
2063 PyObject_HEAD_INIT(NULL)1, __null,
2064 0, /* ob_size */
2065#endif
2066 (char *)"SwigPyPacked", /* tp_name */
2067 sizeof(SwigPyPacked), /* tp_basicsize */
2068 0, /* tp_itemsize */
2069 (destructor)SwigPyPacked_dealloc, /* tp_dealloc */
2070 (printfunc)SwigPyPacked_print, /* tp_print */
2071 (getattrfunc)0, /* tp_getattr */
2072 (setattrfunc)0, /* tp_setattr */
2073#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
2074 0, /* tp_reserved in 3.0.1 */
2075#else
2076 (cmpfunc)SwigPyPacked_compare, /* tp_compare */
2077#endif
2078 (reprfunc)SwigPyPacked_repr, /* tp_repr */
2079 0, /* tp_as_number */
2080 0, /* tp_as_sequence */
2081 0, /* tp_as_mapping */
2082 (hashfunc)0, /* tp_hash */
2083 (ternaryfunc)0, /* tp_call */
2084 (reprfunc)SwigPyPacked_str, /* tp_str */
2085 PyObject_GenericGetAttr, /* tp_getattro */
2086 0, /* tp_setattro */
2087 0, /* tp_as_buffer */
2088 Py_TPFLAGS_DEFAULT( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<
5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<
17) | 0)
, /* tp_flags */
2089 swigpacked_doc, /* tp_doc */
2090 0, /* tp_traverse */
2091 0, /* tp_clear */
2092 0, /* tp_richcompare */
2093 0, /* tp_weaklistoffset */
2094#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000
2095 0, /* tp_iter */
2096 0, /* tp_iternext */
2097 0, /* tp_methods */
2098 0, /* tp_members */
2099 0, /* tp_getset */
2100 0, /* tp_base */
2101 0, /* tp_dict */
2102 0, /* tp_descr_get */
2103 0, /* tp_descr_set */
2104 0, /* tp_dictoffset */
2105 0, /* tp_init */
2106 0, /* tp_alloc */
2107 0, /* tp_new */
2108 0, /* tp_free */
2109 0, /* tp_is_gc */
2110 0, /* tp_bases */
2111 0, /* tp_mro */
2112 0, /* tp_cache */
2113 0, /* tp_subclasses */
2114 0, /* tp_weaklist */
2115#endif
2116#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000
2117 0, /* tp_del */
2118#endif
2119#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02060000
2120 0, /* tp_version */
2121#endif
2122#ifdef COUNT_ALLOCS
2123 0,0,0,0 /* tp_alloc -> tp_next */
2124#endif
2125 };
2126 swigpypacked_type = tmp;
2127 type_init = 1;
2128#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
2129 swigpypacked_type.ob_type = &PyType_Type;
2130#else
2131 if (PyType_Ready(&swigpypacked_type) < 0)
2132 return NULL__null;
2133#endif
2134 }
2135 return &swigpypacked_type;
2136}
2137
2138SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2139SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty)
2140{
2141 SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type())( (SwigPyPacked *) PyObject_Init( (PyObject *) PyObject_Malloc
( ( (SwigPyPacked_type())->tp_basicsize ) ), (SwigPyPacked_type
())) )
;
2142 if (sobj) {
2143 void *pack = malloc(size);
2144 if (pack) {
2145 memcpy(pack, ptr, size);
2146 sobj->pack = pack;
2147 sobj->ty = ty;
2148 sobj->size = size;
2149 } else {
2150 PyObject_DELPyObject_Free((PyObject *) sobj);
2151 sobj = 0;
2152 }
2153 }
2154 return (PyObject *) sobj;
2155}
2156
2157SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
2158SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
2159{
2160 if (SwigPyPacked_Check(obj)) {
2161 SwigPyPacked *sobj = (SwigPyPacked *)obj;
2162 if (sobj->size != size) return 0;
2163 memcpy(ptr, sobj->pack, size);
2164 return sobj->ty;
2165 } else {
2166 return 0;
2167 }
2168}
2169
2170/* -----------------------------------------------------------------------------
2171 * pointers/data manipulation
2172 * ----------------------------------------------------------------------------- */
2173
2174SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
2175_SWIG_This(void)
2176{
2177 return SWIG_Python_str_FromChar("this");
2178}
2179
2180static PyObject *swig_this = NULL__null;
2181
2182SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2183SWIG_This(void)
2184{
2185 if (swig_this == NULL__null)
2186 swig_this = _SWIG_This();
2187 return swig_this;
2188}
2189
2190/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
2191
2192/* TODO: I don't know how to implement the fast getset in Python 3 right now */
2193#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
2194#define SWIG_PYTHON_SLOW_GETSET_THIS
2195#endif
2196
2197SWIGRUNTIMEstatic __attribute__ ((__unused__)) SwigPyObject *
2198SWIG_Python_GetSwigThis(PyObject *pyobj)
2199{
2200 PyObject *obj;
2201
2202 if (SwigPyObject_Check(pyobj))
2203 return (SwigPyObject *) pyobj;
2204
2205#ifdef SWIGPYTHON_BUILTIN
2206 (void)obj;
2207# ifdef PyWeakref_CheckProxy
2208 if (PyWeakref_CheckProxy(pyobj)(((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_ProxyType
) || ((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_CallableProxyType
))
) {
2209 pyobj = PyWeakref_GET_OBJECT(pyobj)((((PyObject*)(((PyWeakReference *)(pyobj))->wr_object))->
ob_refcnt) > 0 ? ((PyWeakReference *)(pyobj))->wr_object
: (&_Py_NoneStruct))
;
2210 if (pyobj && SwigPyObject_Check(pyobj))
2211 return (SwigPyObject*) pyobj;
2212 }
2213# endif
2214 return NULL__null;
2215#else
2216
2217 obj = 0;
2218
2219#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000))
2220 if (PyInstance_Check(pyobj)((pyobj)->ob_type == &PyInstance_Type)) {
2221 obj = _PyInstance_Lookup(pyobj, SWIG_This());
2222 } else {
2223 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
2224 if (dictptr != NULL__null) {
2225 PyObject *dict = *dictptr;
2226 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
2227 } else {
2228#ifdef PyWeakref_CheckProxy
2229 if (PyWeakref_CheckProxy(pyobj)(((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_ProxyType
) || ((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_CallableProxyType
))
) {
2230 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj)((((PyObject*)(((PyWeakReference *)(pyobj))->wr_object))->
ob_refcnt) > 0 ? ((PyWeakReference *)(pyobj))->wr_object
: (&_Py_NoneStruct))
;
2231 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
2232 }
2233#endif
2234 obj = PyObject_GetAttr(pyobj,SWIG_This());
2235 if (obj) {
2236 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
2237 } else {
2238 if (PyErr_Occurred()) PyErr_Clear();
2239 return 0;
2240 }
2241 }
2242 }
2243#else
2244 obj = PyObject_GetAttr(pyobj,SWIG_This());
2245 if (obj) {
2246 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
2247 } else {
2248 if (PyErr_Occurred()) PyErr_Clear();
2249 return 0;
2250 }
2251#endif
2252 if (obj && !SwigPyObject_Check(obj)) {
2253 /* a PyObject is called 'this', try to get the 'real this'
2254 SwigPyObject from it */
2255 return SWIG_Python_GetSwigThis(obj);
2256 }
2257 return (SwigPyObject *)obj;
2258#endif
2259}
2260
2261/* Acquire a pointer value */
2262
2263SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2264SWIG_Python_AcquirePtr(PyObject *obj, int own) {
2265 if (own == SWIG_POINTER_OWN0x1) {
2266 SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj);
2267 if (sobj) {
2268 int oldown = sobj->own;
2269 sobj->own = own;
2270 return oldown;
2271 }
2272 }
2273 return 0;
2274}
2275
2276/* Convert a pointer value */
2277
2278SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2279SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
2280 int res;
2281 SwigPyObject *sobj;
2282 int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV(0x1 << 1)) != 0;
2283
2284 if (!obj)
2285 return SWIG_ERROR(-1);
2286 if (obj == Py_None(&_Py_NoneStruct) && !implicit_conv) {
2287 if (ptr)
2288 *ptr = 0;
2289 return SWIG_OK(0);
2290 }
2291
2292 res = SWIG_ERROR(-1);
2293
2294 sobj = SWIG_Python_GetSwigThis(obj);
2295 if (own)
2296 *own = 0;
2297 while (sobj) {
2298 void *vptr = sobj->ptr;
2299 if (ty) {
2300 swig_type_info *to = sobj->ty;
2301 if (to == ty) {
2302 /* no type cast needed */
2303 if (ptr) *ptr = vptr;
2304 break;
2305 } else {
2306 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2307 if (!tc) {
2308 sobj = (SwigPyObject *)sobj->next;
2309 } else {
2310 if (ptr) {
2311 int newmemory = 0;
2312 *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2313 if (newmemory == SWIG_CAST_NEW_MEMORY0x2) {
2314 assert(own)((void)0); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
2315 if (own)
2316 *own = *own | SWIG_CAST_NEW_MEMORY0x2;
2317 }
2318 }
2319 break;
2320 }
2321 }
2322 } else {
2323 if (ptr) *ptr = vptr;
2324 break;
2325 }
2326 }
2327 if (sobj) {
2328 if (own)
2329 *own = *own | sobj->own;
2330 if (flags & SWIG_POINTER_DISOWN0x1) {
2331 sobj->own = 0;
2332 }
2333 res = SWIG_OK(0);
2334 } else {
2335 if (implicit_conv) {
2336 SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
2337 if (data && !data->implicitconv) {
2338 PyObject *klass = data->klass;
2339 if (klass) {
2340 PyObject *impconv;
2341 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2342 impconv = SWIG_Python_CallFunctor(klass, obj)PyObject_CallFunctionObjArgs(klass, obj, __null);;
2343 data->implicitconv = 0;
2344 if (PyErr_Occurred()) {
2345 PyErr_Clear();
2346 impconv = 0;
2347 }
2348 if (impconv) {
2349 SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv);
2350 if (iobj) {
2351 void *vptr;
2352 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2353 if (SWIG_IsOK(res)(res >= 0)) {
2354 if (ptr) {
2355 *ptr = vptr;
2356 /* transfer the ownership to 'ptr' */
2357 iobj->own = 0;
2358 res = SWIG_AddCast(res)(res);
2359 res = SWIG_AddNewMask(res)((res >= 0) ? (res | ((1 << 8) << 1)) : res);
2360 } else {
2361 res = SWIG_AddCast(res)(res);
2362 }
2363 }
2364 }
2365 Py_DECREF(impconv)do { if ( --((PyObject*)(impconv))->ob_refcnt != 0) ; else
( (*(((PyObject*)((PyObject *)(impconv)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(impconv)))); } while (0)
;
2366 }
2367 }
2368 }
2369 }
2370 if (!SWIG_IsOK(res)(res >= 0) && obj == Py_None(&_Py_NoneStruct)) {
2371 if (ptr)
2372 *ptr = 0;
2373 if (PyErr_Occurred())
2374 PyErr_Clear();
2375 res = SWIG_OK(0);
2376 }
2377 }
2378 return res;
2379}
2380
2381/* Convert a function ptr value */
2382
2383SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2384SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2385 if (!PyCFunction_Check(obj)((((PyObject*)(obj))->ob_type) == &PyCFunction_Type)) {
2386 return SWIG_ConvertPtr(obj, ptr, ty, 0)SWIG_Python_ConvertPtrAndOwn(obj, ptr, ty, 0, 0);
2387 } else {
2388 void *vptr = 0;
2389
2390 /* here we get the method pointer for callbacks */
2391 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2392 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2393 if (desc)
2394 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2395 if (!desc)
2396 return SWIG_ERROR(-1);
2397 if (ty) {
2398 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2399 if (tc) {
2400 int newmemory = 0;
2401 *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2402 assert(!newmemory)((void)0); /* newmemory handling not yet implemented */
2403 } else {
2404 return SWIG_ERROR(-1);
2405 }
2406 } else {
2407 *ptr = vptr;
2408 }
2409 return SWIG_OK(0);
2410 }
2411}
2412
2413/* Convert a packed value value */
2414
2415SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2416SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2417 swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz);
2418 if (!to) return SWIG_ERROR(-1);
2419 if (ty) {
2420 if (to != ty) {
2421 /* check type cast? */
2422 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2423 if (!tc) return SWIG_ERROR(-1);
2424 }
2425 }
2426 return SWIG_OK(0);
2427}
2428
2429/* -----------------------------------------------------------------------------
2430 * Create a new pointer object
2431 * ----------------------------------------------------------------------------- */
2432
2433/*
2434 Create a new instance object, without calling __init__, and set the
2435 'this' attribute.
2436*/
2437
2438SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
2439SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
2440{
2441#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000)
2442 PyObject *inst = 0;
2443 PyObject *newraw = data->newraw;
2444 if (newraw) {
2445 inst = PyObject_Call(newraw, data->newargs, NULL__null);
2446 if (inst) {
2447#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2448 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2449 if (dictptr != NULL__null) {
2450 PyObject *dict = *dictptr;
2451 if (dict == NULL__null) {
2452 dict = PyDict_New();
2453 *dictptr = dict;
2454 PyDict_SetItem(dict, SWIG_This(), swig_this);
2455 }
2456 }
2457#else
2458 PyObject *key = SWIG_This();
2459 PyObject_SetAttr(inst, key, swig_this);
2460#endif
2461 }
2462 } else {
2463#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
2464 inst = PyBaseObject_Type.tp_new((PyTypeObject*) data->newargs, Py_None(&_Py_NoneStruct), Py_None(&_Py_NoneStruct));
2465 if (inst) {
2466 PyObject_SetAttr(inst, SWIG_This(), swig_this);
2467 Py_TYPE(inst)(((PyObject*)(inst))->ob_type)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG(1L<<19);
2468 }
2469#else
2470 PyObject *dict = PyDict_New();
2471 if (dict) {
2472 PyDict_SetItem(dict, SWIG_This(), swig_this);
2473 inst = PyInstance_NewRaw(data->newargs, dict);
2474 Py_DECREF(dict)do { if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(dict)))); } while (0)
;
2475 }
2476#endif
2477 }
2478 return inst;
2479#else
2480#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02010000)
2481 PyObject *inst = 0;
2482 PyObject *dict = PyDict_New();
2483 if (dict) {
2484 PyDict_SetItem(dict, SWIG_This(), swig_this);
2485 inst = PyInstance_NewRaw(data->newargs, dict);
2486 Py_DECREF(dict)do { if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(dict)))); } while (0)
;
2487 }
2488 return (PyObject *) inst;
2489#else
2490 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type)( (PyInstanceObject *) PyObject_Init( (PyObject *) PyObject_Malloc
( ( (&PyInstance_Type)->tp_basicsize ) ), (&PyInstance_Type
)) )
;
2491 if (inst == NULL__null) {
2492 return NULL__null;
2493 }
2494 inst->in_class = (PyClassObject *)data->newargs;
2495 Py_INCREF(inst->in_class)( ((PyObject*)(inst->in_class))->ob_refcnt++);
2496 inst->in_dict = PyDict_New();
2497 if (inst->in_dict == NULL__null) {
2498 Py_DECREF(inst)do { if ( --((PyObject*)(inst))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(inst)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(inst)))); } while (0)
;
2499 return NULL__null;
2500 }
2501#ifdef Py_TPFLAGS_HAVE_WEAKREFS(1L<<6)
2502 inst->in_weakreflist = NULL__null;
2503#endif
2504#ifdef Py_TPFLAGS_GC0
2505 PyObject_GC_Init(inst);
2506#endif
2507 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2508 return (PyObject *) inst;
2509#endif
2510#endif
2511}
2512
2513SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2514SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2515{
2516 PyObject *dict;
2517#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2518 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2519 if (dictptr != NULL__null) {
2520 dict = *dictptr;
2521 if (dict == NULL__null) {
2522 dict = PyDict_New();
2523 *dictptr = dict;
2524 }
2525 PyDict_SetItem(dict, SWIG_This(), swig_this);
2526 return;
2527 }
2528#endif
2529 dict = PyObject_GetAttrString(inst, (char*)"__dict__");
2530 PyDict_SetItem(dict, SWIG_This(), swig_this);
2531 Py_DECREF(dict)do { if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(dict)))); } while (0)
;
2532}
2533
2534
2535SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
2536SWIG_Python_InitShadowInstance(PyObject *args) {
2537 PyObject *obj[2];
2538 if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) {
2539 return NULL__null;
2540 } else {
2541 SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2542 if (sthis) {
2543 SwigPyObject_append((PyObject*) sthis, obj[1]);
2544 } else {
2545 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2546 }
2547 return SWIG_Py_Void();
2548 }
2549}
2550
2551/* Create a new pointer object */
2552
2553SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2554SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) {
2555 SwigPyClientData *clientdata;
2556 PyObject * robj;
2557 int own;
2558
2559 if (!ptr)
2560 return SWIG_Py_Void();
2561
2562 clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0;
2563 own = (flags & SWIG_POINTER_OWN0x1) ? SWIG_POINTER_OWN0x1 : 0;
2564 if (clientdata && clientdata->pytype) {
2565 SwigPyObject *newobj;
2566 if (flags & SWIG_BUILTIN_TP_INIT(0x1 << 2)) {
2567 newobj = (SwigPyObject*) self;
2568 if (newobj->ptr) {
2569 PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0);
2570 while (newobj->next)
2571 newobj = (SwigPyObject *) newobj->next;
2572 newobj->next = next_self;
2573 newobj = (SwigPyObject *)next_self;
2574 }
2575 } else {
2576 newobj = PyObject_New(SwigPyObject, clientdata->pytype)( (SwigPyObject *) _PyObject_New(clientdata->pytype) );
2577 }
2578 if (newobj) {
2579 newobj->ptr = ptr;
2580 newobj->ty = type;
2581 newobj->own = own;
2582 newobj->next = 0;
2583#ifdef SWIGPYTHON_BUILTIN
2584 newobj->dict = 0;
2585#endif
2586 return (PyObject*) newobj;
2587 }
2588 return SWIG_Py_Void();
2589 }
2590
2591 assert(!(flags & SWIG_BUILTIN_TP_INIT))((void)0);
2592
2593 robj = SwigPyObject_New(ptr, type, own);
2594 if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW(0x1 << 1))) {
2595 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2596 Py_DECREF(robj)do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(robj)))); } while (0)
;
2597 robj = inst;
2598 }
2599 return robj;
2600}
2601
2602/* Create a new packed object */
2603
2604SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
2605SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2606 return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2607}
2608
2609/* -----------------------------------------------------------------------------*
2610 * Get type list
2611 * -----------------------------------------------------------------------------*/
2612
2613#ifdef SWIG_LINK_RUNTIME
2614void *SWIG_ReturnGlobalTypeList(void *);
2615#endif
2616
2617SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_module_info *
2618SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) {
2619 static void *type_pointer = (void *)0;
2620 /* first check if module already created */
2621 if (!type_pointer) {
2622#ifdef SWIG_LINK_RUNTIME
2623 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2624#else
2625# ifdef SWIGPY_USE_CAPSULE
2626 type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ), 0);
2627# else
2628 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4",
2629 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2630# endif
2631 if (PyErr_Occurred()) {
2632 PyErr_Clear();
2633 type_pointer = (void *)0;
2634 }
2635#endif
2636 }
2637 return (swig_module_info *) type_pointer;
2638}
2639
2640#if PY_MAJOR_VERSION2 < 2
2641/* PyModule_AddObject function was introduced in Python 2.0. The following function
2642 is copied out of Python/modsupport.c in python version 2.3.4 */
2643SWIGINTERNstatic __attribute__ ((__unused__)) int
2644PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2645{
2646 PyObject *dict;
2647 if (!PyModule_Check(m)((((PyObject*)(m))->ob_type) == (&PyModule_Type) || PyType_IsSubtype
((((PyObject*)(m))->ob_type), (&PyModule_Type)))
) {
2648 PyErr_SetString(PyExc_TypeError,
2649 "PyModule_AddObject() needs module as first arg");
2650 return SWIG_ERROR(-1);
2651 }
2652 if (!o) {
2653 PyErr_SetString(PyExc_TypeError,
2654 "PyModule_AddObject() needs non-NULL value");
2655 return SWIG_ERROR(-1);
2656 }
2657
2658 dict = PyModule_GetDict(m);
2659 if (dict == NULL__null) {
2660 /* Internal error -- modules must have a dict! */
2661 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2662 PyModule_GetName(m));
2663 return SWIG_ERROR(-1);
2664 }
2665 if (PyDict_SetItemString(dict, name, o))
2666 return SWIG_ERROR(-1);
2667 Py_DECREF(o)do { if ( --((PyObject*)(o))->ob_refcnt != 0) ; else ( (*(
((PyObject*)((PyObject *)(o)))->ob_type)->tp_dealloc)((
PyObject *)((PyObject *)(o)))); } while (0)
;
2668 return SWIG_OK(0);
2669}
2670#endif
2671
2672SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2673#ifdef SWIGPY_USE_CAPSULE
2674SWIG_Python_DestroyModule(PyObject *obj)
2675#else
2676SWIG_Python_DestroyModule(void *vptr)
2677#endif
2678{
2679#ifdef SWIGPY_USE_CAPSULE
2680 swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ));
2681#else
2682 swig_module_info *swig_module = (swig_module_info *) vptr;
2683#endif
2684 swig_type_info **types = swig_module->types;
2685 size_t i;
2686 for (i =0; i < swig_module->size; ++i) {
2687 swig_type_info *ty = types[i];
2688 if (ty->owndata) {
2689 SwigPyClientData *data = (SwigPyClientData *) ty->clientdata;
2690 if (data) SwigPyClientData_Del(data);
2691 }
2692 }
2693 Py_DECREF(SWIG_This())do { if ( --((PyObject*)(SWIG_This()))->ob_refcnt != 0) ; else
( (*(((PyObject*)((PyObject *)(SWIG_This())))->ob_type)->
tp_dealloc)((PyObject *)((PyObject *)(SWIG_This())))); } while
(0)
;
2694 swig_this = NULL__null;
2695}
2696
2697SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2698SWIG_Python_SetModule(swig_module_info *swig_module) {
2699#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
2700 /* Add a dummy module object into sys.modules */
2701 PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4");
2702#else
2703 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL__null, NULL__null, 0, NULL__null} }; /* Sentinel */
2704 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table)Py_InitModule4_64((char*)"swig_runtime_data" "4", swig_empty_runtime_method_table
, (char *)__null, (PyObject *)__null, 1013)
;
2705#endif
2706#ifdef SWIGPY_USE_CAPSULE
2707 PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ), SWIG_Python_DestroyModule);
2708 if (pointer && module) {
2709 PyModule_AddObject(module, (char*)"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer);
2710 } else {
2711 Py_XDECREF(pointer)do { if ((pointer) == __null) ; else do { if ( --((PyObject*)
(pointer))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject
*)(pointer)))->ob_type)->tp_dealloc)((PyObject *)((PyObject
*)(pointer)))); } while (0); } while (0)
;
2712 }
2713#else
2714 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2715 if (pointer && module) {
2716 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2717 } else {
2718 Py_XDECREF(pointer)do { if ((pointer) == __null) ; else do { if ( --((PyObject*)
(pointer))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject
*)(pointer)))->ob_type)->tp_dealloc)((PyObject *)((PyObject
*)(pointer)))); } while (0); } while (0)
;
2719 }
2720#endif
2721}
2722
2723/* The python cached type query */
2724SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2725SWIG_Python_TypeCache(void) {
2726 static PyObject *SWIG_STATIC_POINTER(cache)cache = PyDict_New();
2727 return cache;
2728}
2729
2730SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
2731SWIG_Python_TypeQuery(const char *type)
2732{
2733 PyObject *cache = SWIG_Python_TypeCache();
2734 PyObject *key = SWIG_Python_str_FromChar(type);
2735 PyObject *obj = PyDict_GetItem(cache, key);
2736 swig_type_info *descriptor;
2737 if (obj) {
2738#ifdef SWIGPY_USE_CAPSULE
2739 descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL__null);
2740#else
2741 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2742#endif
2743 } else {
2744 swig_module_info *swig_module = SWIG_GetModule(0)SWIG_Python_GetModule(0);
2745 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2746 if (descriptor) {
2747#ifdef SWIGPY_USE_CAPSULE
2748 obj = PyCapsule_New((void*) descriptor, NULL__null, NULL__null);
2749#else
2750 obj = PyCObject_FromVoidPtr(descriptor, NULL__null);
2751#endif
2752 PyDict_SetItem(cache, key, obj);
2753 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
2754 }
2755 }
2756 Py_DECREF(key)do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(key)))); } while (0)
;
2757 return descriptor;
2758}
2759
2760/*
2761 For backward compatibility only
2762*/
2763#define SWIG_POINTER_EXCEPTION0 0
2764#define SWIG_arg_fail(arg)SWIG_Python_ArgFail(arg) SWIG_Python_ArgFail(arg)
2765#define SWIG_MustGetPtr(p, type, argnum, flags)SWIG_Python_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2766
2767SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2768SWIG_Python_AddErrMesg(const char* mesg, int infront)
2769{
2770 if (PyErr_Occurred()) {
2771 PyObject *type = 0;
2772 PyObject *value = 0;
2773 PyObject *traceback = 0;
2774 PyErr_Fetch(&type, &value, &traceback);
2775 if (value) {
2776 char *tmp;
2777 PyObject *old_str = PyObject_Str(value);
2778 Py_XINCREF(type)do { if ((type) == __null) ; else ( ((PyObject*)(type))->ob_refcnt
++); } while (0)
;
2779 PyErr_Clear();
2780 if (infront) {
2781 PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str));
2782 } else {
2783 PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
2784 }
2785 SWIG_Python_str_DelForPy3(tmp);
2786 Py_DECREF(old_str)do { if ( --((PyObject*)(old_str))->ob_refcnt != 0) ; else
( (*(((PyObject*)((PyObject *)(old_str)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(old_str)))); } while (0)
;
2787 }
2788 return 1;
2789 } else {
2790 return 0;
2791 }
2792}
2793
2794SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2795SWIG_Python_ArgFail(int argnum)
2796{
2797 if (PyErr_Occurred()) {
2798 /* add information about failing argument */
2799 char mesg[256];
2800 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2801 return SWIG_Python_AddErrMesg(mesg, 1);
2802 } else {
2803 return 0;
2804 }
2805}
2806
2807SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline const char *
2808SwigPyObject_GetDesc(PyObject *self)
2809{
2810 SwigPyObject *v = (SwigPyObject *)self;
2811 swig_type_info *ty = v ? v->ty : 0;
2812 return ty ? ty->str : "";
2813}
2814
2815SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2816SWIG_Python_TypeError(const char *type, PyObject *obj)
2817{
2818 if (type) {
2819#if defined(SWIG_COBJECT_TYPES)
2820 if (obj && SwigPyObject_Check(obj)) {
2821 const char *otype = (const char *) SwigPyObject_GetDesc(obj);
2822 if (otype) {
2823 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received",
2824 type, otype);
2825 return;
2826 }
2827 } else
2828#endif
2829 {
2830 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2831 if (otype) {
2832 PyObject *str = PyObject_Str(obj);
2833 const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0;
2834 if (cstr) {
2835 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2836 type, otype, cstr);
2837 SWIG_Python_str_DelForPy3(cstr);
2838 } else {
2839 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2840 type, otype);
2841 }
2842 Py_XDECREF(str)do { if ((str) == __null) ; else do { if ( --((PyObject*)(str
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
str)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)
(str)))); } while (0); } while (0)
;
2843 return;
2844 }
2845 }
2846 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2847 } else {
2848 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2849 }
2850}
2851
2852
2853/* Convert a pointer value, signal an exception on a type mismatch */
2854SWIGRUNTIMEstatic __attribute__ ((__unused__)) void *
2855SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) {
2856 void *result;
2857 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags)SWIG_Python_ConvertPtrAndOwn(obj, &result, ty, flags, 0) == -1) {
2858 PyErr_Clear();
2859#if SWIG_POINTER_EXCEPTION0
2860 if (flags) {
2861 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2862 SWIG_Python_ArgFail(argnum);
2863 }
2864#endif
2865 }
2866 return result;
2867}
2868
2869#ifdef SWIGPYTHON_BUILTIN
2870SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2871SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
2872 PyTypeObject *tp = obj->ob_type;
2873 PyObject *descr;
2874 PyObject *encoded_name;
2875 descrsetfunc f;
2876 int res = -1;
2877
2878# ifdef Py_USING_UNICODE1
2879 if (PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<27))) != 0)
) {
2880 name = PyUnicode_DecodePyUnicodeUCS2_Decode(PyString_AsString(name), PyString_Size(name), NULL__null, NULL__null);
2881 if (!name)
2882 return -1;
2883 } else if (!PyUnicode_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<28))) != 0)
)
2884# else
2885 if (!PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<27))) != 0)
)
2886# endif
2887 {
2888 PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name);
2889 return -1;
2890 } else {
2891 Py_INCREF(name)( ((PyObject*)(name))->ob_refcnt++);
2892 }
2893
2894 if (!tp->tp_dict) {
2895 if (PyType_Ready(tp) < 0)
2896 goto done;
2897 }
2898
2899 descr = _PyType_Lookup(tp, name);
2900 f = NULL__null;
2901 if (descr != NULL__null)
2902 f = descr->ob_type->tp_descr_set;
2903 if (!f) {
2904 if (PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<27))) != 0)
) {
2905 encoded_name = name;
2906 Py_INCREF(name)( ((PyObject*)(name))->ob_refcnt++);
2907 } else {
2908 encoded_name = PyUnicode_AsUTF8StringPyUnicodeUCS2_AsUTF8String(name);
2909 }
2910 PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name));
2911 Py_DECREF(encoded_name)do { if ( --((PyObject*)(encoded_name))->ob_refcnt != 0) ;
else ( (*(((PyObject*)((PyObject *)(encoded_name)))->ob_type
)->tp_dealloc)((PyObject *)((PyObject *)(encoded_name))));
} while (0)
;
2912 } else {
2913 res = f(descr, obj, value);
2914 }
2915
2916 done:
2917 Py_DECREF(name)do { if ( --((PyObject*)(name))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(name)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(name)))); } while (0)
;
2918 return res;
2919}
2920#endif
2921
2922
2923#ifdef __cplusplus199711L
2924}
2925#endif
2926
2927
2928
2929#define SWIG_exception_fail(code, msg)do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg
); goto fail; } while(0)
do { SWIG_Error(code, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg); SWIG_failgoto fail; } while(0)
2930
2931#define SWIG_contract_assert(expr, msg)if (!(expr)) { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(
-3), msg); goto fail; } else
if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), msg); SWIG_failgoto fail; } else
2932
2933
2934
2935 #define SWIG_exception(code, msg)do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg
); goto fail;; } while(0)
do { SWIG_Error(code, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg); SWIG_failgoto fail;; } while(0)
2936
2937
2938/* -------- TYPES TABLE (BEGIN) -------- */
2939
2940#define SWIGTYPE_p_GBaseswig_types[0] swig_types[0]
2941#define SWIGTYPE_p_GDerivativeswig_types[1] swig_types[1]
2942#define SWIGTYPE_p_GFunctionswig_types[2] swig_types[2]
2943#define SWIGTYPE_p_GIntegralswig_types[3] swig_types[3]
2944#define SWIGTYPE_p_charswig_types[4] swig_types[4]
2945#define SWIGTYPE_p_doubleswig_types[5] swig_types[5]
2946#define SWIGTYPE_p_std__invalid_argumentswig_types[6] swig_types[6]
2947#define SWIGTYPE_p_swig__SwigPyIteratorswig_types[7] swig_types[7]
2948static swig_type_info *swig_types[9];
2949static swig_module_info swig_module = {swig_types, 8, 0, 0, 0, 0};
2950#define SWIG_TypeQuery(name)SWIG_TypeQueryModule(&swig_module, &swig_module, name
)
SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2951#define SWIG_MangledTypeQuery(name)SWIG_MangledTypeQueryModule(&swig_module, &swig_module
, name)
SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2952
2953/* -------- TYPES TABLE (END) -------- */
2954
2955#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
<= 0x02000000)
2956# if !defined(SWIG_PYTHON_CLASSIC)
2957# error "This python version requires swig to be run with the '-classic' option"
2958# endif
2959#endif
2960
2961/*-----------------------------------------------
2962 @(target):= _numerics.so
2963 ------------------------------------------------*/
2964#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
2965# define SWIG_initinit_numerics PyInit__numerics
2966
2967#else
2968# define SWIG_initinit_numerics init_numerics
2969
2970#endif
2971#define SWIG_name"_numerics" "_numerics"
2972
2973#define SWIGVERSION0x020011 0x020011
2974#define SWIG_VERSION0x020011 SWIGVERSION0x020011
2975
2976
2977#define SWIG_as_voidptr(a)const_cast< void * >(static_cast< const void * >(
a))
const_cast< void * >(static_cast< const void * >(a))
2978#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))
2979
2980
2981#include <stdexcept>
2982
2983
2984namespace swig {
2985 class SwigPtr_PyObject {
2986 protected:
2987 PyObject *_obj;
2988
2989 public:
2990 SwigPtr_PyObject() :_obj(0)
2991 {
2992 }
2993
2994 SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj)
2995 {
2996 Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt
++); } while (0)
;
2997 }
2998
2999 SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj)
3000 {
3001 if (initial_ref) {
3002 Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt
++); } while (0)
;
3003 }
3004 }
3005
3006 SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item)
3007 {
3008 Py_XINCREF(item._obj)do { if ((item._obj) == __null) ; else ( ((PyObject*)(item._obj
))->ob_refcnt++); } while (0)
;
3009 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)
;
3010 _obj = item._obj;
3011 return *this;
3012 }
3013
3014 ~SwigPtr_PyObject()
3015 {
3016 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)
;
3017 }
3018
3019 operator PyObject *() const
3020 {
3021 return _obj;
3022 }
3023
3024 PyObject *operator->() const
3025 {
3026 return _obj;
3027 }
3028 };
3029}
3030
3031
3032namespace swig {
3033 struct SwigVar_PyObject : SwigPtr_PyObject {
3034 SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { }
3035
3036 SwigVar_PyObject & operator = (PyObject* obj)
3037 {
3038 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)
;
3039 _obj = obj;
3040 return *this;
3041 }
3042 };
3043}
3044
3045
3046#include <stddef.h>
3047#include "GException.hpp"
3048#include "GTools.hpp"
3049
3050
3051#include <stdexcept>
3052
3053
3054#if defined(__GNUC__4)
3055# if __GNUC__4 == 2 && __GNUC_MINOR <= 96
3056# define SWIG_STD_NOMODERN_STL
3057# endif
3058#endif
3059
3060
3061#include <string>
3062#include <stdexcept>
3063#include <stddef.h>
3064
3065
3066#include <string>
3067
3068
3069#include <iostream>
3070
3071#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03020000
3072# define SWIGPY_SLICE_ARG(obj)((PySliceObject*) (obj)) ((PyObject*) (obj))
3073#else
3074# define SWIGPY_SLICE_ARG(obj)((PySliceObject*) (obj)) ((PySliceObject*) (obj))
3075#endif
3076
3077
3078 #include <stddef.h>
3079
3080
3081namespace swig {
3082 struct stop_iteration {
3083 };
3084
3085 struct SwigPyIterator {
3086 private:
3087 SwigPtr_PyObject _seq;
3088
3089 protected:
3090 SwigPyIterator(PyObject *seq) : _seq(seq)
3091 {
3092 }
3093
3094 public:
3095 virtual ~SwigPyIterator() {}
3096
3097 // Access iterator method, required by Python
3098 virtual PyObject *value() const = 0;
3099
3100 // Forward iterator method, required by Python
3101 virtual SwigPyIterator *incr(size_t n = 1) = 0;
3102
3103 // Backward iterator method, very common in C++, but not required in Python
3104 virtual SwigPyIterator *decr(size_t /*n*/ = 1)
3105 {
3106 throw stop_iteration();
3107 }
3108
3109 // Random access iterator methods, but not required in Python
3110 virtual ptrdiff_t distance(const SwigPyIterator &/*x*/) const
3111 {
3112 throw std::invalid_argument("operation not supported");
3113 }
3114
3115 virtual bool equal (const SwigPyIterator &/*x*/) const
3116 {
3117 throw std::invalid_argument("operation not supported");
3118 }
3119
3120 // C++ common/needed methods
3121 virtual SwigPyIterator *copy() const = 0;
3122
3123 PyObject *next()
3124 {
3125 SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads
3126 PyObject *obj = value();
3127 incr();
3128 SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads
3129 return obj;
3130 }
3131
3132 /* Make an alias for Python 3.x */
3133 PyObject *__next__()
3134 {
3135 return next();
3136 }
3137
3138 PyObject *previous()
3139 {
3140 SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads
3141 decr();
3142 PyObject *obj = value();
3143 SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads
3144 return obj;
3145 }
3146
3147 SwigPyIterator *advance(ptrdiff_t n)
3148 {
3149 return (n > 0) ? incr(n) : decr(-n);
3150 }
3151
3152 bool operator == (const SwigPyIterator& x) const
3153 {
3154 return equal(x);
3155 }
3156
3157 bool operator != (const SwigPyIterator& x) const
3158 {
3159 return ! operator==(x);
3160 }
3161
3162 SwigPyIterator& operator += (ptrdiff_t n)
3163 {
3164 return *advance(n);
3165 }
3166
3167 SwigPyIterator& operator -= (ptrdiff_t n)
3168 {
3169 return *advance(-n);
3170 }
3171
3172 SwigPyIterator* operator + (ptrdiff_t n) const
3173 {
3174 return copy()->advance(n);
3175 }
3176
3177 SwigPyIterator* operator - (ptrdiff_t n) const
3178 {
3179 return copy()->advance(-n);
3180 }
3181
3182 ptrdiff_t operator - (const SwigPyIterator& x) const
3183 {
3184 return x.distance(*this);
3185 }
3186
3187 static swig_type_info* descriptor() {
3188 static int init = 0;
3189 static swig_type_info* desc = 0;
3190 if (!init) {
3191 desc = SWIG_TypeQuery("swig::SwigPyIterator *")SWIG_TypeQueryModule(&swig_module, &swig_module, "swig::SwigPyIterator *"
)
;
3192 init = 1;
3193 }
3194 return desc;
3195 }
3196 };
3197
3198#if defined(SWIGPYTHON_BUILTIN)
3199 inline PyObject* make_output_iterator_builtin (PyObject *pyself)
3200 {
3201 Py_INCREF(pyself)( ((PyObject*)(pyself))->ob_refcnt++);
3202 return pyself;
3203 }
3204#endif
3205}
3206
3207
3208SWIGINTERNstatic __attribute__ ((__unused__)) int
3209SWIG_AsVal_double (PyObject *obj, double *val)
3210{
3211 int res = SWIG_TypeError-5;
3212 if (PyFloat_Check(obj)((((PyObject*)(obj))->ob_type) == (&PyFloat_Type) || PyType_IsSubtype
((((PyObject*)(obj))->ob_type), (&PyFloat_Type)))
) {
3213 if (val) *val = PyFloat_AsDouble(obj);
3214 return SWIG_OK(0);
3215 } else if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3216 if (val) *val = PyInt_AsLong(obj);
3217 return SWIG_OK(0);
3218 } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3219 double v = PyLong_AsDouble(obj);
3220 if (!PyErr_Occurred()) {
3221 if (val) *val = v;
3222 return SWIG_OK(0);
3223 } else {
3224 PyErr_Clear();
3225 }
3226 }
3227#ifdef SWIG_PYTHON_CAST_MODE
3228 {
3229 int dispatch = 0;
3230 double d = PyFloat_AsDouble(obj);
3231 if (!PyErr_Occurred()) {
3232 if (val) *val = d;
3233 return SWIG_AddCast(SWIG_OK)((0));
3234 } else {
3235 PyErr_Clear();
3236 }
3237 if (!dispatch) {
3238 long v = PyLong_AsLong(obj);
3239 if (!PyErr_Occurred()) {
3240 if (val) *val = v;
3241 return SWIG_AddCast(SWIG_AddCast(SWIG_OK))(((0)));
3242 } else {
3243 PyErr_Clear();
3244 }
3245 }
3246 }
3247#endif
3248 return res;
3249}
3250
3251
3252#include <float.h>
3253
3254
3255#include <math.h>
3256
3257
3258SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int
3259SWIG_CanCastAsInteger(double *d, double min, double max) {
3260 double x = *d;
3261 if ((min <= x && x <= max)) {
3262 double fx = floor(x);
3263 double cx = ceil(x);
3264 double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */
3265 if ((errno(*__error()) == EDOM33) || (errno(*__error()) == ERANGE34)) {
3266 errno(*__error()) = 0;
3267 } else {
3268 double summ, reps, diff;
3269 if (rd < x) {
3270 diff = x - rd;
3271 } else if (rd > x) {
3272 diff = rd - x;
3273 } else {
3274 return 1;
3275 }
3276 summ = rd + x;
3277 reps = diff/summ;
3278 if (reps < 8*DBL_EPSILON2.2204460492503131e-16) {
3279 *d = rd;
3280 return 1;
3281 }
3282 }
3283 }
3284 return 0;
3285}
3286
3287
3288SWIGINTERNstatic __attribute__ ((__unused__)) int
3289SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val)
3290{
3291#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
3292 if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3293 long v = PyInt_AsLong(obj);
3294 if (v >= 0) {
3295 if (val) *val = v;
3296 return SWIG_OK(0);
3297 } else {
3298 return SWIG_OverflowError-7;
3299 }
3300 } else
3301#endif
3302 if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3303 unsigned long v = PyLong_AsUnsignedLong(obj);
3304 if (!PyErr_Occurred()) {
3305 if (val) *val = v;
3306 return SWIG_OK(0);
3307 } else {
3308 PyErr_Clear();
3309#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
3310 {
3311 long v = PyLong_AsLong(obj);
3312 if (!PyErr_Occurred()) {
3313 if (v < 0) {
3314 return SWIG_OverflowError-7;
3315 }
3316 } else {
3317 PyErr_Clear();
3318 }
3319 }
3320#endif
3321 }
3322 }
3323#ifdef SWIG_PYTHON_CAST_MODE
3324 {
3325 int dispatch = 0;
3326 unsigned long v = PyLong_AsUnsignedLong(obj);
3327 if (!PyErr_Occurred()) {
3328 if (val) *val = v;
3329 return SWIG_AddCast(SWIG_OK)((0));
3330 } else {
3331 PyErr_Clear();
3332 }
3333 if (!dispatch) {
3334 double d;
3335 int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d));
3336 if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX(9223372036854775807L *2UL+1UL))) {
3337 if (val) *val = (unsigned long)(d);
3338 return res;
3339 }
3340 }
3341 }
3342#endif
3343 return SWIG_TypeError-5;
3344}
3345
3346
3347SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int
3348SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3349{
3350 unsigned long v;
3351 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3352 if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< size_t >(v);
3353 return res;
3354}
3355
3356
3357 #define SWIG_From_longPyLong_FromLong PyLong_FromLong
3358
3359
3360SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
3361SWIG_From_ptrdiff_t (ptrdiff_t value)
3362{
3363 return SWIG_From_longPyLong_FromLong (static_cast< long >(value));
3364}
3365
3366
3367SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
3368 SWIG_From_bool (bool value)
3369{
3370 return PyBool_FromLong(value ? 1 : 0);
3371}
3372
3373
3374SWIGINTERNstatic __attribute__ ((__unused__)) int
3375SWIG_AsVal_long (PyObject *obj, long* val)
3376{
3377 if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3378 if (val) *val = PyInt_AsLong(obj);
3379 return SWIG_OK(0);
3380 } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3381 long v = PyLong_AsLong(obj);
3382 if (!PyErr_Occurred()) {
3383 if (val) *val = v;
3384 return SWIG_OK(0);
3385 } else {
3386 PyErr_Clear();
3387 }
3388 }
3389#ifdef SWIG_PYTHON_CAST_MODE
3390 {
3391 int dispatch = 0;
3392 long v = PyInt_AsLong(obj);
3393 if (!PyErr_Occurred()) {
3394 if (val) *val = v;
3395 return SWIG_AddCast(SWIG_OK)((0));
3396 } else {
3397 PyErr_Clear();
3398 }
3399 if (!dispatch) {
3400 double d;
3401 int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d));
3402 if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, LONG_MIN(-9223372036854775807L -1L), LONG_MAX9223372036854775807L)) {
3403 if (val) *val = (long)(d);
3404 return res;
3405 }
3406 }
3407 }
3408#endif
3409 return SWIG_TypeError-5;
3410}
3411
3412
3413SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int
3414SWIG_AsVal_ptrdiff_t (PyObject * obj, ptrdiff_t *val)
3415{
3416 long v;
3417 int res = SWIG_AsVal_long (obj, val ? &v : 0);
3418 if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< ptrdiff_t >(v);
3419 return res;
3420}
3421
3422
3423#include <stdexcept>
3424
3425
3426#include <algorithm>
3427
3428
3429#include <vector>
3430
3431
3432#include <utility>
3433
3434
3435#include <map>
3436#include <algorithm>
3437#include <stdexcept>
3438
3439
3440/* Put headers and other declarations here that are needed for compilation */
3441#include "GDerivative.hpp"
3442#include "GTools.hpp"
3443
3444
3445#include <limits.h>
3446#if !defined(SWIG_NO_LLONG_MAX)
3447# if !defined(LLONG_MAX0x7fffffffffffffffLL) && defined(__GNUC__4) && defined (__LONG_LONG_MAX__9223372036854775807LL)
3448# define LLONG_MAX0x7fffffffffffffffLL __LONG_LONG_MAX__9223372036854775807LL
3449# define LLONG_MIN(-0x7fffffffffffffffLL-1) (-LLONG_MAX0x7fffffffffffffffLL - 1LL)
3450# define ULLONG_MAX0xffffffffffffffffULL (LLONG_MAX0x7fffffffffffffffLL * 2ULL + 1ULL)
3451# endif
3452#endif
3453
3454
3455SWIGINTERNstatic __attribute__ ((__unused__)) int
3456SWIG_AsVal_int (PyObject * obj, int *val)
3457{
3458 long v;
3459 int res = SWIG_AsVal_long (obj, &v);
3460 if (SWIG_IsOK(res)(res >= 0)) {
3461 if ((v < INT_MIN(-2147483647 -1) || v > INT_MAX2147483647)) {
3462 return SWIG_OverflowError-7;
3463 } else {
3464 if (val) *val = static_cast< int >(v);
3465 }
3466 }
3467 return res;
3468}
3469
3470
3471SWIGINTERNstatic __attribute__ ((__unused__)) int
3472SWIG_AsVal_bool (PyObject *obj, bool *val)
3473{
3474 int r = PyObject_IsTrue(obj);
3475 if (r == -1)
3476 return SWIG_ERROR(-1);
3477 if (val) *val = r ? true : false;
3478 return SWIG_OK(0);
3479}
3480
3481
3482SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
3483 SWIG_From_int (int value)
3484{
3485 return PyInt_FromLong((long) value);
3486}
3487
3488
3489 #define SWIG_From_doublePyFloat_FromDouble PyFloat_FromDouble
3490
3491SWIGINTERNstatic __attribute__ ((__unused__)) GDerivative GDerivative_copy(GDerivative *self){
3492 return (*self);
3493 }
3494
3495/* Put headers and other declarations here that are needed for compilation */
3496#include "GFunction.hpp"
3497
3498
3499/* Put headers and other declarations here that are needed for compilation */
3500#include "GIntegral.hpp"
3501#include "GTools.hpp"
3502
3503SWIGINTERNstatic __attribute__ ((__unused__)) GIntegral GIntegral_copy(GIntegral *self){
3504 return (*self);
3505 }
3506
3507/* Put headers and other declarations here that are needed for compilation */
3508#include "GMath.hpp"
3509
3510#ifdef __cplusplus199711L
3511extern "C" {
3512#endif
3513SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_SwigPyIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3514 PyObject *resultobj = 0;
3515 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3516 void *argp1 = 0 ;
3517 int res1 = 0 ;
3518 PyObject * obj0 = 0 ;
3519
3520 if (!PyArg_ParseTuple(args,(char *)"O:delete_SwigPyIterator",&obj0)) SWIG_failgoto fail;
3521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0x1 | 0, 0)
;
3522 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3523 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)
;
3524 }
3525 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3526 delete arg1;
3527 resultobj = SWIG_Py_Void();
3528 return resultobj;
3529fail:
3530 return NULL__null;
3531}
3532
3533
3534SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3535 PyObject *resultobj = 0;
3536 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3537 void *argp1 = 0 ;
3538 int res1 = 0 ;
3539 PyObject * obj0 = 0 ;
3540 PyObject *result = 0 ;
3541
3542 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_value",&obj0)) SWIG_failgoto fail;
3543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
3544 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3545 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)
;
3546 }
3547 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3548 try {
3549 result = (PyObject *)((swig::SwigPyIterator const *)arg1)->value();
3550 }
3551 catch(swig::stop_iteration &_e) {
3552 {
3553 (void)_e;
3554 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3555 SWIG_failgoto fail;
3556 }
3557 }
3558
3559 resultobj = result;
3560 return resultobj;
3561fail:
3562 return NULL__null;
3563}
3564
3565
3566SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3567 PyObject *resultobj = 0;
3568 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3569 size_t arg2 ;
3570 void *argp1 = 0 ;
3571 int res1 = 0 ;
3572 size_t val2 ;
3573 int ecode2 = 0 ;
3574 PyObject * obj0 = 0 ;
3575 PyObject * obj1 = 0 ;
3576 swig::SwigPyIterator *result = 0 ;
3577
3578 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_incr",&obj0,&obj1)) SWIG_failgoto fail;
3579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
3580 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3581 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)
;
3582 }
3583 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3584 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
3585 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
3586 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)
;
3587 }
3588 arg2 = static_cast< size_t >(val2);
3589 try {
3590 result = (swig::SwigPyIterator *)(arg1)->incr(arg2);
3591 }
3592 catch(swig::stop_iteration &_e) {
3593 {
3594 (void)_e;
3595 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3596 SWIG_failgoto fail;
3597 }
3598 }
3599
3600 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[7], 0 |
0)
;
3601 return resultobj;
3602fail:
3603 return NULL__null;
3604}
3605
3606
3607SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3608 PyObject *resultobj = 0;
3609 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3610 void *argp1 = 0 ;
3611 int res1 = 0 ;
3612 PyObject * obj0 = 0 ;
3613 swig::SwigPyIterator *result = 0 ;
3614
3615 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_incr",&obj0)) SWIG_failgoto fail;
3616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
3617 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3618 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)
;
3619 }
3620 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3621 try {
3622 result = (swig::SwigPyIterator *)(arg1)->incr();
3623 }
3624 catch(swig::stop_iteration &_e) {
3625 {
3626 (void)_e;
3627 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3628 SWIG_failgoto fail;
3629 }
3630 }
3631
3632 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[7], 0 |
0)
;
3633 return resultobj;
3634fail:
3635 return NULL__null;
3636}
3637
3638
3639SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr(PyObject *self, PyObject *args) {
3640 int argc;
3641 PyObject *argv[3];
3642 int ii;
3643
3644 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
3645 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
3646 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
3647 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
3648 }
3649 if (argc == 1) {
3650 int _v;
3651 void *vptr = 0;
3652 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7
], 0, 0)
;
3653 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
3654 if (_v) {
3655 return _wrap_SwigPyIterator_incr__SWIG_1(self, args);
3656 }
3657 }
3658 if (argc == 2) {
3659 int _v;
3660 void *vptr = 0;
3661 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7
], 0, 0)
;
3662 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
3663 if (_v) {
3664 {
3665 int res = SWIG_AsVal_size_t(argv[1], NULL__null);
3666 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
3667 }
3668 if (_v) {
3669 return _wrap_SwigPyIterator_incr__SWIG_0(self, args);
3670 }
3671 }
3672 }
3673
3674fail:
3675 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_incr'.\n"
3676 " Possible C/C++ prototypes are:\n"
3677 " swig::SwigPyIterator::incr(size_t)\n"
3678 " swig::SwigPyIterator::incr()\n");
3679 return 0;
3680}
3681
3682
3683SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3684 PyObject *resultobj = 0;
3685 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3686 size_t arg2 ;
3687 void *argp1 = 0 ;
3688 int res1 = 0 ;
3689 size_t val2 ;
3690 int ecode2 = 0 ;
3691 PyObject * obj0 = 0 ;
3692 PyObject * obj1 = 0 ;
3693 swig::SwigPyIterator *result = 0 ;
3694
3695 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_decr",&obj0,&obj1)) SWIG_failgoto fail;
3696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
3697 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3698 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)
;
3699 }
3700 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3701 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
3702 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
3703 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)
;
3704 }
3705 arg2 = static_cast< size_t >(val2);
3706 try {
3707 result = (swig::SwigPyIterator *)(arg1)->decr(arg2);
3708 }
3709 catch(swig::stop_iteration &_e) {
3710 {
3711 (void)_e;
3712 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3713 SWIG_failgoto fail;
3714 }
3715 }
3716
3717 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[7], 0 |
0)
;
3718 return resultobj;
3719fail:
3720 return NULL__null;
3721}
3722
3723
3724SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3725 PyObject *resultobj = 0;
3726 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3727 void *argp1 = 0 ;
3728 int res1 = 0 ;
3729 PyObject * obj0 = 0 ;
3730 swig::SwigPyIterator *result = 0 ;
3731
3732 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_decr",&obj0)) SWIG_failgoto fail;
3733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
3734 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3735 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)
;
3736 }
3737 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3738 try {
3739 result = (swig::SwigPyIterator *)(arg1)->decr();
3740 }
3741 catch(swig::stop_iteration &_e) {
3742 {
3743 (void)_e;
3744 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3745 SWIG_failgoto fail;
3746 }
3747 }
3748
3749 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[7], 0 |
0)
;
3750 return resultobj;
3751fail:
3752 return NULL__null;
3753}
3754
3755
3756SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr(PyObject *self, PyObject *args) {
3757 int argc;
3758 PyObject *argv[3];
3759 int ii;
3760
3761 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
3762 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
3763 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
3764 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
3765 }
3766 if (argc == 1) {
3767 int _v;
3768 void *vptr = 0;
3769 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7
], 0, 0)
;
3770 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
3771 if (_v) {
3772 return _wrap_SwigPyIterator_decr__SWIG_1(self, args);
3773 }
3774 }
3775 if (argc == 2) {
3776 int _v;
3777 void *vptr = 0;
3778 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7
], 0, 0)
;
3779 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
3780 if (_v) {
3781 {
3782 int res = SWIG_AsVal_size_t(argv[1], NULL__null);
3783 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
3784 }
3785 if (_v) {
3786 return _wrap_SwigPyIterator_decr__SWIG_0(self, args);
3787 }
3788 }
3789 }
3790
3791fail:
3792 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_decr'.\n"
3793 " Possible C/C++ prototypes are:\n"
3794 " swig::SwigPyIterator::decr(size_t)\n"
3795 " swig::SwigPyIterator::decr()\n");
3796 return 0;
3797}
3798
3799
3800SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3801 PyObject *resultobj = 0;
3802 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3803 swig::SwigPyIterator *arg2 = 0 ;
3804 void *argp1 = 0 ;
3805 int res1 = 0 ;
3806 void *argp2 = 0 ;
3807 int res2 = 0 ;
3808 PyObject * obj0 = 0 ;
3809 PyObject * obj1 = 0 ;
3810 ptrdiff_t result;
3811
3812 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_distance",&obj0,&obj1)) SWIG_failgoto fail;
3813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
3814 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3815 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)
;
3816 }
3817 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3818 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[7],
0 | 0, 0)
;
3819 if (!SWIG_IsOK(res2)(res2 >= 0)) {
3820 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)
;
3821 }
3822 if (!argp2) {
3823 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
)
;
3824 }
3825 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
3826 try {
3827 result = ((swig::SwigPyIterator const *)arg1)->distance((swig::SwigPyIterator const &)*arg2);
3828 }
3829 catch(std::invalid_argument &_e) {
3830 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[
6]), SWIG_Python_NewPointerObj(__null, (new std::invalid_argument
(static_cast< const std::invalid_argument& >(_e))),
swig_types[6], 0x1))
; SWIG_failgoto fail;
3831 }
3832
3833 resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
3834 return resultobj;
3835fail:
3836 return NULL__null;
3837}
3838
3839
3840SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_equal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3841 PyObject *resultobj = 0;
3842 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3843 swig::SwigPyIterator *arg2 = 0 ;
3844 void *argp1 = 0 ;
3845 int res1 = 0 ;
3846 void *argp2 = 0 ;
3847 int res2 = 0 ;
3848 PyObject * obj0 = 0 ;
3849 PyObject * obj1 = 0 ;
3850 bool result;
3851
3852 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_equal",&obj0,&obj1)) SWIG_failgoto fail;
3853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
3854 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3855 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)
;
3856 }
3857 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3858 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[7],
0 | 0, 0)
;
3859 if (!SWIG_IsOK(res2)(res2 >= 0)) {
3860 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)
;
3861 }
3862 if (!argp2) {
3863 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
)
;
3864 }
3865 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
3866 try {
3867 result = (bool)((swig::SwigPyIterator const *)arg1)->equal((swig::SwigPyIterator const &)*arg2);
3868 }
3869 catch(std::invalid_argument &_e) {
3870 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[
6]), SWIG_Python_NewPointerObj(__null, (new std::invalid_argument
(static_cast< const std::invalid_argument& >(_e))),
swig_types[6], 0x1))
; SWIG_failgoto fail;
3871 }
3872
3873 resultobj = SWIG_From_bool(static_cast< bool >(result));
3874 return resultobj;
3875fail:
3876 return NULL__null;
3877}
3878
3879
3880SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3881 PyObject *resultobj = 0;
3882 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3883 void *argp1 = 0 ;
3884 int res1 = 0 ;
3885 PyObject * obj0 = 0 ;
3886 swig::SwigPyIterator *result = 0 ;
3887
3888 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_copy",&obj0)) SWIG_failgoto fail;
3889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
3890 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3891 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)
;
3892 }
3893 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3894 result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->copy();
3895 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[7], 0x1
| 0)
;
3896 return resultobj;
3897fail:
3898 return NULL__null;
3899}
3900
3901
3902SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3903 PyObject *resultobj = 0;
3904 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3905 void *argp1 = 0 ;
3906 int res1 = 0 ;
3907 PyObject * obj0 = 0 ;
3908 PyObject *result = 0 ;
3909
3910 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_next",&obj0)) SWIG_failgoto fail;
3911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
3912 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3913 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)
;
3914 }
3915 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3916 try {
3917 result = (PyObject *)(arg1)->next();
3918 }
3919 catch(swig::stop_iteration &_e) {
3920 {
3921 (void)_e;
3922 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3923 SWIG_failgoto fail;
3924 }
3925 }
3926
3927 resultobj = result;
3928 return resultobj;
3929fail:
3930 return NULL__null;
3931}
3932
3933
3934SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___next__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3935 PyObject *resultobj = 0;
3936 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3937 void *argp1 = 0 ;
3938 int res1 = 0 ;
3939 PyObject * obj0 = 0 ;
3940 PyObject *result = 0 ;
3941
3942 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator___next__",&obj0)) SWIG_failgoto fail;
3943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
3944 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3945 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)
;
3946 }
3947 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3948 try {
3949 result = (PyObject *)(arg1)->__next__();
3950 }
3951 catch(swig::stop_iteration &_e) {
3952 {
3953 (void)_e;
3954 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3955 SWIG_failgoto fail;
3956 }
3957 }
3958
3959 resultobj = result;
3960 return resultobj;
3961fail:
3962 return NULL__null;
3963}
3964
3965
3966SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_previous(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3967 PyObject *resultobj = 0;
3968 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3969 void *argp1 = 0 ;
3970 int res1 = 0 ;
3971 PyObject * obj0 = 0 ;
3972 PyObject *result = 0 ;
3973
3974 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_previous",&obj0)) SWIG_failgoto fail;
3975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
3976 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3977 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)
;
3978 }
3979 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3980 try {
3981 result = (PyObject *)(arg1)->previous();
3982 }
3983 catch(swig::stop_iteration &_e) {
3984 {
3985 (void)_e;
3986 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3987 SWIG_failgoto fail;
3988 }
3989 }
3990
3991 resultobj = result;
3992 return resultobj;
3993fail:
3994 return NULL__null;
3995}
3996
3997
3998SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_advance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3999 PyObject *resultobj = 0;
4000 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4001 ptrdiff_t arg2 ;
4002 void *argp1 = 0 ;
4003 int res1 = 0 ;
4004 ptrdiff_t val2 ;
4005 int ecode2 = 0 ;
4006 PyObject * obj0 = 0 ;
4007 PyObject * obj1 = 0 ;
4008 swig::SwigPyIterator *result = 0 ;
4009
4010 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_advance",&obj0,&obj1)) SWIG_failgoto fail;
4011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
4012 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4013 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)
;
4014 }
4015 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4016 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4017 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4018 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)
;
4019 }
4020 arg2 = static_cast< ptrdiff_t >(val2);
4021 try {
4022 result = (swig::SwigPyIterator *)(arg1)->advance(arg2);
4023 }
4024 catch(swig::stop_iteration &_e) {
4025 {
4026 (void)_e;
4027 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4028 SWIG_failgoto fail;
4029 }
4030 }
4031
4032 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[7], 0 |
0)
;
4033 return resultobj;
4034fail:
4035 return NULL__null;
4036}
4037
4038
4039SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4040 PyObject *resultobj = 0;
4041 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4042 swig::SwigPyIterator *arg2 = 0 ;
4043 void *argp1 = 0 ;
4044 int res1 = 0 ;
4045 void *argp2 = 0 ;
4046 int res2 = 0 ;
4047 PyObject * obj0 = 0 ;
4048 PyObject * obj1 = 0 ;
4049 bool result;
4050
4051 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___eq__",&obj0,&obj1)) SWIG_failgoto fail;
4052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
4053 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4054 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)
;
4055 }
4056 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4057 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[7],
0 | 0, 0)
;
4058 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4059 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)
;
4060 }
4061 if (!argp2) {
4062 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
)
;
4063 }
4064 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4065 result = (bool)((swig::SwigPyIterator const *)arg1)->operator ==((swig::SwigPyIterator const &)*arg2);
4066 resultobj = SWIG_From_bool(static_cast< bool >(result));
4067 return resultobj;
4068fail:
4069 return NULL__null;
4070}
4071
4072
4073SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4074 PyObject *resultobj = 0;
4075 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4076 swig::SwigPyIterator *arg2 = 0 ;
4077 void *argp1 = 0 ;
4078 int res1 = 0 ;
4079 void *argp2 = 0 ;
4080 int res2 = 0 ;
4081 PyObject * obj0 = 0 ;
4082 PyObject * obj1 = 0 ;
4083 bool result;
4084
4085 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___ne__",&obj0,&obj1)) SWIG_failgoto fail;
4086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
4087 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4088 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)
;
4089 }
4090 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4091 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[7],
0 | 0, 0)
;
4092 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4093 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)
;
4094 }
4095 if (!argp2) {
4096 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
)
;
4097 }
4098 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4099 result = (bool)((swig::SwigPyIterator const *)arg1)->operator !=((swig::SwigPyIterator const &)*arg2);
4100 resultobj = SWIG_From_bool(static_cast< bool >(result));
4101 return resultobj;
4102fail:
4103 return NULL__null;
4104}
4105
4106
4107SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4108 PyObject *resultobj = 0;
4109 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4110 ptrdiff_t arg2 ;
4111 void *argp1 = 0 ;
4112 int res1 = 0 ;
4113 ptrdiff_t val2 ;
4114 int ecode2 = 0 ;
4115 PyObject * obj0 = 0 ;
4116 PyObject * obj1 = 0 ;
4117 swig::SwigPyIterator *result = 0 ;
4118
4119 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___iadd__",&obj0,&obj1)) SWIG_failgoto fail;
4120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0x1 | 0, 0)
;
4121 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4122 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)
;
4123 }
4124 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4125 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4126 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4127 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)
;
4128 }
4129 arg2 = static_cast< ptrdiff_t >(val2);
4130 try {
4131 result = (swig::SwigPyIterator *) &(arg1)->operator +=(arg2);
4132 }
4133 catch(swig::stop_iteration &_e) {
4134 {
4135 (void)_e;
4136 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4137 SWIG_failgoto fail;
4138 }
4139 }
4140
4141 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[7], 0x1
| 0)
;
4142 return resultobj;
4143fail:
4144 return NULL__null;
4145}
4146
4147
4148SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4149 PyObject *resultobj = 0;
4150 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4151 ptrdiff_t arg2 ;
4152 void *argp1 = 0 ;
4153 int res1 = 0 ;
4154 ptrdiff_t val2 ;
4155 int ecode2 = 0 ;
4156 PyObject * obj0 = 0 ;
4157 PyObject * obj1 = 0 ;
4158 swig::SwigPyIterator *result = 0 ;
4159
4160 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___isub__",&obj0,&obj1)) SWIG_failgoto fail;
4161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0x1 | 0, 0)
;
4162 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4163 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)
;
4164 }
4165 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4166 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4167 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4168 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)
;
4169 }
4170 arg2 = static_cast< ptrdiff_t >(val2);
4171 try {
4172 result = (swig::SwigPyIterator *) &(arg1)->operator -=(arg2);
4173 }
4174 catch(swig::stop_iteration &_e) {
4175 {
4176 (void)_e;
4177 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4178 SWIG_failgoto fail;
4179 }
4180 }
4181
4182 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[7], 0x1
| 0)
;
4183 return resultobj;
4184fail:
4185 return NULL__null;
4186}
4187
4188
4189SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4190 PyObject *resultobj = 0;
4191 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4192 ptrdiff_t arg2 ;
4193 void *argp1 = 0 ;
4194 int res1 = 0 ;
4195 ptrdiff_t val2 ;
4196 int ecode2 = 0 ;
4197 PyObject * obj0 = 0 ;
4198 PyObject * obj1 = 0 ;
4199 swig::SwigPyIterator *result = 0 ;
4200
4201 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___add__",&obj0,&obj1)) SWIG_failgoto fail;
4202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
4203 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4204 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)
;
4205 }
4206 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4207 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4208 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4209 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)
;
4210 }
4211 arg2 = static_cast< ptrdiff_t >(val2);
4212 try {
4213 result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator +(arg2);
4214 }
4215 catch(swig::stop_iteration &_e) {
4216 {
4217 (void)_e;
4218 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4219 SWIG_failgoto fail;
4220 }
4221 }
4222
4223 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[7], 0x1
| 0)
;
4224 return resultobj;
4225fail:
4226 return NULL__null;
4227}
4228
4229
4230SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4231 PyObject *resultobj = 0;
4232 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4233 ptrdiff_t arg2 ;
4234 void *argp1 = 0 ;
4235 int res1 = 0 ;
4236 ptrdiff_t val2 ;
4237 int ecode2 = 0 ;
4238 PyObject * obj0 = 0 ;
4239 PyObject * obj1 = 0 ;
4240 swig::SwigPyIterator *result = 0 ;
4241
4242 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_failgoto fail;
4243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
4244 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4245 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)
;
4246 }
4247 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4248 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4249 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4250 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)
;
4251 }
4252 arg2 = static_cast< ptrdiff_t >(val2);
4253 try {
4254 result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator -(arg2);
4255 }
4256 catch(swig::stop_iteration &_e) {
4257 {
4258 (void)_e;
4259 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4260 SWIG_failgoto fail;
4261 }
4262 }
4263
4264 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[7], 0x1
| 0)
;
4265 return resultobj;
4266fail:
4267 return NULL__null;
4268}
4269
4270
4271SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4272 PyObject *resultobj = 0;
4273 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4274 swig::SwigPyIterator *arg2 = 0 ;
4275 void *argp1 = 0 ;
4276 int res1 = 0 ;
4277 void *argp2 = 0 ;
4278 int res2 = 0 ;
4279 PyObject * obj0 = 0 ;
4280 PyObject * obj1 = 0 ;
4281 ptrdiff_t result;
4282
4283 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_failgoto fail;
4284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
4285 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4286 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)
;
4287 }
4288 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4289 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[7],
0 | 0, 0)
;
4290 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4291 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)
;
4292 }
4293 if (!argp2) {
4294 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
)
;
4295 }
4296 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4297 result = ((swig::SwigPyIterator const *)arg1)->operator -((swig::SwigPyIterator const &)*arg2);
4298 resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
4299 return resultobj;
4300fail:
4301 return NULL__null;
4302}
4303
4304
4305SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub__(PyObject *self, PyObject *args) {
4306 int argc;
4307 PyObject *argv[3];
4308 int ii;
4309
4310 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
4311 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
4312 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
4313 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
4314 }
4315 if (argc == 2) {
4316 int _v;
4317 void *vptr = 0;
4318 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7
], 0, 0)
;
4319 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4320 if (_v) {
4321 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[7], 0, 0);
4322 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4323 if (_v) {
4324 return _wrap_SwigPyIterator___sub____SWIG_1(self, args);
4325 }
4326 }
4327 }
4328 if (argc == 2) {
4329 int _v;
4330 void *vptr = 0;
4331 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7
], 0, 0)
;
4332 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4333 if (_v) {
4334 {
4335 int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL__null);
4336 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4337 }
4338 if (_v) {
4339 return _wrap_SwigPyIterator___sub____SWIG_0(self, args);
4340 }
4341 }
4342 }
4343
4344fail:
4345 Py_INCREF(Py_NotImplemented)( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt
++)
;
4346 return Py_NotImplemented(&_Py_NotImplementedStruct);
4347}
4348
4349
4350SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *SwigPyIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4351 PyObject *obj;
4352 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
4353 SWIG_TypeNewClientData(SWIGTYPE_p_swig__SwigPyIteratorswig_types[7], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
4354 return SWIG_Py_Void();
4355}
4356
4357SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GDerivative__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4358 PyObject *resultobj = 0;
4359 GDerivative *result = 0 ;
4360
4361 if (!PyArg_ParseTuple(args,(char *)":new_GDerivative")) SWIG_failgoto fail;
4362 {
4363 try {
4364 result = (GDerivative *)new GDerivative();
4365 }
4366 catch (const GException::out_of_range& e) {
4367 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4368 }
4369 catch (const GExceptionHandler& e) {
4370 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4371 }
4372 catch (const std::exception& e) {
4373 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4374 }
4375 }
4376 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GDerivative, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[1], ((
0x1 << 1) | 0x1) | 0)
;
4377 return resultobj;
4378fail:
4379 return NULL__null;
4380}
4381
4382
4383SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GDerivative__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4384 PyObject *resultobj = 0;
4385 GFunction *arg1 = (GFunction *) 0 ;
4386 void *argp1 = 0 ;
4387 int res1 = 0 ;
4388 PyObject * obj0 = 0 ;
4389 GDerivative *result = 0 ;
4390
4391 if (!PyArg_ParseTuple(args,(char *)"O:new_GDerivative",&obj0)) SWIG_failgoto fail;
4392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GFunction, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2],
0 | 0, 0)
;
4393 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GDerivative" "', argument " "1"" of type '" "GFunction *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GDerivative" "', argument "
"1"" of type '" "GFunction *""'"); goto fail; } while(0)
;
4395 }
4396 arg1 = reinterpret_cast< GFunction * >(argp1);
4397 {
4398 try {
4399 result = (GDerivative *)new GDerivative(arg1);
4400 }
4401 catch (const GException::out_of_range& e) {
4402 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4403 }
4404 catch (const GExceptionHandler& e) {
4405 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4406 }
4407 catch (const std::exception& e) {
4408 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4409 }
4410 }
4411 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GDerivative, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[1], ((
0x1 << 1) | 0x1) | 0)
;
4412 return resultobj;
4413fail:
4414 return NULL__null;
4415}
4416
4417
4418SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GDerivative__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4419 PyObject *resultobj = 0;
4420 GDerivative *arg1 = 0 ;
4421 void *argp1 = 0 ;
4422 int res1 = 0 ;
4423 PyObject * obj0 = 0 ;
4424 GDerivative *result = 0 ;
4425
4426 if (!PyArg_ParseTuple(args,(char *)"O:new_GDerivative",&obj0)) SWIG_failgoto fail;
4427 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GDerivative, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
4428 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GDerivative" "', argument " "1"" of type '" "GDerivative const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GDerivative" "', argument "
"1"" of type '" "GDerivative const &""'"); goto fail; } while
(0)
;
4430 }
4431 if (!argp1) {
4432 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GDerivative" "', argument " "1"" of type '" "GDerivative const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GDerivative" "', argument " "1"" of type '"
"GDerivative const &""'"); goto fail; } while(0)
;
4433 }
4434 arg1 = reinterpret_cast< GDerivative * >(argp1);
4435 {
4436 try {
4437 result = (GDerivative *)new GDerivative((GDerivative const &)*arg1);
4438 }
4439 catch (const GException::out_of_range& e) {
4440 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4441 }
4442 catch (const GExceptionHandler& e) {
4443 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4444 }
4445 catch (const std::exception& e) {
4446 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4447 }
4448 }
4449 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GDerivative, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[1], ((
0x1 << 1) | 0x1) | 0)
;
4450 return resultobj;
4451fail:
4452 return NULL__null;
4453}
4454
4455
4456SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GDerivative(PyObject *self, PyObject *args) {
4457 int argc;
4458 PyObject *argv[2];
4459 int ii;
4460
4461 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
4462 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
4463 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
4464 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
4465 }
4466 if (argc == 0) {
4467 return _wrap_new_GDerivative__SWIG_0(self, args);
4468 }
4469 if (argc == 1) {
4470 int _v;
4471 void *vptr = 0;
4472 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GFunction, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[2
], 0, 0)
;
4473 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4474 if (_v) {
4475 return _wrap_new_GDerivative__SWIG_1(self, args);
4476 }
4477 }
4478 if (argc == 1) {
4479 int _v;
4480 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GDerivative, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[1], 0, 0);
4481 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4482 if (_v) {
4483 return _wrap_new_GDerivative__SWIG_2(self, args);
4484 }
4485 }
4486
4487fail:
4488 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GDerivative'.\n"
4489 " Possible C/C++ prototypes are:\n"
4490 " GDerivative::GDerivative()\n"
4491 " GDerivative::GDerivative(GFunction *)\n"
4492 " GDerivative::GDerivative(GDerivative const &)\n");
4493 return 0;
4494}
4495
4496
4497SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GDerivative(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4498 PyObject *resultobj = 0;
4499 GDerivative *arg1 = (GDerivative *) 0 ;
4500 void *argp1 = 0 ;
4501 int res1 = 0 ;
4502 PyObject * obj0 = 0 ;
4503
4504 if (!PyArg_ParseTuple(args,(char *)"O:delete_GDerivative",&obj0)) SWIG_failgoto fail;
4505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GDerivative, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0x1 | 0, 0)
;
4506 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDerivative" "', argument " "1"" of type '" "GDerivative *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GDerivative" "', argument "
"1"" of type '" "GDerivative *""'"); goto fail; } while(0)
;
4508 }
4509 arg1 = reinterpret_cast< GDerivative * >(argp1);
4510 {
4511 try {
4512 delete arg1;
4513 }
4514 catch (const GException::out_of_range& e) {
4515 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4516 }
4517 catch (const GExceptionHandler& e) {
4518 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4519 }
4520 catch (const std::exception& e) {
4521 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4522 }
4523 }
4524 resultobj = SWIG_Py_Void();
4525 return resultobj;
4526fail:
4527 return NULL__null;
4528}
4529
4530
4531SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GDerivative_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4532 PyObject *resultobj = 0;
4533 GDerivative *arg1 = (GDerivative *) 0 ;
4534 void *argp1 = 0 ;
4535 int res1 = 0 ;
4536 PyObject * obj0 = 0 ;
4537
4538 if (!PyArg_ParseTuple(args,(char *)"O:GDerivative_clear",&obj0)) SWIG_failgoto fail;
4539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GDerivative, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
4540 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDerivative_clear" "', argument " "1"" of type '" "GDerivative *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GDerivative_clear" "', argument "
"1"" of type '" "GDerivative *""'"); goto fail; } while(0)
;
4542 }
4543 arg1 = reinterpret_cast< GDerivative * >(argp1);
4544 {
4545 try {
4546 (arg1)->clear();
4547 }
4548 catch (const GException::out_of_range& e) {
4549 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4550 }
4551 catch (const GExceptionHandler& e) {
4552 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4553 }
4554 catch (const std::exception& e) {
4555 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4556 }
4557 }
4558 resultobj = SWIG_Py_Void();
4559 return resultobj;
4560fail:
4561 return NULL__null;
4562}
4563
4564
4565SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GDerivative_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4566 PyObject *resultobj = 0;
4567 GDerivative *arg1 = (GDerivative *) 0 ;
4568 void *argp1 = 0 ;
4569 int res1 = 0 ;
4570 PyObject * obj0 = 0 ;
4571 GDerivative *result = 0 ;
4572
4573 if (!PyArg_ParseTuple(args,(char *)"O:GDerivative_clone",&obj0)) SWIG_failgoto fail;
4574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GDerivative, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
4575 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDerivative_clone" "', argument " "1"" of type '" "GDerivative const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GDerivative_clone" "', argument "
"1"" of type '" "GDerivative const *""'"); goto fail; } while
(0)
;
4577 }
4578 arg1 = reinterpret_cast< GDerivative * >(argp1);
4579 {
4580 try {
4581 result = (GDerivative *)((GDerivative const *)arg1)->clone();
4582 }
4583 catch (const GException::out_of_range& e) {
4584 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4585 }
4586 catch (const GExceptionHandler& e) {
4587 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4588 }
4589 catch (const std::exception& e) {
4590 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4591 }
4592 }
4593 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GDerivative, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[1], 0 |
0)
;
4594 return resultobj;
4595fail:
4596 return NULL__null;
4597}
4598
4599
4600SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GDerivative_max_iter__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4601 PyObject *resultobj = 0;
4602 GDerivative *arg1 = (GDerivative *) 0 ;
4603 int *arg2 = 0 ;
4604 void *argp1 = 0 ;
4605 int res1 = 0 ;
4606 int temp2 ;
4607 int val2 ;
4608 int ecode2 = 0 ;
4609 PyObject * obj0 = 0 ;
4610 PyObject * obj1 = 0 ;
4611
4612 if (!PyArg_ParseTuple(args,(char *)"OO:GDerivative_max_iter",&obj0,&obj1)) SWIG_failgoto fail;
4613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GDerivative, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
4614 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDerivative_max_iter" "', argument " "1"" of type '" "GDerivative *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GDerivative_max_iter" "', argument "
"1"" of type '" "GDerivative *""'"); goto fail; } while(0)
;
4616 }
4617 arg1 = reinterpret_cast< GDerivative * >(argp1);
4618 ecode2 = SWIG_AsVal_int(obj1, &val2);
4619 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4620 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GDerivative_max_iter" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GDerivative_max_iter" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
4621 }
4622 temp2 = static_cast< int >(val2);
4623 arg2 = &temp2;
4624 {
4625 try {
4626 (arg1)->max_iter((int const &)*arg2);
4627 }
4628 catch (const GException::out_of_range& e) {
4629 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4630 }
4631 catch (const GExceptionHandler& e) {
4632 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4633 }
4634 catch (const std::exception& e) {
4635 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4636 }
4637 }
4638 resultobj = SWIG_Py_Void();
4639 return resultobj;
4640fail:
4641 return NULL__null;
4642}
4643
4644
4645SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GDerivative_eps__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4646 PyObject *resultobj = 0;
4647 GDerivative *arg1 = (GDerivative *) 0 ;
4648 double *arg2 = 0 ;
4649 void *argp1 = 0 ;
4650 int res1 = 0 ;
4651 double temp2 ;
4652 double val2 ;
4653 int ecode2 = 0 ;
4654 PyObject * obj0 = 0 ;
4655 PyObject * obj1 = 0 ;
4656
4657 if (!PyArg_ParseTuple(args,(char *)"OO:GDerivative_eps",&obj0,&obj1)) SWIG_failgoto fail;
4658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GDerivative, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
4659 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDerivative_eps" "', argument " "1"" of type '" "GDerivative *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GDerivative_eps" "', argument "
"1"" of type '" "GDerivative *""'"); goto fail; } while(0)
;
4661 }
4662 arg1 = reinterpret_cast< GDerivative * >(argp1);
4663 ecode2 = SWIG_AsVal_double(obj1, &val2);
4664 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4665 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GDerivative_eps" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GDerivative_eps" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
4666 }
4667 temp2 = static_cast< double >(val2);
4668 arg2 = &temp2;
4669 {
4670 try {
4671 (arg1)->eps((double const &)*arg2);
4672 }
4673 catch (const GException::out_of_range& e) {
4674 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4675 }
4676 catch (const GExceptionHandler& e) {
4677 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4678 }
4679 catch (const std::exception& e) {
4680 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4681 }
4682 }
4683 resultobj = SWIG_Py_Void();
4684 return resultobj;
4685fail:
4686 return NULL__null;
4687}
4688
4689
4690SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GDerivative_step_frac__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4691 PyObject *resultobj = 0;
4692 GDerivative *arg1 = (GDerivative *) 0 ;
4693 double *arg2 = 0 ;
4694 void *argp1 = 0 ;
4695 int res1 = 0 ;
4696 double temp2 ;
4697 double val2 ;
4698 int ecode2 = 0 ;
4699 PyObject * obj0 = 0 ;
4700 PyObject * obj1 = 0 ;
4701
4702 if (!PyArg_ParseTuple(args,(char *)"OO:GDerivative_step_frac",&obj0,&obj1)) SWIG_failgoto fail;
4703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GDerivative, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
4704 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDerivative_step_frac" "', argument " "1"" of type '" "GDerivative *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GDerivative_step_frac" "', argument "
"1"" of type '" "GDerivative *""'"); goto fail; } while(0)
;
4706 }
4707 arg1 = reinterpret_cast< GDerivative * >(argp1);
4708 ecode2 = SWIG_AsVal_double(obj1, &val2);
4709 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GDerivative_step_frac" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GDerivative_step_frac"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
4711 }
4712 temp2 = static_cast< double >(val2);
4713 arg2 = &temp2;
4714 {
4715 try {
4716 (arg1)->step_frac((double const &)*arg2);
4717 }
4718 catch (const GException::out_of_range& e) {
4719 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4720 }
4721 catch (const GExceptionHandler& e) {
4722 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4723 }
4724 catch (const std::exception& e) {
4725 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4726 }
4727 }
4728 resultobj = SWIG_Py_Void();
4729 return resultobj;
4730fail:
4731 return NULL__null;
4732}
4733
4734
4735SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GDerivative_silent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4736 PyObject *resultobj = 0;
4737 GDerivative *arg1 = (GDerivative *) 0 ;
4738 bool *arg2 = 0 ;
4739 void *argp1 = 0 ;
4740 int res1 = 0 ;
4741 bool temp2 ;
4742 bool val2 ;
4743 int ecode2 = 0 ;
4744 PyObject * obj0 = 0 ;
4745 PyObject * obj1 = 0 ;
4746
4747 if (!PyArg_ParseTuple(args,(char *)"OO:GDerivative_silent",&obj0,&obj1)) SWIG_failgoto fail;
4748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GDerivative, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
4749 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDerivative_silent" "', argument " "1"" of type '" "GDerivative *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GDerivative_silent" "', argument "
"1"" of type '" "GDerivative *""'"); goto fail; } while(0)
;
4751 }
4752 arg1 = reinterpret_cast< GDerivative * >(argp1);
4753 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4754 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4755 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GDerivative_silent" "', argument " "2"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GDerivative_silent" "', argument "
"2"" of type '" "bool""'"); goto fail; } while(0)
;
4756 }
4757 temp2 = static_cast< bool >(val2);
4758 arg2 = &temp2;
4759 {
4760 try {
4761 (arg1)->silent((bool const &)*arg2);
4762 }
4763 catch (const GException::out_of_range& e) {
4764 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4765 }
4766 catch (const GExceptionHandler& e) {
4767 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4768 }
4769 catch (const std::exception& e) {
4770 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4771 }
4772 }
4773 resultobj = SWIG_Py_Void();
4774 return resultobj;
4775fail:
4776 return NULL__null;
4777}
4778
4779
4780SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GDerivative_iter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4781 PyObject *resultobj = 0;
4782 GDerivative *arg1 = (GDerivative *) 0 ;
4783 void *argp1 = 0 ;
4784 int res1 = 0 ;
4785 PyObject * obj0 = 0 ;
4786 int *result = 0 ;
4787
4788 if (!PyArg_ParseTuple(args,(char *)"O:GDerivative_iter",&obj0)) SWIG_failgoto fail;
4789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GDerivative, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
4790 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDerivative_iter" "', argument " "1"" of type '" "GDerivative const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GDerivative_iter" "', argument "
"1"" of type '" "GDerivative const *""'"); goto fail; } while
(0)
;
4792 }
4793 arg1 = reinterpret_cast< GDerivative * >(argp1);
4794 {
4795 try {
4796 result = (int *) &((GDerivative const *)arg1)->iter();
4797 }
4798 catch (const GException::out_of_range& e) {
4799 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4800 }
4801 catch (const GExceptionHandler& e) {
4802 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4803 }
4804 catch (const std::exception& e) {
4805 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4806 }
4807 }
4808 resultobj = SWIG_From_int(static_cast< int >(*result));
4809 return resultobj;
4810fail:
4811 return NULL__null;
4812}
4813
4814
4815SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GDerivative_max_iter__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4816 PyObject *resultobj = 0;
4817 GDerivative *arg1 = (GDerivative *) 0 ;
4818 void *argp1 = 0 ;
4819 int res1 = 0 ;
4820 PyObject * obj0 = 0 ;
4821 int *result = 0 ;
4822
4823 if (!PyArg_ParseTuple(args,(char *)"O:GDerivative_max_iter",&obj0)) SWIG_failgoto fail;
4824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GDerivative, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
4825 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDerivative_max_iter" "', argument " "1"" of type '" "GDerivative const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GDerivative_max_iter" "', argument "
"1"" of type '" "GDerivative const *""'"); goto fail; } while
(0)
;
4827 }
4828 arg1 = reinterpret_cast< GDerivative * >(argp1);
4829 {
4830 try {
4831 result = (int *) &((GDerivative const *)arg1)->max_iter();
4832 }
4833 catch (const GException::out_of_range& e) {
4834 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4835 }
4836 catch (const GExceptionHandler& e) {
4837 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4838 }
4839 catch (const std::exception& e) {
4840 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4841 }
4842 }
4843 resultobj = SWIG_From_int(static_cast< int >(*result));
4844 return resultobj;
4845fail:
4846 return NULL__null;
4847}
4848
4849
4850SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GDerivative_max_iter(PyObject *self, PyObject *args) {
4851 int argc;
4852 PyObject *argv[3];
4853 int ii;
4854
4855 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
4856 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
4857 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
4858 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
4859 }
4860 if (argc == 1) {
4861 int _v;
4862 void *vptr = 0;
4863 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GDerivative, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[1
], 0, 0)
;
4864 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4865 if (_v) {
4866 return _wrap_GDerivative_max_iter__SWIG_1(self, args);
4867 }
4868 }
4869 if (argc == 2) {
4870 int _v;
4871 void *vptr = 0;
4872 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GDerivative, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[1
], 0, 0)
;
4873 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4874 if (_v) {
4875 {
4876 int res = SWIG_AsVal_int(argv[1], NULL__null);
4877 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4878 }
4879 if (_v) {
4880 return _wrap_GDerivative_max_iter__SWIG_0(self, args);
4881 }
4882 }
4883 }
4884
4885fail:
4886 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GDerivative_max_iter'.\n"
4887 " Possible C/C++ prototypes are:\n"
4888 " GDerivative::max_iter(int const &)\n"
4889 " GDerivative::max_iter() const\n");
4890 return 0;
4891}
4892
4893
4894SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GDerivative_eps__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4895 PyObject *resultobj = 0;
4896 GDerivative *arg1 = (GDerivative *) 0 ;
4897 void *argp1 = 0 ;
4898 int res1 = 0 ;
4899 PyObject * obj0 = 0 ;
4900 double *result = 0 ;
4901
4902 if (!PyArg_ParseTuple(args,(char *)"O:GDerivative_eps",&obj0)) SWIG_failgoto fail;
4903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GDerivative, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
4904 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDerivative_eps" "', argument " "1"" of type '" "GDerivative const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GDerivative_eps" "', argument "
"1"" of type '" "GDerivative const *""'"); goto fail; } while
(0)
;
4906 }
4907 arg1 = reinterpret_cast< GDerivative * >(argp1);
4908 {
4909 try {
4910 result = (double *) &((GDerivative const *)arg1)->eps();
4911 }
4912 catch (const GException::out_of_range& e) {
4913 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4914 }
4915 catch (const GExceptionHandler& e) {
4916 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4917 }
4918 catch (const std::exception& e) {
4919 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4920 }
4921 }
4922 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result));
4923 return resultobj;
4924fail:
4925 return NULL__null;
4926}
4927
4928
4929SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GDerivative_eps(PyObject *self, PyObject *args) {
4930 int argc;
4931 PyObject *argv[3];
4932 int ii;
4933
4934 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
4935 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
4936 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
4937 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
4938 }
4939 if (argc == 1) {
4940 int _v;
4941 void *vptr = 0;
4942 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GDerivative, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[1
], 0, 0)
;
4943 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4944 if (_v) {
4945 return _wrap_GDerivative_eps__SWIG_1(self, args);
4946 }
4947 }
4948 if (argc == 2) {
4949 int _v;
4950 void *vptr = 0;
4951 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GDerivative, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[1
], 0, 0)
;
4952 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4953 if (_v) {
4954 {
4955 int res = SWIG_AsVal_double(argv[1], NULL__null);
4956 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4957 }
4958 if (_v) {
4959 return _wrap_GDerivative_eps__SWIG_0(self, args);
4960 }
4961 }
4962 }
4963
4964fail:
4965 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GDerivative_eps'.\n"
4966 " Possible C/C++ prototypes are:\n"
4967 " GDerivative::eps(double const &)\n"
4968 " GDerivative::eps() const\n");
4969 return 0;
4970}
4971
4972
4973SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GDerivative_step_frac__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4974 PyObject *resultobj = 0;
4975 GDerivative *arg1 = (GDerivative *) 0 ;
4976 void *argp1 = 0 ;
4977 int res1 = 0 ;
4978 PyObject * obj0 = 0 ;
4979 double *result = 0 ;
4980
4981 if (!PyArg_ParseTuple(args,(char *)"O:GDerivative_step_frac",&obj0)) SWIG_failgoto fail;
4982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GDerivative, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
4983 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDerivative_step_frac" "', argument " "1"" of type '" "GDerivative const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GDerivative_step_frac" "', argument "
"1"" of type '" "GDerivative const *""'"); goto fail; } while
(0)
;
4985 }
4986 arg1 = reinterpret_cast< GDerivative * >(argp1);
4987 {
4988 try {
4989 result = (double *) &((GDerivative const *)arg1)->step_frac();
4990 }
4991 catch (const GException::out_of_range& e) {
4992 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4993 }
4994 catch (const GExceptionHandler& e) {
4995 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4996 }
4997 catch (const std::exception& e) {
4998 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4999 }
5000 }
5001 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result));
5002 return resultobj;
5003fail:
5004 return NULL__null;
5005}
5006
5007
5008SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GDerivative_step_frac(PyObject *self, PyObject *args) {
5009 int argc;
5010 PyObject *argv[3];
5011 int ii;
5012
5013 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5014 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
5015 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
5016 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5017 }
5018 if (argc == 1) {
5019 int _v;
5020 void *vptr = 0;
5021 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GDerivative, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[1
], 0, 0)
;
5022 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5023 if (_v) {
5024 return _wrap_GDerivative_step_frac__SWIG_1(self, args);
5025 }
5026 }
5027 if (argc == 2) {
5028 int _v;
5029 void *vptr = 0;
5030 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GDerivative, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[1
], 0, 0)
;
5031 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5032 if (_v) {
5033 {
5034 int res = SWIG_AsVal_double(argv[1], NULL__null);
5035 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5036 }
5037 if (_v) {
5038 return _wrap_GDerivative_step_frac__SWIG_0(self, args);
5039 }
5040 }
5041 }
5042
5043fail:
5044 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GDerivative_step_frac'.\n"
5045 " Possible C/C++ prototypes are:\n"
5046 " GDerivative::step_frac(double const &)\n"
5047 " GDerivative::step_frac() const\n");
5048 return 0;
5049}
5050
5051
5052SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GDerivative_silent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5053 PyObject *resultobj = 0;
5054 GDerivative *arg1 = (GDerivative *) 0 ;
5055 void *argp1 = 0 ;
5056 int res1 = 0 ;
5057 PyObject * obj0 = 0 ;
5058 bool *result = 0 ;
5059
5060 if (!PyArg_ParseTuple(args,(char *)"O:GDerivative_silent",&obj0)) SWIG_failgoto fail;
5061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GDerivative, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
5062 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDerivative_silent" "', argument " "1"" of type '" "GDerivative const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GDerivative_silent" "', argument "
"1"" of type '" "GDerivative const *""'"); goto fail; } while
(0)
;
5064 }
5065 arg1 = reinterpret_cast< GDerivative * >(argp1);
5066 {
5067 try {
5068 result = (bool *) &((GDerivative const *)arg1)->silent();
5069 }
5070 catch (const GException::out_of_range& e) {
5071 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5072 }
5073 catch (const GExceptionHandler& e) {
5074 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5075 }
5076 catch (const std::exception& e) {
5077 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5078 }
5079 }
5080 resultobj = SWIG_From_bool(static_cast< bool >(*result));
5081 return resultobj;
5082fail:
5083 return NULL__null;
5084}
5085
5086
5087SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GDerivative_silent(PyObject *self, PyObject *args) {
5088 int argc;
5089 PyObject *argv[3];
5090 int ii;
5091
5092 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5093 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
5094 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
5095 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5096 }
5097 if (argc == 1) {
5098 int _v;
5099 void *vptr = 0;
5100 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GDerivative, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[1
], 0, 0)
;
5101 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5102 if (_v) {
5103 return _wrap_GDerivative_silent__SWIG_1(self, args);
5104 }
5105 }
5106 if (argc == 2) {
5107 int _v;
5108 void *vptr = 0;
5109 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GDerivative, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[1
], 0, 0)
;
5110 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5111 if (_v) {
5112 {
5113 int res = SWIG_AsVal_bool(argv[1], NULL__null);
5114 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5115 }
5116 if (_v) {
5117 return _wrap_GDerivative_silent__SWIG_0(self, args);
5118 }
5119 }
5120 }
5121
5122fail:
5123 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GDerivative_silent'.\n"
5124 " Possible C/C++ prototypes are:\n"
5125 " GDerivative::silent(bool const &)\n"
5126 " GDerivative::silent() const\n");
5127 return 0;
5128}
5129
5130
5131SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GDerivative_function__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5132 PyObject *resultobj = 0;
5133 GDerivative *arg1 = (GDerivative *) 0 ;
5134 GFunction *arg2 = (GFunction *) 0 ;
5135 void *argp1 = 0 ;
5136 int res1 = 0 ;
5137 void *argp2 = 0 ;
5138 int res2 = 0 ;
5139 PyObject * obj0 = 0 ;
5140 PyObject * obj1 = 0 ;
5141
5142 if (!PyArg_ParseTuple(args,(char *)"OO:GDerivative_function",&obj0,&obj1)) SWIG_failgoto fail;
5143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GDerivative, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
5144 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDerivative_function" "', argument " "1"" of type '" "GDerivative *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GDerivative_function" "', argument "
"1"" of type '" "GDerivative *""'"); goto fail; } while(0)
;
5146 }
5147 arg1 = reinterpret_cast< GDerivative * >(argp1);
5148 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_GFunction, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[2],
0 | 0, 0)
;
5149 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5150 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GDerivative_function" "', argument " "2"" of type '" "GFunction *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GDerivative_function" "', argument "
"2"" of type '" "GFunction *""'"); goto fail; } while(0)
;
5151 }
5152 arg2 = reinterpret_cast< GFunction * >(argp2);
5153 {
5154 try {
5155 (arg1)->function(arg2);
5156 }
5157 catch (const GException::out_of_range& e) {
5158 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5159 }
5160 catch (const GExceptionHandler& e) {
5161 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5162 }
5163 catch (const std::exception& e) {
5164 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5165 }
5166 }
5167 resultobj = SWIG_Py_Void();
5168 return resultobj;
5169fail:
5170 return NULL__null;
5171}
5172
5173
5174SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GDerivative_function__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5175 PyObject *resultobj = 0;
5176 GDerivative *arg1 = (GDerivative *) 0 ;
5177 void *argp1 = 0 ;
5178 int res1 = 0 ;
5179 PyObject * obj0 = 0 ;
5180 GFunction *result = 0 ;
5181
5182 if (!PyArg_ParseTuple(args,(char *)"O:GDerivative_function",&obj0)) SWIG_failgoto fail;
5183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GDerivative, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
5184 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDerivative_function" "', argument " "1"" of type '" "GDerivative const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GDerivative_function" "', argument "
"1"" of type '" "GDerivative const *""'"); goto fail; } while
(0)
;
5186 }
5187 arg1 = reinterpret_cast< GDerivative * >(argp1);
5188 {
5189 try {
5190 result = (GFunction *)((GDerivative const *)arg1)->function();
5191 }
5192 catch (const GException::out_of_range& e) {
5193 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5194 }
5195 catch (const GExceptionHandler& e) {
5196 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5197 }
5198 catch (const std::exception& e) {
5199 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5200 }
5201 }
5202 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GFunction, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[2], 0 |
0)
;
5203 return resultobj;
5204fail:
5205 return NULL__null;
5206}
5207
5208
5209SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GDerivative_function(PyObject *self, PyObject *args) {
5210 int argc;
5211 PyObject *argv[3];
5212 int ii;
5213
5214 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5215 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
5216 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
5217 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5218 }
5219 if (argc == 1) {
5220 int _v;
5221 void *vptr = 0;
5222 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GDerivative, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[1
], 0, 0)
;
5223 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5224 if (_v) {
5225 return _wrap_GDerivative_function__SWIG_1(self, args);
5226 }
5227 }
5228 if (argc == 2) {
5229 int _v;
5230 void *vptr = 0;
5231 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GDerivative, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[1
], 0, 0)
;
5232 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5233 if (_v) {
5234 void *vptr = 0;
5235 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_GFunction, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], &vptr, swig_types[2
], 0, 0)
;
5236 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5237 if (_v) {
5238 return _wrap_GDerivative_function__SWIG_0(self, args);
5239 }
5240 }
5241 }
5242
5243fail:
5244 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GDerivative_function'.\n"
5245 " Possible C/C++ prototypes are:\n"
5246 " GDerivative::function(GFunction *)\n"
5247 " GDerivative::function() const\n");
5248 return 0;
5249}
5250
5251
5252SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GDerivative_value__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5253 PyObject *resultobj = 0;
5254 GDerivative *arg1 = (GDerivative *) 0 ;
5255 double *arg2 = 0 ;
5256 double *arg3 = 0 ;
5257 void *argp1 = 0 ;
5258 int res1 = 0 ;
5259 double temp2 ;
5260 double val2 ;
5261 int ecode2 = 0 ;
5262 double temp3 ;
5263 double val3 ;
5264 int ecode3 = 0 ;
5265 PyObject * obj0 = 0 ;
5266 PyObject * obj1 = 0 ;
5267 PyObject * obj2 = 0 ;
5268 double result;
5269
5270 if (!PyArg_ParseTuple(args,(char *)"OOO:GDerivative_value",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
5271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GDerivative, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
5272 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDerivative_value" "', argument " "1"" of type '" "GDerivative *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GDerivative_value" "', argument "
"1"" of type '" "GDerivative *""'"); goto fail; } while(0)
;
5274 }
5275 arg1 = reinterpret_cast< GDerivative * >(argp1);
5276 ecode2 = SWIG_AsVal_double(obj1, &val2);
5277 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5278 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GDerivative_value" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GDerivative_value" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
5279 }
5280 temp2 = static_cast< double >(val2);
5281 arg2 = &temp2;
5282 ecode3 = SWIG_AsVal_double(obj2, &val3);
5283 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
5284 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GDerivative_value" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GDerivative_value" "', argument "
"3"" of type '" "double""'"); goto fail; } while(0)
;
5285 }
5286 temp3 = static_cast< double >(val3);
5287 arg3 = &temp3;
5288 {
5289 try {
5290 result = (double)(arg1)->value((double const &)*arg2,(double const &)*arg3);
5291 }
5292 catch (const GException::out_of_range& e) {
5293 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5294 }
5295 catch (const GExceptionHandler& e) {
5296 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5297 }
5298 catch (const std::exception& e) {
5299 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5300 }
5301 }
5302 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
5303 return resultobj;
5304fail:
5305 return NULL__null;
5306}
5307
5308
5309SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GDerivative_value__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5310 PyObject *resultobj = 0;
5311 GDerivative *arg1 = (GDerivative *) 0 ;
5312 double *arg2 = 0 ;
5313 void *argp1 = 0 ;
5314 int res1 = 0 ;
5315 double temp2 ;
5316 double val2 ;
5317 int ecode2 = 0 ;
5318 PyObject * obj0 = 0 ;
5319 PyObject * obj1 = 0 ;
5320 double result;
5321
5322 if (!PyArg_ParseTuple(args,(char *)"OO:GDerivative_value",&obj0,&obj1)) SWIG_failgoto fail;
5323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GDerivative, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
5324 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDerivative_value" "', argument " "1"" of type '" "GDerivative *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GDerivative_value" "', argument "
"1"" of type '" "GDerivative *""'"); goto fail; } while(0)
;
5326 }
5327 arg1 = reinterpret_cast< GDerivative * >(argp1);
5328 ecode2 = SWIG_AsVal_double(obj1, &val2);
5329 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5330 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GDerivative_value" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GDerivative_value" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
5331 }
5332 temp2 = static_cast< double >(val2);
5333 arg2 = &temp2;
5334 {
5335 try {
5336 result = (double)(arg1)->value((double const &)*arg2);
5337 }
5338 catch (const GException::out_of_range& e) {
5339 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5340 }
5341 catch (const GExceptionHandler& e) {
5342 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5343 }
5344 catch (const std::exception& e) {
5345 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5346 }
5347 }
5348 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
5349 return resultobj;
5350fail:
5351 return NULL__null;
5352}
5353
5354
5355SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GDerivative_value(PyObject *self, PyObject *args) {
5356 int argc;
5357 PyObject *argv[4];
5358 int ii;
5359
5360 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5361 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
5362 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
5363 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5364 }
5365 if (argc == 2) {
5366 int _v;
5367 void *vptr = 0;
5368 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GDerivative, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[1
], 0, 0)
;
5369 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5370 if (_v) {
5371 {
5372 int res = SWIG_AsVal_double(argv[1], NULL__null);
5373 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5374 }
5375 if (_v) {
5376 return _wrap_GDerivative_value__SWIG_1(self, args);
5377 }
5378 }
5379 }
5380 if (argc == 3) {
5381 int _v;
5382 void *vptr = 0;
5383 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GDerivative, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[1
], 0, 0)
;
5384 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5385 if (_v) {
5386 {
5387 int res = SWIG_AsVal_double(argv[1], NULL__null);
5388 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5389 }
5390 if (_v) {
5391 {
5392 int res = SWIG_AsVal_double(argv[2], NULL__null);
5393 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5394 }
5395 if (_v) {
5396 return _wrap_GDerivative_value__SWIG_0(self, args);
5397 }
5398 }
5399 }
5400 }
5401
5402fail:
5403 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GDerivative_value'.\n"
5404 " Possible C/C++ prototypes are:\n"
5405 " GDerivative::value(double const &,double const &)\n"
5406 " GDerivative::value(double const &)\n");
5407 return 0;
5408}
5409
5410
5411SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GDerivative_ridder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5412 PyObject *resultobj = 0;
5413 GDerivative *arg1 = (GDerivative *) 0 ;
5414 double *arg2 = 0 ;
5415 double *arg3 = 0 ;
5416 double *arg4 = (double *) 0 ;
5417 void *argp1 = 0 ;
5418 int res1 = 0 ;
5419 double temp2 ;
5420 double val2 ;
5421 int ecode2 = 0 ;
5422 double temp3 ;
5423 double val3 ;
5424 int ecode3 = 0 ;
5425 void *argp4 = 0 ;
5426 int res4 = 0 ;
5427 PyObject * obj0 = 0 ;
5428 PyObject * obj1 = 0 ;
5429 PyObject * obj2 = 0 ;
5430 PyObject * obj3 = 0 ;
5431 double result;
5432
5433 if (!PyArg_ParseTuple(args,(char *)"OOOO:GDerivative_ridder",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
5434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GDerivative, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
5435 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDerivative_ridder" "', argument " "1"" of type '" "GDerivative *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GDerivative_ridder" "', argument "
"1"" of type '" "GDerivative *""'"); goto fail; } while(0)
;
5437 }
5438 arg1 = reinterpret_cast< GDerivative * >(argp1);
5439 ecode2 = SWIG_AsVal_double(obj1, &val2);
5440 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GDerivative_ridder" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GDerivative_ridder" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
5442 }
5443 temp2 = static_cast< double >(val2);
5444 arg2 = &temp2;
5445 ecode3 = SWIG_AsVal_double(obj2, &val3);
5446 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
5447 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GDerivative_ridder" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GDerivative_ridder" "', argument "
"3"" of type '" "double""'"); goto fail; } while(0)
;
5448 }
5449 temp3 = static_cast< double >(val3);
5450 arg3 = &temp3;
5451 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_double, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[5],
0 | 0, 0)
;
5452 if (!SWIG_IsOK(res4)(res4 >= 0)) {
5453 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GDerivative_ridder" "', argument " "4"" of type '" "double *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GDerivative_ridder" "', argument "
"4"" of type '" "double *""'"); goto fail; } while(0)
;
5454 }
5455 arg4 = reinterpret_cast< double * >(argp4);
5456 {
5457 try {
5458 result = (double)(arg1)->ridder((double const &)*arg2,(double const &)*arg3,arg4);
5459 }
5460 catch (const GException::out_of_range& e) {
5461 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5462 }
5463 catch (const GExceptionHandler& e) {
5464 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5465 }
5466 catch (const std::exception& e) {
5467 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5468 }
5469 }
5470 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
5471 return resultobj;
5472fail:
5473 return NULL__null;
5474}
5475
5476
5477SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GDerivative_minuit2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5478 PyObject *resultobj = 0;
5479 GDerivative *arg1 = (GDerivative *) 0 ;
5480 double *arg2 = 0 ;
5481 double *arg3 = (double *) 0 ;
5482 void *argp1 = 0 ;
5483 int res1 = 0 ;
5484 double temp2 ;
5485 double val2 ;
5486 int ecode2 = 0 ;
5487 void *argp3 = 0 ;
5488 int res3 = 0 ;
5489 PyObject * obj0 = 0 ;
5490 PyObject * obj1 = 0 ;
5491 PyObject * obj2 = 0 ;
5492 double result;
5493
5494 if (!PyArg_ParseTuple(args,(char *)"OOO:GDerivative_minuit2",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
5495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GDerivative, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
5496 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDerivative_minuit2" "', argument " "1"" of type '" "GDerivative *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GDerivative_minuit2" "', argument "
"1"" of type '" "GDerivative *""'"); goto fail; } while(0)
;
5498 }
5499 arg1 = reinterpret_cast< GDerivative * >(argp1);
5500 ecode2 = SWIG_AsVal_double(obj1, &val2);
5501 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GDerivative_minuit2" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GDerivative_minuit2" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
5503 }
5504 temp2 = static_cast< double >(val2);
5505 arg2 = &temp2;
5506 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_double, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[5],
0 | 0, 0)
;
5507 if (!SWIG_IsOK(res3)(res3 >= 0)) {
5508 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GDerivative_minuit2" "', argument " "3"" of type '" "double *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GDerivative_minuit2" "', argument "
"3"" of type '" "double *""'"); goto fail; } while(0)
;
5509 }
5510 arg3 = reinterpret_cast< double * >(argp3);
5511 {
5512 try {
5513 result = (double)(arg1)->minuit2((double const &)*arg2,arg3);
5514 }
5515 catch (const GException::out_of_range& e) {
5516 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5517 }
5518 catch (const GExceptionHandler& e) {
5519 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5520 }
5521 catch (const std::exception& e) {
5522 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5523 }
5524 }
5525 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
5526 return resultobj;
5527fail:
5528 return NULL__null;
5529}
5530
5531
5532SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GDerivative_difference(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5533 PyObject *resultobj = 0;
5534 GDerivative *arg1 = (GDerivative *) 0 ;
5535 double *arg2 = 0 ;
5536 double *arg3 = 0 ;
5537 void *argp1 = 0 ;
5538 int res1 = 0 ;
5539 double temp2 ;
5540 double val2 ;
5541 int ecode2 = 0 ;
5542 double temp3 ;
5543 double val3 ;
5544 int ecode3 = 0 ;
5545 PyObject * obj0 = 0 ;
5546 PyObject * obj1 = 0 ;
5547 PyObject * obj2 = 0 ;
5548 double result;
5549
5550 if (!PyArg_ParseTuple(args,(char *)"OOO:GDerivative_difference",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
5551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GDerivative, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
5552 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDerivative_difference" "', argument " "1"" of type '" "GDerivative *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GDerivative_difference" "', argument "
"1"" of type '" "GDerivative *""'"); goto fail; } while(0)
;
5554 }
5555 arg1 = reinterpret_cast< GDerivative * >(argp1);
5556 ecode2 = SWIG_AsVal_double(obj1, &val2);
5557 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5558 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GDerivative_difference" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GDerivative_difference"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
5559 }
5560 temp2 = static_cast< double >(val2);
5561 arg2 = &temp2;
5562 ecode3 = SWIG_AsVal_double(obj2, &val3);
5563 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
5564 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GDerivative_difference" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GDerivative_difference"
"', argument " "3"" of type '" "double""'"); goto fail; } while
(0)
;
5565 }
5566 temp3 = static_cast< double >(val3);
5567 arg3 = &temp3;
5568 {
5569 try {
5570 result = (double)(arg1)->difference((double const &)*arg2,(double const &)*arg3);
5571 }
5572 catch (const GException::out_of_range& e) {
5573 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5574 }
5575 catch (const GExceptionHandler& e) {
5576 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5577 }
5578 catch (const std::exception& e) {
5579 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5580 }
5581 }
5582 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
5583 return resultobj;
5584fail:
5585 return NULL__null;
5586}
5587
5588
5589SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GDerivative_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5590 PyObject *resultobj = 0;
5591 GDerivative *arg1 = (GDerivative *) 0 ;
5592 void *argp1 = 0 ;
5593 int res1 = 0 ;
5594 PyObject * obj0 = 0 ;
5595 GDerivative result;
5596
5597 if (!PyArg_ParseTuple(args,(char *)"O:GDerivative_copy",&obj0)) SWIG_failgoto fail;
5598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GDerivative, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
5599 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDerivative_copy" "', argument " "1"" of type '" "GDerivative *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GDerivative_copy" "', argument "
"1"" of type '" "GDerivative *""'"); goto fail; } while(0)
;
5601 }
5602 arg1 = reinterpret_cast< GDerivative * >(argp1);
5603 {
5604 try {
5605 result = GDerivative_copy(arg1);
5606 }
5607 catch (const GException::out_of_range& e) {
5608 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5609 }
5610 catch (const GExceptionHandler& e) {
5611 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5612 }
5613 catch (const std::exception& e) {
5614 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5615 }
5616 }
5617 resultobj = SWIG_NewPointerObj((new GDerivative(static_cast< const GDerivative& >(result))), SWIGTYPE_p_GDerivative, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GDerivative(static_cast
< const GDerivative& >(result))), swig_types[1], 0x1
| 0)
;
5618 return resultobj;
5619fail:
5620 return NULL__null;
5621}
5622
5623
5624SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GDerivative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5625 PyObject *obj;
5626 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
5627 SWIG_TypeNewClientData(SWIGTYPE_p_GDerivativeswig_types[1], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
5628 return SWIG_Py_Void();
5629}
5630
5631SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5632 PyObject *resultobj = 0;
5633 GFunction *arg1 = (GFunction *) 0 ;
5634 void *argp1 = 0 ;
5635 int res1 = 0 ;
5636 PyObject * obj0 = 0 ;
5637
5638 if (!PyArg_ParseTuple(args,(char *)"O:delete_GFunction",&obj0)) SWIG_failgoto fail;
5639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GFunction, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2],
0x1 | 0, 0)
;
5640 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GFunction" "', argument " "1"" of type '" "GFunction *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GFunction" "', argument "
"1"" of type '" "GFunction *""'"); goto fail; } while(0)
;
5642 }
5643 arg1 = reinterpret_cast< GFunction * >(argp1);
5644 {
5645 try {
5646 delete arg1;
5647 }
5648 catch (const GException::out_of_range& e) {
5649 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5650 }
5651 catch (const GExceptionHandler& e) {
5652 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5653 }
5654 catch (const std::exception& e) {
5655 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5656 }
5657 }
5658 resultobj = SWIG_Py_Void();
5659 return resultobj;
5660fail:
5661 return NULL__null;
5662}
5663
5664
5665SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GFunction_eval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5666 PyObject *resultobj = 0;
5667 GFunction *arg1 = (GFunction *) 0 ;
5668 double *arg2 = 0 ;
5669 void *argp1 = 0 ;
5670 int res1 = 0 ;
5671 double temp2 ;
5672 double val2 ;
5673 int ecode2 = 0 ;
5674 PyObject * obj0 = 0 ;
5675 PyObject * obj1 = 0 ;
5676 double result;
5677
5678 if (!PyArg_ParseTuple(args,(char *)"OO:GFunction_eval",&obj0,&obj1)) SWIG_failgoto fail;
5679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GFunction, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2],
0 | 0, 0)
;
5680 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GFunction_eval" "', argument " "1"" of type '" "GFunction *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GFunction_eval" "', argument "
"1"" of type '" "GFunction *""'"); goto fail; } while(0)
;
5682 }
5683 arg1 = reinterpret_cast< GFunction * >(argp1);
5684 ecode2 = SWIG_AsVal_double(obj1, &val2);
5685 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5686 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GFunction_eval" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GFunction_eval" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
5687 }
5688 temp2 = static_cast< double >(val2);
5689 arg2 = &temp2;
5690 {
5691 try {
5692 result = (double)(arg1)->eval((double const &)*arg2);
5693 }
5694 catch (const GException::out_of_range& e) {
5695 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5696 }
5697 catch (const GExceptionHandler& e) {
5698 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5699 }
5700 catch (const std::exception& e) {
5701 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5702 }
5703 }
5704 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
5705 return resultobj;
5706fail:
5707 return NULL__null;
5708}
5709
5710
5711SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GFunction_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5712 PyObject *obj;
5713 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
5714 SWIG_TypeNewClientData(SWIGTYPE_p_GFunctionswig_types[2], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
5715 return SWIG_Py_Void();
5716}
5717
5718SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GIntegral__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5719 PyObject *resultobj = 0;
5720 GIntegral *result = 0 ;
5721
5722 if (!PyArg_ParseTuple(args,(char *)":new_GIntegral")) SWIG_failgoto fail;
5723 {
5724 try {
5725 result = (GIntegral *)new GIntegral();
5726 }
5727 catch (const GException::out_of_range& e) {
5728 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5729 }
5730 catch (const GExceptionHandler& e) {
5731 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5732 }
5733 catch (const std::exception& e) {
5734 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5735 }
5736 }
5737 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GIntegral, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[3], ((
0x1 << 1) | 0x1) | 0)
;
5738 return resultobj;
5739fail:
5740 return NULL__null;
5741}
5742
5743
5744SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GIntegral__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5745 PyObject *resultobj = 0;
5746 GFunction *arg1 = (GFunction *) 0 ;
5747 void *argp1 = 0 ;
5748 int res1 = 0 ;
5749 PyObject * obj0 = 0 ;
5750 GIntegral *result = 0 ;
5751
5752 if (!PyArg_ParseTuple(args,(char *)"O:new_GIntegral",&obj0)) SWIG_failgoto fail;
5753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GFunction, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2],
0 | 0, 0)
;
5754 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GIntegral" "', argument " "1"" of type '" "GFunction *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GIntegral" "', argument "
"1"" of type '" "GFunction *""'"); goto fail; } while(0)
;
5756 }
5757 arg1 = reinterpret_cast< GFunction * >(argp1);
5758 {
5759 try {
5760 result = (GIntegral *)new GIntegral(arg1);
5761 }
5762 catch (const GException::out_of_range& e) {
5763 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5764 }
5765 catch (const GExceptionHandler& e) {
5766 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5767 }
5768 catch (const std::exception& e) {
5769 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5770 }
5771 }
5772 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GIntegral, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[3], ((
0x1 << 1) | 0x1) | 0)
;
5773 return resultobj;
5774fail:
5775 return NULL__null;
5776}
5777
5778
5779SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GIntegral__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5780 PyObject *resultobj = 0;
5781 GIntegral *arg1 = 0 ;
5782 void *argp1 = 0 ;
5783 int res1 = 0 ;
5784 PyObject * obj0 = 0 ;
5785 GIntegral *result = 0 ;
5786
5787 if (!PyArg_ParseTuple(args,(char *)"O:new_GIntegral",&obj0)) SWIG_failgoto fail;
5788 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GIntegral, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
5789 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GIntegral" "', argument " "1"" of type '" "GIntegral const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GIntegral" "', argument "
"1"" of type '" "GIntegral const &""'"); goto fail; } while
(0)
;
5791 }
5792 if (!argp1) {
5793 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GIntegral" "', argument " "1"" of type '" "GIntegral const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GIntegral" "', argument " "1"" of type '"
"GIntegral const &""'"); goto fail; } while(0)
;
5794 }
5795 arg1 = reinterpret_cast< GIntegral * >(argp1);
5796 {
5797 try {
5798 result = (GIntegral *)new GIntegral((GIntegral const &)*arg1);
5799 }
5800 catch (const GException::out_of_range& e) {
5801 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5802 }
5803 catch (const GExceptionHandler& e) {
5804 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5805 }
5806 catch (const std::exception& e) {
5807 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5808 }
5809 }
5810 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GIntegral, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[3], ((
0x1 << 1) | 0x1) | 0)
;
5811 return resultobj;
5812fail:
5813 return NULL__null;
5814}
5815
5816
5817SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GIntegral(PyObject *self, PyObject *args) {
5818 int argc;
5819 PyObject *argv[2];
5820 int ii;
5821
5822 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5823 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
5824 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
5825 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5826 }
5827 if (argc == 0) {
5828 return _wrap_new_GIntegral__SWIG_0(self, args);
5829 }
5830 if (argc == 1) {
5831 int _v;
5832 void *vptr = 0;
5833 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GFunction, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[2
], 0, 0)
;
5834 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5835 if (_v) {
5836 return _wrap_new_GIntegral__SWIG_1(self, args);
5837 }
5838 }
5839 if (argc == 1) {
5840 int _v;
5841 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GIntegral, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[3], 0, 0);
5842 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5843 if (_v) {
5844 return _wrap_new_GIntegral__SWIG_2(self, args);
5845 }
5846 }
5847
5848fail:
5849 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GIntegral'.\n"
5850 " Possible C/C++ prototypes are:\n"
5851 " GIntegral::GIntegral()\n"
5852 " GIntegral::GIntegral(GFunction *)\n"
5853 " GIntegral::GIntegral(GIntegral const &)\n");
5854 return 0;
5855}
5856
5857
5858SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GIntegral(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5859 PyObject *resultobj = 0;
5860 GIntegral *arg1 = (GIntegral *) 0 ;
5861 void *argp1 = 0 ;
5862 int res1 = 0 ;
5863 PyObject * obj0 = 0 ;
5864
5865 if (!PyArg_ParseTuple(args,(char *)"O:delete_GIntegral",&obj0)) SWIG_failgoto fail;
5866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GIntegral, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0x1 | 0, 0)
;
5867 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GIntegral" "', argument " "1"" of type '" "GIntegral *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GIntegral" "', argument "
"1"" of type '" "GIntegral *""'"); goto fail; } while(0)
;
5869 }
5870 arg1 = reinterpret_cast< GIntegral * >(argp1);
5871 {
5872 try {
5873 delete arg1;
5874 }
5875 catch (const GException::out_of_range& e) {
5876 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5877 }
5878 catch (const GExceptionHandler& e) {
5879 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5880 }
5881 catch (const std::exception& e) {
5882 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5883 }
5884 }
5885 resultobj = SWIG_Py_Void();
5886 return resultobj;
5887fail:
5888 return NULL__null;
5889}
5890
5891
5892SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GIntegral_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5893 PyObject *resultobj = 0;
5894 GIntegral *arg1 = (GIntegral *) 0 ;
5895 void *argp1 = 0 ;
5896 int res1 = 0 ;
5897 PyObject * obj0 = 0 ;
5898
5899 if (!PyArg_ParseTuple(args,(char *)"O:GIntegral_clear",&obj0)) SWIG_failgoto fail;
5900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GIntegral, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
5901 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GIntegral_clear" "', argument " "1"" of type '" "GIntegral *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GIntegral_clear" "', argument "
"1"" of type '" "GIntegral *""'"); goto fail; } while(0)
;
5903 }
5904 arg1 = reinterpret_cast< GIntegral * >(argp1);
5905 {
5906 try {
5907 (arg1)->clear();
5908 }
5909 catch (const GException::out_of_range& e) {
5910 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5911 }
5912 catch (const GExceptionHandler& e) {
5913 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5914 }
5915 catch (const std::exception& e) {
5916 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5917 }
5918 }
5919 resultobj = SWIG_Py_Void();
5920 return resultobj;
5921fail:
5922 return NULL__null;
5923}
5924
5925
5926SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GIntegral_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5927 PyObject *resultobj = 0;
5928 GIntegral *arg1 = (GIntegral *) 0 ;
5929 void *argp1 = 0 ;
5930 int res1 = 0 ;
5931 PyObject * obj0 = 0 ;
5932 GIntegral *result = 0 ;
5933
5934 if (!PyArg_ParseTuple(args,(char *)"O:GIntegral_clone",&obj0)) SWIG_failgoto fail;
5935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GIntegral, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
5936 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GIntegral_clone" "', argument " "1"" of type '" "GIntegral const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GIntegral_clone" "', argument "
"1"" of type '" "GIntegral const *""'"); goto fail; } while(
0)
;
5938 }
5939 arg1 = reinterpret_cast< GIntegral * >(argp1);
5940 {
5941 try {
5942 result = (GIntegral *)((GIntegral const *)arg1)->clone();
5943 }
5944 catch (const GException::out_of_range& e) {
5945 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5946 }
5947 catch (const GExceptionHandler& e) {
5948 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5949 }
5950 catch (const std::exception& e) {
5951 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5952 }
5953 }
5954 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GIntegral, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[3], 0 |
0)
;
5955 return resultobj;
5956fail:
5957 return NULL__null;
5958}
5959
5960
5961SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GIntegral_max_iter__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5962 PyObject *resultobj = 0;
5963 GIntegral *arg1 = (GIntegral *) 0 ;
5964 int *arg2 = 0 ;
5965 void *argp1 = 0 ;
5966 int res1 = 0 ;
5967 int temp2 ;
5968 int val2 ;
5969 int ecode2 = 0 ;
5970 PyObject * obj0 = 0 ;
5971 PyObject * obj1 = 0 ;
5972
5973 if (!PyArg_ParseTuple(args,(char *)"OO:GIntegral_max_iter",&obj0,&obj1)) SWIG_failgoto fail;
5974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GIntegral, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
5975 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GIntegral_max_iter" "', argument " "1"" of type '" "GIntegral *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GIntegral_max_iter" "', argument "
"1"" of type '" "GIntegral *""'"); goto fail; } while(0)
;
5977 }
5978 arg1 = reinterpret_cast< GIntegral * >(argp1);
5979 ecode2 = SWIG_AsVal_int(obj1, &val2);
5980 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5981 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GIntegral_max_iter" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GIntegral_max_iter" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
5982 }
5983 temp2 = static_cast< int >(val2);
5984 arg2 = &temp2;
5985 {
5986 try {
5987 (arg1)->max_iter((int const &)*arg2);
5988 }
5989 catch (const GException::out_of_range& e) {
5990 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5991 }
5992 catch (const GExceptionHandler& e) {
5993 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5994 }
5995 catch (const std::exception& e) {
5996 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5997 }
5998 }
5999 resultobj = SWIG_Py_Void();
6000 return resultobj;
6001fail:
6002 return NULL__null;
6003}
6004
6005
6006SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GIntegral_eps__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6007 PyObject *resultobj = 0;
6008 GIntegral *arg1 = (GIntegral *) 0 ;
6009 double *arg2 = 0 ;
6010 void *argp1 = 0 ;
6011 int res1 = 0 ;
6012 double temp2 ;
6013 double val2 ;
6014 int ecode2 = 0 ;
6015 PyObject * obj0 = 0 ;
6016 PyObject * obj1 = 0 ;
6017
6018 if (!PyArg_ParseTuple(args,(char *)"OO:GIntegral_eps",&obj0,&obj1)) SWIG_failgoto fail;
6019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GIntegral, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
6020 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GIntegral_eps" "', argument " "1"" of type '" "GIntegral *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GIntegral_eps" "', argument "
"1"" of type '" "GIntegral *""'"); goto fail; } while(0)
;
6022 }
6023 arg1 = reinterpret_cast< GIntegral * >(argp1);
6024 ecode2 = SWIG_AsVal_double(obj1, &val2);
6025 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GIntegral_eps" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GIntegral_eps" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
6027 }
6028 temp2 = static_cast< double >(val2);
6029 arg2 = &temp2;
6030 {
6031 try {
6032 (arg1)->eps((double const &)*arg2);
6033 }
6034 catch (const GException::out_of_range& e) {
6035 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6036 }
6037 catch (const GExceptionHandler& e) {
6038 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6039 }
6040 catch (const std::exception& e) {
6041 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6042 }
6043 }
6044 resultobj = SWIG_Py_Void();
6045 return resultobj;
6046fail:
6047 return NULL__null;
6048}
6049
6050
6051SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GIntegral_silent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6052 PyObject *resultobj = 0;
6053 GIntegral *arg1 = (GIntegral *) 0 ;
6054 bool *arg2 = 0 ;
6055 void *argp1 = 0 ;
6056 int res1 = 0 ;
6057 bool temp2 ;
6058 bool val2 ;
6059 int ecode2 = 0 ;
6060 PyObject * obj0 = 0 ;
6061 PyObject * obj1 = 0 ;
6062
6063 if (!PyArg_ParseTuple(args,(char *)"OO:GIntegral_silent",&obj0,&obj1)) SWIG_failgoto fail;
6064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GIntegral, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
6065 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GIntegral_silent" "', argument " "1"" of type '" "GIntegral *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GIntegral_silent" "', argument "
"1"" of type '" "GIntegral *""'"); goto fail; } while(0)
;
6067 }
6068 arg1 = reinterpret_cast< GIntegral * >(argp1);
6069 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6070 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6071 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GIntegral_silent" "', argument " "2"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GIntegral_silent" "', argument "
"2"" of type '" "bool""'"); goto fail; } while(0)
;
6072 }
6073 temp2 = static_cast< bool >(val2);
6074 arg2 = &temp2;
6075 {
6076 try {
6077 (arg1)->silent((bool const &)*arg2);
6078 }
6079 catch (const GException::out_of_range& e) {
6080 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6081 }
6082 catch (const GExceptionHandler& e) {
6083 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6084 }
6085 catch (const std::exception& e) {
6086 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6087 }
6088 }
6089 resultobj = SWIG_Py_Void();
6090 return resultobj;
6091fail:
6092 return NULL__null;
6093}
6094
6095
6096SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GIntegral_iter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6097 PyObject *resultobj = 0;
6098 GIntegral *arg1 = (GIntegral *) 0 ;
6099 void *argp1 = 0 ;
6100 int res1 = 0 ;
6101 PyObject * obj0 = 0 ;
6102 int *result = 0 ;
6103
6104 if (!PyArg_ParseTuple(args,(char *)"O:GIntegral_iter",&obj0)) SWIG_failgoto fail;
6105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GIntegral, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
6106 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GIntegral_iter" "', argument " "1"" of type '" "GIntegral const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GIntegral_iter" "', argument "
"1"" of type '" "GIntegral const *""'"); goto fail; } while(
0)
;
6108 }
6109 arg1 = reinterpret_cast< GIntegral * >(argp1);
6110 {
6111 try {
6112 result = (int *) &((GIntegral const *)arg1)->iter();
6113 }
6114 catch (const GException::out_of_range& e) {
6115 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6116 }
6117 catch (const GExceptionHandler& e) {
6118 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6119 }
6120 catch (const std::exception& e) {
6121 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6122 }
6123 }
6124 resultobj = SWIG_From_int(static_cast< int >(*result));
6125 return resultobj;
6126fail:
6127 return NULL__null;
6128}
6129
6130
6131SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GIntegral_max_iter__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6132 PyObject *resultobj = 0;
6133 GIntegral *arg1 = (GIntegral *) 0 ;
6134 void *argp1 = 0 ;
6135 int res1 = 0 ;
6136 PyObject * obj0 = 0 ;
6137 int *result = 0 ;
6138
6139 if (!PyArg_ParseTuple(args,(char *)"O:GIntegral_max_iter",&obj0)) SWIG_failgoto fail;
6140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GIntegral, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
6141 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GIntegral_max_iter" "', argument " "1"" of type '" "GIntegral const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GIntegral_max_iter" "', argument "
"1"" of type '" "GIntegral const *""'"); goto fail; } while(
0)
;
6143 }
6144 arg1 = reinterpret_cast< GIntegral * >(argp1);
6145 {
6146 try {
6147 result = (int *) &((GIntegral const *)arg1)->max_iter();
6148 }
6149 catch (const GException::out_of_range& e) {
6150 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6151 }
6152 catch (const GExceptionHandler& e) {
6153 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6154 }
6155 catch (const std::exception& e) {
6156 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6157 }
6158 }
6159 resultobj = SWIG_From_int(static_cast< int >(*result));
6160 return resultobj;
6161fail:
6162 return NULL__null;
6163}
6164
6165
6166SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GIntegral_max_iter(PyObject *self, PyObject *args) {
6167 int argc;
6168 PyObject *argv[3];
6169 int ii;
6170
6171 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
6172 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
6173 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
6174 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
6175 }
6176 if (argc == 1) {
6177 int _v;
6178 void *vptr = 0;
6179 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GIntegral, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
6180 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6181 if (_v) {
6182 return _wrap_GIntegral_max_iter__SWIG_1(self, args);
6183 }
6184 }
6185 if (argc == 2) {
6186 int _v;
6187 void *vptr = 0;
6188 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GIntegral, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
6189 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6190 if (_v) {
6191 {
6192 int res = SWIG_AsVal_int(argv[1], NULL__null);
6193 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6194 }
6195 if (_v) {
6196 return _wrap_GIntegral_max_iter__SWIG_0(self, args);
6197 }
6198 }
6199 }
6200
6201fail:
6202 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GIntegral_max_iter'.\n"
6203 " Possible C/C++ prototypes are:\n"
6204 " GIntegral::max_iter(int const &)\n"
6205 " GIntegral::max_iter() const\n");
6206 return 0;
6207}
6208
6209
6210SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GIntegral_eps__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6211 PyObject *resultobj = 0;
6212 GIntegral *arg1 = (GIntegral *) 0 ;
6213 void *argp1 = 0 ;
6214 int res1 = 0 ;
6215 PyObject * obj0 = 0 ;
6216 double *result = 0 ;
6217
6218 if (!PyArg_ParseTuple(args,(char *)"O:GIntegral_eps",&obj0)) SWIG_failgoto fail;
6219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GIntegral, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
6220 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GIntegral_eps" "', argument " "1"" of type '" "GIntegral const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GIntegral_eps" "', argument "
"1"" of type '" "GIntegral const *""'"); goto fail; } while(
0)
;
6222 }
6223 arg1 = reinterpret_cast< GIntegral * >(argp1);
6224 {
6225 try {
6226 result = (double *) &((GIntegral const *)arg1)->eps();
6227 }
6228 catch (const GException::out_of_range& e) {
6229 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6230 }
6231 catch (const GExceptionHandler& e) {
6232 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6233 }
6234 catch (const std::exception& e) {
6235 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6236 }
6237 }
6238 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result));
6239 return resultobj;
6240fail:
6241 return NULL__null;
6242}
6243
6244
6245SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GIntegral_eps(PyObject *self, PyObject *args) {
6246 int argc;
6247 PyObject *argv[3];
6248 int ii;
6249
6250 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
6251 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
6252 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
6253 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
6254 }
6255 if (argc == 1) {
6256 int _v;
6257 void *vptr = 0;
6258 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GIntegral, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
6259 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6260 if (_v) {
6261 return _wrap_GIntegral_eps__SWIG_1(self, args);
6262 }
6263 }
6264 if (argc == 2) {
6265 int _v;
6266 void *vptr = 0;
6267 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GIntegral, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
6268 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6269 if (_v) {
6270 {
6271 int res = SWIG_AsVal_double(argv[1], NULL__null);
6272 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6273 }
6274 if (_v) {
6275 return _wrap_GIntegral_eps__SWIG_0(self, args);
6276 }
6277 }
6278 }
6279
6280fail:
6281 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GIntegral_eps'.\n"
6282 " Possible C/C++ prototypes are:\n"
6283 " GIntegral::eps(double const &)\n"
6284 " GIntegral::eps() const\n");
6285 return 0;
6286}
6287
6288
6289SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GIntegral_silent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6290 PyObject *resultobj = 0;
6291 GIntegral *arg1 = (GIntegral *) 0 ;
6292 void *argp1 = 0 ;
6293 int res1 = 0 ;
6294 PyObject * obj0 = 0 ;
6295 bool *result = 0 ;
6296
6297 if (!PyArg_ParseTuple(args,(char *)"O:GIntegral_silent",&obj0)) SWIG_failgoto fail;
6298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GIntegral, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
6299 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GIntegral_silent" "', argument " "1"" of type '" "GIntegral const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GIntegral_silent" "', argument "
"1"" of type '" "GIntegral const *""'"); goto fail; } while(
0)
;
6301 }
6302 arg1 = reinterpret_cast< GIntegral * >(argp1);
6303 {
6304 try {
6305 result = (bool *) &((GIntegral const *)arg1)->silent();
6306 }
6307 catch (const GException::out_of_range& e) {
6308 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6309 }
6310 catch (const GExceptionHandler& e) {
6311 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6312 }
6313 catch (const std::exception& e) {
6314 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6315 }
6316 }
6317 resultobj = SWIG_From_bool(static_cast< bool >(*result));
6318 return resultobj;
6319fail:
6320 return NULL__null;
6321}
6322
6323
6324SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GIntegral_silent(PyObject *self, PyObject *args) {
6325 int argc;
6326 PyObject *argv[3];
6327 int ii;
6328
6329 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
6330 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
6331 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
6332 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
6333 }
6334 if (argc == 1) {
6335 int _v;
6336 void *vptr = 0;
6337 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GIntegral, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
6338 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6339 if (_v) {
6340 return _wrap_GIntegral_silent__SWIG_1(self, args);
6341 }
6342 }
6343 if (argc == 2) {
6344 int _v;
6345 void *vptr = 0;
6346 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GIntegral, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
6347 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6348 if (_v) {
6349 {
6350 int res = SWIG_AsVal_bool(argv[1], NULL__null);
6351 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6352 }
6353 if (_v) {
6354 return _wrap_GIntegral_silent__SWIG_0(self, args);
6355 }
6356 }
6357 }
6358
6359fail:
6360 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GIntegral_silent'.\n"
6361 " Possible C/C++ prototypes are:\n"
6362 " GIntegral::silent(bool const &)\n"
6363 " GIntegral::silent() const\n");
6364 return 0;
6365}
6366
6367
6368SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GIntegral_kernel__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6369 PyObject *resultobj = 0;
6370 GIntegral *arg1 = (GIntegral *) 0 ;
6371 GFunction *arg2 = (GFunction *) 0 ;
6372 void *argp1 = 0 ;
6373 int res1 = 0 ;
6374 void *argp2 = 0 ;
6375 int res2 = 0 ;
6376 PyObject * obj0 = 0 ;
6377 PyObject * obj1 = 0 ;
6378
6379 if (!PyArg_ParseTuple(args,(char *)"OO:GIntegral_kernel",&obj0,&obj1)) SWIG_failgoto fail;
6380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GIntegral, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
6381 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GIntegral_kernel" "', argument " "1"" of type '" "GIntegral *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GIntegral_kernel" "', argument "
"1"" of type '" "GIntegral *""'"); goto fail; } while(0)
;
6383 }
6384 arg1 = reinterpret_cast< GIntegral * >(argp1);
6385 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_GFunction, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[2],
0 | 0, 0)
;
6386 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6387 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GIntegral_kernel" "', argument " "2"" of type '" "GFunction *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GIntegral_kernel" "', argument "
"2"" of type '" "GFunction *""'"); goto fail; } while(0)
;
6388 }
6389 arg2 = reinterpret_cast< GFunction * >(argp2);
6390 {
6391 try {
6392 (arg1)->kernel(arg2);
6393 }
6394 catch (const GException::out_of_range& e) {
6395 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6396 }
6397 catch (const GExceptionHandler& e) {
6398 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6399 }
6400 catch (const std::exception& e) {
6401 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6402 }
6403 }
6404 resultobj = SWIG_Py_Void();
6405 return resultobj;
6406fail:
6407 return NULL__null;
6408}
6409
6410
6411SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GIntegral_kernel__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6412 PyObject *resultobj = 0;
6413 GIntegral *arg1 = (GIntegral *) 0 ;
6414 void *argp1 = 0 ;
6415 int res1 = 0 ;
6416 PyObject * obj0 = 0 ;
6417 GFunction *result = 0 ;
6418
6419 if (!PyArg_ParseTuple(args,(char *)"O:GIntegral_kernel",&obj0)) SWIG_failgoto fail;
6420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GIntegral, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
6421 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GIntegral_kernel" "', argument " "1"" of type '" "GIntegral const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GIntegral_kernel" "', argument "
"1"" of type '" "GIntegral const *""'"); goto fail; } while(
0)
;
6423 }
6424 arg1 = reinterpret_cast< GIntegral * >(argp1);
6425 {
6426 try {
6427 result = (GFunction *)((GIntegral const *)arg1)->kernel();
6428 }
6429 catch (const GException::out_of_range& e) {
6430 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6431 }
6432 catch (const GExceptionHandler& e) {
6433 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6434 }
6435 catch (const std::exception& e) {
6436 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6437 }
6438 }
6439 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GFunction, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[2], 0 |
0)
;
6440 return resultobj;
6441fail:
6442 return NULL__null;
6443}
6444
6445
6446SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GIntegral_kernel(PyObject *self, PyObject *args) {
6447 int argc;
6448 PyObject *argv[3];
6449 int ii;
6450
6451 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
6452 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
6453 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
6454 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
6455 }
6456 if (argc == 1) {
6457 int _v;
6458 void *vptr = 0;
6459 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GIntegral, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
6460 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6461 if (_v) {
6462 return _wrap_GIntegral_kernel__SWIG_1(self, args);
6463 }
6464 }
6465 if (argc == 2) {
6466 int _v;
6467 void *vptr = 0;
6468 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GIntegral, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
6469 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6470 if (_v) {
6471 void *vptr = 0;
6472 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_GFunction, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], &vptr, swig_types[2
], 0, 0)
;
6473 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6474 if (_v) {
6475 return _wrap_GIntegral_kernel__SWIG_0(self, args);
6476 }
6477 }
6478 }
6479
6480fail:
6481 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GIntegral_kernel'.\n"
6482 " Possible C/C++ prototypes are:\n"
6483 " GIntegral::kernel(GFunction *)\n"
6484 " GIntegral::kernel() const\n");
6485 return 0;
6486}
6487
6488
6489SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GIntegral_romb__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6490 PyObject *resultobj = 0;
6491 GIntegral *arg1 = (GIntegral *) 0 ;
6492 double *arg2 = 0 ;
6493 double *arg3 = 0 ;
6494 int *arg4 = 0 ;
6495 void *argp1 = 0 ;
6496 int res1 = 0 ;
6497 double temp2 ;
6498 double val2 ;
6499 int ecode2 = 0 ;
6500 double temp3 ;
6501 double val3 ;
6502 int ecode3 = 0 ;
6503 int temp4 ;
6504 int val4 ;
6505 int ecode4 = 0 ;
6506 PyObject * obj0 = 0 ;
6507 PyObject * obj1 = 0 ;
6508 PyObject * obj2 = 0 ;
6509 PyObject * obj3 = 0 ;
6510 double result;
6511
6512 if (!PyArg_ParseTuple(args,(char *)"OOOO:GIntegral_romb",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
6513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GIntegral, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
6514 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GIntegral_romb" "', argument " "1"" of type '" "GIntegral *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GIntegral_romb" "', argument "
"1"" of type '" "GIntegral *""'"); goto fail; } while(0)
;
6516 }
6517 arg1 = reinterpret_cast< GIntegral * >(argp1);
6518 ecode2 = SWIG_AsVal_double(obj1, &val2);
6519 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6520 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GIntegral_romb" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GIntegral_romb" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
6521 }
6522 temp2 = static_cast< double >(val2);
6523 arg2 = &temp2;
6524 ecode3 = SWIG_AsVal_double(obj2, &val3);
6525 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
6526 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GIntegral_romb" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GIntegral_romb" "', argument "
"3"" of type '" "double""'"); goto fail; } while(0)
;
6527 }
6528 temp3 = static_cast< double >(val3);
6529 arg3 = &temp3;
6530 ecode4 = SWIG_AsVal_int(obj3, &val4);
6531 if (!SWIG_IsOK(ecode4)(ecode4 >= 0)) {
6532 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GIntegral_romb" "', argument " "4"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 !=
(-1)) ? ecode4 : -5)), "in method '" "GIntegral_romb" "', argument "
"4"" of type '" "int""'"); goto fail; } while(0)
;
6533 }
6534 temp4 = static_cast< int >(val4);
6535 arg4 = &temp4;
6536 {
6537 try {
6538 result = (double)(arg1)->romb((double const &)*arg2,(double const &)*arg3,(int const &)*arg4);
6539 }
6540 catch (const GException::out_of_range& e) {
6541 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6542 }
6543 catch (const GExceptionHandler& e) {
6544 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6545 }
6546 catch (const std::exception& e) {
6547 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6548 }
6549 }
6550 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
6551 return resultobj;
6552fail:
6553 return NULL__null;
6554}
6555
6556
6557SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GIntegral_romb__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6558 PyObject *resultobj = 0;
6559 GIntegral *arg1 = (GIntegral *) 0 ;
6560 double *arg2 = 0 ;
6561 double *arg3 = 0 ;
6562 void *argp1 = 0 ;
6563 int res1 = 0 ;
6564 double temp2 ;
6565 double val2 ;
6566 int ecode2 = 0 ;
6567 double temp3 ;
6568 double val3 ;
6569 int ecode3 = 0 ;
6570 PyObject * obj0 = 0 ;
6571 PyObject * obj1 = 0 ;
6572 PyObject * obj2 = 0 ;
6573 double result;
6574
6575 if (!PyArg_ParseTuple(args,(char *)"OOO:GIntegral_romb",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
6576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GIntegral, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
6577 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GIntegral_romb" "', argument " "1"" of type '" "GIntegral *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GIntegral_romb" "', argument "
"1"" of type '" "GIntegral *""'"); goto fail; } while(0)
;
6579 }
6580 arg1 = reinterpret_cast< GIntegral * >(argp1);
6581 ecode2 = SWIG_AsVal_double(obj1, &val2);
6582 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GIntegral_romb" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GIntegral_romb" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
6584 }
6585 temp2 = static_cast< double >(val2);
6586 arg2 = &temp2;
6587 ecode3 = SWIG_AsVal_double(obj2, &val3);
6588 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
6589 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GIntegral_romb" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GIntegral_romb" "', argument "
"3"" of type '" "double""'"); goto fail; } while(0)
;
6590 }
6591 temp3 = static_cast< double >(val3);
6592 arg3 = &temp3;
6593 {
6594 try {
6595 result = (double)(arg1)->romb((double const &)*arg2,(double const &)*arg3);
6596 }
6597 catch (const GException::out_of_range& e) {
6598 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6599 }
6600 catch (const GExceptionHandler& e) {
6601 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6602 }
6603 catch (const std::exception& e) {
6604 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6605 }
6606 }
6607 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
6608 return resultobj;
6609fail:
6610 return NULL__null;
6611}
6612
6613
6614SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GIntegral_romb(PyObject *self, PyObject *args) {
6615 int argc;
6616 PyObject *argv[5];
6617 int ii;
6618
6619 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
6620 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
6621 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
6622 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
6623 }
6624 if (argc == 3) {
6625 int _v;
6626 void *vptr = 0;
6627 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GIntegral, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
6628 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6629 if (_v) {
6630 {
6631 int res = SWIG_AsVal_double(argv[1], NULL__null);
6632 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6633 }
6634 if (_v) {
6635 {
6636 int res = SWIG_AsVal_double(argv[2], NULL__null);
6637 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6638 }
6639 if (_v) {
6640 return _wrap_GIntegral_romb__SWIG_1(self, args);
6641 }
6642 }
6643 }
6644 }
6645 if (argc == 4) {
6646 int _v;
6647 void *vptr = 0;
6648 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GIntegral, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
6649 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6650 if (_v) {
6651 {
6652 int res = SWIG_AsVal_double(argv[1], NULL__null);
6653 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6654 }
6655 if (_v) {
6656 {
6657 int res = SWIG_AsVal_double(argv[2], NULL__null);
6658 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6659 }
6660 if (_v) {
6661 {
6662 int res = SWIG_AsVal_int(argv[3], NULL__null);
6663 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6664 }
6665 if (_v) {
6666 return _wrap_GIntegral_romb__SWIG_0(self, args);
6667 }
6668 }
6669 }
6670 }
6671 }
6672
6673fail:
6674 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GIntegral_romb'.\n"
6675 " Possible C/C++ prototypes are:\n"
6676 " GIntegral::romb(double const &,double const &,int const &)\n"
6677 " GIntegral::romb(double const &,double const &)\n");
6678 return 0;
6679}
6680
6681
6682SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GIntegral_trapzd__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6683 PyObject *resultobj = 0;
6684 GIntegral *arg1 = (GIntegral *) 0 ;
6685 double *arg2 = 0 ;
6686 double *arg3 = 0 ;
6687 int *arg4 = 0 ;
6688 double arg5 ;
6689 void *argp1 = 0 ;
6690 int res1 = 0 ;
6691 double temp2 ;
6692 double val2 ;
6693 int ecode2 = 0 ;
6694 double temp3 ;
6695 double val3 ;
6696 int ecode3 = 0 ;
6697 int temp4 ;
6698 int val4 ;
6699 int ecode4 = 0 ;
6700 double val5 ;
6701 int ecode5 = 0 ;
6702 PyObject * obj0 = 0 ;
6703 PyObject * obj1 = 0 ;
6704 PyObject * obj2 = 0 ;
6705 PyObject * obj3 = 0 ;
6706 PyObject * obj4 = 0 ;
6707 double result;
6708
6709 if (!PyArg_ParseTuple(args,(char *)"OOOOO:GIntegral_trapzd",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_failgoto fail;
6710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GIntegral, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
6711 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GIntegral_trapzd" "', argument " "1"" of type '" "GIntegral *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GIntegral_trapzd" "', argument "
"1"" of type '" "GIntegral *""'"); goto fail; } while(0)
;
6713 }
6714 arg1 = reinterpret_cast< GIntegral * >(argp1);
6715 ecode2 = SWIG_AsVal_double(obj1, &val2);
6716 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6717 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GIntegral_trapzd" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GIntegral_trapzd" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
6718 }
6719 temp2 = static_cast< double >(val2);
6720 arg2 = &temp2;
6721 ecode3 = SWIG_AsVal_double(obj2, &val3);
6722 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
6723 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GIntegral_trapzd" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GIntegral_trapzd" "', argument "
"3"" of type '" "double""'"); goto fail; } while(0)
;
6724 }
6725 temp3 = static_cast< double >(val3);
6726 arg3 = &temp3;
6727 ecode4 = SWIG_AsVal_int(obj3, &val4);
6728 if (!SWIG_IsOK(ecode4)(ecode4 >= 0)) {
6729 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GIntegral_trapzd" "', argument " "4"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 !=
(-1)) ? ecode4 : -5)), "in method '" "GIntegral_trapzd" "', argument "
"4"" of type '" "int""'"); goto fail; } while(0)
;
6730 }
6731 temp4 = static_cast< int >(val4);
6732 arg4 = &temp4;
6733 ecode5 = SWIG_AsVal_double(obj4, &val5);
6734 if (!SWIG_IsOK(ecode5)(ecode5 >= 0)) {
6735 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GIntegral_trapzd" "', argument " "5"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode5 !=
(-1)) ? ecode5 : -5)), "in method '" "GIntegral_trapzd" "', argument "
"5"" of type '" "double""'"); goto fail; } while(0)
;
6736 }
6737 arg5 = static_cast< double >(val5);
6738 {
6739 try {
6740 result = (double)(arg1)->trapzd((double const &)*arg2,(double const &)*arg3,(int const &)*arg4,arg5);
6741 }
6742 catch (const GException::out_of_range& e) {
6743 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6744 }
6745 catch (const GExceptionHandler& e) {
6746 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6747 }
6748 catch (const std::exception& e) {
6749 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6750 }
6751 }
6752 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
6753 return resultobj;
6754fail:
6755 return NULL__null;
6756}
6757
6758
6759SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GIntegral_trapzd__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6760 PyObject *resultobj = 0;
6761 GIntegral *arg1 = (GIntegral *) 0 ;
6762 double *arg2 = 0 ;
6763 double *arg3 = 0 ;
6764 int *arg4 = 0 ;
6765 void *argp1 = 0 ;
6766 int res1 = 0 ;
6767 double temp2 ;
6768 double val2 ;
6769 int ecode2 = 0 ;
6770 double temp3 ;
6771 double val3 ;
6772 int ecode3 = 0 ;
6773 int temp4 ;
6774 int val4 ;
6775 int ecode4 = 0 ;
6776 PyObject * obj0 = 0 ;
6777 PyObject * obj1 = 0 ;
6778 PyObject * obj2 = 0 ;
6779 PyObject * obj3 = 0 ;
6780 double result;
6781
6782 if (!PyArg_ParseTuple(args,(char *)"OOOO:GIntegral_trapzd",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
6783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GIntegral, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
6784 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GIntegral_trapzd" "', argument " "1"" of type '" "GIntegral *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GIntegral_trapzd" "', argument "
"1"" of type '" "GIntegral *""'"); goto fail; } while(0)
;
6786 }
6787 arg1 = reinterpret_cast< GIntegral * >(argp1);
6788 ecode2 = SWIG_AsVal_double(obj1, &val2);
6789 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6790 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GIntegral_trapzd" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GIntegral_trapzd" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
6791 }
6792 temp2 = static_cast< double >(val2);
6793 arg2 = &temp2;
6794 ecode3 = SWIG_AsVal_double(obj2, &val3);
6795 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
6796 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GIntegral_trapzd" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GIntegral_trapzd" "', argument "
"3"" of type '" "double""'"); goto fail; } while(0)
;
6797 }
6798 temp3 = static_cast< double >(val3);
6799 arg3 = &temp3;
6800 ecode4 = SWIG_AsVal_int(obj3, &val4);
6801 if (!SWIG_IsOK(ecode4)(ecode4 >= 0)) {
6802 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GIntegral_trapzd" "', argument " "4"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 !=
(-1)) ? ecode4 : -5)), "in method '" "GIntegral_trapzd" "', argument "
"4"" of type '" "int""'"); goto fail; } while(0)
;
6803 }
6804 temp4 = static_cast< int >(val4);
6805 arg4 = &temp4;
6806 {
6807 try {
6808 result = (double)(arg1)->trapzd((double const &)*arg2,(double const &)*arg3,(int const &)*arg4);
6809 }
6810 catch (const GException::out_of_range& e) {
6811 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6812 }
6813 catch (const GExceptionHandler& e) {
6814 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6815 }
6816 catch (const std::exception& e) {
6817 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6818 }
6819 }
6820 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
6821 return resultobj;
6822fail:
6823 return NULL__null;
6824}
6825
6826
6827SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GIntegral_trapzd__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6828 PyObject *resultobj = 0;
6829 GIntegral *arg1 = (GIntegral *) 0 ;
6830 double *arg2 = 0 ;
6831 double *arg3 = 0 ;
6832 void *argp1 = 0 ;
6833 int res1 = 0 ;
6834 double temp2 ;
6835 double val2 ;
6836 int ecode2 = 0 ;
6837 double temp3 ;
6838 double val3 ;
6839 int ecode3 = 0 ;
6840 PyObject * obj0 = 0 ;
6841 PyObject * obj1 = 0 ;
6842 PyObject * obj2 = 0 ;
6843 double result;
6844
6845 if (!PyArg_ParseTuple(args,(char *)"OOO:GIntegral_trapzd",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
6846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GIntegral, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
6847 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GIntegral_trapzd" "', argument " "1"" of type '" "GIntegral *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GIntegral_trapzd" "', argument "
"1"" of type '" "GIntegral *""'"); goto fail; } while(0)
;
6849 }
6850 arg1 = reinterpret_cast< GIntegral * >(argp1);
6851 ecode2 = SWIG_AsVal_double(obj1, &val2);
6852 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6853 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GIntegral_trapzd" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GIntegral_trapzd" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
6854 }
6855 temp2 = static_cast< double >(val2);
6856 arg2 = &temp2;
6857 ecode3 = SWIG_AsVal_double(obj2, &val3);
6858 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
6859 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GIntegral_trapzd" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GIntegral_trapzd" "', argument "
"3"" of type '" "double""'"); goto fail; } while(0)
;
6860 }
6861 temp3 = static_cast< double >(val3);
6862 arg3 = &temp3;
6863 {
6864 try {
6865 result = (double)(arg1)->trapzd((double const &)*arg2,(double const &)*arg3);
6866 }
6867 catch (const GException::out_of_range& e) {
6868 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6869 }
6870 catch (const GExceptionHandler& e) {
6871 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6872 }
6873 catch (const std::exception& e) {
6874 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6875 }
6876 }
6877 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
6878 return resultobj;
6879fail:
6880 return NULL__null;
6881}
6882
6883
6884SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GIntegral_trapzd(PyObject *self, PyObject *args) {
6885 int argc;
6886 PyObject *argv[6];
6887 int ii;
6888
6889 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
6890 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
6891 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
6892 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
6893 }
6894 if (argc == 3) {
6895 int _v;
6896 void *vptr = 0;
6897 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GIntegral, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
6898 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6899 if (_v) {
6900 {
6901 int res = SWIG_AsVal_double(argv[1], NULL__null);
6902 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6903 }
6904 if (_v) {
6905 {
6906 int res = SWIG_AsVal_double(argv[2], NULL__null);
6907 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6908 }
6909 if (_v) {
6910 return _wrap_GIntegral_trapzd__SWIG_2(self, args);
6911 }
6912 }
6913 }
6914 }
6915 if (argc == 4) {
6916 int _v;
6917 void *vptr = 0;
6918 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GIntegral, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
6919 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6920 if (_v) {
6921 {
6922 int res = SWIG_AsVal_double(argv[1], NULL__null);
6923 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6924 }
6925 if (_v) {
6926 {
6927 int res = SWIG_AsVal_double(argv[2], NULL__null);
6928 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6929 }
6930 if (_v) {
6931 {
6932 int res = SWIG_AsVal_int(argv[3], NULL__null);
6933 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6934 }
6935 if (_v) {
6936 return _wrap_GIntegral_trapzd__SWIG_1(self, args);
6937 }
6938 }
6939 }
6940 }
6941 }
6942 if (argc == 5) {
6943 int _v;
6944 void *vptr = 0;
6945 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GIntegral, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
6946 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6947 if (_v) {
6948 {
6949 int res = SWIG_AsVal_double(argv[1], NULL__null);
6950 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6951 }
6952 if (_v) {
6953 {
6954 int res = SWIG_AsVal_double(argv[2], NULL__null);
6955 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6956 }
6957 if (_v) {
6958 {
6959 int res = SWIG_AsVal_int(argv[3], NULL__null);
6960 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6961 }
6962 if (_v) {
6963 {
6964 int res = SWIG_AsVal_double(argv[4], NULL__null);
6965 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6966 }
6967 if (_v) {
6968 return _wrap_GIntegral_trapzd__SWIG_0(self, args);
6969 }
6970 }
6971 }
6972 }
6973 }
6974 }
6975
6976fail:
6977 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GIntegral_trapzd'.\n"
6978 " Possible C/C++ prototypes are:\n"
6979 " GIntegral::trapzd(double const &,double const &,int const &,double)\n"
6980 " GIntegral::trapzd(double const &,double const &,int const &)\n"
6981 " GIntegral::trapzd(double const &,double const &)\n");
6982 return 0;
6983}
6984
6985
6986SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GIntegral_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6987 PyObject *resultobj = 0;
6988 GIntegral *arg1 = (GIntegral *) 0 ;
6989 void *argp1 = 0 ;
6990 int res1 = 0 ;
6991 PyObject * obj0 = 0 ;
6992 GIntegral result;
6993
6994 if (!PyArg_ParseTuple(args,(char *)"O:GIntegral_copy",&obj0)) SWIG_failgoto fail;
6995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GIntegral, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
6996 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GIntegral_copy" "', argument " "1"" of type '" "GIntegral *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GIntegral_copy" "', argument "
"1"" of type '" "GIntegral *""'"); goto fail; } while(0)
;
6998 }
6999 arg1 = reinterpret_cast< GIntegral * >(argp1);
7000 {
7001 try {
7002 result = GIntegral_copy(arg1);
7003 }
7004 catch (const GException::out_of_range& e) {
7005 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7006 }
7007 catch (const GExceptionHandler& e) {
7008 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7009 }
7010 catch (const std::exception& e) {
7011 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7012 }
7013 }
7014 resultobj = SWIG_NewPointerObj((new GIntegral(static_cast< const GIntegral& >(result))), SWIGTYPE_p_GIntegral, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GIntegral(static_cast<
const GIntegral& >(result))), swig_types[3], 0x1 | 0)
;
7015 return resultobj;
7016fail:
7017 return NULL__null;
7018}
7019
7020
7021SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GIntegral_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7022 PyObject *obj;
7023 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
7024 SWIG_TypeNewClientData(SWIGTYPE_p_GIntegralswig_types[3], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
7025 return SWIG_Py_Void();
7026}
7027
7028SWIGINTERNstatic __attribute__ ((__unused__)) int Swig_var_pi_set(PyObject *) {
7029 SWIG_Error(SWIG_AttributeError,"Variable pi is read-only.")SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-11), "Variable pi is read-only."
)
;
7030 return 1;
7031}
7032
7033
7034SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *Swig_var_pi_get(void) {
7035 PyObject *pyobj = 0;
7036
7037 pyobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(gammalib::pi));
7038 return pyobj;
7039}
7040
7041
7042SWIGINTERNstatic __attribute__ ((__unused__)) int Swig_var_twopi_set(PyObject *) {
7043 SWIG_Error(SWIG_AttributeError,"Variable twopi is read-only.")SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-11), "Variable twopi is read-only."
)
;
7044 return 1;
7045}
7046
7047
7048SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *Swig_var_twopi_get(void) {
7049 PyObject *pyobj = 0;
7050
7051 pyobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(gammalib::twopi));
7052 return pyobj;
7053}
7054
7055
7056SWIGINTERNstatic __attribute__ ((__unused__)) int Swig_var_fourpi_set(PyObject *) {
7057 SWIG_Error(SWIG_AttributeError,"Variable fourpi is read-only.")SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-11), "Variable fourpi is read-only."
)
;
7058 return 1;
7059}
7060
7061
7062SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *Swig_var_fourpi_get(void) {
7063 PyObject *pyobj = 0;
7064
7065 pyobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(gammalib::fourpi));
7066 return pyobj;
7067}
7068
7069
7070SWIGINTERNstatic __attribute__ ((__unused__)) int Swig_var_pihalf_set(PyObject *) {
7071 SWIG_Error(SWIG_AttributeError,"Variable pihalf is read-only.")SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-11), "Variable pihalf is read-only."
)
;
7072 return 1;
7073}
7074
7075
7076SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *Swig_var_pihalf_get(void) {
7077 PyObject *pyobj = 0;
7078
7079 pyobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(gammalib::pihalf));
7080 return pyobj;
7081}
7082
7083
7084SWIGINTERNstatic __attribute__ ((__unused__)) int Swig_var_inv_pihalf_set(PyObject *) {
7085 SWIG_Error(SWIG_AttributeError,"Variable inv_pihalf is read-only.")SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-11), "Variable inv_pihalf is read-only."
)
;
7086 return 1;
7087}
7088
7089
7090SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *Swig_var_inv_pihalf_get(void) {
7091 PyObject *pyobj = 0;
7092
7093 pyobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(gammalib::inv_pihalf));
7094 return pyobj;
7095}
7096
7097
7098SWIGINTERNstatic __attribute__ ((__unused__)) int Swig_var_inv_sqrt4pi_set(PyObject *) {
7099 SWIG_Error(SWIG_AttributeError,"Variable inv_sqrt4pi is read-only.")SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-11), "Variable inv_sqrt4pi is read-only."
)
;
7100 return 1;
7101}
7102
7103
7104SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *Swig_var_inv_sqrt4pi_get(void) {
7105 PyObject *pyobj = 0;
7106
7107 pyobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(gammalib::inv_sqrt4pi));
7108 return pyobj;
7109}
7110
7111
7112SWIGINTERNstatic __attribute__ ((__unused__)) int Swig_var_pi2_set(PyObject *) {
7113 SWIG_Error(SWIG_AttributeError,"Variable pi2 is read-only.")SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-11), "Variable pi2 is read-only."
)
;
7114 return 1;
7115}
7116
7117
7118SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *Swig_var_pi2_get(void) {
7119 PyObject *pyobj = 0;
7120
7121 pyobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(gammalib::pi2));
7122 return pyobj;
7123}
7124
7125
7126SWIGINTERNstatic __attribute__ ((__unused__)) int Swig_var_deg2rad_set(PyObject *) {
7127 SWIG_Error(SWIG_AttributeError,"Variable deg2rad is read-only.")SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-11), "Variable deg2rad is read-only."
)
;
7128 return 1;
7129}
7130
7131
7132SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *Swig_var_deg2rad_get(void) {
7133 PyObject *pyobj = 0;
7134
7135 pyobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(gammalib::deg2rad));
7136 return pyobj;
7137}
7138
7139
7140SWIGINTERNstatic __attribute__ ((__unused__)) int Swig_var_rad2deg_set(PyObject *) {
7141 SWIG_Error(SWIG_AttributeError,"Variable rad2deg is read-only.")SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-11), "Variable rad2deg is read-only."
)
;
7142 return 1;
7143}
7144
7145
7146SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *Swig_var_rad2deg_get(void) {
7147 PyObject *pyobj = 0;
7148
7149 pyobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(gammalib::rad2deg));
7150 return pyobj;
7151}
7152
7153
7154SWIGINTERNstatic __attribute__ ((__unused__)) int Swig_var_ln2_set(PyObject *) {
7155 SWIG_Error(SWIG_AttributeError,"Variable ln2 is read-only.")SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-11), "Variable ln2 is read-only."
)
;
7156 return 1;
7157}
7158
7159
7160SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *Swig_var_ln2_get(void) {
7161 PyObject *pyobj = 0;
7162
7163 pyobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(gammalib::ln2));
7164 return pyobj;
7165}
7166
7167
7168SWIGINTERNstatic __attribute__ ((__unused__)) int Swig_var_ln10_set(PyObject *) {
7169 SWIG_Error(SWIG_AttributeError,"Variable ln10 is read-only.")SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-11), "Variable ln10 is read-only."
)
;
7170 return 1;
7171}
7172
7173
7174SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *Swig_var_ln10_get(void) {
7175 PyObject *pyobj = 0;
7176
7177 pyobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(gammalib::ln10));
7178 return pyobj;
7179}
7180
7181
7182SWIGINTERNstatic __attribute__ ((__unused__)) int Swig_var_inv_ln2_set(PyObject *) {
7183 SWIG_Error(SWIG_AttributeError,"Variable inv_ln2 is read-only.")SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-11), "Variable inv_ln2 is read-only."
)
;
7184 return 1;
7185}
7186
7187
7188SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *Swig_var_inv_ln2_get(void) {
7189 PyObject *pyobj = 0;
7190
7191 pyobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(gammalib::inv_ln2));
7192 return pyobj;
7193}
7194
7195
7196SWIGINTERNstatic __attribute__ ((__unused__)) int Swig_var_onethird_set(PyObject *) {
7197 SWIG_Error(SWIG_AttributeError,"Variable onethird is read-only.")SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-11), "Variable onethird is read-only."
)
;
7198 return 1;
7199}
7200
7201
7202SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *Swig_var_onethird_get(void) {
7203 PyObject *pyobj = 0;
7204
7205 pyobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(gammalib::onethird));
7206 return pyobj;
7207}
7208
7209
7210SWIGINTERNstatic __attribute__ ((__unused__)) int Swig_var_twothird_set(PyObject *) {
7211 SWIG_Error(SWIG_AttributeError,"Variable twothird is read-only.")SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-11), "Variable twothird is read-only."
)
;
7212 return 1;
7213}
7214
7215
7216SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *Swig_var_twothird_get(void) {
7217 PyObject *pyobj = 0;
7218
7219 pyobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(gammalib::twothird));
7220 return pyobj;
7221}
7222
7223
7224SWIGINTERNstatic __attribute__ ((__unused__)) int Swig_var_fourthird_set(PyObject *) {
7225 SWIG_Error(SWIG_AttributeError,"Variable fourthird is read-only.")SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-11), "Variable fourthird is read-only."
)
;
7226 return 1;
7227}
7228
7229
7230SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *Swig_var_fourthird_get(void) {
7231 PyObject *pyobj = 0;
7232
7233 pyobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(gammalib::fourthird));
7234 return pyobj;
7235}
7236
7237
7238SWIGINTERNstatic __attribute__ ((__unused__)) int Swig_var_sqrt_onehalf_set(PyObject *) {
7239 SWIG_Error(SWIG_AttributeError,"Variable sqrt_onehalf is read-only.")SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-11), "Variable sqrt_onehalf is read-only."
)
;
7240 return 1;
7241}
7242
7243
7244SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *Swig_var_sqrt_onehalf_get(void) {
7245 PyObject *pyobj = 0;
7246
7247 pyobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(gammalib::sqrt_onehalf));
7248 return pyobj;
7249}
7250
7251
7252SWIGINTERNstatic __attribute__ ((__unused__)) int Swig_var_sqrt_pihalf_set(PyObject *) {
7253 SWIG_Error(SWIG_AttributeError,"Variable sqrt_pihalf is read-only.")SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-11), "Variable sqrt_pihalf is read-only."
)
;
7254 return 1;
7255}
7256
7257
7258SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *Swig_var_sqrt_pihalf_get(void) {
7259 PyObject *pyobj = 0;
7260
7261 pyobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(gammalib::sqrt_pihalf));
7262 return pyobj;
7263}
7264
7265
7266SWIGINTERNstatic __attribute__ ((__unused__)) int Swig_var_sqrt_two_set(PyObject *) {
7267 SWIG_Error(SWIG_AttributeError,"Variable sqrt_two is read-only.")SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-11), "Variable sqrt_two is read-only."
)
;
7268 return 1;
7269}
7270
7271
7272SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *Swig_var_sqrt_two_get(void) {
7273 PyObject *pyobj = 0;
7274
7275 pyobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(gammalib::sqrt_two));
7276 return pyobj;
7277}
7278
7279
7280SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_acos(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7281 PyObject *resultobj = 0;
7282 double *arg1 = 0 ;
7283 double temp1 ;
7284 double val1 ;
7285 int ecode1 = 0 ;
7286 PyObject * obj0 = 0 ;
7287 double result;
7288
7289 if (!PyArg_ParseTuple(args,(char *)"O:acos",&obj0)) SWIG_failgoto fail;
7290 ecode1 = SWIG_AsVal_double(obj0, &val1);
7291 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
7292 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "acos" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "acos" "', argument " "1"
" of type '" "double""'"); goto fail; } while(0)
;
7293 }
7294 temp1 = static_cast< double >(val1);
7295 arg1 = &temp1;
7296 {
7297 try {
7298 result = (double)gammalib::acos((double const &)*arg1);
7299 }
7300 catch (const GException::out_of_range& e) {
7301 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7302 }
7303 catch (const GExceptionHandler& e) {
7304 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7305 }
7306 catch (const std::exception& e) {
7307 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7308 }
7309 }
7310 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
7311 return resultobj;
7312fail:
7313 return NULL__null;
7314}
7315
7316
7317SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_cosd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7318 PyObject *resultobj = 0;
7319 double *arg1 = 0 ;
7320 double temp1 ;
7321 double val1 ;
7322 int ecode1 = 0 ;
7323 PyObject * obj0 = 0 ;
7324 double result;
7325
7326 if (!PyArg_ParseTuple(args,(char *)"O:cosd",&obj0)) SWIG_failgoto fail;
7327 ecode1 = SWIG_AsVal_double(obj0, &val1);
7328 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
7329 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cosd" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "cosd" "', argument " "1"
" of type '" "double""'"); goto fail; } while(0)
;
7330 }
7331 temp1 = static_cast< double >(val1);
7332 arg1 = &temp1;
7333 {
7334 try {
7335 result = (double)gammalib::cosd((double const &)*arg1);
7336 }
7337 catch (const GException::out_of_range& e) {
7338 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7339 }
7340 catch (const GExceptionHandler& e) {
7341 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7342 }
7343 catch (const std::exception& e) {
7344 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7345 }
7346 }
7347 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
7348 return resultobj;
7349fail:
7350 return NULL__null;
7351}
7352
7353
7354SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_sind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7355 PyObject *resultobj = 0;
7356 double *arg1 = 0 ;
7357 double temp1 ;
7358 double val1 ;
7359 int ecode1 = 0 ;
7360 PyObject * obj0 = 0 ;
7361 double result;
7362
7363 if (!PyArg_ParseTuple(args,(char *)"O:sind",&obj0)) SWIG_failgoto fail;
7364 ecode1 = SWIG_AsVal_double(obj0, &val1);
7365 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
7366 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "sind" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "sind" "', argument " "1"
" of type '" "double""'"); goto fail; } while(0)
;
7367 }
7368 temp1 = static_cast< double >(val1);
7369 arg1 = &temp1;
7370 {
7371 try {
7372 result = (double)gammalib::sind((double const &)*arg1);
7373 }
7374 catch (const GException::out_of_range& e) {
7375 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7376 }
7377 catch (const GExceptionHandler& e) {
7378 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7379 }
7380 catch (const std::exception& e) {
7381 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7382 }
7383 }
7384 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
7385 return resultobj;
7386fail:
7387 return NULL__null;
7388}
7389
7390
7391SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_tand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7392 PyObject *resultobj = 0;
7393 double *arg1 = 0 ;
7394 double temp1 ;
7395 double val1 ;
7396 int ecode1 = 0 ;
7397 PyObject * obj0 = 0 ;
7398 double result;
7399
7400 if (!PyArg_ParseTuple(args,(char *)"O:tand",&obj0)) SWIG_failgoto fail;
7401 ecode1 = SWIG_AsVal_double(obj0, &val1);
7402 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
7403 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "tand" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "tand" "', argument " "1"
" of type '" "double""'"); goto fail; } while(0)
;
7404 }
7405 temp1 = static_cast< double >(val1);
7406 arg1 = &temp1;
7407 {
7408 try {
7409 result = (double)gammalib::tand((double const &)*arg1);
7410 }
7411 catch (const GException::out_of_range& e) {
7412 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7413 }
7414 catch (const GExceptionHandler& e) {
7415 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7416 }
7417 catch (const std::exception& e) {
7418 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7419 }
7420 }
7421 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
7422 return resultobj;
7423fail:
7424 return NULL__null;
7425}
7426
7427
7428SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_asind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7429 PyObject *resultobj = 0;
7430 double *arg1 = 0 ;
7431 double temp1 ;
7432 double val1 ;
7433 int ecode1 = 0 ;
7434 PyObject * obj0 = 0 ;
7435 double result;
7436
7437 if (!PyArg_ParseTuple(args,(char *)"O:asind",&obj0)) SWIG_failgoto fail;
7438 ecode1 = SWIG_AsVal_double(obj0, &val1);
7439 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
7440 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "asind" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "asind" "', argument " "1"
" of type '" "double""'"); goto fail; } while(0)
;
7441 }
7442 temp1 = static_cast< double >(val1);
7443 arg1 = &temp1;
7444 {
7445 try {
7446 result = (double)gammalib::asind((double const &)*arg1);
7447 }
7448 catch (const GException::out_of_range& e) {
7449 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7450 }
7451 catch (const GExceptionHandler& e) {
7452 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7453 }
7454 catch (const std::exception& e) {
7455 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7456 }
7457 }
7458 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
7459 return resultobj;
7460fail:
7461 return NULL__null;
7462}
7463
7464
7465SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_acosd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7466 PyObject *resultobj = 0;
7467 double *arg1 = 0 ;
7468 double temp1 ;
7469 double val1 ;
7470 int ecode1 = 0 ;
7471 PyObject * obj0 = 0 ;
7472 double result;
7473
7474 if (!PyArg_ParseTuple(args,(char *)"O:acosd",&obj0)) SWIG_failgoto fail;
7475 ecode1 = SWIG_AsVal_double(obj0, &val1);
7476 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
7477 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "acosd" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "acosd" "', argument " "1"
" of type '" "double""'"); goto fail; } while(0)
;
7478 }
7479 temp1 = static_cast< double >(val1);
7480 arg1 = &temp1;
7481 {
7482 try {
7483 result = (double)gammalib::acosd((double const &)*arg1);
7484 }
7485 catch (const GException::out_of_range& e) {
7486 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7487 }
7488 catch (const GExceptionHandler& e) {
7489 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7490 }
7491 catch (const std::exception& e) {
7492 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7493 }
7494 }
7495 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
7496 return resultobj;
7497fail:
7498 return NULL__null;
7499}
7500
7501
7502SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_atand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7503 PyObject *resultobj = 0;
7504 double *arg1 = 0 ;
7505 double temp1 ;
7506 double val1 ;
7507 int ecode1 = 0 ;
7508 PyObject * obj0 = 0 ;
7509 double result;
7510
7511 if (!PyArg_ParseTuple(args,(char *)"O:atand",&obj0)) SWIG_failgoto fail;
7512 ecode1 = SWIG_AsVal_double(obj0, &val1);
7513 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
7514 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "atand" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "atand" "', argument " "1"
" of type '" "double""'"); goto fail; } while(0)
;
7515 }
7516 temp1 = static_cast< double >(val1);
7517 arg1 = &temp1;
7518 {
7519 try {
7520 result = (double)gammalib::atand((double const &)*arg1);
7521 }
7522 catch (const GException::out_of_range& e) {
7523 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7524 }
7525 catch (const GExceptionHandler& e) {
7526 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7527 }
7528 catch (const std::exception& e) {
7529 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7530 }
7531 }
7532 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
7533 return resultobj;
7534fail:
7535 return NULL__null;
7536}
7537
7538
7539SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_atan2d(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7540 PyObject *resultobj = 0;
7541 double *arg1 = 0 ;
7542 double *arg2 = 0 ;
7543 double temp1 ;
7544 double val1 ;
7545 int ecode1 = 0 ;
7546 double temp2 ;
7547 double val2 ;
7548 int ecode2 = 0 ;
7549 PyObject * obj0 = 0 ;
7550 PyObject * obj1 = 0 ;
7551 double result;
7552
7553 if (!PyArg_ParseTuple(args,(char *)"OO:atan2d",&obj0,&obj1)) SWIG_failgoto fail;
7554 ecode1 = SWIG_AsVal_double(obj0, &val1);
7555 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
7556 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "atan2d" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "atan2d" "', argument "
"1"" of type '" "double""'"); goto fail; } while(0)
;
7557 }
7558 temp1 = static_cast< double >(val1);
7559 arg1 = &temp1;
7560 ecode2 = SWIG_AsVal_double(obj1, &val2);
7561 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
7562 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "atan2d" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "atan2d" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
7563 }
7564 temp2 = static_cast< double >(val2);
7565 arg2 = &temp2;
7566 {
7567 try {
7568 result = (double)gammalib::atan2d((double const &)*arg1,(double const &)*arg2);
7569 }
7570 catch (const GException::out_of_range& e) {
7571 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7572 }
7573 catch (const GExceptionHandler& e) {
7574 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7575 }
7576 catch (const std::exception& e) {
7577 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7578 }
7579 }
7580 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
7581 return resultobj;
7582fail:
7583 return NULL__null;
7584}
7585
7586
7587SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_sincosd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7588 PyObject *resultobj = 0;
7589 double *arg1 = 0 ;
7590 double *arg2 = (double *) 0 ;
7591 double *arg3 = (double *) 0 ;
7592 double temp1 ;
7593 double val1 ;
7594 int ecode1 = 0 ;
7595 void *argp2 = 0 ;
7596 int res2 = 0 ;
7597 void *argp3 = 0 ;
7598 int res3 = 0 ;
7599 PyObject * obj0 = 0 ;
7600 PyObject * obj1 = 0 ;
7601 PyObject * obj2 = 0 ;
7602
7603 if (!PyArg_ParseTuple(args,(char *)"OOO:sincosd",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
7604 ecode1 = SWIG_AsVal_double(obj0, &val1);
7605 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
7606 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "sincosd" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "sincosd" "', argument "
"1"" of type '" "double""'"); goto fail; } while(0)
;
7607 }
7608 temp1 = static_cast< double >(val1);
7609 arg1 = &temp1;
7610 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_double, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
7611 if (!SWIG_IsOK(res2)(res2 >= 0)) {
7612 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sincosd" "', argument " "2"" of type '" "double *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "sincosd" "', argument " "2"
" of type '" "double *""'"); goto fail; } while(0)
;
7613 }
7614 arg2 = reinterpret_cast< double * >(argp2);
7615 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_double, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[5],
0 | 0, 0)
;
7616 if (!SWIG_IsOK(res3)(res3 >= 0)) {
7617 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "sincosd" "', argument " "3"" of type '" "double *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "sincosd" "', argument " "3"
" of type '" "double *""'"); goto fail; } while(0)
;
7618 }
7619 arg3 = reinterpret_cast< double * >(argp3);
7620 {
7621 try {
7622 gammalib::sincosd((double const &)*arg1,arg2,arg3);
7623 }
7624 catch (const GException::out_of_range& e) {
7625 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7626 }
7627 catch (const GExceptionHandler& e) {
7628 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7629 }
7630 catch (const std::exception& e) {
7631 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7632 }
7633 }
7634 resultobj = SWIG_Py_Void();
7635 return resultobj;
7636fail:
7637 return NULL__null;
7638}
7639
7640
7641SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_gammln(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7642 PyObject *resultobj = 0;
7643 double *arg1 = 0 ;
7644 double temp1 ;
7645 double val1 ;
7646 int ecode1 = 0 ;
7647 PyObject * obj0 = 0 ;
7648 double result;
7649
7650 if (!PyArg_ParseTuple(args,(char *)"O:gammln",&obj0)) SWIG_failgoto fail;
7651 ecode1 = SWIG_AsVal_double(obj0, &val1);
7652 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
7653 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "gammln" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "gammln" "', argument "
"1"" of type '" "double""'"); goto fail; } while(0)
;
7654 }
7655 temp1 = static_cast< double >(val1);
7656 arg1 = &temp1;
7657 {
7658 try {
7659 result = (double)gammalib::gammln((double const &)*arg1);
7660 }
7661 catch (const GException::out_of_range& e) {
7662 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7663 }
7664 catch (const GExceptionHandler& e) {
7665 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7666 }
7667 catch (const std::exception& e) {
7668 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7669 }
7670 }
7671 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
7672 return resultobj;
7673fail:
7674 return NULL__null;
7675}
7676
7677
7678SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_modulo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7679 PyObject *resultobj = 0;
7680 double *arg1 = 0 ;
7681 double *arg2 = 0 ;
7682 double temp1 ;
7683 double val1 ;
7684 int ecode1 = 0 ;
7685 double temp2 ;
7686 double val2 ;
7687 int ecode2 = 0 ;
7688 PyObject * obj0 = 0 ;
7689 PyObject * obj1 = 0 ;
7690 double result;
7691
7692 if (!PyArg_ParseTuple(args,(char *)"OO:modulo",&obj0,&obj1)) SWIG_failgoto fail;
7693 ecode1 = SWIG_AsVal_double(obj0, &val1);
7694 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
7695 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "modulo" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "modulo" "', argument "
"1"" of type '" "double""'"); goto fail; } while(0)
;
7696 }
7697 temp1 = static_cast< double >(val1);
7698 arg1 = &temp1;
7699 ecode2 = SWIG_AsVal_double(obj1, &val2);
7700 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
7701 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "modulo" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "modulo" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
7702 }
7703 temp2 = static_cast< double >(val2);
7704 arg2 = &temp2;
7705 {
7706 try {
7707 result = (double)gammalib::modulo((double const &)*arg1,(double const &)*arg2);
7708 }
7709 catch (const GException::out_of_range& e) {
7710 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7711 }
7712 catch (const GExceptionHandler& e) {
7713 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7714 }
7715 catch (const std::exception& e) {
7716 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7717 }
7718 }
7719 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
7720 return resultobj;
7721fail:
7722 return NULL__null;
7723}
7724
7725
7726static PyMethodDef SwigMethods[] = {
7727 { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O0x0008, NULL__null},
7728 { (char *)"delete_SwigPyIterator", _wrap_delete_SwigPyIterator, METH_VARARGS0x0001, (char *)"delete_SwigPyIterator(SwigPyIterator self)"},
7729 { (char *)"SwigPyIterator_value", _wrap_SwigPyIterator_value, METH_VARARGS0x0001, (char *)"SwigPyIterator_value(SwigPyIterator self) -> PyObject *"},
7730 { (char *)"SwigPyIterator_incr", _wrap_SwigPyIterator_incr, METH_VARARGS0x0001, (char *)"\n"
7731 "incr(size_t n=1) -> SwigPyIterator\n"
7732 "SwigPyIterator_incr(SwigPyIterator self) -> SwigPyIterator\n"
7733 ""},
7734 { (char *)"SwigPyIterator_decr", _wrap_SwigPyIterator_decr, METH_VARARGS0x0001, (char *)"\n"
7735 "decr(size_t n=1) -> SwigPyIterator\n"
7736 "SwigPyIterator_decr(SwigPyIterator self) -> SwigPyIterator\n"
7737 ""},
7738 { (char *)"SwigPyIterator_distance", _wrap_SwigPyIterator_distance, METH_VARARGS0x0001, (char *)"SwigPyIterator_distance(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t"},
7739 { (char *)"SwigPyIterator_equal", _wrap_SwigPyIterator_equal, METH_VARARGS0x0001, (char *)"SwigPyIterator_equal(SwigPyIterator self, SwigPyIterator x) -> bool"},
7740 { (char *)"SwigPyIterator_copy", _wrap_SwigPyIterator_copy, METH_VARARGS0x0001, (char *)"SwigPyIterator_copy(SwigPyIterator self) -> SwigPyIterator"},
7741 { (char *)"SwigPyIterator_next", _wrap_SwigPyIterator_next, METH_VARARGS0x0001, (char *)"SwigPyIterator_next(SwigPyIterator self) -> PyObject *"},
7742 { (char *)"SwigPyIterator___next__", _wrap_SwigPyIterator___next__, METH_VARARGS0x0001, (char *)"SwigPyIterator___next__(SwigPyIterator self) -> PyObject *"},
7743 { (char *)"SwigPyIterator_previous", _wrap_SwigPyIterator_previous, METH_VARARGS0x0001, (char *)"SwigPyIterator_previous(SwigPyIterator self) -> PyObject *"},
7744 { (char *)"SwigPyIterator_advance", _wrap_SwigPyIterator_advance, METH_VARARGS0x0001, (char *)"SwigPyIterator_advance(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
7745 { (char *)"SwigPyIterator___eq__", _wrap_SwigPyIterator___eq__, METH_VARARGS0x0001, (char *)"SwigPyIterator___eq__(SwigPyIterator self, SwigPyIterator x) -> bool"},
7746 { (char *)"SwigPyIterator___ne__", _wrap_SwigPyIterator___ne__, METH_VARARGS0x0001, (char *)"SwigPyIterator___ne__(SwigPyIterator self, SwigPyIterator x) -> bool"},
7747 { (char *)"SwigPyIterator___iadd__", _wrap_SwigPyIterator___iadd__, METH_VARARGS0x0001, (char *)"SwigPyIterator___iadd__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
7748 { (char *)"SwigPyIterator___isub__", _wrap_SwigPyIterator___isub__, METH_VARARGS0x0001, (char *)"SwigPyIterator___isub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
7749 { (char *)"SwigPyIterator___add__", _wrap_SwigPyIterator___add__, METH_VARARGS0x0001, (char *)"SwigPyIterator___add__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
7750 { (char *)"SwigPyIterator___sub__", _wrap_SwigPyIterator___sub__, METH_VARARGS0x0001, (char *)"\n"
7751 "__sub__(ptrdiff_t n) -> SwigPyIterator\n"
7752 "SwigPyIterator___sub__(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t\n"
7753 ""},
7754 { (char *)"SwigPyIterator_swigregister", SwigPyIterator_swigregister, METH_VARARGS0x0001, NULL__null},
7755 { (char *)"new_GDerivative", _wrap_new_GDerivative, METH_VARARGS0x0001, (char *)"\n"
7756 "GDerivative()\n"
7757 "GDerivative(GFunction function)\n"
7758 "new_GDerivative(GDerivative dx) -> GDerivative\n"
7759 ""},
7760 { (char *)"delete_GDerivative", _wrap_delete_GDerivative, METH_VARARGS0x0001, (char *)"delete_GDerivative(GDerivative self)"},
7761 { (char *)"GDerivative_clear", _wrap_GDerivative_clear, METH_VARARGS0x0001, (char *)"GDerivative_clear(GDerivative self)"},
7762 { (char *)"GDerivative_clone", _wrap_GDerivative_clone, METH_VARARGS0x0001, (char *)"GDerivative_clone(GDerivative self) -> GDerivative"},
7763 { (char *)"GDerivative_iter", _wrap_GDerivative_iter, METH_VARARGS0x0001, (char *)"GDerivative_iter(GDerivative self) -> int const &"},
7764 { (char *)"GDerivative_max_iter", _wrap_GDerivative_max_iter, METH_VARARGS0x0001, (char *)"\n"
7765 "max_iter(int const & max_iter)\n"
7766 "GDerivative_max_iter(GDerivative self) -> int const &\n"
7767 ""},
7768 { (char *)"GDerivative_eps", _wrap_GDerivative_eps, METH_VARARGS0x0001, (char *)"\n"
7769 "eps(double const & eps)\n"
7770 "GDerivative_eps(GDerivative self) -> double const &\n"
7771 ""},
7772 { (char *)"GDerivative_step_frac", _wrap_GDerivative_step_frac, METH_VARARGS0x0001, (char *)"\n"
7773 "step_frac(double const & fraction)\n"
7774 "GDerivative_step_frac(GDerivative self) -> double const &\n"
7775 ""},
7776 { (char *)"GDerivative_silent", _wrap_GDerivative_silent, METH_VARARGS0x0001, (char *)"\n"
7777 "silent(bool const & silent)\n"
7778 "GDerivative_silent(GDerivative self) -> bool const &\n"
7779 ""},
7780 { (char *)"GDerivative_function", _wrap_GDerivative_function, METH_VARARGS0x0001, (char *)"\n"
7781 "function(GFunction function)\n"
7782 "GDerivative_function(GDerivative self) -> GFunction\n"
7783 ""},
7784 { (char *)"GDerivative_value", _wrap_GDerivative_value, METH_VARARGS0x0001, (char *)"\n"
7785 "value(double const & x, double const & step=0.0) -> double\n"
7786 "GDerivative_value(GDerivative self, double const & x) -> double\n"
7787 ""},
7788 { (char *)"GDerivative_ridder", _wrap_GDerivative_ridder, METH_VARARGS0x0001, (char *)"GDerivative_ridder(GDerivative self, double const & x, double const & h, double * err) -> double"},
7789 { (char *)"GDerivative_minuit2", _wrap_GDerivative_minuit2, METH_VARARGS0x0001, (char *)"GDerivative_minuit2(GDerivative self, double const & x, double * err) -> double"},
7790 { (char *)"GDerivative_difference", _wrap_GDerivative_difference, METH_VARARGS0x0001, (char *)"GDerivative_difference(GDerivative self, double const & x, double const & h) -> double"},
7791 { (char *)"GDerivative_copy", _wrap_GDerivative_copy, METH_VARARGS0x0001, (char *)"GDerivative_copy(GDerivative self) -> GDerivative"},
7792 { (char *)"GDerivative_swigregister", GDerivative_swigregister, METH_VARARGS0x0001, NULL__null},
7793 { (char *)"delete_GFunction", _wrap_delete_GFunction, METH_VARARGS0x0001, (char *)"delete_GFunction(GFunction self)"},
7794 { (char *)"GFunction_eval", _wrap_GFunction_eval, METH_VARARGS0x0001, (char *)"GFunction_eval(GFunction self, double const & x) -> double"},
7795 { (char *)"GFunction_swigregister", GFunction_swigregister, METH_VARARGS0x0001, NULL__null},
7796 { (char *)"new_GIntegral", _wrap_new_GIntegral, METH_VARARGS0x0001, (char *)"\n"
7797 "GIntegral()\n"
7798 "GIntegral(GFunction kernel)\n"
7799 "new_GIntegral(GIntegral integral) -> GIntegral\n"
7800 ""},
7801 { (char *)"delete_GIntegral", _wrap_delete_GIntegral, METH_VARARGS0x0001, (char *)"delete_GIntegral(GIntegral self)"},
7802 { (char *)"GIntegral_clear", _wrap_GIntegral_clear, METH_VARARGS0x0001, (char *)"GIntegral_clear(GIntegral self)"},
7803 { (char *)"GIntegral_clone", _wrap_GIntegral_clone, METH_VARARGS0x0001, (char *)"GIntegral_clone(GIntegral self) -> GIntegral"},
7804 { (char *)"GIntegral_iter", _wrap_GIntegral_iter, METH_VARARGS0x0001, (char *)"GIntegral_iter(GIntegral self) -> int const &"},
7805 { (char *)"GIntegral_max_iter", _wrap_GIntegral_max_iter, METH_VARARGS0x0001, (char *)"\n"
7806 "max_iter(int const & max_iter)\n"
7807 "GIntegral_max_iter(GIntegral self) -> int const &\n"
7808 ""},
7809 { (char *)"GIntegral_eps", _wrap_GIntegral_eps, METH_VARARGS0x0001, (char *)"\n"
7810 "eps(double const & eps)\n"
7811 "GIntegral_eps(GIntegral self) -> double const &\n"
7812 ""},
7813 { (char *)"GIntegral_silent", _wrap_GIntegral_silent, METH_VARARGS0x0001, (char *)"\n"
7814 "silent(bool const & silent)\n"
7815 "GIntegral_silent(GIntegral self) -> bool const &\n"
7816 ""},
7817 { (char *)"GIntegral_kernel", _wrap_GIntegral_kernel, METH_VARARGS0x0001, (char *)"\n"
7818 "kernel(GFunction kernel)\n"
7819 "GIntegral_kernel(GIntegral self) -> GFunction\n"
7820 ""},
7821 { (char *)"GIntegral_romb", _wrap_GIntegral_romb, METH_VARARGS0x0001, (char *)"\n"
7822 "romb(double const & a, double const & b, int const & k=5) -> double\n"
7823 "GIntegral_romb(GIntegral self, double const & a, double const & b) -> double\n"
7824 ""},
7825 { (char *)"GIntegral_trapzd", _wrap_GIntegral_trapzd, METH_VARARGS0x0001, (char *)"\n"
7826 "trapzd(double const & a, double const & b, int const & n=1, double result=0.0) -> double\n"
7827 "trapzd(double const & a, double const & b, int const & n=1) -> double\n"
7828 "GIntegral_trapzd(GIntegral self, double const & a, double const & b) -> double\n"
7829 ""},
7830 { (char *)"GIntegral_copy", _wrap_GIntegral_copy, METH_VARARGS0x0001, (char *)"GIntegral_copy(GIntegral self) -> GIntegral"},
7831 { (char *)"GIntegral_swigregister", GIntegral_swigregister, METH_VARARGS0x0001, NULL__null},
7832 { (char *)"acos", _wrap_acos, METH_VARARGS0x0001, (char *)"acos(double const & arg) -> double"},
7833 { (char *)"cosd", _wrap_cosd, METH_VARARGS0x0001, (char *)"cosd(double const & angle) -> double"},
7834 { (char *)"sind", _wrap_sind, METH_VARARGS0x0001, (char *)"sind(double const & angle) -> double"},
7835 { (char *)"tand", _wrap_tand, METH_VARARGS0x0001, (char *)"tand(double const & angle) -> double"},
7836 { (char *)"asind", _wrap_asind, METH_VARARGS0x0001, (char *)"asind(double const & value) -> double"},
7837 { (char *)"acosd", _wrap_acosd, METH_VARARGS0x0001, (char *)"acosd(double const & value) -> double"},
7838 { (char *)"atand", _wrap_atand, METH_VARARGS0x0001, (char *)"atand(double const & value) -> double"},
7839 { (char *)"atan2d", _wrap_atan2d, METH_VARARGS0x0001, (char *)"atan2d(double const & y, double const & x) -> double"},
7840 { (char *)"sincosd", _wrap_sincosd, METH_VARARGS0x0001, (char *)"sincosd(double const & angle, double * s, double * c)"},
7841 { (char *)"gammln", _wrap_gammln, METH_VARARGS0x0001, (char *)"gammln(double const & arg) -> double"},
7842 { (char *)"modulo", _wrap_modulo, METH_VARARGS0x0001, (char *)"modulo(double const & v1, double const & v2) -> double"},
7843 { NULL__null, NULL__null, 0, NULL__null }
7844};
7845
7846
7847/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
7848
7849static void *_p_GDerivativeTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
7850 return (void *)((GBase *) ((GDerivative *) x));
7851}
7852static void *_p_GIntegralTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
7853 return (void *)((GBase *) ((GIntegral *) x));
7854}
7855static swig_type_info _swigt__p_GBase = {"_p_GBase", "GBase *", 0, 0, (void*)0, 0};
7856static swig_type_info _swigt__p_GDerivative = {"_p_GDerivative", "GDerivative *", 0, 0, (void*)0, 0};
7857static swig_type_info _swigt__p_GFunction = {"_p_GFunction", "GFunction *", 0, 0, (void*)0, 0};
7858static swig_type_info _swigt__p_GIntegral = {"_p_GIntegral", "GIntegral *", 0, 0, (void*)0, 0};
7859static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
7860static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
7861static swig_type_info _swigt__p_std__invalid_argument = {"_p_std__invalid_argument", "std::invalid_argument *", 0, 0, (void*)0, 0};
7862static swig_type_info _swigt__p_swig__SwigPyIterator = {"_p_swig__SwigPyIterator", "swig::SwigPyIterator *", 0, 0, (void*)0, 0};
7863
7864static swig_type_info *swig_type_initial[] = {
7865 &_swigt__p_GBase,
7866 &_swigt__p_GDerivative,
7867 &_swigt__p_GFunction,
7868 &_swigt__p_GIntegral,
7869 &_swigt__p_char,
7870 &_swigt__p_double,
7871 &_swigt__p_std__invalid_argument,
7872 &_swigt__p_swig__SwigPyIterator,
7873};
7874
7875static swig_cast_info _swigc__p_GBase[] = { {&_swigt__p_GDerivative, _p_GDerivativeTo_p_GBase, 0, 0}, {&_swigt__p_GBase, 0, 0, 0}, {&_swigt__p_GIntegral, _p_GIntegralTo_p_GBase, 0, 0},{0, 0, 0, 0}};
7876static swig_cast_info _swigc__p_GDerivative[] = { {&_swigt__p_GDerivative, 0, 0, 0},{0, 0, 0, 0}};
7877static swig_cast_info _swigc__p_GFunction[] = { {&_swigt__p_GFunction, 0, 0, 0},{0, 0, 0, 0}};
7878static swig_cast_info _swigc__p_GIntegral[] = { {&_swigt__p_GIntegral, 0, 0, 0},{0, 0, 0, 0}};
7879static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
7880static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
7881static swig_cast_info _swigc__p_std__invalid_argument[] = { {&_swigt__p_std__invalid_argument, 0, 0, 0},{0, 0, 0, 0}};
7882static swig_cast_info _swigc__p_swig__SwigPyIterator[] = { {&_swigt__p_swig__SwigPyIterator, 0, 0, 0},{0, 0, 0, 0}};
7883
7884static swig_cast_info *swig_cast_initial[] = {
7885 _swigc__p_GBase,
7886 _swigc__p_GDerivative,
7887 _swigc__p_GFunction,
7888 _swigc__p_GIntegral,
7889 _swigc__p_char,
7890 _swigc__p_double,
7891 _swigc__p_std__invalid_argument,
7892 _swigc__p_swig__SwigPyIterator,
7893};
7894
7895
7896/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
7897
7898static swig_const_info swig_const_table[] = {
7899{0, 0, 0, 0.0, 0, 0}};
7900
7901#ifdef __cplusplus199711L
7902}
7903#endif
7904/* -----------------------------------------------------------------------------
7905 * Type initialization:
7906 * This problem is tough by the requirement that no dynamic
7907 * memory is used. Also, since swig_type_info structures store pointers to
7908 * swig_cast_info structures and swig_cast_info structures store pointers back
7909 * to swig_type_info structures, we need some lookup code at initialization.
7910 * The idea is that swig generates all the structures that are needed.
7911 * The runtime then collects these partially filled structures.
7912 * The SWIG_InitializeModule function takes these initial arrays out of
7913 * swig_module, and does all the lookup, filling in the swig_module.types
7914 * array with the correct data and linking the correct swig_cast_info
7915 * structures together.
7916 *
7917 * The generated swig_type_info structures are assigned staticly to an initial
7918 * array. We just loop through that array, and handle each type individually.
7919 * First we lookup if this type has been already loaded, and if so, use the
7920 * loaded structure instead of the generated one. Then we have to fill in the
7921 * cast linked list. The cast data is initially stored in something like a
7922 * two-dimensional array. Each row corresponds to a type (there are the same
7923 * number of rows as there are in the swig_type_initial array). Each entry in
7924 * a column is one of the swig_cast_info structures for that type.
7925 * The cast_initial array is actually an array of arrays, because each row has
7926 * a variable number of columns. So to actually build the cast linked list,
7927 * we find the array of casts associated with the type, and loop through it
7928 * adding the casts to the list. The one last trick we need to do is making
7929 * sure the type pointer in the swig_cast_info struct is correct.
7930 *
7931 * First off, we lookup the cast->type name to see if it is already loaded.
7932 * There are three cases to handle:
7933 * 1) If the cast->type has already been loaded AND the type we are adding
7934 * casting info to has not been loaded (it is in this module), THEN we
7935 * replace the cast->type pointer with the type pointer that has already
7936 * been loaded.
7937 * 2) If BOTH types (the one we are adding casting info to, and the
7938 * cast->type) are loaded, THEN the cast info has already been loaded by
7939 * the previous module so we just ignore it.
7940 * 3) Finally, if cast->type has not already been loaded, then we add that
7941 * swig_cast_info to the linked list (because the cast->type) pointer will
7942 * be correct.
7943 * ----------------------------------------------------------------------------- */
7944
7945#ifdef __cplusplus199711L
7946extern "C" {
7947#if 0
7948} /* c-mode */
7949#endif
7950#endif
7951
7952#if 0
7953#define SWIGRUNTIME_DEBUG
7954#endif
7955
7956
7957SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
7958SWIG_InitializeModule(void *clientdata) {
7959 size_t i;
7960 swig_module_info *module_head, *iter;
7961 int found, init;
7962
7963 /* check to see if the circular list has been setup, if not, set it up */
7964 if (swig_module.next==0) {
7965 /* Initialize the swig_module */
7966 swig_module.type_initial = swig_type_initial;
7967 swig_module.cast_initial = swig_cast_initial;
7968 swig_module.next = &swig_module;
7969 init = 1;
7970 } else {
7971 init = 0;
7972 }
7973
7974 /* Try and load any already created modules */
7975 module_head = SWIG_GetModule(clientdata)SWIG_Python_GetModule(clientdata);
7976 if (!module_head) {
7977 /* This is the first module loaded for this interpreter */
7978 /* so set the swig module into the interpreter */
7979 SWIG_SetModule(clientdata, &swig_module)SWIG_Python_SetModule(&swig_module);
7980 module_head = &swig_module;
Value stored to 'module_head' is never read
7981 } else {
7982 /* the interpreter has loaded a SWIG module, but has it loaded this one? */
7983 found=0;
7984 iter=module_head;
7985 do {
7986 if (iter==&swig_module) {
7987 found=1;
7988 break;
7989 }
7990 iter=iter->next;
7991 } while (iter!= module_head);
7992
7993 /* if the is found in the list, then all is done and we may leave */
7994 if (found) return;
7995 /* otherwise we must add out module into the list */
7996 swig_module.next = module_head->next;
7997 module_head->next = &swig_module;
7998 }
7999
8000 /* When multiple interpreters are used, a module could have already been initialized in
8001 a different interpreter, but not yet have a pointer in this interpreter.
8002 In this case, we do not want to continue adding types... everything should be
8003 set up already */
8004 if (init == 0) return;
8005
8006 /* Now work on filling in swig_module.types */
8007#ifdef SWIGRUNTIME_DEBUG
8008 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
8009#endif
8010 for (i = 0; i < swig_module.size; ++i) {
8011 swig_type_info *type = 0;
8012 swig_type_info *ret;
8013 swig_cast_info *cast;
8014
8015#ifdef SWIGRUNTIME_DEBUG
8016 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
8017#endif
8018
8019 /* if there is another module already loaded */
8020 if (swig_module.next != &swig_module) {
8021 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
8022 }
8023 if (type) {
8024 /* Overwrite clientdata field */
8025#ifdef SWIGRUNTIME_DEBUG
8026 printf("SWIG_InitializeModule: found type %s\n", type->name);
8027#endif
8028 if (swig_module.type_initial[i]->clientdata) {
8029 type->clientdata = swig_module.type_initial[i]->clientdata;
8030#ifdef SWIGRUNTIME_DEBUG
8031 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
8032#endif
8033 }
8034 } else {
8035 type = swig_module.type_initial[i];
8036 }
8037
8038 /* Insert casting types */
8039 cast = swig_module.cast_initial[i];
8040 while (cast->type) {
8041 /* Don't need to add information already in the list */
8042 ret = 0;
8043#ifdef SWIGRUNTIME_DEBUG
8044 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
8045#endif
8046 if (swig_module.next != &swig_module) {
8047 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
8048#ifdef SWIGRUNTIME_DEBUG
8049 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
8050#endif
8051 }
8052 if (ret) {
8053 if (type == swig_module.type_initial[i]) {
8054#ifdef SWIGRUNTIME_DEBUG
8055 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
8056#endif
8057 cast->type = ret;
8058 ret = 0;
8059 } else {
8060 /* Check for casting already in the list */
8061 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
8062#ifdef SWIGRUNTIME_DEBUG
8063 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
8064#endif
8065 if (!ocast) ret = 0;
8066 }
8067 }
8068
8069 if (!ret) {
8070#ifdef SWIGRUNTIME_DEBUG
8071 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
8072#endif
8073 if (type->cast) {
8074 type->cast->prev = cast;
8075 cast->next = type->cast;
8076 }
8077 type->cast = cast;
8078 }
8079 cast++;
8080 }
8081 /* Set entry in modules->types array equal to the type */
8082 swig_module.types[i] = type;
8083 }
8084 swig_module.types[i] = 0;
8085
8086#ifdef SWIGRUNTIME_DEBUG
8087 printf("**** SWIG_InitializeModule: Cast List ******\n");
8088 for (i = 0; i < swig_module.size; ++i) {
8089 int j = 0;
8090 swig_cast_info *cast = swig_module.cast_initial[i];
8091 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
8092 while (cast->type) {
8093 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
8094 cast++;
8095 ++j;
8096 }
8097 printf("---- Total casts: %d\n",j);
8098 }
8099 printf("**** SWIG_InitializeModule: Cast List ******\n");
8100#endif
8101}
8102
8103/* This function will propagate the clientdata field of type to
8104* any new swig_type_info structures that have been added into the list
8105* of equivalent types. It is like calling
8106* SWIG_TypeClientData(type, clientdata) a second time.
8107*/
8108SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
8109SWIG_PropagateClientData(void) {
8110 size_t i;
8111 swig_cast_info *equiv;
8112 static int init_run = 0;
8113
8114 if (init_run) return;
8115 init_run = 1;
8116
8117 for (i = 0; i < swig_module.size; i++) {
8118 if (swig_module.types[i]->clientdata) {
8119 equiv = swig_module.types[i]->cast;
8120 while (equiv) {
8121 if (!equiv->converter) {
8122 if (equiv->type && !equiv->type->clientdata)
8123 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
8124 }
8125 equiv = equiv->next;
8126 }
8127 }
8128 }
8129}
8130
8131#ifdef __cplusplus199711L
8132#if 0
8133{
8134 /* c-mode */
8135#endif
8136}
8137#endif
8138
8139
8140
8141#ifdef __cplusplus199711L
8142extern "C" {
8143#endif
8144
8145 /* Python-specific SWIG API */
8146#define SWIG_newvarlink()SWIG_Python_newvarlink() SWIG_Python_newvarlink()
8147#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)
8148#define SWIG_InstallConstants(d, constants)SWIG_Python_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
8149
8150 /* -----------------------------------------------------------------------------
8151 * global variable support code.
8152 * ----------------------------------------------------------------------------- */
8153
8154 typedef struct swig_globalvar {
8155 char *name; /* Name of global variable */
8156 PyObject *(*get_attr)(void); /* Return the current value */
8157 int (*set_attr)(PyObject *); /* Set the value */
8158 struct swig_globalvar *next;
8159 } swig_globalvar;
8160
8161 typedef struct swig_varlinkobject {
8162 PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type;
8163 swig_globalvar *vars;
8164 } swig_varlinkobject;
8165
8166 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
8167 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
8168#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
8169 return PyUnicode_InternFromString("<Swig global variables>");
8170#else
8171 return PyString_FromString("<Swig global variables>");
8172#endif
8173 }
8174
8175 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
8176 swig_varlink_str(swig_varlinkobject *v) {
8177#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
8178 PyObject *str = PyUnicode_InternFromString("(");
8179 PyObject *tail;
8180 PyObject *joined;
8181 swig_globalvar *var;
8182 for (var = v->vars; var; var=var->next) {
8183 tail = PyUnicode_FromStringPyUnicodeUCS2_FromString(var->name);
8184 joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail);
8185 Py_DecRef(str);
8186 Py_DecRef(tail);
8187 str = joined;
8188 if (var->next) {
8189 tail = PyUnicode_InternFromString(", ");
8190 joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail);
8191 Py_DecRef(str);
8192 Py_DecRef(tail);
8193 str = joined;
8194 }
8195 }
8196 tail = PyUnicode_InternFromString(")");
8197 joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail);
8198 Py_DecRef(str);
8199 Py_DecRef(tail);
8200 str = joined;
8201#else
8202 PyObject *str = PyString_FromString("(");
8203 swig_globalvar *var;
8204 for (var = v->vars; var; var=var->next) {
8205 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
8206 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
8207 }
8208 PyString_ConcatAndDel(&str,PyString_FromString(")"));
8209#endif
8210 return str;
8211 }
8212
8213 SWIGINTERNstatic __attribute__ ((__unused__)) int
8214 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
8215 char *tmp;
8216 PyObject *str = swig_varlink_str(v);
8217 fprintf(fp,"Swig global variables ");
8218 fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str));
8219 SWIG_Python_str_DelForPy3(tmp);
8220 Py_DECREF(str)do { if ( --((PyObject*)(str))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(str)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(str)))); } while (0)
;
8221 return 0;
8222 }
8223
8224 SWIGINTERNstatic __attribute__ ((__unused__)) void
8225 swig_varlink_dealloc(swig_varlinkobject *v) {
8226 swig_globalvar *var = v->vars;
8227 while (var) {
8228 swig_globalvar *n = var->next;
8229 free(var->name);
8230 free(var);
8231 var = n;
8232 }
8233 }
8234
8235 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
8236 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
8237 PyObject *res = NULL__null;
8238 swig_globalvar *var = v->vars;
8239 while (var) {
8240 if (strcmp(var->name,n) == 0) {
8241 res = (*var->get_attr)();
8242 break;
8243 }
8244 var = var->next;
8245 }
8246 if (res == NULL__null && !PyErr_Occurred()) {
8247 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
8248 }
8249 return res;
8250 }
8251
8252 SWIGINTERNstatic __attribute__ ((__unused__)) int
8253 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
8254 int res = 1;
8255 swig_globalvar *var = v->vars;
8256 while (var) {
8257 if (strcmp(var->name,n) == 0) {
8258 res = (*var->set_attr)(p);
8259 break;
8260 }
8261 var = var->next;
8262 }
8263 if (res == 1 && !PyErr_Occurred()) {
8264 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
8265 }
8266 return res;
8267 }
8268
8269 SWIGINTERNstatic __attribute__ ((__unused__)) PyTypeObject*
8270 swig_varlink_type(void) {
8271 static char varlink__doc__[] = "Swig var link object";
8272 static PyTypeObject varlink_type;
8273 static int type_init = 0;
8274 if (!type_init) {
8275 const PyTypeObject tmp = {
8276 /* PyObject header changed in Python 3 */
8277#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
8278 PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0,
8279#else
8280 PyObject_HEAD_INIT(NULL)1, __null,
8281 0, /* ob_size */
8282#endif
8283 (char *)"swigvarlink", /* tp_name */
8284 sizeof(swig_varlinkobject), /* tp_basicsize */
8285 0, /* tp_itemsize */
8286 (destructor) swig_varlink_dealloc, /* tp_dealloc */
8287 (printfunc) swig_varlink_print, /* tp_print */
8288 (getattrfunc) swig_varlink_getattr, /* tp_getattr */
8289 (setattrfunc) swig_varlink_setattr, /* tp_setattr */
8290 0, /* tp_compare */
8291 (reprfunc) swig_varlink_repr, /* tp_repr */
8292 0, /* tp_as_number */
8293 0, /* tp_as_sequence */
8294 0, /* tp_as_mapping */
8295 0, /* tp_hash */
8296 0, /* tp_call */
8297 (reprfunc) swig_varlink_str, /* tp_str */
8298 0, /* tp_getattro */
8299 0, /* tp_setattro */
8300 0, /* tp_as_buffer */
8301 0, /* tp_flags */
8302 varlink__doc__, /* tp_doc */
8303 0, /* tp_traverse */
8304 0, /* tp_clear */
8305 0, /* tp_richcompare */
8306 0, /* tp_weaklistoffset */
8307#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000
8308 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
8309#endif
8310#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000
8311 0, /* tp_del */
8312#endif
8313#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02060000
8314 0, /* tp_version */
8315#endif
8316#ifdef COUNT_ALLOCS
8317 0,0,0,0 /* tp_alloc -> tp_next */
8318#endif
8319 };
8320 varlink_type = tmp;
8321 type_init = 1;
8322#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
8323 varlink_type.ob_type = &PyType_Type;
8324#else
8325 if (PyType_Ready(&varlink_type) < 0)
8326 return NULL__null;
8327#endif
8328 }
8329 return &varlink_type;
8330 }
8331
8332 /* Create a variable linking object for use later */
8333 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
8334 SWIG_Python_newvarlink(void) {
8335 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
())) )
;
8336 if (result) {
8337 result->vars = 0;
8338 }
8339 return ((PyObject*) result);
8340 }
8341
8342 SWIGINTERNstatic __attribute__ ((__unused__)) void
8343 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
8344 swig_varlinkobject *v = (swig_varlinkobject *) p;
8345 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
8346 if (gv) {
8347 size_t size = strlen(name)+1;
8348 gv->name = (char *)malloc(size);
8349 if (gv->name) {
8350 strncpy(gv->name,name,size);
8351 gv->get_attr = get_attr;
8352 gv->set_attr = set_attr;
8353 gv->next = v->vars;
8354 }
8355 }
8356 v->vars = gv;
8357 }
8358
8359 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
8360 SWIG_globals(void) {
8361 static PyObject *_SWIG_globals = 0;
8362 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink()SWIG_Python_newvarlink();
8363 return _SWIG_globals;
8364 }
8365
8366 /* -----------------------------------------------------------------------------
8367 * constants/methods manipulation
8368 * ----------------------------------------------------------------------------- */
8369
8370 /* Install Constants */
8371 SWIGINTERNstatic __attribute__ ((__unused__)) void
8372 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
8373 PyObject *obj = 0;
8374 size_t i;
8375 for (i = 0; constants[i].type; ++i) {
8376 switch(constants[i].type) {
8377 case SWIG_PY_POINTER4:
8378 obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0)SWIG_Python_NewPointerObj(__null, constants[i].pvalue, *(constants
[i]).ptype, 0)
;
8379 break;
8380 case SWIG_PY_BINARY5:
8381 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype))SWIG_Python_NewPackedObj(constants[i].pvalue, constants[i].lvalue
, *(constants[i].ptype))
;
8382 break;
8383 default:
8384 obj = 0;
8385 break;
8386 }
8387 if (obj) {
8388 PyDict_SetItemString(d, constants[i].name, obj);
8389 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
8390 }
8391 }
8392 }
8393
8394 /* -----------------------------------------------------------------------------*/
8395 /* Fix SwigMethods to carry the callback ptrs when needed */
8396 /* -----------------------------------------------------------------------------*/
8397
8398 SWIGINTERNstatic __attribute__ ((__unused__)) void
8399 SWIG_Python_FixMethods(PyMethodDef *methods,
8400 swig_const_info *const_table,
8401 swig_type_info **types,
8402 swig_type_info **types_initial) {
8403 size_t i;
8404 for (i = 0; methods[i].ml_name; ++i) {
8405 const char *c = methods[i].ml_doc;
8406 if (c && (c = strstr(c, "swig_ptr: "))) {
8407 int j;
8408 swig_const_info *ci = 0;
8409 const char *name = c + 10;
8410 for (j = 0; const_table[j].type; ++j) {
8411 if (strncmp(const_table[j].name, name,
8412 strlen(const_table[j].name)) == 0) {
8413 ci = &(const_table[j]);
8414 break;
8415 }
8416 }
8417 if (ci) {
8418 void *ptr = (ci->type == SWIG_PY_POINTER4) ? ci->pvalue : 0;
8419 if (ptr) {
8420 size_t shift = (ci->ptype) - types;
8421 swig_type_info *ty = types_initial[shift];
8422 size_t ldoc = (c - methods[i].ml_doc);
8423 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
8424 char *ndoc = (char*)malloc(ldoc + lptr + 10);
8425 if (ndoc) {
8426 char *buff = ndoc;
8427 strncpy(buff, methods[i].ml_doc, ldoc);
8428 buff += ldoc;
8429 strncpy(buff, "swig_ptr: ", 10);
8430 buff += 10;
8431 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
8432 methods[i].ml_doc = ndoc;
8433 }
8434 }
8435 }
8436 }
8437 }
8438 }
8439
8440#ifdef __cplusplus199711L
8441}
8442#endif
8443
8444/* -----------------------------------------------------------------------------*
8445 * Partial Init method
8446 * -----------------------------------------------------------------------------*/
8447
8448#ifdef __cplusplus199711L
8449extern "C"
8450#endif
8451
8452SWIGEXPORT__attribute__ ((visibility("default")))
8453#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
8454PyObject*
8455#else
8456void
8457#endif
8458SWIG_initinit_numerics(void) {
8459 PyObject *m, *d, *md;
8460#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
8461 static struct PyModuleDef SWIG_module = {
8462# if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03020000
8463 PyModuleDef_HEAD_INIT,
8464# else
8465 {
8466 PyObject_HEAD_INIT(NULL)1, __null,
8467 NULL__null, /* m_init */
8468 0, /* m_index */
8469 NULL__null, /* m_copy */
8470 },
8471# endif
8472 (char *) SWIG_name"_numerics",
8473 NULL__null,
8474 -1,
8475 SwigMethods,
8476 NULL__null,
8477 NULL__null,
8478 NULL__null,
8479 NULL__null
8480 };
8481#endif
8482
8483#if defined(SWIGPYTHON_BUILTIN)
8484 static SwigPyClientData SwigPyObject_clientdata = {
8485 0, 0, 0, 0, 0, 0, 0
8486 };
8487 static PyGetSetDef this_getset_def = {
8488 (char *)"this", &SwigPyBuiltin_ThisClosure, NULL__null, NULL__null, NULL__null
8489 };
8490 static SwigPyGetSet thisown_getset_closure = {
8491 (PyCFunction) SwigPyObject_own,
8492 (PyCFunction) SwigPyObject_own
8493 };
8494 static PyGetSetDef thisown_getset_def = {
8495 (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL__null, &thisown_getset_closure
8496 };
8497 PyObject *metatype_args;
8498 PyTypeObject *builtin_pytype;
8499 int builtin_base_count;
8500 swig_type_info *builtin_basetype;
8501 PyObject *tuple;
8502 PyGetSetDescrObject *static_getset;
8503 PyTypeObject *metatype;
8504 SwigPyClientData *cd;
8505 PyObject *public_interface, *public_symbol;
8506 PyObject *this_descr;
8507 PyObject *thisown_descr;
8508 int i;
8509
8510 (void)builtin_pytype;
8511 (void)builtin_base_count;
8512 (void)builtin_basetype;
8513 (void)tuple;
8514 (void)static_getset;
8515
8516 /* metatype is used to implement static member variables. */
8517 metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type);
8518 assert(metatype_args)((void)0);
8519 metatype = (PyTypeObject *) PyType_Type.tp_call((PyObject *) &PyType_Type, metatype_args, NULL__null);
8520 assert(metatype)((void)0);
8521 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)
;
8522 metatype->tp_setattro = (setattrofunc) &SwigPyObjectType_setattro;
8523 assert(PyType_Ready(metatype) >= 0)((void)0);
8524#endif
8525
8526 /* Fix SwigMethods to carry the callback ptrs when needed */
8527 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
8528
8529#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
8530 m = PyModule_Create(&SWIG_module);
8531#else
8532 m = Py_InitModule((char *) SWIG_name, SwigMethods)Py_InitModule4_64((char *) "_numerics", SwigMethods, (char *)
__null, (PyObject *)__null, 1013)
;
8533#endif
8534 md = d = PyModule_GetDict(m);
8535 (void)md;
8536
8537 SWIG_InitializeModule(0);
8538
8539#ifdef SWIGPYTHON_BUILTIN
8540 SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject")SWIG_MangledTypeQueryModule(&swig_module, &swig_module
, "_p_SwigPyObject")
;
8541 assert(SwigPyObject_stype)((void)0);
8542 cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
8543 if (!cd) {
8544 SwigPyObject_stype->clientdata = &SwigPyObject_clientdata;
8545 SwigPyObject_clientdata.pytype = SwigPyObject_TypeOnce();
8546 } else if (SwigPyObject_TypeOnce()->tp_basicsize != cd->pytype->tp_basicsize) {
8547 PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules.");
8548# if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
8549 return NULL__null;
8550# else
8551 return;
8552# endif
8553 }
8554
8555 /* All objects have a 'this' attribute */
8556 this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def);
8557 (void)this_descr;
8558
8559 /* All objects have a 'thisown' attribute */
8560 thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def);
8561 (void)thisown_descr;
8562
8563 public_interface = PyList_New(0);
8564 public_symbol = 0;
8565 (void)public_symbol;
8566
8567 PyDict_SetItemString(md, "__all__", public_interface);
8568 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)
;
8569 for (i = 0; SwigMethods[i].ml_name != NULL__null; ++i)
8570 SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name);
8571 for (i = 0; swig_const_table[i].name != 0; ++i)
8572 SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name);
8573#endif
8574
8575 SWIG_InstallConstants(d,swig_const_table)SWIG_Python_InstallConstants(d, swig_const_table);
8576
8577 PyDict_SetItemString(md,(char*)"cvar", SWIG_globals());
8578 SWIG_addvarlink(SWIG_globals(),(char*)"pi",Swig_var_pi_get, Swig_var_pi_set)SWIG_Python_addvarlink(SWIG_globals(), (char*)"pi", Swig_var_pi_get
, Swig_var_pi_set)
;
8579 SWIG_addvarlink(SWIG_globals(),(char*)"twopi",Swig_var_twopi_get, Swig_var_twopi_set)SWIG_Python_addvarlink(SWIG_globals(), (char*)"twopi", Swig_var_twopi_get
, Swig_var_twopi_set)
;
8580 SWIG_addvarlink(SWIG_globals(),(char*)"fourpi",Swig_var_fourpi_get, Swig_var_fourpi_set)SWIG_Python_addvarlink(SWIG_globals(), (char*)"fourpi", Swig_var_fourpi_get
, Swig_var_fourpi_set)
;
8581 SWIG_addvarlink(SWIG_globals(),(char*)"pihalf",Swig_var_pihalf_get, Swig_var_pihalf_set)SWIG_Python_addvarlink(SWIG_globals(), (char*)"pihalf", Swig_var_pihalf_get
, Swig_var_pihalf_set)
;
8582 SWIG_addvarlink(SWIG_globals(),(char*)"inv_pihalf",Swig_var_inv_pihalf_get, Swig_var_inv_pihalf_set)SWIG_Python_addvarlink(SWIG_globals(), (char*)"inv_pihalf", Swig_var_inv_pihalf_get
, Swig_var_inv_pihalf_set)
;
8583 SWIG_addvarlink(SWIG_globals(),(char*)"inv_sqrt4pi",Swig_var_inv_sqrt4pi_get, Swig_var_inv_sqrt4pi_set)SWIG_Python_addvarlink(SWIG_globals(), (char*)"inv_sqrt4pi", Swig_var_inv_sqrt4pi_get
, Swig_var_inv_sqrt4pi_set)
;
8584 SWIG_addvarlink(SWIG_globals(),(char*)"pi2",Swig_var_pi2_get, Swig_var_pi2_set)SWIG_Python_addvarlink(SWIG_globals(), (char*)"pi2", Swig_var_pi2_get
, Swig_var_pi2_set)
;
8585 SWIG_addvarlink(SWIG_globals(),(char*)"deg2rad",Swig_var_deg2rad_get, Swig_var_deg2rad_set)SWIG_Python_addvarlink(SWIG_globals(), (char*)"deg2rad", Swig_var_deg2rad_get
, Swig_var_deg2rad_set)
;
8586 SWIG_addvarlink(SWIG_globals(),(char*)"rad2deg",Swig_var_rad2deg_get, Swig_var_rad2deg_set)SWIG_Python_addvarlink(SWIG_globals(), (char*)"rad2deg", Swig_var_rad2deg_get
, Swig_var_rad2deg_set)
;
8587 SWIG_addvarlink(SWIG_globals(),(char*)"ln2",Swig_var_ln2_get, Swig_var_ln2_set)SWIG_Python_addvarlink(SWIG_globals(), (char*)"ln2", Swig_var_ln2_get
, Swig_var_ln2_set)
;
8588 SWIG_addvarlink(SWIG_globals(),(char*)"ln10",Swig_var_ln10_get, Swig_var_ln10_set)SWIG_Python_addvarlink(SWIG_globals(), (char*)"ln10", Swig_var_ln10_get
, Swig_var_ln10_set)
;
8589 SWIG_addvarlink(SWIG_globals(),(char*)"inv_ln2",Swig_var_inv_ln2_get, Swig_var_inv_ln2_set)SWIG_Python_addvarlink(SWIG_globals(), (char*)"inv_ln2", Swig_var_inv_ln2_get
, Swig_var_inv_ln2_set)
;
8590 SWIG_addvarlink(SWIG_globals(),(char*)"onethird",Swig_var_onethird_get, Swig_var_onethird_set)SWIG_Python_addvarlink(SWIG_globals(), (char*)"onethird", Swig_var_onethird_get
, Swig_var_onethird_set)
;
8591 SWIG_addvarlink(SWIG_globals(),(char*)"twothird",Swig_var_twothird_get, Swig_var_twothird_set)SWIG_Python_addvarlink(SWIG_globals(), (char*)"twothird", Swig_var_twothird_get
, Swig_var_twothird_set)
;
8592 SWIG_addvarlink(SWIG_globals(),(char*)"fourthird",Swig_var_fourthird_get, Swig_var_fourthird_set)SWIG_Python_addvarlink(SWIG_globals(), (char*)"fourthird", Swig_var_fourthird_get
, Swig_var_fourthird_set)
;
8593 SWIG_addvarlink(SWIG_globals(),(char*)"sqrt_onehalf",Swig_var_sqrt_onehalf_get, Swig_var_sqrt_onehalf_set)SWIG_Python_addvarlink(SWIG_globals(), (char*)"sqrt_onehalf",
Swig_var_sqrt_onehalf_get, Swig_var_sqrt_onehalf_set)
;
8594 SWIG_addvarlink(SWIG_globals(),(char*)"sqrt_pihalf",Swig_var_sqrt_pihalf_get, Swig_var_sqrt_pihalf_set)SWIG_Python_addvarlink(SWIG_globals(), (char*)"sqrt_pihalf", Swig_var_sqrt_pihalf_get
, Swig_var_sqrt_pihalf_set)
;
8595 SWIG_addvarlink(SWIG_globals(),(char*)"sqrt_two",Swig_var_sqrt_two_get, Swig_var_sqrt_two_set)SWIG_Python_addvarlink(SWIG_globals(), (char*)"sqrt_two", Swig_var_sqrt_two_get
, Swig_var_sqrt_two_set)
;
8596#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
8597 return m;
8598#else
8599 return;
8600#endif
8601}
8602