Bug Summary

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

Annotated Source Code

1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 2.0.11
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14
15#ifdef __cplusplus199711L
16/* SwigValueWrapper is described in swig.swg */
17template<typename T> class SwigValueWrapper {
18 struct SwigMovePointer {
19 T *ptr;
20 SwigMovePointer(T *p) : ptr(p) { }
21 ~SwigMovePointer() { delete ptr; }
22 SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
23 } pointer;
24 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
25 SwigValueWrapper(const SwigValueWrapper<T>& rhs);
26public:
27 SwigValueWrapper() : pointer(0) { }
28 SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
29 operator T&() const { return *pointer.ptr; }
30 T *operator&() { return pointer.ptr; }
31};
32
33template <typename T> T SwigValueInit() {
34 return T();
35}
36#endif
37
38/* -----------------------------------------------------------------------------
39 * This section contains generic SWIG labels for method/variable
40 * declarations/attributes, and other compiler dependent labels.
41 * ----------------------------------------------------------------------------- */
42
43/* template workaround for compilers that cannot correctly implement the C++ standard */
44#ifndef SWIGTEMPLATEDISAMBIGUATOR
45# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
46# define SWIGTEMPLATEDISAMBIGUATOR template
47# elif defined(__HP_aCC)
48/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
49/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
50# define SWIGTEMPLATEDISAMBIGUATOR template
51# else
52# define SWIGTEMPLATEDISAMBIGUATOR
53# endif
54#endif
55
56/* inline attribute */
57#ifndef SWIGINLINEinline
58# if defined(__cplusplus199711L) || (defined(__GNUC__4) && !defined(__STRICT_ANSI__))
59# define SWIGINLINEinline inline
60# else
61# define SWIGINLINEinline
62# endif
63#endif
64
65/* attribute recognised by some compilers to avoid 'unused' warnings */
66#ifndef SWIGUNUSED__attribute__ ((__unused__))
67# if defined(__GNUC__4)
68# if !(defined(__cplusplus199711L)) || (__GNUC__4 > 3 || (__GNUC__4 == 3 && __GNUC_MINOR__2 >= 4))
69# define SWIGUNUSED__attribute__ ((__unused__)) __attribute__ ((__unused__))
70# else
71# define SWIGUNUSED__attribute__ ((__unused__))
72# endif
73# elif defined(__ICC)
74# define SWIGUNUSED__attribute__ ((__unused__)) __attribute__ ((__unused__))
75# else
76# define SWIGUNUSED__attribute__ ((__unused__))
77# endif
78#endif
79
80#ifndef SWIG_MSC_UNSUPPRESS_4505
81# if defined(_MSC_VER)
82# pragma warning(disable : 4505) /* unreferenced local function has been removed */
83# endif
84#endif
85
86#ifndef SWIGUNUSEDPARM
87# ifdef __cplusplus199711L
88# define SWIGUNUSEDPARM(p)
89# else
90# define SWIGUNUSEDPARM(p) p SWIGUNUSED__attribute__ ((__unused__))
91# endif
92#endif
93
94/* internal SWIG method */
95#ifndef SWIGINTERNstatic __attribute__ ((__unused__))
96# define SWIGINTERNstatic __attribute__ ((__unused__)) static SWIGUNUSED__attribute__ ((__unused__))
97#endif
98
99/* internal inline SWIG method */
100#ifndef SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline
101# define SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline SWIGINTERNstatic __attribute__ ((__unused__)) SWIGINLINEinline
102#endif
103
104/* exporting methods */
105#if (__GNUC__4 >= 4) || (__GNUC__4 == 3 && __GNUC_MINOR__2 >= 4)
106# ifndef GCC_HASCLASSVISIBILITY
107# define GCC_HASCLASSVISIBILITY
108# endif
109#endif
110
111#ifndef SWIGEXPORT__attribute__ ((visibility("default")))
112# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
113# if defined(STATIC_LINKED)
114# define SWIGEXPORT__attribute__ ((visibility("default")))
115# else
116# define SWIGEXPORT__attribute__ ((visibility("default"))) __declspec(dllexport)
117# endif
118# else
119# if defined(__GNUC__4) && defined(GCC_HASCLASSVISIBILITY)
120# define SWIGEXPORT__attribute__ ((visibility("default"))) __attribute__ ((visibility("default")))
121# else
122# define SWIGEXPORT__attribute__ ((visibility("default")))
123# endif
124# endif
125#endif
126
127/* calling conventions for Windows */
128#ifndef SWIGSTDCALL
129# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
130# define SWIGSTDCALL __stdcall
131# else
132# define SWIGSTDCALL
133# endif
134#endif
135
136/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
137#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
138# define _CRT_SECURE_NO_DEPRECATE
139#endif
140
141/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
142#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
143# define _SCL_SECURE_NO_DEPRECATE
144#endif
145
146
147
148#if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG)
149/* Use debug wrappers with the Python release dll */
150# undef _DEBUG
151# include <Python.h>
152# define _DEBUG
153#else
154# include <Python.h>
155#endif
156
157/* -----------------------------------------------------------------------------
158 * swigrun.swg
159 *
160 * This file contains generic C API SWIG runtime support for pointer
161 * type checking.
162 * ----------------------------------------------------------------------------- */
163
164/* This should only be incremented when either the layout of swig_type_info changes,
165 or for whatever reason, the runtime changes incompatibly */
166#define SWIG_RUNTIME_VERSION"4" "4"
167
168/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
169#ifdef SWIG_TYPE_TABLE
170# define SWIG_QUOTE_STRING(x) #x
171# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
172# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
173#else
174# define SWIG_TYPE_TABLE_NAME
175#endif
176
177/*
178 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
179 creating a static or dynamic library from the SWIG runtime code.
180 In 99.9% of the cases, SWIG just needs to declare them as 'static'.
181
182 But only do this if strictly necessary, ie, if you have problems
183 with your compiler or suchlike.
184*/
185
186#ifndef SWIGRUNTIMEstatic __attribute__ ((__unused__))
187# define SWIGRUNTIMEstatic __attribute__ ((__unused__)) SWIGINTERNstatic __attribute__ ((__unused__))
188#endif
189
190#ifndef SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline
191# define SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline SWIGRUNTIMEstatic __attribute__ ((__unused__)) SWIGINLINEinline
192#endif
193
194/* Generic buffer size */
195#ifndef SWIG_BUFFER_SIZE1024
196# define SWIG_BUFFER_SIZE1024 1024
197#endif
198
199/* Flags for pointer conversions */
200#define SWIG_POINTER_DISOWN0x1 0x1
201#define SWIG_CAST_NEW_MEMORY0x2 0x2
202
203/* Flags for new pointer objects */
204#define SWIG_POINTER_OWN0x1 0x1
205
206
207/*
208 Flags/methods for returning states.
209
210 The SWIG conversion methods, as ConvertPtr, return an integer
211 that tells if the conversion was successful or not. And if not,
212 an error code can be returned (see swigerrors.swg for the codes).
213
214 Use the following macros/flags to set or process the returning
215 states.
216
217 In old versions of SWIG, code such as the following was usually written:
218
219 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
220 // success code
221 } else {
222 //fail code
223 }
224
225 Now you can be more explicit:
226
227 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
228 if (SWIG_IsOK(res)) {
229 // success code
230 } else {
231 // fail code
232 }
233
234 which is the same really, but now you can also do
235
236 Type *ptr;
237 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
238 if (SWIG_IsOK(res)) {
239 // success code
240 if (SWIG_IsNewObj(res) {
241 ...
242 delete *ptr;
243 } else {
244 ...
245 }
246 } else {
247 // fail code
248 }
249
250 I.e., now SWIG_ConvertPtr can return new objects and you can
251 identify the case and take care of the deallocation. Of course that
252 also requires SWIG_ConvertPtr to return new result values, such as
253
254 int SWIG_ConvertPtr(obj, ptr,...) {
255 if (<obj is ok>) {
256 if (<need new object>) {
257 *ptr = <ptr to new allocated object>;
258 return SWIG_NEWOBJ;
259 } else {
260 *ptr = <ptr to old object>;
261 return SWIG_OLDOBJ;
262 }
263 } else {
264 return SWIG_BADOBJ;
265 }
266 }
267
268 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
269 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
270 SWIG errors code.
271
272 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
273 allows to return the 'cast rank', for example, if you have this
274
275 int food(double)
276 int fooi(int);
277
278 and you call
279
280 food(1) // cast rank '1' (1 -> 1.0)
281 fooi(1) // cast rank '0'
282
283 just use the SWIG_AddCast()/SWIG_CheckState()
284*/
285
286#define SWIG_OK(0) (0)
287#define SWIG_ERROR(-1) (-1)
288#define SWIG_IsOK(r)(r >= 0) (r >= 0)
289#define SWIG_ArgError(r)((r != (-1)) ? r : -5) ((r != SWIG_ERROR(-1)) ? r : SWIG_TypeError-5)
290
291/* The CastRankLimit says how many bits are used for the cast rank */
292#define SWIG_CASTRANKLIMIT(1 << 8) (1 << 8)
293/* The NewMask denotes the object was created (using new/malloc) */
294#define SWIG_NEWOBJMASK((1 << 8) << 1) (SWIG_CASTRANKLIMIT(1 << 8) << 1)
295/* The TmpMask is for in/out typemaps that use temporal objects */
296#define SWIG_TMPOBJMASK(((1 << 8) << 1) << 1) (SWIG_NEWOBJMASK((1 << 8) << 1) << 1)
297/* Simple returning values */
298#define SWIG_BADOBJ((-1)) (SWIG_ERROR(-1))
299#define SWIG_OLDOBJ((0)) (SWIG_OK(0))
300#define SWIG_NEWOBJ((0) | ((1 << 8) << 1)) (SWIG_OK(0) | SWIG_NEWOBJMASK((1 << 8) << 1))
301#define SWIG_TMPOBJ((0) | (((1 << 8) << 1) << 1)) (SWIG_OK(0) | SWIG_TMPOBJMASK(((1 << 8) << 1) << 1))
302/* Check, add and del mask methods */
303#define SWIG_AddNewMask(r)((r >= 0) ? (r | ((1 << 8) << 1)) : r) (SWIG_IsOK(r)(r >= 0) ? (r | SWIG_NEWOBJMASK((1 << 8) << 1)) : r)
304#define SWIG_DelNewMask(r)((r >= 0) ? (r & ~((1 << 8) << 1)) : r) (SWIG_IsOK(r)(r >= 0) ? (r & ~SWIG_NEWOBJMASK((1 << 8) << 1)) : r)
305#define SWIG_IsNewObj(r)((r >= 0) && (r & ((1 << 8) << 1))
)
(SWIG_IsOK(r)(r >= 0) && (r & SWIG_NEWOBJMASK((1 << 8) << 1)))
306#define SWIG_AddTmpMask(r)((r >= 0) ? (r | (((1 << 8) << 1) << 1))
: r)
(SWIG_IsOK(r)(r >= 0) ? (r | SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)) : r)
307#define SWIG_DelTmpMask(r)((r >= 0) ? (r & ~(((1 << 8) << 1) <<
1)) : r)
(SWIG_IsOK(r)(r >= 0) ? (r & ~SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)) : r)
308#define SWIG_IsTmpObj(r)((r >= 0) && (r & (((1 << 8) << 1)
<< 1)))
(SWIG_IsOK(r)(r >= 0) && (r & SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)))
309
310/* Cast-Rank Mode */
311#if defined(SWIG_CASTRANK_MODE)
312# ifndef SWIG_TypeRank
313# define SWIG_TypeRank unsigned long
314# endif
315# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
316# define SWIG_MAXCASTRANK (2)
317# endif
318# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT(1 << 8)) -1)
319# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
320SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int SWIG_AddCast(int r)(int r) {
321 return SWIG_IsOK(r)(r >= 0) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR(-1)) : r;
322}
323SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int SWIG_CheckState(int r)((int r >= 0) ? 1 : 0) {
324 return SWIG_IsOK(r)(r >= 0) ? SWIG_CastRank(r) + 1 : 0;
325}
326#else /* no cast-rank mode */
327# define SWIG_AddCast(r)(r) (r)
328# define SWIG_CheckState(r)((r >= 0) ? 1 : 0) (SWIG_IsOK(r)(r >= 0) ? 1 : 0)
329#endif
330
331
332#include <string.h>
333
334#ifdef __cplusplus199711L
335extern "C" {
336#endif
337
338typedef void *(*swig_converter_func)(void *, int *);
339typedef struct swig_type_info *(*swig_dycast_func)(void **);
340
341/* Structure to store information on one type */
342typedef struct swig_type_info {
343 const char *name; /* mangled name of this type */
344 const char *str; /* human readable name of this type */
345 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
346 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
347 void *clientdata; /* language specific type data */
348 int owndata; /* flag if the structure owns the clientdata */
349} swig_type_info;
350
351/* Structure to store a type and conversion function used for casting */
352typedef struct swig_cast_info {
353 swig_type_info *type; /* pointer to type that is equivalent to this type */
354 swig_converter_func converter; /* function to cast the void pointers */
355 struct swig_cast_info *next; /* pointer to next cast in linked list */
356 struct swig_cast_info *prev; /* pointer to the previous cast */
357} swig_cast_info;
358
359/* Structure used to store module information
360 * Each module generates one structure like this, and the runtime collects
361 * all of these structures and stores them in a circularly linked list.*/
362typedef struct swig_module_info {
363 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
364 size_t size; /* Number of types in this module */
365 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
366 swig_type_info **type_initial; /* Array of initially generated type structures */
367 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
368 void *clientdata; /* Language specific module data */
369} swig_module_info;
370
371/*
372 Compare two type names skipping the space characters, therefore
373 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
374
375 Return 0 when the two name types are equivalent, as in
376 strncmp, but skipping ' '.
377*/
378SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
379SWIG_TypeNameComp(const char *f1, const char *l1,
380 const char *f2, const char *l2) {
381 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
382 while ((*f1 == ' ') && (f1 != l1)) ++f1;
383 while ((*f2 == ' ') && (f2 != l2)) ++f2;
384 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
385 }
386 return (int)((l1 - f1) - (l2 - f2));
387}
388
389/*
390 Check type equivalence in a name list like <name1>|<name2>|...
391 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
392*/
393SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
394SWIG_TypeCmp(const char *nb, const char *tb) {
395 int equiv = 1;
396 const char* te = tb + strlen(tb);
397 const char* ne = nb;
398 while (equiv != 0 && *ne) {
399 for (nb = ne; *ne; ++ne) {
400 if (*ne == '|') break;
401 }
402 equiv = SWIG_TypeNameComp(nb, ne, tb, te);
403 if (*ne) ++ne;
404 }
405 return equiv;
406}
407
408/*
409 Check type equivalence in a name list like <name1>|<name2>|...
410 Return 0 if not equal, 1 if equal
411*/
412SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
413SWIG_TypeEquiv(const char *nb, const char *tb) {
414 return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
415}
416
417/*
418 Check the typename
419*/
420SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_cast_info *
421SWIG_TypeCheck(const char *c, swig_type_info *ty) {
422 if (ty) {
423 swig_cast_info *iter = ty->cast;
424 while (iter) {
425 if (strcmp(iter->type->name, c) == 0) {
426 if (iter == ty->cast)
427 return iter;
428 /* Move iter to the top of the linked list */
429 iter->prev->next = iter->next;
430 if (iter->next)
431 iter->next->prev = iter->prev;
432 iter->next = ty->cast;
433 iter->prev = 0;
434 if (ty->cast) ty->cast->prev = iter;
435 ty->cast = iter;
436 return iter;
437 }
438 iter = iter->next;
439 }
440 }
441 return 0;
442}
443
444/*
445 Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
446*/
447SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_cast_info *
448SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
449 if (ty) {
450 swig_cast_info *iter = ty->cast;
451 while (iter) {
452 if (iter->type == from) {
453 if (iter == ty->cast)
454 return iter;
455 /* Move iter to the top of the linked list */
456 iter->prev->next = iter->next;
457 if (iter->next)
458 iter->next->prev = iter->prev;
459 iter->next = ty->cast;
460 iter->prev = 0;
461 if (ty->cast) ty->cast->prev = iter;
462 ty->cast = iter;
463 return iter;
464 }
465 iter = iter->next;
466 }
467 }
468 return 0;
469}
470
471/*
472 Cast a pointer up an inheritance hierarchy
473*/
474SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline void *
475SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
476 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
477}
478
479/*
480 Dynamic pointer casting. Down an inheritance hierarchy
481*/
482SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
483SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
484 swig_type_info *lastty = ty;
485 if (!ty || !ty->dcast) return ty;
486 while (ty && (ty->dcast)) {
487 ty = (*ty->dcast)(ptr);
488 if (ty) lastty = ty;
489 }
490 return lastty;
491}
492
493/*
494 Return the name associated with this type
495*/
496SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline const char *
497SWIG_TypeName(const swig_type_info *ty) {
498 return ty->name;
499}
500
501/*
502 Return the pretty name associated with this type,
503 that is an unmangled type name in a form presentable to the user.
504*/
505SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
506SWIG_TypePrettyName(const swig_type_info *type) {
507 /* The "str" field contains the equivalent pretty names of the
508 type, separated by vertical-bar characters. We choose
509 to print the last name, as it is often (?) the most
510 specific. */
511 if (!type) return NULL__null;
512 if (type->str != NULL__null) {
513 const char *last_name = type->str;
514 const char *s;
515 for (s = type->str; *s; s++)
516 if (*s == '|') last_name = s+1;
517 return last_name;
518 }
519 else
520 return type->name;
521}
522
523/*
524 Set the clientdata field for a type
525*/
526SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
527SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
528 swig_cast_info *cast = ti->cast;
529 /* if (ti->clientdata == clientdata) return; */
530 ti->clientdata = clientdata;
531
532 while (cast) {
533 if (!cast->converter) {
534 swig_type_info *tc = cast->type;
535 if (!tc->clientdata) {
536 SWIG_TypeClientData(tc, clientdata);
537 }
538 }
539 cast = cast->next;
540 }
541}
542SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
543SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
544 SWIG_TypeClientData(ti, clientdata);
545 ti->owndata = 1;
546}
547
548/*
549 Search for a swig_type_info structure only by mangled name
550 Search is a O(log #types)
551
552 We start searching at module start, and finish searching when start == end.
553 Note: if start == end at the beginning of the function, we go all the way around
554 the circular list.
555*/
556SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
557SWIG_MangledTypeQueryModule(swig_module_info *start,
558 swig_module_info *end,
559 const char *name) {
560 swig_module_info *iter = start;
561 do {
562 if (iter->size) {
563 register size_t l = 0;
564 register size_t r = iter->size - 1;
565 do {
566 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
567 register size_t i = (l + r) >> 1;
568 const char *iname = iter->types[i]->name;
569 if (iname) {
570 register int compare = strcmp(name, iname);
571 if (compare == 0) {
572 return iter->types[i];
573 } else if (compare < 0) {
574 if (i) {
575 r = i - 1;
576 } else {
577 break;
578 }
579 } else if (compare > 0) {
580 l = i + 1;
581 }
582 } else {
583 break; /* should never happen */
584 }
585 } while (l <= r);
586 }
587 iter = iter->next;
588 } while (iter != end);
589 return 0;
590}
591
592/*
593 Search for a swig_type_info structure for either a mangled name or a human readable name.
594 It first searches the mangled names of the types, which is a O(log #types)
595 If a type is not found it then searches the human readable names, which is O(#types).
596
597 We start searching at module start, and finish searching when start == end.
598 Note: if start == end at the beginning of the function, we go all the way around
599 the circular list.
600*/
601SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
602SWIG_TypeQueryModule(swig_module_info *start,
603 swig_module_info *end,
604 const char *name) {
605 /* STEP 1: Search the name field using binary search */
606 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
607 if (ret) {
608 return ret;
609 } else {
610 /* STEP 2: If the type hasn't been found, do a complete search
611 of the str field (the human readable name) */
612 swig_module_info *iter = start;
613 do {
614 register size_t i = 0;
615 for (; i < iter->size; ++i) {
616 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
617 return iter->types[i];
618 }
619 iter = iter->next;
620 } while (iter != end);
621 }
622
623 /* neither found a match */
624 return 0;
625}
626
627/*
628 Pack binary data into a string
629*/
630SWIGRUNTIMEstatic __attribute__ ((__unused__)) char *
631SWIG_PackData(char *c, void *ptr, size_t sz) {
632 static const char hex[17] = "0123456789abcdef";
633 register const unsigned char *u = (unsigned char *) ptr;
634 register const unsigned char *eu = u + sz;
635 for (; u != eu; ++u) {
636 register unsigned char uu = *u;
637 *(c++) = hex[(uu & 0xf0) >> 4];
638 *(c++) = hex[uu & 0xf];
639 }
640 return c;
641}
642
643/*
644 Unpack binary data from a string
645*/
646SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
647SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
648 register unsigned char *u = (unsigned char *) ptr;
649 register const unsigned char *eu = u + sz;
650 for (; u != eu; ++u) {
651 register char d = *(c++);
652 register unsigned char uu;
653 if ((d >= '0') && (d <= '9'))
654 uu = ((d - '0') << 4);
655 else if ((d >= 'a') && (d <= 'f'))
656 uu = ((d - ('a'-10)) << 4);
657 else
658 return (char *) 0;
659 d = *(c++);
660 if ((d >= '0') && (d <= '9'))
661 uu |= (d - '0');
662 else if ((d >= 'a') && (d <= 'f'))
663 uu |= (d - ('a'-10));
664 else
665 return (char *) 0;
666 *u = uu;
667 }
668 return c;
669}
670
671/*
672 Pack 'void *' into a string buffer.
673*/
674SWIGRUNTIMEstatic __attribute__ ((__unused__)) char *
675SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
676 char *r = buff;
677 if ((2*sizeof(void *) + 2) > bsz) return 0;
678 *(r++) = '_';
679 r = SWIG_PackData(r,&ptr,sizeof(void *));
680 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
681 strcpy(r,name);
682 return buff;
683}
684
685SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
686SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
687 if (*c != '_') {
688 if (strcmp(c,"NULL") == 0) {
689 *ptr = (void *) 0;
690 return name;
691 } else {
692 return 0;
693 }
694 }
695 return SWIG_UnpackData(++c,ptr,sizeof(void *));
696}
697
698SWIGRUNTIMEstatic __attribute__ ((__unused__)) char *
699SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
700 char *r = buff;
701 size_t lname = (name ? strlen(name) : 0);
702 if ((2*sz + 2 + lname) > bsz) return 0;
703 *(r++) = '_';
704 r = SWIG_PackData(r,ptr,sz);
705 if (lname) {
706 strncpy(r,name,lname+1);
707 } else {
708 *r = 0;
709 }
710 return buff;
711}
712
713SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
714SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
715 if (*c != '_') {
716 if (strcmp(c,"NULL") == 0) {
717 memset(ptr,0,sz);
718 return name;
719 } else {
720 return 0;
721 }
722 }
723 return SWIG_UnpackData(++c,ptr,sz);
724}
725
726#ifdef __cplusplus199711L
727}
728#endif
729
730/* Errors in SWIG */
731#define SWIG_UnknownError-1 -1
732#define SWIG_IOError-2 -2
733#define SWIG_RuntimeError-3 -3
734#define SWIG_IndexError-4 -4
735#define SWIG_TypeError-5 -5
736#define SWIG_DivisionByZero-6 -6
737#define SWIG_OverflowError-7 -7
738#define SWIG_SyntaxError-8 -8
739#define SWIG_ValueError-9 -9
740#define SWIG_SystemError-10 -10
741#define SWIG_AttributeError-11 -11
742#define SWIG_MemoryError-12 -12
743#define SWIG_NullReferenceError-13 -13
744
745
746
747/* Compatibility macros for Python 3 */
748#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
749
750#define PyClass_Check(obj)((obj)->ob_type == &PyClass_Type) PyObject_IsInstance(obj, (PyObject *)&PyType_Type)
751#define PyInt_Check(x)((((x)->ob_type)->tp_flags & ((1L<<23))) != 0
)
PyLong_Check(x)((((((PyObject*)(x))->ob_type))->tp_flags & ((1L<<
24))) != 0)
752#define PyInt_AsLong(x) PyLong_AsLong(x)
753#define PyInt_FromLong(x) PyLong_FromLong(x)
754#define PyInt_FromSize_t(x) PyLong_FromSize_t(x)
755#define PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<27))) != 0)
PyBytes_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<27))) != 0)
756#define PyString_FromString(x) PyUnicode_FromStringPyUnicodeUCS2_FromString(x)
757#define PyString_Format(fmt, args) PyUnicode_FormatPyUnicodeUCS2_Format(fmt, args)
758#define PyString_AsString(str) PyBytes_AsStringPyString_AsString(str)
759#define PyString_Size(str) PyBytes_SizePyString_Size(str)
760#define PyString_InternFromString(key) PyUnicode_InternFromString(key)
761#define Py_TPFLAGS_HAVE_CLASS(1L<<8) Py_TPFLAGS_BASETYPE(1L<<10)
762#define PyString_AS_STRING(x)(((PyStringObject *)(x))->ob_sval) PyUnicode_AS_STRING(x)
763#define _PyLong_FromSsize_tPyLong_FromSsize_t(x) PyLong_FromSsize_t(x)
764
765#endif
766
767#ifndef Py_TYPE
768# define Py_TYPE(op)(((PyObject*)(op))->ob_type) ((op)->ob_type)
769#endif
770
771/* SWIG APIs for compatibility of both Python 2 & 3 */
772
773#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
774# define SWIG_Python_str_FromFormatPyString_FromFormat PyUnicode_FromFormatPyUnicodeUCS2_FromFormat
775#else
776# define SWIG_Python_str_FromFormatPyString_FromFormat PyString_FromFormat
777#endif
778
779
780/* Warning: This function will allocate a new string in Python 3,
781 * so please call SWIG_Python_str_DelForPy3(x) to free the space.
782 */
783SWIGINTERNstatic __attribute__ ((__unused__)) char*
784SWIG_Python_str_AsChar(PyObject *str)
785{
786#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
787 char *cstr;
788 char *newstr;
789 Py_ssize_t len;
790 str = PyUnicode_AsUTF8StringPyUnicodeUCS2_AsUTF8String(str);
791 PyBytes_AsStringAndSizePyString_AsStringAndSize(str, &cstr, &len);
792 newstr = (char *) malloc(len+1);
793 memcpy(newstr, cstr, len+1);
794 Py_XDECREF(str)do { if ((str) == __null) ; else do { if ( --((PyObject*)(str
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
str)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)
(str)))); } while (0); } while (0)
;
795 return newstr;
796#else
797 return PyString_AsString(str);
798#endif
799}
800
801#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
802# define SWIG_Python_str_DelForPy3(x) free( (void*) (x) )
803#else
804# define SWIG_Python_str_DelForPy3(x)
805#endif
806
807
808SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
809SWIG_Python_str_FromChar(const char *c)
810{
811#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
812 return PyUnicode_FromStringPyUnicodeUCS2_FromString(c);
813#else
814 return PyString_FromString(c);
815#endif
816}
817
818/* Add PyOS_snprintf for old Pythons */
819#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
820# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
821# define PyOS_snprintf _snprintf
822# else
823# define PyOS_snprintf snprintf
824# endif
825#endif
826
827/* A crude PyString_FromFormat implementation for old Pythons */
828#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
829
830#ifndef SWIG_PYBUFFER_SIZE
831# define SWIG_PYBUFFER_SIZE 1024
832#endif
833
834static PyObject *
835PyString_FromFormat(const char *fmt, ...) {
836 va_list ap;
837 char buf[SWIG_PYBUFFER_SIZE * 2];
838 int res;
839 va_start(ap, fmt)__builtin_va_start(ap, fmt);
840 res = vsnprintf(buf, sizeof(buf), fmt, ap);
841 va_end(ap)__builtin_va_end(ap);
842 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
843}
844#endif
845
846/* Add PyObject_Del for old Pythons */
847#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x01060000
848# define PyObject_DelPyObject_Free(op) PyMem_DELfree((op))
849#endif
850#ifndef PyObject_DELPyObject_Free
851# define PyObject_DELPyObject_Free PyObject_DelPyObject_Free
852#endif
853
854/* A crude PyExc_StopIteration exception for old Pythons */
855#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
856# ifndef PyExc_StopIteration
857# define PyExc_StopIteration PyExc_RuntimeError
858# endif
859# ifndef PyObject_GenericGetAttr
860# define PyObject_GenericGetAttr 0
861# endif
862#endif
863
864/* Py_NotImplemented is defined in 2.1 and up. */
865#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02010000
866# ifndef Py_NotImplemented(&_Py_NotImplementedStruct)
867# define Py_NotImplemented(&_Py_NotImplementedStruct) PyExc_RuntimeError
868# endif
869#endif
870
871/* A crude PyString_AsStringAndSize implementation for old Pythons */
872#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02010000
873# ifndef PyString_AsStringAndSize
874# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
875# endif
876#endif
877
878/* PySequence_Size for old Pythons */
879#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02000000
880# ifndef PySequence_Size
881# define PySequence_Size PySequence_LengthPySequence_Size
882# endif
883#endif
884
885/* PyBool_FromLong for old Pythons */
886#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
887static
888PyObject *PyBool_FromLong(long ok)
889{
890 PyObject *result = ok ? Py_True((PyObject *) &_Py_TrueStruct) : Py_False((PyObject *) &_Py_ZeroStruct);
891 Py_INCREF(result)( ((PyObject*)(result))->ob_refcnt++);
892 return result;
893}
894#endif
895
896/* Py_ssize_t for old Pythons */
897/* This code is as recommended by: */
898/* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */
899#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02050000 && !defined(PY_SSIZE_T_MIN(-((Py_ssize_t)(((size_t)-1)>>1))-1))
900typedef int Py_ssize_t;
901# define PY_SSIZE_T_MAX((Py_ssize_t)(((size_t)-1)>>1)) INT_MAX2147483647
902# define PY_SSIZE_T_MIN(-((Py_ssize_t)(((size_t)-1)>>1))-1) INT_MIN(-2147483647 -1)
903typedef inquiry lenfunc;
904typedef intargfunc ssizeargfunc;
905typedef intintargfunc ssizessizeargfunc;
906typedef intobjargproc ssizeobjargproc;
907typedef intintobjargproc ssizessizeobjargproc;
908typedef getreadbufferproc readbufferproc;
909typedef getwritebufferproc writebufferproc;
910typedef getsegcountproc segcountproc;
911typedef getcharbufferproc charbufferproc;
912static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc))
913{
914 long result = 0;
915 PyObject *i = PyNumber_Int(x);
916 if (i) {
917 result = PyInt_AsLong(i);
918 Py_DECREF(i)do { if ( --((PyObject*)(i))->ob_refcnt != 0) ; else ( (*(
((PyObject*)((PyObject *)(i)))->ob_type)->tp_dealloc)((
PyObject *)((PyObject *)(i)))); } while (0)
;
919 }
920 return result;
921}
922#endif
923
924#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02050000
925#define PyInt_FromSize_t(x) PyInt_FromLong((long)x)
926#endif
927
928#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02040000
929#define Py_VISIT(op)do { if (op) { int vret = visit((PyObject *)(op), arg); if (vret
) return vret; } } while (0)
\
930 do { \
931 if (op) { \
932 int vret = visit((op), arg); \
933 if (vret) \
934 return vret; \
935 } \
936 } while (0)
937#endif
938
939#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
940typedef struct {
941 PyTypeObject type;
942 PyNumberMethods as_number;
943 PyMappingMethods as_mapping;
944 PySequenceMethods as_sequence;
945 PyBufferProcs as_buffer;
946 PyObject *name, *slots;
947} PyHeapTypeObject;
948#endif
949
950#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
951typedef destructor freefunc;
952#endif
953
954#if ((PY_MAJOR_VERSION2 == 2 && PY_MINOR_VERSION7 > 6) || \
955 (PY_MAJOR_VERSION2 == 3 && PY_MINOR_VERSION7 > 0) || \
956 (PY_MAJOR_VERSION2 > 3))
957# define SWIGPY_USE_CAPSULE
958# define SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ) ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4" ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME)
959#endif
960
961#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03020000
962#define PyDescr_TYPE(x)(((PyDescrObject *)(x))->d_type) (((PyDescrObject *)(x))->d_type)
963#define PyDescr_NAME(x)(((PyDescrObject *)(x))->d_name) (((PyDescrObject *)(x))->d_name)
964#endif
965
966/* -----------------------------------------------------------------------------
967 * error manipulation
968 * ----------------------------------------------------------------------------- */
969
970SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
971SWIG_Python_ErrorType(int code) {
972 PyObject* type = 0;
973 switch(code) {
974 case SWIG_MemoryError-12:
975 type = PyExc_MemoryError;
976 break;
977 case SWIG_IOError-2:
978 type = PyExc_IOError;
979 break;
980 case SWIG_RuntimeError-3:
981 type = PyExc_RuntimeError;
982 break;
983 case SWIG_IndexError-4:
984 type = PyExc_IndexError;
985 break;
986 case SWIG_TypeError-5:
987 type = PyExc_TypeError;
988 break;
989 case SWIG_DivisionByZero-6:
990 type = PyExc_ZeroDivisionError;
991 break;
992 case SWIG_OverflowError-7:
993 type = PyExc_OverflowError;
994 break;
995 case SWIG_SyntaxError-8:
996 type = PyExc_SyntaxError;
997 break;
998 case SWIG_ValueError-9:
999 type = PyExc_ValueError;
1000 break;
1001 case SWIG_SystemError-10:
1002 type = PyExc_SystemError;
1003 break;
1004 case SWIG_AttributeError-11:
1005 type = PyExc_AttributeError;
1006 break;
1007 default:
1008 type = PyExc_RuntimeError;
1009 }
1010 return type;
1011}
1012
1013
1014SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
1015SWIG_Python_AddErrorMsg(const char* mesg)
1016{
1017 PyObject *type = 0;
1018 PyObject *value = 0;
1019 PyObject *traceback = 0;
1020
1021 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
1022 if (value) {
1023 char *tmp;
1024 PyObject *old_str = PyObject_Str(value);
1025 PyErr_Clear();
1026 Py_XINCREF(type)do { if ((type) == __null) ; else ( ((PyObject*)(type))->ob_refcnt
++); } while (0)
;
1027
1028 PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
1029 SWIG_Python_str_DelForPy3(tmp);
1030 Py_DECREF(old_str)do { if ( --((PyObject*)(old_str))->ob_refcnt != 0) ; else
( (*(((PyObject*)((PyObject *)(old_str)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(old_str)))); } while (0)
;
1031 Py_DECREF(value)do { if ( --((PyObject*)(value))->ob_refcnt != 0) ; else (
(*(((PyObject*)((PyObject *)(value)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(value)))); } while (0)
;
1032 } else {
1033 PyErr_SetString(PyExc_RuntimeError, mesg);
1034 }
1035}
1036
1037#if defined(SWIG_PYTHON_NO_THREADS)
1038# if defined(SWIG_PYTHON_THREADS)
1039# undef SWIG_PYTHON_THREADS
1040# endif
1041#endif
1042#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
1043# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
1044# if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
1045# define SWIG_PYTHON_USE_GIL
1046# endif
1047# endif
1048# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
1049# ifndef SWIG_PYTHON_INITIALIZE_THREADS
1050# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
1051# endif
1052# ifdef __cplusplus199711L /* C++ code */
1053 class SWIG_Python_Thread_Block {
1054 bool status;
1055 PyGILState_STATE state;
1056 public:
1057 void end() { if (status) { PyGILState_Release(state); status = false;} }
1058 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
1059 ~SWIG_Python_Thread_Block() { end(); }
1060 };
1061 class SWIG_Python_Thread_Allow {
1062 bool status;
1063 PyThreadState *save;
1064 public:
1065 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
1066 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
1067 ~SWIG_Python_Thread_Allow() { end(); }
1068 };
1069# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
1070# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
1071# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
1072# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
1073# else /* C code */
1074# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
1075# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
1076# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
1077# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
1078# endif
1079# else /* Old thread way, not implemented, user must provide it */
1080# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
1081# define SWIG_PYTHON_INITIALIZE_THREADS
1082# endif
1083# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
1084# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1085# endif
1086# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
1087# define SWIG_PYTHON_THREAD_END_BLOCK
1088# endif
1089# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
1090# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1091# endif
1092# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
1093# define SWIG_PYTHON_THREAD_END_ALLOW
1094# endif
1095# endif
1096#else /* No thread support */
1097# define SWIG_PYTHON_INITIALIZE_THREADS
1098# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
1099# define SWIG_PYTHON_THREAD_END_BLOCK
1100# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
1101# define SWIG_PYTHON_THREAD_END_ALLOW
1102#endif
1103
1104/* -----------------------------------------------------------------------------
1105 * Python API portion that goes into the runtime
1106 * ----------------------------------------------------------------------------- */
1107
1108#ifdef __cplusplus199711L
1109extern "C" {
1110#endif
1111
1112/* -----------------------------------------------------------------------------
1113 * Constant declarations
1114 * ----------------------------------------------------------------------------- */
1115
1116/* Constant Types */
1117#define SWIG_PY_POINTER4 4
1118#define SWIG_PY_BINARY5 5
1119
1120/* Constant information structure */
1121typedef struct swig_const_info {
1122 int type;
1123 char *name;
1124 long lvalue;
1125 double dvalue;
1126 void *pvalue;
1127 swig_type_info **ptype;
1128} swig_const_info;
1129
1130
1131/* -----------------------------------------------------------------------------
1132 * Wrapper of PyInstanceMethod_New() used in Python 3
1133 * It is exported to the generated module, used for -fastproxy
1134 * ----------------------------------------------------------------------------- */
1135#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1136SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func)
1137{
1138 return PyInstanceMethod_New(func);
1139}
1140#else
1141SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(func))
1142{
1143 return NULL__null;
1144}
1145#endif
1146
1147#ifdef __cplusplus199711L
1148}
1149#endif
1150
1151
1152/* -----------------------------------------------------------------------------
1153 * pyrun.swg
1154 *
1155 * This file contains the runtime support for Python modules
1156 * and includes code for managing global variables and pointer
1157 * type checking.
1158 *
1159 * ----------------------------------------------------------------------------- */
1160
1161/* Common SWIG API */
1162
1163/* for raw pointers */
1164#define SWIG_Python_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1165#define SWIG_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) SWIG_Python_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1166#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
1167
1168#ifdef SWIGPYTHON_BUILTIN
1169#define SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags)
1170#else
1171#define SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_Python_NewPointerObj(NULL__null, ptr, type, flags)
1172#endif
1173
1174#define SWIG_InternalNewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_Python_NewPointerObj(NULL__null, ptr, type, flags)
1175
1176#define SWIG_CheckImplicit(ty)SWIG_Python_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
1177#define SWIG_AcquirePtr(ptr, src)SWIG_Python_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
1178#define swig_owntypeint int
1179
1180/* for raw packed data */
1181#define SWIG_ConvertPacked(obj, ptr, sz, ty)SWIG_Python_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1182#define SWIG_NewPackedObj(ptr, sz, type)SWIG_Python_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1183
1184/* for class or struct pointers */
1185#define SWIG_ConvertInstance(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) SWIG_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1186#define SWIG_NewInstanceObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags)
1187
1188/* for C or C++ function pointers */
1189#define SWIG_ConvertFunctionPtr(obj, pptr, type)SWIG_Python_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1190#define SWIG_NewFunctionPtrObj(ptr, type)SWIG_Python_NewPointerObj(__null, ptr, type, 0) SWIG_Python_NewPointerObj(NULL__null, ptr, type, 0)
1191
1192/* for C++ member pointers, ie, member methods */
1193#define SWIG_ConvertMember(obj, ptr, sz, ty)SWIG_Python_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1194#define SWIG_NewMemberObj(ptr, sz, type)SWIG_Python_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1195
1196
1197/* Runtime API */
1198
1199#define SWIG_GetModule(clientdata)SWIG_Python_GetModule(clientdata) SWIG_Python_GetModule(clientdata)
1200#define SWIG_SetModule(clientdata, pointer)SWIG_Python_SetModule(pointer) SWIG_Python_SetModule(pointer)
1201#define SWIG_NewClientData(obj)SwigPyClientData_New(obj) SwigPyClientData_New(obj)
1202
1203#define SWIG_SetErrorObjSWIG_Python_SetErrorObj SWIG_Python_SetErrorObj
1204#define SWIG_SetErrorMsgSWIG_Python_SetErrorMsg SWIG_Python_SetErrorMsg
1205#define SWIG_ErrorType(code)SWIG_Python_ErrorType(code) SWIG_Python_ErrorType(code)
1206#define SWIG_Error(code, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code)SWIG_Python_ErrorType(code), msg)
1207#define SWIG_failgoto fail goto fail
1208
1209
1210/* Runtime API implementation */
1211
1212/* Error manipulation */
1213
1214SWIGINTERNstatic __attribute__ ((__unused__)) void
1215SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1216 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1217 PyErr_SetObject(errtype, obj);
1218 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
1219 SWIG_PYTHON_THREAD_END_BLOCK;
1220}
1221
1222SWIGINTERNstatic __attribute__ ((__unused__)) void
1223SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1224 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1225 PyErr_SetString(errtype, msg);
1226 SWIG_PYTHON_THREAD_END_BLOCK;
1227}
1228
1229#define SWIG_Python_Raise(obj, type, desc)SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1230
1231/* Set a constant value */
1232
1233#if defined(SWIGPYTHON_BUILTIN)
1234
1235SWIGINTERNstatic __attribute__ ((__unused__)) void
1236SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) {
1237 PyObject *s = PyString_InternFromString(key);
1238 PyList_Append(seq, s);
1239 Py_DECREF(s)do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(
((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((
PyObject *)((PyObject *)(s)))); } while (0)
;
1240}
1241
1242SWIGINTERNstatic __attribute__ ((__unused__)) void
1243SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) {
1244#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
1245 PyDict_SetItemString(d, (char *)name, obj);
1246#else
1247 PyDict_SetItemString(d, name, obj);
1248#endif
1249 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
1250 if (public_interface)
1251 SwigPyBuiltin_AddPublicSymbol(public_interface, name);
1252}
1253
1254#else
1255
1256SWIGINTERNstatic __attribute__ ((__unused__)) void
1257SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1258#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
1259 PyDict_SetItemString(d, (char *)name, obj);
1260#else
1261 PyDict_SetItemString(d, name, obj);
1262#endif
1263 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
1264}
1265
1266#endif
1267
1268/* Append a value to the result obj */
1269
1270SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
1271SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1272#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1273 if (!result) {
1274 result = obj;
1275 } else if (result == Py_None(&_Py_NoneStruct)) {
1276 Py_DECREF(result)do { if ( --((PyObject*)(result))->ob_refcnt != 0) ; else (
(*(((PyObject*)((PyObject *)(result)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(result)))); } while (0)
;
1277 result = obj;
1278 } else {
1279 if (!PyList_Check(result)((((((PyObject*)(result))->ob_type))->tp_flags & ((
1L<<25))) != 0)
) {
1280 PyObject *o2 = result;
1281 result = PyList_New(1);
1282 PyList_SetItem(result, 0, o2);
1283 }
1284 PyList_Append(result,obj);
1285 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
1286 }
1287 return result;
1288#else
1289 PyObject* o2;
1290 PyObject* o3;
1291 if (!result) {
1292 result = obj;
1293 } else if (result == Py_None(&_Py_NoneStruct)) {
1294 Py_DECREF(result)do { if ( --((PyObject*)(result))->ob_refcnt != 0) ; else (
(*(((PyObject*)((PyObject *)(result)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(result)))); } while (0)
;
1295 result = obj;
1296 } else {
1297 if (!PyTuple_Check(result)((((((PyObject*)(result))->ob_type))->tp_flags & ((
1L<<26))) != 0)
) {
1298 o2 = result;
1299 result = PyTuple_New(1);
1300 PyTuple_SET_ITEM(result, 0, o2)(((PyTupleObject *)(result))->ob_item[0] = o2);
1301 }
1302 o3 = PyTuple_New(1);
1303 PyTuple_SET_ITEM(o3, 0, obj)(((PyTupleObject *)(o3))->ob_item[0] = obj);
1304 o2 = result;
1305 result = PySequence_Concat(o2, o3);
1306 Py_DECREF(o2)do { if ( --((PyObject*)(o2))->ob_refcnt != 0) ; else ( (*
(((PyObject*)((PyObject *)(o2)))->ob_type)->tp_dealloc)
((PyObject *)((PyObject *)(o2)))); } while (0)
;
1307 Py_DECREF(o3)do { if ( --((PyObject*)(o3))->ob_refcnt != 0) ; else ( (*
(((PyObject*)((PyObject *)(o3)))->ob_type)->tp_dealloc)
((PyObject *)((PyObject *)(o3)))); } while (0)
;
1308 }
1309 return result;
1310#endif
1311}
1312
1313/* Unpack the argument tuple */
1314
1315SWIGINTERNstatic __attribute__ ((__unused__)) int
1316SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
1317{
1318 if (!args) {
1319 if (!min && !max) {
1320 return 1;
1321 } else {
1322 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1323 name, (min == max ? "" : "at least "), (int)min);
1324 return 0;
1325 }
1326 }
1327 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) {
1328 if (min <= 1 && max >= 1) {
1329 register int i;
1330 objs[0] = args;
1331 for (i = 1; i < max; ++i) {
1332 objs[i] = 0;
1333 }
1334 return 2;
1335 }
1336 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1337 return 0;
1338 } else {
1339 register Py_ssize_t l = PyTuple_GET_SIZE(args)(((PyVarObject*)(args))->ob_size);
1340 if (l < min) {
1341 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1342 name, (min == max ? "" : "at least "), (int)min, (int)l);
1343 return 0;
1344 } else if (l > max) {
1345 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1346 name, (min == max ? "" : "at most "), (int)max, (int)l);
1347 return 0;
1348 } else {
1349 register int i;
1350 for (i = 0; i < l; ++i) {
1351 objs[i] = PyTuple_GET_ITEM(args, i)(((PyTupleObject *)(args))->ob_item[i]);
1352 }
1353 for (; l < max; ++l) {
1354 objs[l] = 0;
1355 }
1356 return i + 1;
1357 }
1358 }
1359}
1360
1361/* A functor is a function object with one single object argument */
1362#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000
1363#define SWIG_Python_CallFunctor(functor, obj)PyObject_CallFunctionObjArgs(functor, obj, __null); PyObject_CallFunctionObjArgs(functor, obj, NULL__null);
1364#else
1365#define SWIG_Python_CallFunctor(functor, obj)PyObject_CallFunctionObjArgs(functor, obj, __null); PyObject_CallFunction(functor, "O", obj);
1366#endif
1367
1368/*
1369 Helper for static pointer initialization for both C and C++ code, for example
1370 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1371*/
1372#ifdef __cplusplus199711L
1373#define SWIG_STATIC_POINTER(var)var var
1374#else
1375#define SWIG_STATIC_POINTER(var)var var = 0; if (!var) var
1376#endif
1377
1378/* -----------------------------------------------------------------------------
1379 * Pointer declarations
1380 * ----------------------------------------------------------------------------- */
1381
1382/* Flags for new pointer objects */
1383#define SWIG_POINTER_NOSHADOW(0x1 << 1) (SWIG_POINTER_OWN0x1 << 1)
1384#define SWIG_POINTER_NEW((0x1 << 1) | 0x1) (SWIG_POINTER_NOSHADOW(0x1 << 1) | SWIG_POINTER_OWN0x1)
1385
1386#define SWIG_POINTER_IMPLICIT_CONV(0x1 << 1) (SWIG_POINTER_DISOWN0x1 << 1)
1387
1388#define SWIG_BUILTIN_TP_INIT(0x1 << 2) (SWIG_POINTER_OWN0x1 << 2)
1389#define SWIG_BUILTIN_INIT((0x1 << 2) | 0x1) (SWIG_BUILTIN_TP_INIT(0x1 << 2) | SWIG_POINTER_OWN0x1)
1390
1391#ifdef __cplusplus199711L
1392extern "C" {
1393#endif
1394
1395/* How to access Py_None */
1396#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1397# ifndef SWIG_PYTHON_NO_BUILD_NONE
1398# ifndef SWIG_PYTHON_BUILD_NONE
1399# define SWIG_PYTHON_BUILD_NONE
1400# endif
1401# endif
1402#endif
1403
1404#ifdef SWIG_PYTHON_BUILD_NONE
1405# ifdef Py_None(&_Py_NoneStruct)
1406# undef Py_None(&_Py_NoneStruct)
1407# define Py_None(&_Py_NoneStruct) SWIG_Py_None()
1408# endif
1409SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
1410_SWIG_Py_None(void)
1411{
1412 PyObject *none = Py_BuildValue((char*)"");
1413 Py_DECREF(none)do { if ( --((PyObject*)(none))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(none)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(none)))); } while (0)
;
1414 return none;
1415}
1416SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1417SWIG_Py_None(void)
1418{
1419 static PyObject *SWIG_STATIC_POINTER(none)none = _SWIG_Py_None();
1420 return none;
1421}
1422#endif
1423
1424/* The python void return value */
1425
1426SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
1427SWIG_Py_Void(void)
1428{
1429 PyObject *none = Py_None(&_Py_NoneStruct);
1430 Py_INCREF(none)( ((PyObject*)(none))->ob_refcnt++);
1431 return none;
1432}
1433
1434/* SwigPyClientData */
1435
1436typedef struct {
1437 PyObject *klass;
1438 PyObject *newraw;
1439 PyObject *newargs;
1440 PyObject *destroy;
1441 int delargs;
1442 int implicitconv;
1443 PyTypeObject *pytype;
1444} SwigPyClientData;
1445
1446SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int
1447SWIG_Python_CheckImplicit(swig_type_info *ty)
1448{
1449 SwigPyClientData *data = (SwigPyClientData *)ty->clientdata;
1450 return data ? data->implicitconv : 0;
1451}
1452
1453SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
1454SWIG_Python_ExceptionType(swig_type_info *desc) {
1455 SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0;
1456 PyObject *klass = data ? data->klass : 0;
1457 return (klass ? klass : PyExc_RuntimeError);
1458}
1459
1460
1461SWIGRUNTIMEstatic __attribute__ ((__unused__)) SwigPyClientData *
1462SwigPyClientData_New(PyObject* obj)
1463{
1464 if (!obj) {
1465 return 0;
1466 } else {
1467 SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData));
1468 /* the klass element */
1469 data->klass = obj;
1470 Py_INCREF(data->klass)( ((PyObject*)(data->klass))->ob_refcnt++);
1471 /* the newraw method and newargs arguments used to create a new raw instance */
1472 if (PyClass_Check(obj)((obj)->ob_type == &PyClass_Type)) {
1473 data->newraw = 0;
1474 data->newargs = obj;
1475 Py_INCREF(obj)( ((PyObject*)(obj))->ob_refcnt++);
1476 } else {
1477#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000)
1478 data->newraw = 0;
1479#else
1480 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1481#endif
1482 if (data->newraw) {
1483 Py_INCREF(data->newraw)( ((PyObject*)(data->newraw))->ob_refcnt++);
1484 data->newargs = PyTuple_New(1);
1485 PyTuple_SetItem(data->newargs, 0, obj);
1486 } else {
1487 data->newargs = obj;
1488 }
1489 Py_INCREF(data->newargs)( ((PyObject*)(data->newargs))->ob_refcnt++);
1490 }
1491 /* the destroy method, aka as the C++ delete method */
1492 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1493 if (PyErr_Occurred()) {
1494 PyErr_Clear();
1495 data->destroy = 0;
1496 }
1497 if (data->destroy) {
1498 int flags;
1499 Py_INCREF(data->destroy)( ((PyObject*)(data->destroy))->ob_refcnt++);
1500 flags = PyCFunction_GET_FLAGS(data->destroy)(((PyCFunctionObject *)data->destroy) -> m_ml -> ml_flags
)
;
1501#ifdef METH_O0x0008
1502 data->delargs = !(flags & (METH_O0x0008));
1503#else
1504 data->delargs = 0;
1505#endif
1506 } else {
1507 data->delargs = 0;
1508 }
1509 data->implicitconv = 0;
1510 data->pytype = 0;
1511 return data;
1512 }
1513}
1514
1515SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
1516SwigPyClientData_Del(SwigPyClientData *data) {
1517 Py_XDECREF(data->newraw)do { if ((data->newraw) == __null) ; else do { if ( --((PyObject
*)(data->newraw))->ob_refcnt != 0) ; else ( (*(((PyObject
*)((PyObject *)(data->newraw)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(data->newraw)))); } while (0);
} while (0)
;
1518 Py_XDECREF(data->newargs)do { if ((data->newargs) == __null) ; else do { if ( --((PyObject
*)(data->newargs))->ob_refcnt != 0) ; else ( (*(((PyObject
*)((PyObject *)(data->newargs)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(data->newargs)))); } while (0)
; } while (0)
;
1519 Py_XDECREF(data->destroy)do { if ((data->destroy) == __null) ; else do { if ( --((PyObject
*)(data->destroy))->ob_refcnt != 0) ; else ( (*(((PyObject
*)((PyObject *)(data->destroy)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(data->destroy)))); } while (0)
; } while (0)
;
1520}
1521
1522/* =============== SwigPyObject =====================*/
1523
1524typedef struct {
1525 PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type;
1526 void *ptr;
1527 swig_type_info *ty;
1528 int own;
1529 PyObject *next;
1530#ifdef SWIGPYTHON_BUILTIN
1531 PyObject *dict;
1532#endif
1533} SwigPyObject;
1534
1535SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1536SwigPyObject_long(SwigPyObject *v)
1537{
1538 return PyLong_FromVoidPtr(v->ptr);
1539}
1540
1541SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1542SwigPyObject_format(const char* fmt, SwigPyObject *v)
1543{
1544 PyObject *res = NULL__null;
1545 PyObject *args = PyTuple_New(1);
1546 if (args) {
1547 if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) {
1548 PyObject *ofmt = SWIG_Python_str_FromChar(fmt);
1549 if (ofmt) {
1550#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1551 res = PyUnicode_FormatPyUnicodeUCS2_Format(ofmt,args);
1552#else
1553 res = PyString_Format(ofmt,args);
1554#endif
1555 Py_DECREF(ofmt)do { if ( --((PyObject*)(ofmt))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(ofmt)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(ofmt)))); } while (0)
;
1556 }
1557 Py_DECREF(args)do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(args)))); } while (0)
;
1558 }
1559 }
1560 return res;
1561}
1562
1563SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1564SwigPyObject_oct(SwigPyObject *v)
1565{
1566 return SwigPyObject_format("%o",v);
1567}
1568
1569SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1570SwigPyObject_hex(SwigPyObject *v)
1571{
1572 return SwigPyObject_format("%x",v);
1573}
1574
1575SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1576#ifdef METH_NOARGS0x0004
1577SwigPyObject_repr(SwigPyObject *v)
1578#else
1579SwigPyObject_repr(SwigPyObject *v, PyObject *args)
1580#endif
1581{
1582 const char *name = SWIG_TypePrettyName(v->ty);
1583 PyObject *repr = SWIG_Python_str_FromFormatPyString_FromFormat("<Swig Object of type '%s' at %p>", (name ? name : "unknown"), (void *)v);
1584 if (v->next) {
1585# ifdef METH_NOARGS0x0004
1586 PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next);
1587# else
1588 PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args);
1589# endif
1590# if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1591 PyObject *joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(repr, nrep);
1592 Py_DecRef(repr);
1593 Py_DecRef(nrep);
1594 repr = joined;
1595# else
1596 PyString_ConcatAndDel(&repr,nrep);
1597# endif
1598 }
1599 return repr;
1600}
1601
1602SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
1603SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w)
1604{
1605 void *i = v->ptr;
1606 void *j = w->ptr;
1607 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1608}
1609
1610/* Added for Python 3.x, would it also be useful for Python 2.x? */
1611SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
1612SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
1613{
1614 PyObject* res;
1615 if( op != Py_EQ2 && op != Py_NE3 ) {
1616 Py_INCREF(Py_NotImplemented)( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt
++)
;
1617 return Py_NotImplemented(&_Py_NotImplementedStruct);
1618 }
1619 res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ2) ? 1 : 0);
1620 return res;
1621}
1622
1623
1624SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* SwigPyObject_TypeOnce(void);
1625
1626#ifdef SWIGPYTHON_BUILTIN
1627static swig_type_info *SwigPyObject_stype = 0;
1628SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
1629SwigPyObject_type(void) {
1630 SwigPyClientData *cd;
1631 assert(SwigPyObject_stype)((void)0);
1632 cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
1633 assert(cd)((void)0);
1634 assert(cd->pytype)((void)0);
1635 return cd->pytype;
1636}
1637#else
1638SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
1639SwigPyObject_type(void) {
1640 static PyTypeObject *SWIG_STATIC_POINTER(type)type = SwigPyObject_TypeOnce();
1641 return type;
1642}
1643#endif
1644
1645SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int
1646SwigPyObject_Check(PyObject *op) {
1647#ifdef SWIGPYTHON_BUILTIN
1648 PyTypeObject *target_tp = SwigPyObject_type();
1649 if (PyType_IsSubtype(op->ob_type, target_tp))
1650 return 1;
1651 return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0);
1652#else
1653 return (Py_TYPE(op)(((PyObject*)(op))->ob_type) == SwigPyObject_type())
1654 || (strcmp(Py_TYPE(op)(((PyObject*)(op))->ob_type)->tp_name,"SwigPyObject") == 0);
1655#endif
1656}
1657
1658SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1659SwigPyObject_New(void *ptr, swig_type_info *ty, int own);
1660
1661SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
1662SwigPyObject_dealloc(PyObject *v)
1663{
1664 SwigPyObject *sobj = (SwigPyObject *) v;
1665 PyObject *next = sobj->next;
1666 if (sobj->own == SWIG_POINTER_OWN0x1) {
1667 swig_type_info *ty = sobj->ty;
1668 SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
1669 PyObject *destroy = data ? data->destroy : 0;
1670 if (destroy) {
1671 /* destroy is always a VARARGS method */
1672 PyObject *res;
1673 if (data->delargs) {
1674 /* we need to create a temporary object to carry the destroy operation */
1675 PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
1676 res = SWIG_Python_CallFunctor(destroy, tmp)PyObject_CallFunctionObjArgs(destroy, tmp, __null);;
1677 Py_DECREF(tmp)do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(tmp)))); } while (0)
;
1678 } else {
1679 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy)(((PyCFunctionObject *)destroy) -> m_ml -> ml_meth);
1680 PyObject *mself = PyCFunction_GET_SELF(destroy)(((PyCFunctionObject *)destroy) -> m_self);
1681 res = ((*meth)(mself, v));
1682 }
1683 Py_XDECREF(res)do { if ((res) == __null) ; else do { if ( --((PyObject*)(res
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
res)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)
(res)))); } while (0); } while (0)
;
1684 }
1685#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1686 else {
1687 const char *name = SWIG_TypePrettyName(ty);
1688 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown"));
1689 }
1690#endif
1691 }
1692 Py_XDECREF(next)do { if ((next) == __null) ; else do { if ( --((PyObject*)(next
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
next)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *
)(next)))); } while (0); } while (0)
;
1693 PyObject_DELPyObject_Free(v);
1694}
1695
1696SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
1697SwigPyObject_append(PyObject* v, PyObject* next)
1698{
1699 SwigPyObject *sobj = (SwigPyObject *) v;
1700#ifndef METH_O0x0008
1701 PyObject *tmp = 0;
1702 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL__null;
1703 next = tmp;
1704#endif
1705 if (!SwigPyObject_Check(next)) {
1706 return NULL__null;
1707 }
1708 sobj->next = next;
1709 Py_INCREF(next)( ((PyObject*)(next))->ob_refcnt++);
1710 return SWIG_Py_Void();
1711}
1712
1713SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
1714#ifdef METH_NOARGS0x0004
1715SwigPyObject_next(PyObject* v)
1716#else
1717SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1718#endif
1719{
1720 SwigPyObject *sobj = (SwigPyObject *) v;
1721 if (sobj->next) {
1722 Py_INCREF(sobj->next)( ((PyObject*)(sobj->next))->ob_refcnt++);
1723 return sobj->next;
1724 } else {
1725 return SWIG_Py_Void();
1726 }
1727}
1728
1729SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
1730#ifdef METH_NOARGS0x0004
1731SwigPyObject_disown(PyObject *v)
1732#else
1733SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1734#endif
1735{
1736 SwigPyObject *sobj = (SwigPyObject *)v;
1737 sobj->own = 0;
1738 return SWIG_Py_Void();
1739}
1740
1741SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
1742#ifdef METH_NOARGS0x0004
1743SwigPyObject_acquire(PyObject *v)
1744#else
1745SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1746#endif
1747{
1748 SwigPyObject *sobj = (SwigPyObject *)v;
1749 sobj->own = SWIG_POINTER_OWN0x1;
1750 return SWIG_Py_Void();
1751}
1752
1753SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
1754SwigPyObject_own(PyObject *v, PyObject *args)
1755{
1756 PyObject *val = 0;
1757#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000)
1758 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1759#elif (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02050000)
1760 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1761#else
1762 if (!PyArg_UnpackTuple(args, "own", 0, 1, &val))
1763#endif
1764 {
1765 return NULL__null;
1766 }
1767 else
1768 {
1769 SwigPyObject *sobj = (SwigPyObject *)v;
1770 PyObject *obj = PyBool_FromLong(sobj->own);
1771 if (val) {
1772#ifdef METH_NOARGS0x0004
1773 if (PyObject_IsTrue(val)) {
1774 SwigPyObject_acquire(v);
1775 } else {
1776 SwigPyObject_disown(v);
1777 }
1778#else
1779 if (PyObject_IsTrue(val)) {
1780 SwigPyObject_acquire(v,args);
1781 } else {
1782 SwigPyObject_disown(v,args);
1783 }
1784#endif
1785 }
1786 return obj;
1787 }
1788}
1789
1790#ifdef METH_O0x0008
1791static PyMethodDef
1792swigobject_methods[] = {
1793 {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS0x0004, (char *)"releases ownership of the pointer"},
1794 {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS0x0004, (char *)"acquires ownership of the pointer"},
1795 {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS0x0001, (char *)"returns/sets ownership of the pointer"},
1796 {(char *)"append", (PyCFunction)SwigPyObject_append, METH_O0x0008, (char *)"appends another 'this' object"},
1797 {(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS0x0004, (char *)"returns the next 'this' object"},
1798 {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS0x0004, (char *)"returns object representation"},
1799 {0, 0, 0, 0}
1800};
1801#else
1802static PyMethodDef
1803swigobject_methods[] = {
1804 {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS0x0001, (char *)"releases ownership of the pointer"},
1805 {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS0x0001, (char *)"aquires ownership of the pointer"},
1806 {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS0x0001, (char *)"returns/sets ownership of the pointer"},
1807 {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS0x0001, (char *)"appends another 'this' object"},
1808 {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS0x0001, (char *)"returns the next 'this' object"},
1809 {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS0x0001, (char *)"returns object representation"},
1810 {0, 0, 0, 0}
1811};
1812#endif
1813
1814#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
1815SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
1816SwigPyObject_getattr(SwigPyObject *sobj,char *name)
1817{
1818 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1819}
1820#endif
1821
1822SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
1823SwigPyObject_TypeOnce(void) {
1824 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1825
1826 static PyNumberMethods SwigPyObject_as_number = {
1827 (binaryfunc)0, /*nb_add*/
1828 (binaryfunc)0, /*nb_subtract*/
1829 (binaryfunc)0, /*nb_multiply*/
1830 /* nb_divide removed in Python 3 */
1831#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
1832 (binaryfunc)0, /*nb_divide*/
1833#endif
1834 (binaryfunc)0, /*nb_remainder*/
1835 (binaryfunc)0, /*nb_divmod*/
1836 (ternaryfunc)0,/*nb_power*/
1837 (unaryfunc)0, /*nb_negative*/
1838 (unaryfunc)0, /*nb_positive*/
1839 (unaryfunc)0, /*nb_absolute*/
1840 (inquiry)0, /*nb_nonzero*/
1841 0, /*nb_invert*/
1842 0, /*nb_lshift*/
1843 0, /*nb_rshift*/
1844 0, /*nb_and*/
1845 0, /*nb_xor*/
1846 0, /*nb_or*/
1847#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
1848 0, /*nb_coerce*/
1849#endif
1850 (unaryfunc)SwigPyObject_long, /*nb_int*/
1851#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
1852 (unaryfunc)SwigPyObject_long, /*nb_long*/
1853#else
1854 0, /*nb_reserved*/
1855#endif
1856 (unaryfunc)0, /*nb_float*/
1857#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
1858 (unaryfunc)SwigPyObject_oct, /*nb_oct*/
1859 (unaryfunc)SwigPyObject_hex, /*nb_hex*/
1860#endif
1861#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000 /* 3.0 */
1862 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */
1863#elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02050000 /* 2.5.0 */
1864 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */
1865#elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000 /* 2.2.0 */
1866 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1867#elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02000000 /* 2.0.0 */
1868 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1869#endif
1870 };
1871
1872 static PyTypeObject swigpyobject_type;
1873 static int type_init = 0;
1874 if (!type_init) {
1875 const PyTypeObject tmp = {
1876 /* PyObject header changed in Python 3 */
1877#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1878 PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0,
1879#else
1880 PyObject_HEAD_INIT(NULL)1, __null,
1881 0, /* ob_size */
1882#endif
1883 (char *)"SwigPyObject", /* tp_name */
1884 sizeof(SwigPyObject), /* tp_basicsize */
1885 0, /* tp_itemsize */
1886 (destructor)SwigPyObject_dealloc, /* tp_dealloc */
1887 0, /* tp_print */
1888#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
1889 (getattrfunc)SwigPyObject_getattr, /* tp_getattr */
1890#else
1891 (getattrfunc)0, /* tp_getattr */
1892#endif
1893 (setattrfunc)0, /* tp_setattr */
1894#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1895 0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */
1896#else
1897 (cmpfunc)SwigPyObject_compare, /* tp_compare */
1898#endif
1899 (reprfunc)SwigPyObject_repr, /* tp_repr */
1900 &SwigPyObject_as_number, /* tp_as_number */
1901 0, /* tp_as_sequence */
1902 0, /* tp_as_mapping */
1903 (hashfunc)0, /* tp_hash */
1904 (ternaryfunc)0, /* tp_call */
1905 0, /* tp_str */
1906 PyObject_GenericGetAttr, /* tp_getattro */
1907 0, /* tp_setattro */
1908 0, /* tp_as_buffer */
1909 Py_TPFLAGS_DEFAULT( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<
5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<
17) | 0)
, /* tp_flags */
1910 swigobject_doc, /* tp_doc */
1911 0, /* tp_traverse */
1912 0, /* tp_clear */
1913 (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */
1914 0, /* tp_weaklistoffset */
1915#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000
1916 0, /* tp_iter */
1917 0, /* tp_iternext */
1918 swigobject_methods, /* tp_methods */
1919 0, /* tp_members */
1920 0, /* tp_getset */
1921 0, /* tp_base */
1922 0, /* tp_dict */
1923 0, /* tp_descr_get */
1924 0, /* tp_descr_set */
1925 0, /* tp_dictoffset */
1926 0, /* tp_init */
1927 0, /* tp_alloc */
1928 0, /* tp_new */
1929 0, /* tp_free */
1930 0, /* tp_is_gc */
1931 0, /* tp_bases */
1932 0, /* tp_mro */
1933 0, /* tp_cache */
1934 0, /* tp_subclasses */
1935 0, /* tp_weaklist */
1936#endif
1937#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000
1938 0, /* tp_del */
1939#endif
1940#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02060000
1941 0, /* tp_version */
1942#endif
1943#ifdef COUNT_ALLOCS
1944 0,0,0,0 /* tp_alloc -> tp_next */
1945#endif
1946 };
1947 swigpyobject_type = tmp;
1948 type_init = 1;
1949#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
1950 swigpyobject_type.ob_type = &PyType_Type;
1951#else
1952 if (PyType_Ready(&swigpyobject_type) < 0)
1953 return NULL__null;
1954#endif
1955 }
1956 return &swigpyobject_type;
1957}
1958
1959SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1960SwigPyObject_New(void *ptr, swig_type_info *ty, int own)
1961{
1962 SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type())( (SwigPyObject *) PyObject_Init( (PyObject *) PyObject_Malloc
( ( (SwigPyObject_type())->tp_basicsize ) ), (SwigPyObject_type
())) )
;
1963 if (sobj) {
1964 sobj->ptr = ptr;
1965 sobj->ty = ty;
1966 sobj->own = own;
1967 sobj->next = 0;
1968 }
1969 return (PyObject *)sobj;
1970}
1971
1972/* -----------------------------------------------------------------------------
1973 * Implements a simple Swig Packed type, and use it instead of string
1974 * ----------------------------------------------------------------------------- */
1975
1976typedef struct {
1977 PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type;
1978 void *pack;
1979 swig_type_info *ty;
1980 size_t size;
1981} SwigPyPacked;
1982
1983SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
1984SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1985{
1986 char result[SWIG_BUFFER_SIZE1024];
1987 fputs("<Swig Packed ", fp);
1988 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1989 fputs("at ", fp);
1990 fputs(result, fp);
1991 }
1992 fputs(v->ty->name,fp);
1993 fputs(">", fp);
1994 return 0;
1995}
1996
1997SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1998SwigPyPacked_repr(SwigPyPacked *v)
1999{
2000 char result[SWIG_BUFFER_SIZE1024];
2001 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
2002 return SWIG_Python_str_FromFormatPyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
2003 } else {
2004 return SWIG_Python_str_FromFormatPyString_FromFormat("<Swig Packed %s>", v->ty->name);
2005 }
2006}
2007
2008SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2009SwigPyPacked_str(SwigPyPacked *v)
2010{
2011 char result[SWIG_BUFFER_SIZE1024];
2012 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
2013 return SWIG_Python_str_FromFormatPyString_FromFormat("%s%s", result, v->ty->name);
2014 } else {
2015 return SWIG_Python_str_FromChar(v->ty->name);
2016 }
2017}
2018
2019SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2020SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w)
2021{
2022 size_t i = v->size;
2023 size_t j = w->size;
2024 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
2025 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
2026}
2027
2028SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* SwigPyPacked_TypeOnce(void);
2029
2030SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
2031SwigPyPacked_type(void) {
2032 static PyTypeObject *SWIG_STATIC_POINTER(type)type = SwigPyPacked_TypeOnce();
2033 return type;
2034}
2035
2036SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int
2037SwigPyPacked_Check(PyObject *op) {
2038 return ((op)->ob_type == SwigPyPacked_TypeOnce())
2039 || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0);
2040}
2041
2042SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2043SwigPyPacked_dealloc(PyObject *v)
2044{
2045 if (SwigPyPacked_Check(v)) {
2046 SwigPyPacked *sobj = (SwigPyPacked *) v;
2047 free(sobj->pack);
2048 }
2049 PyObject_DELPyObject_Free(v);
2050}
2051
2052SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
2053SwigPyPacked_TypeOnce(void) {
2054 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
2055 static PyTypeObject swigpypacked_type;
2056 static int type_init = 0;
2057 if (!type_init) {
2058 const PyTypeObject tmp = {
2059 /* PyObject header changed in Python 3 */
2060#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
2061 PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0,
2062#else
2063 PyObject_HEAD_INIT(NULL)1, __null,
2064 0, /* ob_size */
2065#endif
2066 (char *)"SwigPyPacked", /* tp_name */
2067 sizeof(SwigPyPacked), /* tp_basicsize */
2068 0, /* tp_itemsize */
2069 (destructor)SwigPyPacked_dealloc, /* tp_dealloc */
2070 (printfunc)SwigPyPacked_print, /* tp_print */
2071 (getattrfunc)0, /* tp_getattr */
2072 (setattrfunc)0, /* tp_setattr */
2073#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
2074 0, /* tp_reserved in 3.0.1 */
2075#else
2076 (cmpfunc)SwigPyPacked_compare, /* tp_compare */
2077#endif
2078 (reprfunc)SwigPyPacked_repr, /* tp_repr */
2079 0, /* tp_as_number */
2080 0, /* tp_as_sequence */
2081 0, /* tp_as_mapping */
2082 (hashfunc)0, /* tp_hash */
2083 (ternaryfunc)0, /* tp_call */
2084 (reprfunc)SwigPyPacked_str, /* tp_str */
2085 PyObject_GenericGetAttr, /* tp_getattro */
2086 0, /* tp_setattro */
2087 0, /* tp_as_buffer */
2088 Py_TPFLAGS_DEFAULT( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<
5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<
17) | 0)
, /* tp_flags */
2089 swigpacked_doc, /* tp_doc */
2090 0, /* tp_traverse */
2091 0, /* tp_clear */
2092 0, /* tp_richcompare */
2093 0, /* tp_weaklistoffset */
2094#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000
2095 0, /* tp_iter */
2096 0, /* tp_iternext */
2097 0, /* tp_methods */
2098 0, /* tp_members */
2099 0, /* tp_getset */
2100 0, /* tp_base */
2101 0, /* tp_dict */
2102 0, /* tp_descr_get */
2103 0, /* tp_descr_set */
2104 0, /* tp_dictoffset */
2105 0, /* tp_init */
2106 0, /* tp_alloc */
2107 0, /* tp_new */
2108 0, /* tp_free */
2109 0, /* tp_is_gc */
2110 0, /* tp_bases */
2111 0, /* tp_mro */
2112 0, /* tp_cache */
2113 0, /* tp_subclasses */
2114 0, /* tp_weaklist */
2115#endif
2116#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000
2117 0, /* tp_del */
2118#endif
2119#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02060000
2120 0, /* tp_version */
2121#endif
2122#ifdef COUNT_ALLOCS
2123 0,0,0,0 /* tp_alloc -> tp_next */
2124#endif
2125 };
2126 swigpypacked_type = tmp;
2127 type_init = 1;
2128#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
2129 swigpypacked_type.ob_type = &PyType_Type;
2130#else
2131 if (PyType_Ready(&swigpypacked_type) < 0)
2132 return NULL__null;
2133#endif
2134 }
2135 return &swigpypacked_type;
2136}
2137
2138SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2139SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty)
2140{
2141 SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type())( (SwigPyPacked *) PyObject_Init( (PyObject *) PyObject_Malloc
( ( (SwigPyPacked_type())->tp_basicsize ) ), (SwigPyPacked_type
())) )
;
2142 if (sobj) {
2143 void *pack = malloc(size);
2144 if (pack) {
2145 memcpy(pack, ptr, size);
2146 sobj->pack = pack;
2147 sobj->ty = ty;
2148 sobj->size = size;
2149 } else {
2150 PyObject_DELPyObject_Free((PyObject *) sobj);
2151 sobj = 0;
2152 }
2153 }
2154 return (PyObject *) sobj;
2155}
2156
2157SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
2158SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
2159{
2160 if (SwigPyPacked_Check(obj)) {
2161 SwigPyPacked *sobj = (SwigPyPacked *)obj;
2162 if (sobj->size != size) return 0;
2163 memcpy(ptr, sobj->pack, size);
2164 return sobj->ty;
2165 } else {
2166 return 0;
2167 }
2168}
2169
2170/* -----------------------------------------------------------------------------
2171 * pointers/data manipulation
2172 * ----------------------------------------------------------------------------- */
2173
2174SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
2175_SWIG_This(void)
2176{
2177 return SWIG_Python_str_FromChar("this");
2178}
2179
2180static PyObject *swig_this = NULL__null;
2181
2182SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2183SWIG_This(void)
2184{
2185 if (swig_this == NULL__null)
2186 swig_this = _SWIG_This();
2187 return swig_this;
2188}
2189
2190/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
2191
2192/* TODO: I don't know how to implement the fast getset in Python 3 right now */
2193#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
2194#define SWIG_PYTHON_SLOW_GETSET_THIS
2195#endif
2196
2197SWIGRUNTIMEstatic __attribute__ ((__unused__)) SwigPyObject *
2198SWIG_Python_GetSwigThis(PyObject *pyobj)
2199{
2200 PyObject *obj;
2201
2202 if (SwigPyObject_Check(pyobj))
2203 return (SwigPyObject *) pyobj;
2204
2205#ifdef SWIGPYTHON_BUILTIN
2206 (void)obj;
2207# ifdef PyWeakref_CheckProxy
2208 if (PyWeakref_CheckProxy(pyobj)(((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_ProxyType
) || ((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_CallableProxyType
))
) {
2209 pyobj = PyWeakref_GET_OBJECT(pyobj)((((PyObject*)(((PyWeakReference *)(pyobj))->wr_object))->
ob_refcnt) > 0 ? ((PyWeakReference *)(pyobj))->wr_object
: (&_Py_NoneStruct))
;
2210 if (pyobj && SwigPyObject_Check(pyobj))
2211 return (SwigPyObject*) pyobj;
2212 }
2213# endif
2214 return NULL__null;
2215#else
2216
2217 obj = 0;
2218
2219#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000))
2220 if (PyInstance_Check(pyobj)((pyobj)->ob_type == &PyInstance_Type)) {
2221 obj = _PyInstance_Lookup(pyobj, SWIG_This());
2222 } else {
2223 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
2224 if (dictptr != NULL__null) {
2225 PyObject *dict = *dictptr;
2226 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
2227 } else {
2228#ifdef PyWeakref_CheckProxy
2229 if (PyWeakref_CheckProxy(pyobj)(((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_ProxyType
) || ((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_CallableProxyType
))
) {
2230 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj)((((PyObject*)(((PyWeakReference *)(pyobj))->wr_object))->
ob_refcnt) > 0 ? ((PyWeakReference *)(pyobj))->wr_object
: (&_Py_NoneStruct))
;
2231 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
2232 }
2233#endif
2234 obj = PyObject_GetAttr(pyobj,SWIG_This());
2235 if (obj) {
2236 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
2237 } else {
2238 if (PyErr_Occurred()) PyErr_Clear();
2239 return 0;
2240 }
2241 }
2242 }
2243#else
2244 obj = PyObject_GetAttr(pyobj,SWIG_This());
2245 if (obj) {
2246 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
2247 } else {
2248 if (PyErr_Occurred()) PyErr_Clear();
2249 return 0;
2250 }
2251#endif
2252 if (obj && !SwigPyObject_Check(obj)) {
2253 /* a PyObject is called 'this', try to get the 'real this'
2254 SwigPyObject from it */
2255 return SWIG_Python_GetSwigThis(obj);
2256 }
2257 return (SwigPyObject *)obj;
2258#endif
2259}
2260
2261/* Acquire a pointer value */
2262
2263SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2264SWIG_Python_AcquirePtr(PyObject *obj, int own) {
2265 if (own == SWIG_POINTER_OWN0x1) {
2266 SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj);
2267 if (sobj) {
2268 int oldown = sobj->own;
2269 sobj->own = own;
2270 return oldown;
2271 }
2272 }
2273 return 0;
2274}
2275
2276/* Convert a pointer value */
2277
2278SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2279SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
2280 int res;
2281 SwigPyObject *sobj;
2282 int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV(0x1 << 1)) != 0;
2283
2284 if (!obj)
2285 return SWIG_ERROR(-1);
2286 if (obj == Py_None(&_Py_NoneStruct) && !implicit_conv) {
2287 if (ptr)
2288 *ptr = 0;
2289 return SWIG_OK(0);
2290 }
2291
2292 res = SWIG_ERROR(-1);
2293
2294 sobj = SWIG_Python_GetSwigThis(obj);
2295 if (own)
2296 *own = 0;
2297 while (sobj) {
2298 void *vptr = sobj->ptr;
2299 if (ty) {
2300 swig_type_info *to = sobj->ty;
2301 if (to == ty) {
2302 /* no type cast needed */
2303 if (ptr) *ptr = vptr;
2304 break;
2305 } else {
2306 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2307 if (!tc) {
2308 sobj = (SwigPyObject *)sobj->next;
2309 } else {
2310 if (ptr) {
2311 int newmemory = 0;
2312 *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2313 if (newmemory == SWIG_CAST_NEW_MEMORY0x2) {
2314 assert(own)((void)0); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
2315 if (own)
2316 *own = *own | SWIG_CAST_NEW_MEMORY0x2;
2317 }
2318 }
2319 break;
2320 }
2321 }
2322 } else {
2323 if (ptr) *ptr = vptr;
2324 break;
2325 }
2326 }
2327 if (sobj) {
2328 if (own)
2329 *own = *own | sobj->own;
2330 if (flags & SWIG_POINTER_DISOWN0x1) {
2331 sobj->own = 0;
2332 }
2333 res = SWIG_OK(0);
2334 } else {
2335 if (implicit_conv) {
2336 SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
2337 if (data && !data->implicitconv) {
2338 PyObject *klass = data->klass;
2339 if (klass) {
2340 PyObject *impconv;
2341 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2342 impconv = SWIG_Python_CallFunctor(klass, obj)PyObject_CallFunctionObjArgs(klass, obj, __null);;
2343 data->implicitconv = 0;
2344 if (PyErr_Occurred()) {
2345 PyErr_Clear();
2346 impconv = 0;
2347 }
2348 if (impconv) {
2349 SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv);
2350 if (iobj) {
2351 void *vptr;
2352 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2353 if (SWIG_IsOK(res)(res >= 0)) {
2354 if (ptr) {
2355 *ptr = vptr;
2356 /* transfer the ownership to 'ptr' */
2357 iobj->own = 0;
2358 res = SWIG_AddCast(res)(res);
2359 res = SWIG_AddNewMask(res)((res >= 0) ? (res | ((1 << 8) << 1)) : res);
2360 } else {
2361 res = SWIG_AddCast(res)(res);
2362 }
2363 }
2364 }
2365 Py_DECREF(impconv)do { if ( --((PyObject*)(impconv))->ob_refcnt != 0) ; else
( (*(((PyObject*)((PyObject *)(impconv)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(impconv)))); } while (0)
;
2366 }
2367 }
2368 }
2369 }
2370 if (!SWIG_IsOK(res)(res >= 0) && obj == Py_None(&_Py_NoneStruct)) {
2371 if (ptr)
2372 *ptr = 0;
2373 if (PyErr_Occurred())
2374 PyErr_Clear();
2375 res = SWIG_OK(0);
2376 }
2377 }
2378 return res;
2379}
2380
2381/* Convert a function ptr value */
2382
2383SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2384SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2385 if (!PyCFunction_Check(obj)((((PyObject*)(obj))->ob_type) == &PyCFunction_Type)) {
2386 return SWIG_ConvertPtr(obj, ptr, ty, 0)SWIG_Python_ConvertPtrAndOwn(obj, ptr, ty, 0, 0);
2387 } else {
2388 void *vptr = 0;
2389
2390 /* here we get the method pointer for callbacks */
2391 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2392 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2393 if (desc)
2394 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2395 if (!desc)
2396 return SWIG_ERROR(-1);
2397 if (ty) {
2398 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2399 if (tc) {
2400 int newmemory = 0;
2401 *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2402 assert(!newmemory)((void)0); /* newmemory handling not yet implemented */
2403 } else {
2404 return SWIG_ERROR(-1);
2405 }
2406 } else {
2407 *ptr = vptr;
2408 }
2409 return SWIG_OK(0);
2410 }
2411}
2412
2413/* Convert a packed value value */
2414
2415SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2416SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2417 swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz);
2418 if (!to) return SWIG_ERROR(-1);
2419 if (ty) {
2420 if (to != ty) {
2421 /* check type cast? */
2422 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2423 if (!tc) return SWIG_ERROR(-1);
2424 }
2425 }
2426 return SWIG_OK(0);
2427}
2428
2429/* -----------------------------------------------------------------------------
2430 * Create a new pointer object
2431 * ----------------------------------------------------------------------------- */
2432
2433/*
2434 Create a new instance object, without calling __init__, and set the
2435 'this' attribute.
2436*/
2437
2438SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
2439SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
2440{
2441#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000)
2442 PyObject *inst = 0;
2443 PyObject *newraw = data->newraw;
2444 if (newraw) {
2445 inst = PyObject_Call(newraw, data->newargs, NULL__null);
2446 if (inst) {
2447#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2448 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2449 if (dictptr != NULL__null) {
2450 PyObject *dict = *dictptr;
2451 if (dict == NULL__null) {
2452 dict = PyDict_New();
2453 *dictptr = dict;
2454 PyDict_SetItem(dict, SWIG_This(), swig_this);
2455 }
2456 }
2457#else
2458 PyObject *key = SWIG_This();
2459 PyObject_SetAttr(inst, key, swig_this);
2460#endif
2461 }
2462 } else {
2463#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
2464 inst = PyBaseObject_Type.tp_new((PyTypeObject*) data->newargs, Py_None(&_Py_NoneStruct), Py_None(&_Py_NoneStruct));
2465 if (inst) {
2466 PyObject_SetAttr(inst, SWIG_This(), swig_this);
2467 Py_TYPE(inst)(((PyObject*)(inst))->ob_type)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG(1L<<19);
2468 }
2469#else
2470 PyObject *dict = PyDict_New();
2471 if (dict) {
2472 PyDict_SetItem(dict, SWIG_This(), swig_this);
2473 inst = PyInstance_NewRaw(data->newargs, dict);
2474 Py_DECREF(dict)do { if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(dict)))); } while (0)
;
2475 }
2476#endif
2477 }
2478 return inst;
2479#else
2480#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02010000)
2481 PyObject *inst = 0;
2482 PyObject *dict = PyDict_New();
2483 if (dict) {
2484 PyDict_SetItem(dict, SWIG_This(), swig_this);
2485 inst = PyInstance_NewRaw(data->newargs, dict);
2486 Py_DECREF(dict)do { if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(dict)))); } while (0)
;
2487 }
2488 return (PyObject *) inst;
2489#else
2490 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type)( (PyInstanceObject *) PyObject_Init( (PyObject *) PyObject_Malloc
( ( (&PyInstance_Type)->tp_basicsize ) ), (&PyInstance_Type
)) )
;
2491 if (inst == NULL__null) {
2492 return NULL__null;
2493 }
2494 inst->in_class = (PyClassObject *)data->newargs;
2495 Py_INCREF(inst->in_class)( ((PyObject*)(inst->in_class))->ob_refcnt++);
2496 inst->in_dict = PyDict_New();
2497 if (inst->in_dict == NULL__null) {
2498 Py_DECREF(inst)do { if ( --((PyObject*)(inst))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(inst)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(inst)))); } while (0)
;
2499 return NULL__null;
2500 }
2501#ifdef Py_TPFLAGS_HAVE_WEAKREFS(1L<<6)
2502 inst->in_weakreflist = NULL__null;
2503#endif
2504#ifdef Py_TPFLAGS_GC0
2505 PyObject_GC_Init(inst);
2506#endif
2507 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2508 return (PyObject *) inst;
2509#endif
2510#endif
2511}
2512
2513SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2514SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2515{
2516 PyObject *dict;
2517#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2518 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2519 if (dictptr != NULL__null) {
2520 dict = *dictptr;
2521 if (dict == NULL__null) {
2522 dict = PyDict_New();
2523 *dictptr = dict;
2524 }
2525 PyDict_SetItem(dict, SWIG_This(), swig_this);
2526 return;
2527 }
2528#endif
2529 dict = PyObject_GetAttrString(inst, (char*)"__dict__");
2530 PyDict_SetItem(dict, SWIG_This(), swig_this);
2531 Py_DECREF(dict)do { if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(dict)))); } while (0)
;
2532}
2533
2534
2535SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
2536SWIG_Python_InitShadowInstance(PyObject *args) {
2537 PyObject *obj[2];
2538 if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) {
2539 return NULL__null;
2540 } else {
2541 SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2542 if (sthis) {
2543 SwigPyObject_append((PyObject*) sthis, obj[1]);
2544 } else {
2545 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2546 }
2547 return SWIG_Py_Void();
2548 }
2549}
2550
2551/* Create a new pointer object */
2552
2553SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2554SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) {
2555 SwigPyClientData *clientdata;
2556 PyObject * robj;
2557 int own;
2558
2559 if (!ptr)
2560 return SWIG_Py_Void();
2561
2562 clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0;
2563 own = (flags & SWIG_POINTER_OWN0x1) ? SWIG_POINTER_OWN0x1 : 0;
2564 if (clientdata && clientdata->pytype) {
2565 SwigPyObject *newobj;
2566 if (flags & SWIG_BUILTIN_TP_INIT(0x1 << 2)) {
2567 newobj = (SwigPyObject*) self;
2568 if (newobj->ptr) {
2569 PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0);
2570 while (newobj->next)
2571 newobj = (SwigPyObject *) newobj->next;
2572 newobj->next = next_self;
2573 newobj = (SwigPyObject *)next_self;
2574 }
2575 } else {
2576 newobj = PyObject_New(SwigPyObject, clientdata->pytype)( (SwigPyObject *) _PyObject_New(clientdata->pytype) );
2577 }
2578 if (newobj) {
2579 newobj->ptr = ptr;
2580 newobj->ty = type;
2581 newobj->own = own;
2582 newobj->next = 0;
2583#ifdef SWIGPYTHON_BUILTIN
2584 newobj->dict = 0;
2585#endif
2586 return (PyObject*) newobj;
2587 }
2588 return SWIG_Py_Void();
2589 }
2590
2591 assert(!(flags & SWIG_BUILTIN_TP_INIT))((void)0);
2592
2593 robj = SwigPyObject_New(ptr, type, own);
2594 if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW(0x1 << 1))) {
2595 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2596 Py_DECREF(robj)do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(robj)))); } while (0)
;
2597 robj = inst;
2598 }
2599 return robj;
2600}
2601
2602/* Create a new packed object */
2603
2604SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
2605SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2606 return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2607}
2608
2609/* -----------------------------------------------------------------------------*
2610 * Get type list
2611 * -----------------------------------------------------------------------------*/
2612
2613#ifdef SWIG_LINK_RUNTIME
2614void *SWIG_ReturnGlobalTypeList(void *);
2615#endif
2616
2617SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_module_info *
2618SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) {
2619 static void *type_pointer = (void *)0;
2620 /* first check if module already created */
2621 if (!type_pointer) {
2622#ifdef SWIG_LINK_RUNTIME
2623 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2624#else
2625# ifdef SWIGPY_USE_CAPSULE
2626 type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ), 0);
2627# else
2628 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4",
2629 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2630# endif
2631 if (PyErr_Occurred()) {
2632 PyErr_Clear();
2633 type_pointer = (void *)0;
2634 }
2635#endif
2636 }
2637 return (swig_module_info *) type_pointer;
2638}
2639
2640#if PY_MAJOR_VERSION2 < 2
2641/* PyModule_AddObject function was introduced in Python 2.0. The following function
2642 is copied out of Python/modsupport.c in python version 2.3.4 */
2643SWIGINTERNstatic __attribute__ ((__unused__)) int
2644PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2645{
2646 PyObject *dict;
2647 if (!PyModule_Check(m)((((PyObject*)(m))->ob_type) == (&PyModule_Type) || PyType_IsSubtype
((((PyObject*)(m))->ob_type), (&PyModule_Type)))
) {
2648 PyErr_SetString(PyExc_TypeError,
2649 "PyModule_AddObject() needs module as first arg");
2650 return SWIG_ERROR(-1);
2651 }
2652 if (!o) {
2653 PyErr_SetString(PyExc_TypeError,
2654 "PyModule_AddObject() needs non-NULL value");
2655 return SWIG_ERROR(-1);
2656 }
2657
2658 dict = PyModule_GetDict(m);
2659 if (dict == NULL__null) {
2660 /* Internal error -- modules must have a dict! */
2661 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2662 PyModule_GetName(m));
2663 return SWIG_ERROR(-1);
2664 }
2665 if (PyDict_SetItemString(dict, name, o))
2666 return SWIG_ERROR(-1);
2667 Py_DECREF(o)do { if ( --((PyObject*)(o))->ob_refcnt != 0) ; else ( (*(
((PyObject*)((PyObject *)(o)))->ob_type)->tp_dealloc)((
PyObject *)((PyObject *)(o)))); } while (0)
;
2668 return SWIG_OK(0);
2669}
2670#endif
2671
2672SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2673#ifdef SWIGPY_USE_CAPSULE
2674SWIG_Python_DestroyModule(PyObject *obj)
2675#else
2676SWIG_Python_DestroyModule(void *vptr)
2677#endif
2678{
2679#ifdef SWIGPY_USE_CAPSULE
2680 swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ));
2681#else
2682 swig_module_info *swig_module = (swig_module_info *) vptr;
2683#endif
2684 swig_type_info **types = swig_module->types;
2685 size_t i;
2686 for (i =0; i < swig_module->size; ++i) {
2687 swig_type_info *ty = types[i];
2688 if (ty->owndata) {
2689 SwigPyClientData *data = (SwigPyClientData *) ty->clientdata;
2690 if (data) SwigPyClientData_Del(data);
2691 }
2692 }
2693 Py_DECREF(SWIG_This())do { if ( --((PyObject*)(SWIG_This()))->ob_refcnt != 0) ; else
( (*(((PyObject*)((PyObject *)(SWIG_This())))->ob_type)->
tp_dealloc)((PyObject *)((PyObject *)(SWIG_This())))); } while
(0)
;
2694 swig_this = NULL__null;
2695}
2696
2697SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2698SWIG_Python_SetModule(swig_module_info *swig_module) {
2699#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
2700 /* Add a dummy module object into sys.modules */
2701 PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4");
2702#else
2703 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL__null, NULL__null, 0, NULL__null} }; /* Sentinel */
2704 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table)Py_InitModule4_64((char*)"swig_runtime_data" "4", swig_empty_runtime_method_table
, (char *)__null, (PyObject *)__null, 1013)
;
2705#endif
2706#ifdef SWIGPY_USE_CAPSULE
2707 PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ), SWIG_Python_DestroyModule);
2708 if (pointer && module) {
2709 PyModule_AddObject(module, (char*)"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer);
2710 } else {
2711 Py_XDECREF(pointer)do { if ((pointer) == __null) ; else do { if ( --((PyObject*)
(pointer))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject
*)(pointer)))->ob_type)->tp_dealloc)((PyObject *)((PyObject
*)(pointer)))); } while (0); } while (0)
;
2712 }
2713#else
2714 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2715 if (pointer && module) {
2716 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2717 } else {
2718 Py_XDECREF(pointer)do { if ((pointer) == __null) ; else do { if ( --((PyObject*)
(pointer))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject
*)(pointer)))->ob_type)->tp_dealloc)((PyObject *)((PyObject
*)(pointer)))); } while (0); } while (0)
;
2719 }
2720#endif
2721}
2722
2723/* The python cached type query */
2724SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2725SWIG_Python_TypeCache(void) {
2726 static PyObject *SWIG_STATIC_POINTER(cache)cache = PyDict_New();
2727 return cache;
2728}
2729
2730SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
2731SWIG_Python_TypeQuery(const char *type)
2732{
2733 PyObject *cache = SWIG_Python_TypeCache();
2734 PyObject *key = SWIG_Python_str_FromChar(type);
2735 PyObject *obj = PyDict_GetItem(cache, key);
2736 swig_type_info *descriptor;
2737 if (obj) {
2738#ifdef SWIGPY_USE_CAPSULE
2739 descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL__null);
2740#else
2741 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2742#endif
2743 } else {
2744 swig_module_info *swig_module = SWIG_GetModule(0)SWIG_Python_GetModule(0);
2745 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2746 if (descriptor) {
2747#ifdef SWIGPY_USE_CAPSULE
2748 obj = PyCapsule_New((void*) descriptor, NULL__null, NULL__null);
2749#else
2750 obj = PyCObject_FromVoidPtr(descriptor, NULL__null);
2751#endif
2752 PyDict_SetItem(cache, key, obj);
2753 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
2754 }
2755 }
2756 Py_DECREF(key)do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(key)))); } while (0)
;
2757 return descriptor;
2758}
2759
2760/*
2761 For backward compatibility only
2762*/
2763#define SWIG_POINTER_EXCEPTION0 0
2764#define SWIG_arg_fail(arg)SWIG_Python_ArgFail(arg) SWIG_Python_ArgFail(arg)
2765#define SWIG_MustGetPtr(p, type, argnum, flags)SWIG_Python_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2766
2767SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2768SWIG_Python_AddErrMesg(const char* mesg, int infront)
2769{
2770 if (PyErr_Occurred()) {
2771 PyObject *type = 0;
2772 PyObject *value = 0;
2773 PyObject *traceback = 0;
2774 PyErr_Fetch(&type, &value, &traceback);
2775 if (value) {
2776 char *tmp;
2777 PyObject *old_str = PyObject_Str(value);
2778 Py_XINCREF(type)do { if ((type) == __null) ; else ( ((PyObject*)(type))->ob_refcnt
++); } while (0)
;
2779 PyErr_Clear();
2780 if (infront) {
2781 PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str));
2782 } else {
2783 PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
2784 }
2785 SWIG_Python_str_DelForPy3(tmp);
2786 Py_DECREF(old_str)do { if ( --((PyObject*)(old_str))->ob_refcnt != 0) ; else
( (*(((PyObject*)((PyObject *)(old_str)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(old_str)))); } while (0)
;
2787 }
2788 return 1;
2789 } else {
2790 return 0;
2791 }
2792}
2793
2794SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2795SWIG_Python_ArgFail(int argnum)
2796{
2797 if (PyErr_Occurred()) {
2798 /* add information about failing argument */
2799 char mesg[256];
2800 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2801 return SWIG_Python_AddErrMesg(mesg, 1);
2802 } else {
2803 return 0;
2804 }
2805}
2806
2807SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline const char *
2808SwigPyObject_GetDesc(PyObject *self)
2809{
2810 SwigPyObject *v = (SwigPyObject *)self;
2811 swig_type_info *ty = v ? v->ty : 0;
2812 return ty ? ty->str : "";
2813}
2814
2815SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2816SWIG_Python_TypeError(const char *type, PyObject *obj)
2817{
2818 if (type) {
2819#if defined(SWIG_COBJECT_TYPES)
2820 if (obj && SwigPyObject_Check(obj)) {
2821 const char *otype = (const char *) SwigPyObject_GetDesc(obj);
2822 if (otype) {
2823 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received",
2824 type, otype);
2825 return;
2826 }
2827 } else
2828#endif
2829 {
2830 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2831 if (otype) {
2832 PyObject *str = PyObject_Str(obj);
2833 const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0;
2834 if (cstr) {
2835 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2836 type, otype, cstr);
2837 SWIG_Python_str_DelForPy3(cstr);
2838 } else {
2839 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2840 type, otype);
2841 }
2842 Py_XDECREF(str)do { if ((str) == __null) ; else do { if ( --((PyObject*)(str
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
str)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)
(str)))); } while (0); } while (0)
;
2843 return;
2844 }
2845 }
2846 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2847 } else {
2848 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2849 }
2850}
2851
2852
2853/* Convert a pointer value, signal an exception on a type mismatch */
2854SWIGRUNTIMEstatic __attribute__ ((__unused__)) void *
2855SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) {
2856 void *result;
2857 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags)SWIG_Python_ConvertPtrAndOwn(obj, &result, ty, flags, 0) == -1) {
2858 PyErr_Clear();
2859#if SWIG_POINTER_EXCEPTION0
2860 if (flags) {
2861 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2862 SWIG_Python_ArgFail(argnum);
2863 }
2864#endif
2865 }
2866 return result;
2867}
2868
2869#ifdef SWIGPYTHON_BUILTIN
2870SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2871SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
2872 PyTypeObject *tp = obj->ob_type;
2873 PyObject *descr;
2874 PyObject *encoded_name;
2875 descrsetfunc f;
2876 int res = -1;
2877
2878# ifdef Py_USING_UNICODE1
2879 if (PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<27))) != 0)
) {
2880 name = PyUnicode_DecodePyUnicodeUCS2_Decode(PyString_AsString(name), PyString_Size(name), NULL__null, NULL__null);
2881 if (!name)
2882 return -1;
2883 } else if (!PyUnicode_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<28))) != 0)
)
2884# else
2885 if (!PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<27))) != 0)
)
2886# endif
2887 {
2888 PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name);
2889 return -1;
2890 } else {
2891 Py_INCREF(name)( ((PyObject*)(name))->ob_refcnt++);
2892 }
2893
2894 if (!tp->tp_dict) {
2895 if (PyType_Ready(tp) < 0)
2896 goto done;
2897 }
2898
2899 descr = _PyType_Lookup(tp, name);
2900 f = NULL__null;
2901 if (descr != NULL__null)
2902 f = descr->ob_type->tp_descr_set;
2903 if (!f) {
2904 if (PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<27))) != 0)
) {
2905 encoded_name = name;
2906 Py_INCREF(name)( ((PyObject*)(name))->ob_refcnt++);
2907 } else {
2908 encoded_name = PyUnicode_AsUTF8StringPyUnicodeUCS2_AsUTF8String(name);
2909 }
2910 PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name));
2911 Py_DECREF(encoded_name)do { if ( --((PyObject*)(encoded_name))->ob_refcnt != 0) ;
else ( (*(((PyObject*)((PyObject *)(encoded_name)))->ob_type
)->tp_dealloc)((PyObject *)((PyObject *)(encoded_name))));
} while (0)
;
2912 } else {
2913 res = f(descr, obj, value);
2914 }
2915
2916 done:
2917 Py_DECREF(name)do { if ( --((PyObject*)(name))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(name)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(name)))); } while (0)
;
2918 return res;
2919}
2920#endif
2921
2922
2923#ifdef __cplusplus199711L
2924}
2925#endif
2926
2927
2928
2929#define SWIG_exception_fail(code, msg)do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg
); goto fail; } while(0)
do { SWIG_Error(code, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg); SWIG_failgoto fail; } while(0)
2930
2931#define SWIG_contract_assert(expr, msg)if (!(expr)) { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(
-3), msg); goto fail; } else
if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), msg); SWIG_failgoto fail; } else
2932
2933
2934
2935 #define SWIG_exception(code, msg)do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg
); goto fail;; } while(0)
do { SWIG_Error(code, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg); SWIG_failgoto fail;; } while(0)
2936
2937
2938/* -------- TYPES TABLE (BEGIN) -------- */
2939
2940#define SWIGTYPE_p_GBaseswig_types[0] swig_types[0]
2941#define SWIGTYPE_p_GContainerswig_types[1] swig_types[1]
2942#define SWIGTYPE_p_GEnergiesswig_types[2] swig_types[2]
2943#define SWIGTYPE_p_GEnergyswig_types[3] swig_types[3]
2944#define SWIGTYPE_p_GEventswig_types[4] swig_types[4]
2945#define SWIGTYPE_p_GEventsswig_types[5] swig_types[5]
2946#define SWIGTYPE_p_GModelswig_types[6] swig_types[6]
2947#define SWIGTYPE_p_GModelDataswig_types[7] swig_types[7]
2948#define SWIGTYPE_p_GModelParswig_types[8] swig_types[8]
2949#define SWIGTYPE_p_GModelRegistryswig_types[9] swig_types[9]
2950#define SWIGTYPE_p_GModelSkyswig_types[10] swig_types[10]
2951#define SWIGTYPE_p_GModelSpatialswig_types[11] swig_types[11]
2952#define SWIGTYPE_p_GModelSpatialDiffuseswig_types[12] swig_types[12]
2953#define SWIGTYPE_p_GModelSpatialDiffuseConstswig_types[13] swig_types[13]
2954#define SWIGTYPE_p_GModelSpatialDiffuseCubeswig_types[14] swig_types[14]
2955#define SWIGTYPE_p_GModelSpatialDiffuseMapswig_types[15] swig_types[15]
2956#define SWIGTYPE_p_GModelSpatialEllipticalswig_types[16] swig_types[16]
2957#define SWIGTYPE_p_GModelSpatialEllipticalDiskswig_types[17] swig_types[17]
2958#define SWIGTYPE_p_GModelSpatialPointSourceswig_types[18] swig_types[18]
2959#define SWIGTYPE_p_GModelSpatialRadialswig_types[19] swig_types[19]
2960#define SWIGTYPE_p_GModelSpatialRadialDiskswig_types[20] swig_types[20]
2961#define SWIGTYPE_p_GModelSpatialRadialGaussswig_types[21] swig_types[21]
2962#define SWIGTYPE_p_GModelSpatialRadialShellswig_types[22] swig_types[22]
2963#define SWIGTYPE_p_GModelSpatialRegistryswig_types[23] swig_types[23]
2964#define SWIGTYPE_p_GModelSpectralswig_types[24] swig_types[24]
2965#define SWIGTYPE_p_GModelSpectralConstswig_types[25] swig_types[25]
2966#define SWIGTYPE_p_GModelSpectralExpPlawswig_types[26] swig_types[26]
2967#define SWIGTYPE_p_GModelSpectralFuncswig_types[27] swig_types[27]
2968#define SWIGTYPE_p_GModelSpectralLogParabolaswig_types[28] swig_types[28]
2969#define SWIGTYPE_p_GModelSpectralNodesswig_types[29] swig_types[29]
2970#define SWIGTYPE_p_GModelSpectralPlawswig_types[30] swig_types[30]
2971#define SWIGTYPE_p_GModelSpectralPlaw2swig_types[31] swig_types[31]
2972#define SWIGTYPE_p_GModelSpectralRegistryswig_types[32] swig_types[32]
2973#define SWIGTYPE_p_GModelTemporalswig_types[33] swig_types[33]
2974#define SWIGTYPE_p_GModelTemporalConstswig_types[34] swig_types[34]
2975#define SWIGTYPE_p_GModelTemporalRegistryswig_types[35] swig_types[35]
2976#define SWIGTYPE_p_GModelsswig_types[36] swig_types[36]
2977#define SWIGTYPE_p_GObservationswig_types[37] swig_types[37]
2978#define SWIGTYPE_p_GOptimizerParswig_types[38] swig_types[38]
2979#define SWIGTYPE_p_GOptimizerParsswig_types[39] swig_types[39]
2980#define SWIGTYPE_p_GPhotonswig_types[40] swig_types[40]
2981#define SWIGTYPE_p_GPhotonsswig_types[41] swig_types[41]
2982#define SWIGTYPE_p_GRanswig_types[42] swig_types[42]
2983#define SWIGTYPE_p_GRegistryswig_types[43] swig_types[43]
2984#define SWIGTYPE_p_GSkyDirswig_types[44] swig_types[44]
2985#define SWIGTYPE_p_GSkymapswig_types[45] swig_types[45]
2986#define SWIGTYPE_p_GTimeswig_types[46] swig_types[46]
2987#define SWIGTYPE_p_GTimesswig_types[47] swig_types[47]
2988#define SWIGTYPE_p_GVectorswig_types[48] swig_types[48]
2989#define SWIGTYPE_p_GXmlswig_types[49] swig_types[49]
2990#define SWIGTYPE_p_GXmlElementswig_types[50] swig_types[50]
2991#define SWIGTYPE_p_charswig_types[51] swig_types[51]
2992#define SWIGTYPE_p_std__invalid_argumentswig_types[52] swig_types[52]
2993#define SWIGTYPE_p_swig__SwigPyIteratorswig_types[53] swig_types[53]
2994static swig_type_info *swig_types[55];
2995static swig_module_info swig_module = {swig_types, 54, 0, 0, 0, 0};
2996#define SWIG_TypeQuery(name)SWIG_TypeQueryModule(&swig_module, &swig_module, name
)
SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2997#define SWIG_MangledTypeQuery(name)SWIG_MangledTypeQueryModule(&swig_module, &swig_module
, name)
SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2998
2999/* -------- TYPES TABLE (END) -------- */
3000
3001#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
<= 0x02000000)
3002# if !defined(SWIG_PYTHON_CLASSIC)
3003# error "This python version requires swig to be run with the '-classic' option"
3004# endif
3005#endif
3006
3007/*-----------------------------------------------
3008 @(target):= _model.so
3009 ------------------------------------------------*/
3010#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
3011# define SWIG_initinit_model PyInit__model
3012
3013#else
3014# define SWIG_initinit_model init_model
3015
3016#endif
3017#define SWIG_name"_model" "_model"
3018
3019#define SWIGVERSION0x020011 0x020011
3020#define SWIG_VERSION0x020011 SWIGVERSION0x020011
3021
3022
3023#define SWIG_as_voidptr(a)const_cast< void * >(static_cast< const void * >(
a))
const_cast< void * >(static_cast< const void * >(a))
3024#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))
3025
3026
3027#include <stdexcept>
3028
3029
3030namespace swig {
3031 class SwigPtr_PyObject {
3032 protected:
3033 PyObject *_obj;
3034
3035 public:
3036 SwigPtr_PyObject() :_obj(0)
3037 {
3038 }
3039
3040 SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj)
3041 {
3042 Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt
++); } while (0)
;
3043 }
3044
3045 SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj)
3046 {
3047 if (initial_ref) {
3048 Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt
++); } while (0)
;
3049 }
3050 }
3051
3052 SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item)
3053 {
3054 Py_XINCREF(item._obj)do { if ((item._obj) == __null) ; else ( ((PyObject*)(item._obj
))->ob_refcnt++); } while (0)
;
3055 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)
;
3056 _obj = item._obj;
3057 return *this;
3058 }
3059
3060 ~SwigPtr_PyObject()
3061 {
3062 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)
;
3063 }
3064
3065 operator PyObject *() const
3066 {
3067 return _obj;
3068 }
3069
3070 PyObject *operator->() const
3071 {
3072 return _obj;
3073 }
3074 };
3075}
3076
3077
3078namespace swig {
3079 struct SwigVar_PyObject : SwigPtr_PyObject {
3080 SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { }
3081
3082 SwigVar_PyObject & operator = (PyObject* obj)
3083 {
3084 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)
;
3085 _obj = obj;
3086 return *this;
3087 }
3088 };
3089}
3090
3091
3092#include <stddef.h>
3093#include "GException.hpp"
3094#include "GTools.hpp"
3095
3096
3097#include <stdexcept>
3098
3099
3100#if defined(__GNUC__4)
3101# if __GNUC__4 == 2 && __GNUC_MINOR <= 96
3102# define SWIG_STD_NOMODERN_STL
3103# endif
3104#endif
3105
3106
3107#include <string>
3108#include <stdexcept>
3109#include <stddef.h>
3110
3111
3112#include <string>
3113
3114
3115#include <iostream>
3116
3117#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03020000
3118# define SWIGPY_SLICE_ARG(obj)((PySliceObject*) (obj)) ((PyObject*) (obj))
3119#else
3120# define SWIGPY_SLICE_ARG(obj)((PySliceObject*) (obj)) ((PySliceObject*) (obj))
3121#endif
3122
3123
3124 #include <stddef.h>
3125
3126
3127namespace swig {
3128 struct stop_iteration {
3129 };
3130
3131 struct SwigPyIterator {
3132 private:
3133 SwigPtr_PyObject _seq;
3134
3135 protected:
3136 SwigPyIterator(PyObject *seq) : _seq(seq)
3137 {
3138 }
3139
3140 public:
3141 virtual ~SwigPyIterator() {}
3142
3143 // Access iterator method, required by Python
3144 virtual PyObject *value() const = 0;
3145
3146 // Forward iterator method, required by Python
3147 virtual SwigPyIterator *incr(size_t n = 1) = 0;
3148
3149 // Backward iterator method, very common in C++, but not required in Python
3150 virtual SwigPyIterator *decr(size_t /*n*/ = 1)
3151 {
3152 throw stop_iteration();
3153 }
3154
3155 // Random access iterator methods, but not required in Python
3156 virtual ptrdiff_t distance(const SwigPyIterator &/*x*/) const
3157 {
3158 throw std::invalid_argument("operation not supported");
3159 }
3160
3161 virtual bool equal (const SwigPyIterator &/*x*/) const
3162 {
3163 throw std::invalid_argument("operation not supported");
3164 }
3165
3166 // C++ common/needed methods
3167 virtual SwigPyIterator *copy() const = 0;
3168
3169 PyObject *next()
3170 {
3171 SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads
3172 PyObject *obj = value();
3173 incr();
3174 SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads
3175 return obj;
3176 }
3177
3178 /* Make an alias for Python 3.x */
3179 PyObject *__next__()
3180 {
3181 return next();
3182 }
3183
3184 PyObject *previous()
3185 {
3186 SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads
3187 decr();
3188 PyObject *obj = value();
3189 SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads
3190 return obj;
3191 }
3192
3193 SwigPyIterator *advance(ptrdiff_t n)
3194 {
3195 return (n > 0) ? incr(n) : decr(-n);
3196 }
3197
3198 bool operator == (const SwigPyIterator& x) const
3199 {
3200 return equal(x);
3201 }
3202
3203 bool operator != (const SwigPyIterator& x) const
3204 {
3205 return ! operator==(x);
3206 }
3207
3208 SwigPyIterator& operator += (ptrdiff_t n)
3209 {
3210 return *advance(n);
3211 }
3212
3213 SwigPyIterator& operator -= (ptrdiff_t n)
3214 {
3215 return *advance(-n);
3216 }
3217
3218 SwigPyIterator* operator + (ptrdiff_t n) const
3219 {
3220 return copy()->advance(n);
3221 }
3222
3223 SwigPyIterator* operator - (ptrdiff_t n) const
3224 {
3225 return copy()->advance(-n);
3226 }
3227
3228 ptrdiff_t operator - (const SwigPyIterator& x) const
3229 {
3230 return x.distance(*this);
3231 }
3232
3233 static swig_type_info* descriptor() {
3234 static int init = 0;
3235 static swig_type_info* desc = 0;
3236 if (!init) {
3237 desc = SWIG_TypeQuery("swig::SwigPyIterator *")SWIG_TypeQueryModule(&swig_module, &swig_module, "swig::SwigPyIterator *"
)
;
3238 init = 1;
3239 }
3240 return desc;
3241 }
3242 };
3243
3244#if defined(SWIGPYTHON_BUILTIN)
3245 inline PyObject* make_output_iterator_builtin (PyObject *pyself)
3246 {
3247 Py_INCREF(pyself)( ((PyObject*)(pyself))->ob_refcnt++);
3248 return pyself;
3249 }
3250#endif
3251}
3252
3253
3254SWIGINTERNstatic __attribute__ ((__unused__)) int
3255SWIG_AsVal_double (PyObject *obj, double *val)
3256{
3257 int res = SWIG_TypeError-5;
3258 if (PyFloat_Check(obj)((((PyObject*)(obj))->ob_type) == (&PyFloat_Type) || PyType_IsSubtype
((((PyObject*)(obj))->ob_type), (&PyFloat_Type)))
) {
3259 if (val) *val = PyFloat_AsDouble(obj);
3260 return SWIG_OK(0);
3261 } else if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3262 if (val) *val = PyInt_AsLong(obj);
3263 return SWIG_OK(0);
3264 } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3265 double v = PyLong_AsDouble(obj);
3266 if (!PyErr_Occurred()) {
3267 if (val) *val = v;
3268 return SWIG_OK(0);
3269 } else {
3270 PyErr_Clear();
3271 }
3272 }
3273#ifdef SWIG_PYTHON_CAST_MODE
3274 {
3275 int dispatch = 0;
3276 double d = PyFloat_AsDouble(obj);
3277 if (!PyErr_Occurred()) {
3278 if (val) *val = d;
3279 return SWIG_AddCast(SWIG_OK)((0));
3280 } else {
3281 PyErr_Clear();
3282 }
3283 if (!dispatch) {
3284 long v = PyLong_AsLong(obj);
3285 if (!PyErr_Occurred()) {
3286 if (val) *val = v;
3287 return SWIG_AddCast(SWIG_AddCast(SWIG_OK))(((0)));
3288 } else {
3289 PyErr_Clear();
3290 }
3291 }
3292 }
3293#endif
3294 return res;
3295}
3296
3297
3298#include <float.h>
3299
3300
3301#include <math.h>
3302
3303
3304SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int
3305SWIG_CanCastAsInteger(double *d, double min, double max) {
3306 double x = *d;
3307 if ((min <= x && x <= max)) {
3308 double fx = floor(x);
3309 double cx = ceil(x);
3310 double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */
3311 if ((errno(*__error()) == EDOM33) || (errno(*__error()) == ERANGE34)) {
3312 errno(*__error()) = 0;
3313 } else {
3314 double summ, reps, diff;
3315 if (rd < x) {
3316 diff = x - rd;
3317 } else if (rd > x) {
3318 diff = rd - x;
3319 } else {
3320 return 1;
3321 }
3322 summ = rd + x;
3323 reps = diff/summ;
3324 if (reps < 8*DBL_EPSILON2.2204460492503131e-16) {
3325 *d = rd;
3326 return 1;
3327 }
3328 }
3329 }
3330 return 0;
3331}
3332
3333
3334SWIGINTERNstatic __attribute__ ((__unused__)) int
3335SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val)
3336{
3337#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
3338 if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3339 long v = PyInt_AsLong(obj);
3340 if (v >= 0) {
3341 if (val) *val = v;
3342 return SWIG_OK(0);
3343 } else {
3344 return SWIG_OverflowError-7;
3345 }
3346 } else
3347#endif
3348 if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3349 unsigned long v = PyLong_AsUnsignedLong(obj);
3350 if (!PyErr_Occurred()) {
3351 if (val) *val = v;
3352 return SWIG_OK(0);
3353 } else {
3354 PyErr_Clear();
3355#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
3356 {
3357 long v = PyLong_AsLong(obj);
3358 if (!PyErr_Occurred()) {
3359 if (v < 0) {
3360 return SWIG_OverflowError-7;
3361 }
3362 } else {
3363 PyErr_Clear();
3364 }
3365 }
3366#endif
3367 }
3368 }
3369#ifdef SWIG_PYTHON_CAST_MODE
3370 {
3371 int dispatch = 0;
3372 unsigned long v = PyLong_AsUnsignedLong(obj);
3373 if (!PyErr_Occurred()) {
3374 if (val) *val = v;
3375 return SWIG_AddCast(SWIG_OK)((0));
3376 } else {
3377 PyErr_Clear();
3378 }
3379 if (!dispatch) {
3380 double d;
3381 int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d));
3382 if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX(9223372036854775807L *2UL+1UL))) {
3383 if (val) *val = (unsigned long)(d);
3384 return res;
3385 }
3386 }
3387 }
3388#endif
3389 return SWIG_TypeError-5;
3390}
3391
3392
3393SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int
3394SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3395{
3396 unsigned long v;
3397 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3398 if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< size_t >(v);
3399 return res;
3400}
3401
3402
3403 #define SWIG_From_longPyLong_FromLong PyLong_FromLong
3404
3405
3406SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
3407SWIG_From_ptrdiff_t (ptrdiff_t value)
3408{
3409 return SWIG_From_longPyLong_FromLong (static_cast< long >(value));
3410}
3411
3412
3413SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
3414 SWIG_From_bool (bool value)
3415{
3416 return PyBool_FromLong(value ? 1 : 0);
3417}
3418
3419
3420SWIGINTERNstatic __attribute__ ((__unused__)) int
3421SWIG_AsVal_long (PyObject *obj, long* val)
3422{
3423 if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3424 if (val) *val = PyInt_AsLong(obj);
3425 return SWIG_OK(0);
3426 } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3427 long v = PyLong_AsLong(obj);
3428 if (!PyErr_Occurred()) {
3429 if (val) *val = v;
3430 return SWIG_OK(0);
3431 } else {
3432 PyErr_Clear();
3433 }
3434 }
3435#ifdef SWIG_PYTHON_CAST_MODE
3436 {
3437 int dispatch = 0;
3438 long v = PyInt_AsLong(obj);
3439 if (!PyErr_Occurred()) {
3440 if (val) *val = v;
3441 return SWIG_AddCast(SWIG_OK)((0));
3442 } else {
3443 PyErr_Clear();
3444 }
3445 if (!dispatch) {
3446 double d;
3447 int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d));
3448 if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, LONG_MIN(-9223372036854775807L -1L), LONG_MAX9223372036854775807L)) {
3449 if (val) *val = (long)(d);
3450 return res;
3451 }
3452 }
3453 }
3454#endif
3455 return SWIG_TypeError-5;
3456}
3457
3458
3459SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int
3460SWIG_AsVal_ptrdiff_t (PyObject * obj, ptrdiff_t *val)
3461{
3462 long v;
3463 int res = SWIG_AsVal_long (obj, val ? &v : 0);
3464 if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< ptrdiff_t >(v);
3465 return res;
3466}
3467
3468
3469#include <stdexcept>
3470
3471
3472#include <algorithm>
3473
3474
3475#include <vector>
3476
3477
3478#include <utility>
3479
3480
3481#include <map>
3482#include <algorithm>
3483#include <stdexcept>
3484
3485
3486/* Put headers and other declarations here that are needed for compilation */
3487#include "GModelPar.hpp"
3488
3489
3490SWIGINTERNstatic __attribute__ ((__unused__)) swig_type_info*
3491SWIG_pchar_descriptor(void)
3492{
3493 static int init = 0;
3494 static swig_type_info* info = 0;
3495 if (!init) {
3496 info = SWIG_TypeQuery("_p_char")SWIG_TypeQueryModule(&swig_module, &swig_module, "_p_char"
)
;
3497 init = 1;
3498 }
3499 return info;
3500}
3501
3502
3503SWIGINTERNstatic __attribute__ ((__unused__)) int
3504SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
3505{
3506#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
3507 if (PyUnicode_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
28))) != 0)
)
3508#else
3509 if (PyString_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
27))) != 0)
)
3510#endif
3511 {
3512 char *cstr; Py_ssize_t len;
3513#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
3514 if (!alloc && cptr) {
3515 /* We can't allow converting without allocation, since the internal
3516 representation of string in Python 3 is UCS-2/UCS-4 but we require
3517 a UTF-8 representation.
3518 TODO(bhy) More detailed explanation */
3519 return SWIG_RuntimeError-3;
3520 }
3521 obj = PyUnicode_AsUTF8StringPyUnicodeUCS2_AsUTF8String(obj);
3522 PyBytes_AsStringAndSizePyString_AsStringAndSize(obj, &cstr, &len);
3523 if(alloc) *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1));
3524#else
3525 PyString_AsStringAndSize(obj, &cstr, &len);
3526#endif
3527 if (cptr) {
3528 if (alloc) {
3529 /*
3530 In python the user should not be able to modify the inner
3531 string representation. To warranty that, if you define
3532 SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string
3533 buffer is always returned.
3534
3535 The default behavior is just to return the pointer value,
3536 so, be careful.
3537 */
3538#if defined(SWIG_PYTHON_SAFE_CSTRINGS)
3539 if (*alloc != SWIG_OLDOBJ((0)))
3540#else
3541 if (*alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1)))
3542#endif
3543 {
3544 *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1)));
3545 *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1));
3546 }
3547 else {
3548 *cptr = cstr;
3549 *alloc = SWIG_OLDOBJ((0));
3550 }
3551 } else {
3552 #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
3553 assert(0)((void)0); /* Should never reach here in Python 3 */
3554 #endif
3555 *cptr = SWIG_Python_str_AsChar(obj);
3556 }
3557 }
3558 if (psize) *psize = len + 1;
3559#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
3560 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)
;
3561#endif
3562 return SWIG_OK(0);
3563 } else {
3564 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3565 if (pchar_descriptor) {
3566 void* vptr = 0;
3567 if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0)SWIG_Python_ConvertPtrAndOwn(obj, &vptr, pchar_descriptor
, 0, 0)
== SWIG_OK(0)) {
3568 if (cptr) *cptr = (char *) vptr;
3569 if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
3570 if (alloc) *alloc = SWIG_OLDOBJ((0));
3571 return SWIG_OK(0);
3572 }
3573 }
3574 }
3575 return SWIG_TypeError-5;
3576}
3577
3578
3579SWIGINTERNstatic __attribute__ ((__unused__)) int
3580SWIG_AsPtr_std_string (PyObject * obj, std::string **val)
3581{
3582 char* buf = 0 ; size_t size = 0; int alloc = SWIG_OLDOBJ((0));
3583 if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)
) >= 0)
) {
3584 if (buf) {
3585 if (val) *val = new std::string(buf, size - 1);
3586 if (alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) delete[] buf;
3587 return SWIG_NEWOBJ((0) | ((1 << 8) << 1));
3588 } else {
3589 if (val) *val = 0;
3590 return SWIG_OLDOBJ((0));
3591 }
3592 } else {
3593 static int init = 0;
3594 static swig_type_info* descriptor = 0;
3595 if (!init) {
3596 descriptor = SWIG_TypeQuery("std::string" " *")SWIG_TypeQueryModule(&swig_module, &swig_module, "std::string"
" *")
;
3597 init = 1;
3598 }
3599 if (descriptor) {
3600 std::string *vptr;
3601 int res = SWIG_ConvertPtr(obj, (void**)&vptr, descriptor, 0)SWIG_Python_ConvertPtrAndOwn(obj, (void**)&vptr, descriptor
, 0, 0)
;
3602 if (SWIG_IsOK(res)(res >= 0) && val) *val = vptr;
3603 return res;
3604 }
3605 }
3606 return SWIG_ERROR(-1);
3607}
3608
3609SWIGINTERNstatic __attribute__ ((__unused__)) GModelPar GModelPar_copy(GModelPar *self){
3610 return (*self);
3611 }
3612
3613/* Put headers and other declarations here that are needed for compilation */
3614#include "GModels.hpp"
3615#include "GModel.hpp"
3616#include "GModelSky.hpp"
3617#include "GModelData.hpp"
3618
3619
3620#include <limits.h>
3621#if !defined(SWIG_NO_LLONG_MAX)
3622# if !defined(LLONG_MAX0x7fffffffffffffffLL) && defined(__GNUC__4) && defined (__LONG_LONG_MAX__9223372036854775807LL)
3623# define LLONG_MAX0x7fffffffffffffffLL __LONG_LONG_MAX__9223372036854775807LL
3624# define LLONG_MIN(-0x7fffffffffffffffLL-1) (-LLONG_MAX0x7fffffffffffffffLL - 1LL)
3625# define ULLONG_MAX0xffffffffffffffffULL (LLONG_MAX0x7fffffffffffffffLL * 2ULL + 1ULL)
3626# endif
3627#endif
3628
3629
3630SWIGINTERNstatic __attribute__ ((__unused__)) int
3631SWIG_AsVal_int (PyObject * obj, int *val)
3632{
3633 long v;
3634 int res = SWIG_AsVal_long (obj, &v);
3635 if (SWIG_IsOK(res)(res >= 0)) {
3636 if ((v < INT_MIN(-2147483647 -1) || v > INT_MAX2147483647)) {
3637 return SWIG_OverflowError-7;
3638 } else {
3639 if (val) *val = static_cast< int >(v);
3640 }
3641 }
3642 return res;
3643}
3644
3645
3646SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
3647 SWIG_From_int (int value)
3648{
3649 return PyInt_FromLong((long) value);
3650}
3651
3652
3653 #define SWIG_From_doublePyFloat_FromDouble PyFloat_FromDouble
3654
3655SWIGINTERNstatic __attribute__ ((__unused__)) GModel *GModels___getitem____SWIG_0(GModels *self,int const &index){
3656 if (index >= 0 && index < self->size()) {
3657 return (*self)[index];
3658 }
3659 else {
3660 throw GException::out_of_range("__getitem__(int)", "Model index",
3661 index, self->size());
3662 }
3663 }
3664SWIGINTERNstatic __attribute__ ((__unused__)) GModel *GModels___getitem____SWIG_1(GModels *self,std::string const &name){
3665 return (*self)[name];
3666 }
3667SWIGINTERNstatic __attribute__ ((__unused__)) void GModels___setitem____SWIG_0(GModels *self,int const &index,GModel const &val){
3668 if (index >= 0 && index < self->size()) {
3669 self->set(index, val);
3670 return;
3671 }
3672 else {
3673 throw GException::out_of_range("__setitem__(int)", "Model index",
3674 index, self->size());
3675 }
3676 }
3677SWIGINTERNstatic __attribute__ ((__unused__)) void GModels___setitem____SWIG_1(GModels *self,std::string const &name,GModel const &val){
3678 self->set(name, val);
3679 return;
3680 }
3681SWIGINTERNstatic __attribute__ ((__unused__)) GModels GModels_copy(GModels *self){
3682 return (*self);
3683 }
3684
3685/* Put headers and other declarations here that are needed for compilation */
3686#include "GModel.hpp"
3687#include "GTools.hpp"
3688
3689
3690SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
3691SWIG_FromCharPtrAndSize(const char* carray, size_t size)
3692{
3693 if (carray) {
3694 if (size > INT_MAX2147483647) {
3695 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3696 return pchar_descriptor ?
3697 SWIG_InternalNewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0)SWIG_Python_NewPointerObj(__null, const_cast< char * >(
carray), pchar_descriptor, 0)
: SWIG_Py_Void();
3698 } else {
3699#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
3700 return PyUnicode_FromStringAndSizePyUnicodeUCS2_FromStringAndSize(carray, static_cast< int >(size));
3701#else
3702 return PyString_FromStringAndSize(carray, static_cast< int >(size));
3703#endif
3704 }
3705 } else {
3706 return SWIG_Py_Void();
3707 }
3708}
3709
3710
3711SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
3712SWIG_From_std_string (const std::string& s)
3713{
3714 return SWIG_FromCharPtrAndSize(s.data(), s.size());
3715}
3716
3717SWIGINTERNstatic __attribute__ ((__unused__)) GModelPar &GModel___getitem____SWIG_0(GModel *self,int const &index){
3718 if (index >= 0 && index < self->size()) {
3719 return (*self)[index];
3720 }
3721 else {
3722 throw GException::out_of_range("__getitem__(int)", index, self->size());
3723 }
3724 }
3725SWIGINTERNstatic __attribute__ ((__unused__)) GModelPar &GModel___getitem____SWIG_1(GModel *self,std::string const &name){
3726 return (*self)[name];
3727 }
3728SWIGINTERNstatic __attribute__ ((__unused__)) void GModel___setitem____SWIG_0(GModel *self,int const &index,GModelPar const &val){
3729 if (index>=0 && index < self->size()) {
3730 (*self)[index] = val;
3731 return;
3732 }
3733 else {
3734 throw GException::out_of_range("__setitem__(int)", index, self->size());
3735 }
3736 }
3737SWIGINTERNstatic __attribute__ ((__unused__)) void GModel___setitem____SWIG_1(GModel *self,std::string const &name,GModelPar const &val){
3738 (*self)[name] = val;
3739 return;
3740 }
3741
3742/* Put headers and other declarations here that are needed for compilation */
3743#include "GModelRegistry.hpp"
3744#include "GTools.hpp"
3745
3746
3747/* Put headers and other declarations here that are needed for compilation */
3748#include "GModelSky.hpp"
3749#include "GModelSpatial.hpp"
3750#include "GModelSpatialPointSource.hpp"
3751#include "GModelSpatialRadial.hpp"
3752#include "GModelSpatialRadialDisk.hpp"
3753#include "GModelSpatialRadialGauss.hpp"
3754#include "GModelSpatialRadialShell.hpp"
3755#include "GModelSpatialElliptical.hpp"
3756#include "GModelSpatialDiffuse.hpp"
3757#include "GModelSpatialDiffuseConst.hpp"
3758#include "GModelSpatialDiffuseCube.hpp"
3759#include "GModelSpatialDiffuseMap.hpp"
3760#include "GModelSpectral.hpp"
3761#include "GModelSpectralConst.hpp"
3762#include "GModelSpectralFunc.hpp"
3763#include "GModelSpectralNodes.hpp"
3764#include "GModelSpectralPlaw.hpp"
3765#include "GModelSpectralPlaw2.hpp"
3766#include "GModelSpectralLogParabola.hpp"
3767#include "GModelTemporal.hpp"
3768#include "GModelTemporalConst.hpp"
3769
3770
3771/* Put headers and other declarations here that are needed for compilation */
3772#include "GModelData.hpp"
3773#include "GTools.hpp"
3774
3775
3776/* Put headers and other declarations here that are needed for compilation */
3777#include "GModelSpatial.hpp"
3778#include "GTools.hpp"
3779
3780SWIGINTERNstatic __attribute__ ((__unused__)) GModelPar &GModelSpatial___getitem____SWIG_0(GModelSpatial *self,int const &index){
3781 if (index >= 0 && index < self->size()) {
3782 return (*self)[index];
3783 }
3784 else {
3785 throw GException::out_of_range("__getitem__(int)", index, self->size());
3786 }
3787 }
3788SWIGINTERNstatic __attribute__ ((__unused__)) GModelPar &GModelSpatial___getitem____SWIG_1(GModelSpatial *self,std::string const &name){
3789 return (*self)[name];
3790 }
3791SWIGINTERNstatic __attribute__ ((__unused__)) void GModelSpatial___setitem____SWIG_0(GModelSpatial *self,int const &index,GModelPar const &val){
3792 if (index>=0 && index < self->size()) {
3793 (*self)[index] = val;
3794 return;
3795 }
3796 else {
3797 throw GException::out_of_range("__setitem__(int)", index, self->size());
3798 }
3799 }
3800SWIGINTERNstatic __attribute__ ((__unused__)) void GModelSpatial___setitem____SWIG_1(GModelSpatial *self,std::string const &name,GModelPar const &val){
3801 (*self)[name] = val;
3802 return;
3803 }
3804
3805/* Put headers and other declarations here that are needed for compilation */
3806#include "GModelSpatialRegistry.hpp"
3807#include "GTools.hpp"
3808
3809SWIGINTERNstatic __attribute__ ((__unused__)) char *GModelSpatialRegistry___str__(GModelSpatialRegistry *self){
3810 return gammalib::tochar(self->print());
3811 }
3812
3813SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
3814SWIG_FromCharPtr(const char *cptr)
3815{
3816 return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
3817}
3818
3819
3820/* Put headers and other declarations here that are needed for compilation */
3821#include "GModelSpatialPointSource.hpp"
3822#include "GTools.hpp"
3823
3824SWIGINTERNstatic __attribute__ ((__unused__)) GModelSpatialPointSource GModelSpatialPointSource_copy(GModelSpatialPointSource *self){
3825 return (*self);
3826 }
3827
3828/* Put headers and other declarations here that are needed for compilation */
3829#include "GModelSpatialRadial.hpp"
3830
3831
3832/* Put headers and other declarations here that are needed for compilation */
3833#include "GModelSpatialRadialDisk.hpp"
3834#include "GTools.hpp"
3835
3836SWIGINTERNstatic __attribute__ ((__unused__)) GModelSpatialRadialDisk GModelSpatialRadialDisk_copy(GModelSpatialRadialDisk *self){
3837 return (*self);
3838 }
3839SWIGINTERNstatic __attribute__ ((__unused__)) double GModelSpatialRadialDisk_eval__SWIG_1(GModelSpatialRadialDisk const *self,GPhoton const &photon){
3840 return self->GModelSpatialRadial::eval(photon);
3841 }
3842SWIGINTERNstatic __attribute__ ((__unused__)) double GModelSpatialRadialDisk_eval_gradients__SWIG_1(GModelSpatialRadialDisk const *self,GPhoton const &photon){
3843 return self->GModelSpatialRadial::eval_gradients(photon);
3844 }
3845
3846/* Put headers and other declarations here that are needed for compilation */
3847#include "GModelSpatialRadialGauss.hpp"
3848#include "GTools.hpp"
3849
3850SWIGINTERNstatic __attribute__ ((__unused__)) GModelSpatialRadialGauss GModelSpatialRadialGauss_copy(GModelSpatialRadialGauss *self){
3851 return (*self);
3852 }
3853SWIGINTERNstatic __attribute__ ((__unused__)) double GModelSpatialRadialGauss_eval__SWIG_1(GModelSpatialRadialGauss const *self,GPhoton const &photon){
3854 return self->GModelSpatialRadial::eval(photon);
3855 }
3856SWIGINTERNstatic __attribute__ ((__unused__)) double GModelSpatialRadialGauss_eval_gradients__SWIG_1(GModelSpatialRadialGauss const *self,GPhoton const &photon){
3857 return self->GModelSpatialRadial::eval_gradients(photon);
3858 }
3859
3860/* Put headers and other declarations here that are needed for compilation */
3861#include "GModelSpatialRadialShell.hpp"
3862#include "GTools.hpp"
3863
3864
3865SWIGINTERNstatic __attribute__ ((__unused__)) int
3866SWIG_AsVal_bool (PyObject *obj, bool *val)
3867{
3868 int r = PyObject_IsTrue(obj);
3869 if (r == -1)
3870 return SWIG_ERROR(-1);
3871 if (val) *val = r ? true : false;
3872 return SWIG_OK(0);
3873}
3874
3875SWIGINTERNstatic __attribute__ ((__unused__)) GModelSpatialRadialShell GModelSpatialRadialShell_copy(GModelSpatialRadialShell *self){
3876 return (*self);
3877 }
3878SWIGINTERNstatic __attribute__ ((__unused__)) double GModelSpatialRadialShell_eval__SWIG_1(GModelSpatialRadialShell const *self,GPhoton const &photon){
3879 return self->GModelSpatialRadial::eval(photon);
3880 }
3881SWIGINTERNstatic __attribute__ ((__unused__)) double GModelSpatialRadialShell_eval_gradients__SWIG_1(GModelSpatialRadialShell const *self,GPhoton const &photon){
3882 return self->GModelSpatialRadial::eval_gradients(photon);
3883 }
3884
3885/* Put headers and other declarations here that are needed for compilation */
3886#include "GModelSpatialElliptical.hpp"
3887
3888
3889/* Put headers and other declarations here that are needed for compilation */
3890#include "GModelSpatialEllipticalDisk.hpp"
3891#include "GTools.hpp"
3892
3893SWIGINTERNstatic __attribute__ ((__unused__)) GModelSpatialEllipticalDisk GModelSpatialEllipticalDisk_copy(GModelSpatialEllipticalDisk *self){
3894 return (*self);
3895 }
3896SWIGINTERNstatic __attribute__ ((__unused__)) double GModelSpatialEllipticalDisk_eval__SWIG_1(GModelSpatialEllipticalDisk const *self,GPhoton const &photon){
3897 return self->GModelSpatialElliptical::eval(photon);
3898 }
3899SWIGINTERNstatic __attribute__ ((__unused__)) double GModelSpatialEllipticalDisk_eval_gradients__SWIG_1(GModelSpatialEllipticalDisk const *self,GPhoton const &photon){
3900 return self->GModelSpatialElliptical::eval_gradients(photon);
3901 }
3902
3903/* Put headers and other declarations here that are needed for compilation */
3904#include "GModelSpatialDiffuse.hpp"
3905
3906
3907/* Put headers and other declarations here that are needed for compilation */
3908#include "GModelSpatialDiffuseConst.hpp"
3909#include "GTools.hpp"
3910
3911SWIGINTERNstatic __attribute__ ((__unused__)) GModelSpatialDiffuseConst GModelSpatialDiffuseConst_copy(GModelSpatialDiffuseConst *self){
3912 return (*self);
3913 }
3914
3915/* Put headers and other declarations here that are needed for compilation */
3916#include "GModelSpatialDiffuseCube.hpp"
3917#include "GTools.hpp"
3918
3919SWIGINTERNstatic __attribute__ ((__unused__)) GModelSpatialDiffuseCube GModelSpatialDiffuseCube_copy(GModelSpatialDiffuseCube *self){
3920 return (*self);
3921 }
3922
3923/* Put headers and other declarations here that are needed for compilation */
3924#include "GModelSpatialDiffuseMap.hpp"
3925#include "GTools.hpp"
3926
3927SWIGINTERNstatic __attribute__ ((__unused__)) GModelSpatialDiffuseMap GModelSpatialDiffuseMap_copy(GModelSpatialDiffuseMap *self){
3928 return (*self);
3929 }
3930
3931/* Put headers and other declarations here that are needed for compilation */
3932#include "GModelSpectral.hpp"
3933#include "GTools.hpp"
3934
3935SWIGINTERNstatic __attribute__ ((__unused__)) GModelPar &GModelSpectral___getitem____SWIG_0(GModelSpectral *self,int const &index){
3936 if (index >= 0 && index < self->size()) {
3937 return (*self)[index];
3938 }
3939 else {
3940 throw GException::out_of_range("__getitem__(int)", index, self->size());
3941 }
3942 }
3943SWIGINTERNstatic __attribute__ ((__unused__)) GModelPar &GModelSpectral___getitem____SWIG_1(GModelSpectral *self,std::string const &name){
3944 return (*self)[name];
3945 }
3946SWIGINTERNstatic __attribute__ ((__unused__)) void GModelSpectral___setitem____SWIG_0(GModelSpectral *self,int const &index,GModelPar const &val){
3947 if (index>=0 && index < self->size()) {
3948 (*self)[index] = val;
3949 return;
3950 }
3951 else {
3952 throw GException::out_of_range("__setitem__(int)", index, self->size());
3953 }
3954 }
3955SWIGINTERNstatic __attribute__ ((__unused__)) void GModelSpectral___setitem____SWIG_1(GModelSpectral *self,std::string const &name,GModelPar const &val){
3956 (*self)[name] = val;
3957 return;
3958 }
3959
3960/* Put headers and other declarations here that are needed for compilation */
3961#include "GModelSpectralRegistry.hpp"
3962#include "GTools.hpp"
3963
3964SWIGINTERNstatic __attribute__ ((__unused__)) char *GModelSpectralRegistry___str__(GModelSpectralRegistry *self){
3965 return gammalib::tochar(self->print());
3966 }
3967
3968/* Put headers and other declarations here that are needed for compilation */
3969#include "GModelSpectralConst.hpp"
3970#include "GTools.hpp"
3971
3972SWIGINTERNstatic __attribute__ ((__unused__)) GModelSpectralConst GModelSpectralConst_copy(GModelSpectralConst *self){
3973 return (*self);
3974 }
3975
3976/* Put headers and other declarations here that are needed for compilation */
3977#include "GModelSpectralExpPlaw.hpp"
3978#include "GTools.hpp"
3979
3980SWIGINTERNstatic __attribute__ ((__unused__)) GModelSpectralExpPlaw GModelSpectralExpPlaw_copy(GModelSpectralExpPlaw *self){
3981 return (*self);
3982 }
3983
3984/* Put headers and other declarations here that are needed for compilation */
3985#include "GModelSpectralFunc.hpp"
3986#include "GTools.hpp"
3987
3988SWIGINTERNstatic __attribute__ ((__unused__)) GModelSpectralFunc GModelSpectralFunc_copy(GModelSpectralFunc *self){
3989 return (*self);
3990 }
3991
3992/* Put headers and other declarations here that are needed for compilation */
3993#include "GModelSpectralNodes.hpp"
3994#include "GTools.hpp"
3995
3996SWIGINTERNstatic __attribute__ ((__unused__)) GModelSpectralNodes GModelSpectralNodes_copy(GModelSpectralNodes *self){
3997 return (*self);
3998 }
3999
4000/* Put headers and other declarations here that are needed for compilation */
4001#include "GModelSpectralPlaw.hpp"
4002#include "GTools.hpp"
4003
4004SWIGINTERNstatic __attribute__ ((__unused__)) GModelSpectralPlaw GModelSpectralPlaw_copy(GModelSpectralPlaw *self){
4005 return (*self);
4006 }
4007
4008/* Put headers and other declarations here that are needed for compilation */
4009#include "GModelSpectralPlaw2.hpp"
4010#include "GTools.hpp"
4011
4012SWIGINTERNstatic __attribute__ ((__unused__)) GModelSpectralPlaw2 GModelSpectralPlaw2_copy(GModelSpectralPlaw2 *self){
4013 return (*self);
4014 }
4015
4016/* Put headers and other declarations here that are needed for compilation */
4017#include "GModelSpectralLogParabola.hpp"
4018#include "GTools.hpp"
4019
4020SWIGINTERNstatic __attribute__ ((__unused__)) GModelSpectralLogParabola GModelSpectralLogParabola_copy(GModelSpectralLogParabola *self){
4021 return (*self);
4022 }
4023
4024/* Put headers and other declarations here that are needed for compilation */
4025#include "GModelTemporal.hpp"
4026#include "GTools.hpp"
4027
4028SWIGINTERNstatic __attribute__ ((__unused__)) GModelPar &GModelTemporal___getitem____SWIG_0(GModelTemporal *self,int const &index){
4029 if (index >= 0 && index < self->size()) {
4030 return (*self)[index];
4031 }
4032 else {
4033 throw GException::out_of_range("__getitem__(int)", index, self->size());
4034 }
4035 }
4036SWIGINTERNstatic __attribute__ ((__unused__)) GModelPar &GModelTemporal___getitem____SWIG_1(GModelTemporal *self,std::string const &name){
4037 return (*self)[name];
4038 }
4039SWIGINTERNstatic __attribute__ ((__unused__)) void GModelTemporal___setitem____SWIG_0(GModelTemporal *self,int const &index,GModelPar const &val){
4040 if (index>=0 && index < self->size()) {
4041 (*self)[index] = val;
4042 return;
4043 }
4044 else {
4045 throw GException::out_of_range("__setitem__(int)", index, self->size());
4046 }
4047 }
4048SWIGINTERNstatic __attribute__ ((__unused__)) void GModelTemporal___setitem____SWIG_1(GModelTemporal *self,std::string const &name,GModelPar const &val){
4049 (*self)[name] = val;
4050 return;
4051 }
4052
4053/* Put headers and other declarations here that are needed for compilation */
4054#include "GModelTemporalRegistry.hpp"
4055#include "GTools.hpp"
4056
4057
4058/* Put headers and other declarations here that are needed for compilation */
4059#include "GModelTemporalConst.hpp"
4060#include "GTools.hpp"
4061
4062SWIGINTERNstatic __attribute__ ((__unused__)) GModelTemporalConst GModelTemporalConst_copy(GModelTemporalConst *self){
4063 return (*self);
4064 }
4065#ifdef __cplusplus199711L
4066extern "C" {
4067#endif
4068SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_SwigPyIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4069 PyObject *resultobj = 0;
4070 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4071 void *argp1 = 0 ;
4072 int res1 = 0 ;
4073 PyObject * obj0 = 0 ;
4074
4075 if (!PyArg_ParseTuple(args,(char *)"O:delete_SwigPyIterator",&obj0)) SWIG_failgoto fail;
4076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[53]
, 0x1 | 0, 0)
;
4077 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4078 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)
;
4079 }
4080 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4081 delete arg1;
4082 resultobj = SWIG_Py_Void();
4083 return resultobj;
4084fail:
4085 return NULL__null;
4086}
4087
4088
4089SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4090 PyObject *resultobj = 0;
4091 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4092 void *argp1 = 0 ;
4093 int res1 = 0 ;
4094 PyObject * obj0 = 0 ;
4095 PyObject *result = 0 ;
4096
4097 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_value",&obj0)) SWIG_failgoto fail;
4098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[53]
, 0 | 0, 0)
;
4099 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4100 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)
;
4101 }
4102 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4103 try {
4104 result = (PyObject *)((swig::SwigPyIterator const *)arg1)->value();
4105 }
4106 catch(swig::stop_iteration &_e) {
4107 {
4108 (void)_e;
4109 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4110 SWIG_failgoto fail;
4111 }
4112 }
4113
4114 resultobj = result;
4115 return resultobj;
4116fail:
4117 return NULL__null;
4118}
4119
4120
4121SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4122 PyObject *resultobj = 0;
4123 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4124 size_t arg2 ;
4125 void *argp1 = 0 ;
4126 int res1 = 0 ;
4127 size_t val2 ;
4128 int ecode2 = 0 ;
4129 PyObject * obj0 = 0 ;
4130 PyObject * obj1 = 0 ;
4131 swig::SwigPyIterator *result = 0 ;
4132
4133 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_incr",&obj0,&obj1)) SWIG_failgoto fail;
4134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[53]
, 0 | 0, 0)
;
4135 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4136 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)
;
4137 }
4138 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4139 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
4140 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4141 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)
;
4142 }
4143 arg2 = static_cast< size_t >(val2);
4144 try {
4145 result = (swig::SwigPyIterator *)(arg1)->incr(arg2);
4146 }
4147 catch(swig::stop_iteration &_e) {
4148 {
4149 (void)_e;
4150 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4151 SWIG_failgoto fail;
4152 }
4153 }
4154
4155 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[53], 0
| 0)
;
4156 return resultobj;
4157fail:
4158 return NULL__null;
4159}
4160
4161
4162SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4163 PyObject *resultobj = 0;
4164 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4165 void *argp1 = 0 ;
4166 int res1 = 0 ;
4167 PyObject * obj0 = 0 ;
4168 swig::SwigPyIterator *result = 0 ;
4169
4170 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_incr",&obj0)) SWIG_failgoto fail;
4171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[53]
, 0 | 0, 0)
;
4172 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4173 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)
;
4174 }
4175 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4176 try {
4177 result = (swig::SwigPyIterator *)(arg1)->incr();
4178 }
4179 catch(swig::stop_iteration &_e) {
4180 {
4181 (void)_e;
4182 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4183 SWIG_failgoto fail;
4184 }
4185 }
4186
4187 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[53], 0
| 0)
;
4188 return resultobj;
4189fail:
4190 return NULL__null;
4191}
4192
4193
4194SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr(PyObject *self, PyObject *args) {
4195 int argc;
4196 PyObject *argv[3];
4197 int ii;
4198
4199 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
4200 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
4201 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
4202 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
4203 }
4204 if (argc == 1) {
4205 int _v;
4206 void *vptr = 0;
4207 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[53
], 0, 0)
;
4208 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4209 if (_v) {
4210 return _wrap_SwigPyIterator_incr__SWIG_1(self, args);
4211 }
4212 }
4213 if (argc == 2) {
4214 int _v;
4215 void *vptr = 0;
4216 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[53
], 0, 0)
;
4217 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4218 if (_v) {
4219 {
4220 int res = SWIG_AsVal_size_t(argv[1], NULL__null);
4221 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4222 }
4223 if (_v) {
4224 return _wrap_SwigPyIterator_incr__SWIG_0(self, args);
4225 }
4226 }
4227 }
4228
4229fail:
4230 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_incr'.\n"
4231 " Possible C/C++ prototypes are:\n"
4232 " swig::SwigPyIterator::incr(size_t)\n"
4233 " swig::SwigPyIterator::incr()\n");
4234 return 0;
4235}
4236
4237
4238SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4239 PyObject *resultobj = 0;
4240 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4241 size_t arg2 ;
4242 void *argp1 = 0 ;
4243 int res1 = 0 ;
4244 size_t val2 ;
4245 int ecode2 = 0 ;
4246 PyObject * obj0 = 0 ;
4247 PyObject * obj1 = 0 ;
4248 swig::SwigPyIterator *result = 0 ;
4249
4250 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_decr",&obj0,&obj1)) SWIG_failgoto fail;
4251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[53]
, 0 | 0, 0)
;
4252 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4253 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)
;
4254 }
4255 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4256 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
4257 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4258 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)
;
4259 }
4260 arg2 = static_cast< size_t >(val2);
4261 try {
4262 result = (swig::SwigPyIterator *)(arg1)->decr(arg2);
4263 }
4264 catch(swig::stop_iteration &_e) {
4265 {
4266 (void)_e;
4267 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4268 SWIG_failgoto fail;
4269 }
4270 }
4271
4272 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[53], 0
| 0)
;
4273 return resultobj;
4274fail:
4275 return NULL__null;
4276}
4277
4278
4279SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4280 PyObject *resultobj = 0;
4281 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4282 void *argp1 = 0 ;
4283 int res1 = 0 ;
4284 PyObject * obj0 = 0 ;
4285 swig::SwigPyIterator *result = 0 ;
4286
4287 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_decr",&obj0)) SWIG_failgoto fail;
4288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[53]
, 0 | 0, 0)
;
4289 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4290 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)
;
4291 }
4292 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4293 try {
4294 result = (swig::SwigPyIterator *)(arg1)->decr();
4295 }
4296 catch(swig::stop_iteration &_e) {
4297 {
4298 (void)_e;
4299 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4300 SWIG_failgoto fail;
4301 }
4302 }
4303
4304 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[53], 0
| 0)
;
4305 return resultobj;
4306fail:
4307 return NULL__null;
4308}
4309
4310
4311SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr(PyObject *self, PyObject *args) {
4312 int argc;
4313 PyObject *argv[3];
4314 int ii;
4315
4316 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
4317 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
4318 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
4319 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
4320 }
4321 if (argc == 1) {
4322 int _v;
4323 void *vptr = 0;
4324 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[53
], 0, 0)
;
4325 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4326 if (_v) {
4327 return _wrap_SwigPyIterator_decr__SWIG_1(self, args);
4328 }
4329 }
4330 if (argc == 2) {
4331 int _v;
4332 void *vptr = 0;
4333 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[53
], 0, 0)
;
4334 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4335 if (_v) {
4336 {
4337 int res = SWIG_AsVal_size_t(argv[1], NULL__null);
4338 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4339 }
4340 if (_v) {
4341 return _wrap_SwigPyIterator_decr__SWIG_0(self, args);
4342 }
4343 }
4344 }
4345
4346fail:
4347 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_decr'.\n"
4348 " Possible C/C++ prototypes are:\n"
4349 " swig::SwigPyIterator::decr(size_t)\n"
4350 " swig::SwigPyIterator::decr()\n");
4351 return 0;
4352}
4353
4354
4355SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4356 PyObject *resultobj = 0;
4357 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4358 swig::SwigPyIterator *arg2 = 0 ;
4359 void *argp1 = 0 ;
4360 int res1 = 0 ;
4361 void *argp2 = 0 ;
4362 int res2 = 0 ;
4363 PyObject * obj0 = 0 ;
4364 PyObject * obj1 = 0 ;
4365 ptrdiff_t result;
4366
4367 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_distance",&obj0,&obj1)) SWIG_failgoto fail;
4368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[53]
, 0 | 0, 0)
;
4369 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4370 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)
;
4371 }
4372 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4373 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[53]
, 0 | 0, 0)
;
4374 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4375 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)
;
4376 }
4377 if (!argp2) {
4378 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
)
;
4379 }
4380 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4381 try {
4382 result = ((swig::SwigPyIterator const *)arg1)->distance((swig::SwigPyIterator const &)*arg2);
4383 }
4384 catch(std::invalid_argument &_e) {
4385 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[
52]), SWIG_Python_NewPointerObj(__null, (new std::invalid_argument
(static_cast< const std::invalid_argument& >(_e))),
swig_types[52], 0x1))
; SWIG_failgoto fail;
4386 }
4387
4388 resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
4389 return resultobj;
4390fail:
4391 return NULL__null;
4392}
4393
4394
4395SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_equal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4396 PyObject *resultobj = 0;
4397 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4398 swig::SwigPyIterator *arg2 = 0 ;
4399 void *argp1 = 0 ;
4400 int res1 = 0 ;
4401 void *argp2 = 0 ;
4402 int res2 = 0 ;
4403 PyObject * obj0 = 0 ;
4404 PyObject * obj1 = 0 ;
4405 bool result;
4406
4407 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_equal",&obj0,&obj1)) SWIG_failgoto fail;
4408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[53]
, 0 | 0, 0)
;
4409 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4410 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)
;
4411 }
4412 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4413 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[53]
, 0 | 0, 0)
;
4414 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4415 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)
;
4416 }
4417 if (!argp2) {
4418 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
)
;
4419 }
4420 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4421 try {
4422 result = (bool)((swig::SwigPyIterator const *)arg1)->equal((swig::SwigPyIterator const &)*arg2);
4423 }
4424 catch(std::invalid_argument &_e) {
4425 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[
52]), SWIG_Python_NewPointerObj(__null, (new std::invalid_argument
(static_cast< const std::invalid_argument& >(_e))),
swig_types[52], 0x1))
; SWIG_failgoto fail;
4426 }
4427
4428 resultobj = SWIG_From_bool(static_cast< bool >(result));
4429 return resultobj;
4430fail:
4431 return NULL__null;
4432}
4433
4434
4435SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4436 PyObject *resultobj = 0;
4437 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4438 void *argp1 = 0 ;
4439 int res1 = 0 ;
4440 PyObject * obj0 = 0 ;
4441 swig::SwigPyIterator *result = 0 ;
4442
4443 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_copy",&obj0)) SWIG_failgoto fail;
4444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[53]
, 0 | 0, 0)
;
4445 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4446 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)
;
4447 }
4448 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4449 result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->copy();
4450 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[53], 0x1
| 0)
;
4451 return resultobj;
4452fail:
4453 return NULL__null;
4454}
4455
4456
4457SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4458 PyObject *resultobj = 0;
4459 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4460 void *argp1 = 0 ;
4461 int res1 = 0 ;
4462 PyObject * obj0 = 0 ;
4463 PyObject *result = 0 ;
4464
4465 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_next",&obj0)) SWIG_failgoto fail;
4466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[53]
, 0 | 0, 0)
;
4467 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4468 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)
;
4469 }
4470 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4471 try {
4472 result = (PyObject *)(arg1)->next();
4473 }
4474 catch(swig::stop_iteration &_e) {
4475 {
4476 (void)_e;
4477 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4478 SWIG_failgoto fail;
4479 }
4480 }
4481
4482 resultobj = result;
4483 return resultobj;
4484fail:
4485 return NULL__null;
4486}
4487
4488
4489SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___next__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4490 PyObject *resultobj = 0;
4491 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4492 void *argp1 = 0 ;
4493 int res1 = 0 ;
4494 PyObject * obj0 = 0 ;
4495 PyObject *result = 0 ;
4496
4497 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator___next__",&obj0)) SWIG_failgoto fail;
4498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[53]
, 0 | 0, 0)
;
4499 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4500 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)
;
4501 }
4502 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4503 try {
4504 result = (PyObject *)(arg1)->__next__();
4505 }
4506 catch(swig::stop_iteration &_e) {
4507 {
4508 (void)_e;
4509 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4510 SWIG_failgoto fail;
4511 }
4512 }
4513
4514 resultobj = result;
4515 return resultobj;
4516fail:
4517 return NULL__null;
4518}
4519
4520
4521SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_previous(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4522 PyObject *resultobj = 0;
4523 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4524 void *argp1 = 0 ;
4525 int res1 = 0 ;
4526 PyObject * obj0 = 0 ;
4527 PyObject *result = 0 ;
4528
4529 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_previous",&obj0)) SWIG_failgoto fail;
4530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[53]
, 0 | 0, 0)
;
4531 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4532 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)
;
4533 }
4534 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4535 try {
4536 result = (PyObject *)(arg1)->previous();
4537 }
4538 catch(swig::stop_iteration &_e) {
4539 {
4540 (void)_e;
4541 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4542 SWIG_failgoto fail;
4543 }
4544 }
4545
4546 resultobj = result;
4547 return resultobj;
4548fail:
4549 return NULL__null;
4550}
4551
4552
4553SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_advance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4554 PyObject *resultobj = 0;
4555 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4556 ptrdiff_t arg2 ;
4557 void *argp1 = 0 ;
4558 int res1 = 0 ;
4559 ptrdiff_t val2 ;
4560 int ecode2 = 0 ;
4561 PyObject * obj0 = 0 ;
4562 PyObject * obj1 = 0 ;
4563 swig::SwigPyIterator *result = 0 ;
4564
4565 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_advance",&obj0,&obj1)) SWIG_failgoto fail;
4566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[53]
, 0 | 0, 0)
;
4567 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4568 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)
;
4569 }
4570 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4571 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4572 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4573 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)
;
4574 }
4575 arg2 = static_cast< ptrdiff_t >(val2);
4576 try {
4577 result = (swig::SwigPyIterator *)(arg1)->advance(arg2);
4578 }
4579 catch(swig::stop_iteration &_e) {
4580 {
4581 (void)_e;
4582 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4583 SWIG_failgoto fail;
4584 }
4585 }
4586
4587 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[53], 0
| 0)
;
4588 return resultobj;
4589fail:
4590 return NULL__null;
4591}
4592
4593
4594SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4595 PyObject *resultobj = 0;
4596 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4597 swig::SwigPyIterator *arg2 = 0 ;
4598 void *argp1 = 0 ;
4599 int res1 = 0 ;
4600 void *argp2 = 0 ;
4601 int res2 = 0 ;
4602 PyObject * obj0 = 0 ;
4603 PyObject * obj1 = 0 ;
4604 bool result;
4605
4606 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___eq__",&obj0,&obj1)) SWIG_failgoto fail;
4607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[53]
, 0 | 0, 0)
;
4608 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4609 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)
;
4610 }
4611 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4612 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[53]
, 0 | 0, 0)
;
4613 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4614 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)
;
4615 }
4616 if (!argp2) {
4617 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
)
;
4618 }
4619 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4620 result = (bool)((swig::SwigPyIterator const *)arg1)->operator ==((swig::SwigPyIterator const &)*arg2);
4621 resultobj = SWIG_From_bool(static_cast< bool >(result));
4622 return resultobj;
4623fail:
4624 return NULL__null;
4625}
4626
4627
4628SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4629 PyObject *resultobj = 0;
4630 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4631 swig::SwigPyIterator *arg2 = 0 ;
4632 void *argp1 = 0 ;
4633 int res1 = 0 ;
4634 void *argp2 = 0 ;
4635 int res2 = 0 ;
4636 PyObject * obj0 = 0 ;
4637 PyObject * obj1 = 0 ;
4638 bool result;
4639
4640 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___ne__",&obj0,&obj1)) SWIG_failgoto fail;
4641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[53]
, 0 | 0, 0)
;
4642 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4643 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)
;
4644 }
4645 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4646 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[53]
, 0 | 0, 0)
;
4647 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4648 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)
;
4649 }
4650 if (!argp2) {
4651 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
)
;
4652 }
4653 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4654 result = (bool)((swig::SwigPyIterator const *)arg1)->operator !=((swig::SwigPyIterator const &)*arg2);
4655 resultobj = SWIG_From_bool(static_cast< bool >(result));
4656 return resultobj;
4657fail:
4658 return NULL__null;
4659}
4660
4661
4662SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4663 PyObject *resultobj = 0;
4664 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4665 ptrdiff_t arg2 ;
4666 void *argp1 = 0 ;
4667 int res1 = 0 ;
4668 ptrdiff_t val2 ;
4669 int ecode2 = 0 ;
4670 PyObject * obj0 = 0 ;
4671 PyObject * obj1 = 0 ;
4672 swig::SwigPyIterator *result = 0 ;
4673
4674 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___iadd__",&obj0,&obj1)) SWIG_failgoto fail;
4675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[53]
, 0x1 | 0, 0)
;
4676 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4677 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)
;
4678 }
4679 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4680 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4681 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4682 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)
;
4683 }
4684 arg2 = static_cast< ptrdiff_t >(val2);
4685 try {
4686 result = (swig::SwigPyIterator *) &(arg1)->operator +=(arg2);
4687 }
4688 catch(swig::stop_iteration &_e) {
4689 {
4690 (void)_e;
4691 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4692 SWIG_failgoto fail;
4693 }
4694 }
4695
4696 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[53], 0x1
| 0)
;
4697 return resultobj;
4698fail:
4699 return NULL__null;
4700}
4701
4702
4703SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4704 PyObject *resultobj = 0;
4705 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4706 ptrdiff_t arg2 ;
4707 void *argp1 = 0 ;
4708 int res1 = 0 ;
4709 ptrdiff_t val2 ;
4710 int ecode2 = 0 ;
4711 PyObject * obj0 = 0 ;
4712 PyObject * obj1 = 0 ;
4713 swig::SwigPyIterator *result = 0 ;
4714
4715 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___isub__",&obj0,&obj1)) SWIG_failgoto fail;
4716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[53]
, 0x1 | 0, 0)
;
4717 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4718 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)
;
4719 }
4720 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4721 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4722 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4723 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)
;
4724 }
4725 arg2 = static_cast< ptrdiff_t >(val2);
4726 try {
4727 result = (swig::SwigPyIterator *) &(arg1)->operator -=(arg2);
4728 }
4729 catch(swig::stop_iteration &_e) {
4730 {
4731 (void)_e;
4732 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4733 SWIG_failgoto fail;
4734 }
4735 }
4736
4737 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[53], 0x1
| 0)
;
4738 return resultobj;
4739fail:
4740 return NULL__null;
4741}
4742
4743
4744SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4745 PyObject *resultobj = 0;
4746 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4747 ptrdiff_t arg2 ;
4748 void *argp1 = 0 ;
4749 int res1 = 0 ;
4750 ptrdiff_t val2 ;
4751 int ecode2 = 0 ;
4752 PyObject * obj0 = 0 ;
4753 PyObject * obj1 = 0 ;
4754 swig::SwigPyIterator *result = 0 ;
4755
4756 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___add__",&obj0,&obj1)) SWIG_failgoto fail;
4757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[53]
, 0 | 0, 0)
;
4758 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4759 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)
;
4760 }
4761 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4762 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4763 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4764 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)
;
4765 }
4766 arg2 = static_cast< ptrdiff_t >(val2);
4767 try {
4768 result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator +(arg2);
4769 }
4770 catch(swig::stop_iteration &_e) {
4771 {
4772 (void)_e;
4773 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4774 SWIG_failgoto fail;
4775 }
4776 }
4777
4778 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[53], 0x1
| 0)
;
4779 return resultobj;
4780fail:
4781 return NULL__null;
4782}
4783
4784
4785SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4786 PyObject *resultobj = 0;
4787 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4788 ptrdiff_t arg2 ;
4789 void *argp1 = 0 ;
4790 int res1 = 0 ;
4791 ptrdiff_t val2 ;
4792 int ecode2 = 0 ;
4793 PyObject * obj0 = 0 ;
4794 PyObject * obj1 = 0 ;
4795 swig::SwigPyIterator *result = 0 ;
4796
4797 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_failgoto fail;
4798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[53]
, 0 | 0, 0)
;
4799 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4800 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)
;
4801 }
4802 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4803 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4804 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4805 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)
;
4806 }
4807 arg2 = static_cast< ptrdiff_t >(val2);
4808 try {
4809 result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator -(arg2);
4810 }
4811 catch(swig::stop_iteration &_e) {
4812 {
4813 (void)_e;
4814 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4815 SWIG_failgoto fail;
4816 }
4817 }
4818
4819 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[53], 0x1
| 0)
;
4820 return resultobj;
4821fail:
4822 return NULL__null;
4823}
4824
4825
4826SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4827 PyObject *resultobj = 0;
4828 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4829 swig::SwigPyIterator *arg2 = 0 ;
4830 void *argp1 = 0 ;
4831 int res1 = 0 ;
4832 void *argp2 = 0 ;
4833 int res2 = 0 ;
4834 PyObject * obj0 = 0 ;
4835 PyObject * obj1 = 0 ;
4836 ptrdiff_t result;
4837
4838 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_failgoto fail;
4839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[53]
, 0 | 0, 0)
;
4840 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4841 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)
;
4842 }
4843 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4844 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[53]
, 0 | 0, 0)
;
4845 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4846 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)
;
4847 }
4848 if (!argp2) {
4849 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
)
;
4850 }
4851 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4852 result = ((swig::SwigPyIterator const *)arg1)->operator -((swig::SwigPyIterator const &)*arg2);
4853 resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
4854 return resultobj;
4855fail:
4856 return NULL__null;
4857}
4858
4859
4860SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub__(PyObject *self, PyObject *args) {
4861 int argc;
4862 PyObject *argv[3];
4863 int ii;
4864
4865 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
4866 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
4867 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
4868 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
4869 }
4870 if (argc == 2) {
4871 int _v;
4872 void *vptr = 0;
4873 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[53
], 0, 0)
;
4874 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4875 if (_v) {
4876 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[53], 0, 0
)
;
4877 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4878 if (_v) {
4879 return _wrap_SwigPyIterator___sub____SWIG_1(self, args);
4880 }
4881 }
4882 }
4883 if (argc == 2) {
4884 int _v;
4885 void *vptr = 0;
4886 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[53
], 0, 0)
;
4887 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4888 if (_v) {
4889 {
4890 int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL__null);
4891 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4892 }
4893 if (_v) {
4894 return _wrap_SwigPyIterator___sub____SWIG_0(self, args);
4895 }
4896 }
4897 }
4898
4899fail:
4900 Py_INCREF(Py_NotImplemented)( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt
++)
;
4901 return Py_NotImplemented(&_Py_NotImplementedStruct);
4902}
4903
4904
4905SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *SwigPyIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4906 PyObject *obj;
4907 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
4908 SWIG_TypeNewClientData(SWIGTYPE_p_swig__SwigPyIteratorswig_types[53], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
4909 return SWIG_Py_Void();
4910}
4911
4912SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelPar__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4913 PyObject *resultobj = 0;
4914 GModelPar *result = 0 ;
4915
4916 if (!PyArg_ParseTuple(args,(char *)":new_GModelPar")) SWIG_failgoto fail;
4917 {
4918 try {
4919 result = (GModelPar *)new GModelPar();
4920 }
4921 catch (const GException::out_of_range& e) {
4922 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4923 }
4924 catch (const GExceptionHandler& e) {
4925 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4926 }
4927 catch (const std::exception& e) {
4928 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4929 }
4930 }
4931 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelPar, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], ((
0x1 << 1) | 0x1) | 0)
;
4932 return resultobj;
4933fail:
4934 return NULL__null;
4935}
4936
4937
4938SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelPar__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4939 PyObject *resultobj = 0;
4940 std::string *arg1 = 0 ;
4941 double *arg2 = 0 ;
4942 int res1 = SWIG_OLDOBJ((0)) ;
4943 double temp2 ;
4944 double val2 ;
4945 int ecode2 = 0 ;
4946 PyObject * obj0 = 0 ;
4947 PyObject * obj1 = 0 ;
4948 GModelPar *result = 0 ;
4949
4950 if (!PyArg_ParseTuple(args,(char *)"OO:new_GModelPar",&obj0,&obj1)) SWIG_failgoto fail;
4951 {
4952 std::string *ptr = (std::string *)0;
4953 res1 = SWIG_AsPtr_std_string(obj0, &ptr);
4954 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelPar" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelPar" "', argument "
"1"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
4956 }
4957 if (!ptr) {
4958 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelPar" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelPar" "', argument " "1"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
4959 }
4960 arg1 = ptr;
4961 }
4962 ecode2 = SWIG_AsVal_double(obj1, &val2);
4963 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4964 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GModelPar" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "new_GModelPar" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
4965 }
4966 temp2 = static_cast< double >(val2);
4967 arg2 = &temp2;
4968 {
4969 try {
4970 result = (GModelPar *)new GModelPar((std::string const &)*arg1,(double const &)*arg2);
4971 }
4972 catch (const GException::out_of_range& e) {
4973 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4974 }
4975 catch (const GExceptionHandler& e) {
4976 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4977 }
4978 catch (const std::exception& e) {
4979 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4980 }
4981 }
4982 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelPar, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], ((
0x1 << 1) | 0x1) | 0)
;
4983 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
4984 return resultobj;
4985fail:
4986 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
4987 return NULL__null;
4988}
4989
4990
4991SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelPar__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4992 PyObject *resultobj = 0;
4993 std::string *arg1 = 0 ;
4994 double *arg2 = 0 ;
4995 double *arg3 = 0 ;
4996 int res1 = SWIG_OLDOBJ((0)) ;
4997 double temp2 ;
4998 double val2 ;
4999 int ecode2 = 0 ;
5000 double temp3 ;
5001 double val3 ;
5002 int ecode3 = 0 ;
5003 PyObject * obj0 = 0 ;
5004 PyObject * obj1 = 0 ;
5005 PyObject * obj2 = 0 ;
5006 GModelPar *result = 0 ;
5007
5008 if (!PyArg_ParseTuple(args,(char *)"OOO:new_GModelPar",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
5009 {
5010 std::string *ptr = (std::string *)0;
5011 res1 = SWIG_AsPtr_std_string(obj0, &ptr);
5012 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelPar" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelPar" "', argument "
"1"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
5014 }
5015 if (!ptr) {
5016 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelPar" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelPar" "', argument " "1"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
5017 }
5018 arg1 = ptr;
5019 }
5020 ecode2 = SWIG_AsVal_double(obj1, &val2);
5021 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5022 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GModelPar" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "new_GModelPar" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
5023 }
5024 temp2 = static_cast< double >(val2);
5025 arg2 = &temp2;
5026 ecode3 = SWIG_AsVal_double(obj2, &val3);
5027 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
5028 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_GModelPar" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "new_GModelPar" "', argument "
"3"" of type '" "double""'"); goto fail; } while(0)
;
5029 }
5030 temp3 = static_cast< double >(val3);
5031 arg3 = &temp3;
5032 {
5033 try {
5034 result = (GModelPar *)new GModelPar((std::string const &)*arg1,(double const &)*arg2,(double const &)*arg3);
5035 }
5036 catch (const GException::out_of_range& e) {
5037 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5038 }
5039 catch (const GExceptionHandler& e) {
5040 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5041 }
5042 catch (const std::exception& e) {
5043 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5044 }
5045 }
5046 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelPar, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], ((
0x1 << 1) | 0x1) | 0)
;
5047 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
5048 return resultobj;
5049fail:
5050 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
5051 return NULL__null;
5052}
5053
5054
5055SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelPar__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5056 PyObject *resultobj = 0;
5057 GModelPar *arg1 = 0 ;
5058 void *argp1 = 0 ;
5059 int res1 = 0 ;
5060 PyObject * obj0 = 0 ;
5061 GModelPar *result = 0 ;
5062
5063 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelPar",&obj0)) SWIG_failgoto fail;
5064 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GModelPar, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5065 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelPar" "', argument " "1"" of type '" "GModelPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelPar" "', argument "
"1"" of type '" "GModelPar const &""'"); goto fail; } while
(0)
;
5067 }
5068 if (!argp1) {
5069 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelPar" "', argument " "1"" of type '" "GModelPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelPar" "', argument " "1"" of type '"
"GModelPar const &""'"); goto fail; } while(0)
;
5070 }
5071 arg1 = reinterpret_cast< GModelPar * >(argp1);
5072 {
5073 try {
5074 result = (GModelPar *)new GModelPar((GModelPar const &)*arg1);
5075 }
5076 catch (const GException::out_of_range& e) {
5077 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5078 }
5079 catch (const GExceptionHandler& e) {
5080 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5081 }
5082 catch (const std::exception& e) {
5083 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5084 }
5085 }
5086 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelPar, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], ((
0x1 << 1) | 0x1) | 0)
;
5087 return resultobj;
5088fail:
5089 return NULL__null;
5090}
5091
5092
5093SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelPar(PyObject *self, PyObject *args) {
5094 int argc;
5095 PyObject *argv[4];
5096 int ii;
5097
5098 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5099 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
5100 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
5101 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5102 }
5103 if (argc == 0) {
5104 return _wrap_new_GModelPar__SWIG_0(self, args);
5105 }
5106 if (argc == 1) {
5107 int _v;
5108 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GModelPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[8], 0, 0);
5109 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5110 if (_v) {
5111 return _wrap_new_GModelPar__SWIG_3(self, args);
5112 }
5113 }
5114 if (argc == 2) {
5115 int _v;
5116 int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
5117 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5118 if (_v) {
5119 {
5120 int res = SWIG_AsVal_double(argv[1], NULL__null);
5121 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5122 }
5123 if (_v) {
5124 return _wrap_new_GModelPar__SWIG_1(self, args);
5125 }
5126 }
5127 }
5128 if (argc == 3) {
5129 int _v;
5130 int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
5131 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5132 if (_v) {
5133 {
5134 int res = SWIG_AsVal_double(argv[1], NULL__null);
5135 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5136 }
5137 if (_v) {
5138 {
5139 int res = SWIG_AsVal_double(argv[2], NULL__null);
5140 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5141 }
5142 if (_v) {
5143 return _wrap_new_GModelPar__SWIG_2(self, args);
5144 }
5145 }
5146 }
5147 }
5148
5149fail:
5150 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GModelPar'.\n"
5151 " Possible C/C++ prototypes are:\n"
5152 " GModelPar::GModelPar()\n"
5153 " GModelPar::GModelPar(std::string const &,double const &)\n"
5154 " GModelPar::GModelPar(std::string const &,double const &,double const &)\n"
5155 " GModelPar::GModelPar(GModelPar const &)\n");
5156 return 0;
5157}
5158
5159
5160SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GModelPar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5161 PyObject *resultobj = 0;
5162 GModelPar *arg1 = (GModelPar *) 0 ;
5163 void *argp1 = 0 ;
5164 int res1 = 0 ;
5165 PyObject * obj0 = 0 ;
5166
5167 if (!PyArg_ParseTuple(args,(char *)"O:delete_GModelPar",&obj0)) SWIG_failgoto fail;
5168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelPar, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0x1 | 0, 0)
;
5169 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GModelPar" "', argument " "1"" of type '" "GModelPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GModelPar" "', argument "
"1"" of type '" "GModelPar *""'"); goto fail; } while(0)
;
5171 }
5172 arg1 = reinterpret_cast< GModelPar * >(argp1);
5173 {
5174 try {
5175 delete arg1;
5176 }
5177 catch (const GException::out_of_range& e) {
5178 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5179 }
5180 catch (const GExceptionHandler& e) {
5181 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5182 }
5183 catch (const std::exception& e) {
5184 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5185 }
5186 }
5187 resultobj = SWIG_Py_Void();
5188 return resultobj;
5189fail:
5190 return NULL__null;
5191}
5192
5193
5194SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelPar_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5195 PyObject *resultobj = 0;
5196 GModelPar *arg1 = (GModelPar *) 0 ;
5197 void *argp1 = 0 ;
5198 int res1 = 0 ;
5199 PyObject * obj0 = 0 ;
5200 GModelPar *result = 0 ;
5201
5202 if (!PyArg_ParseTuple(args,(char *)"O:GModelPar_clone",&obj0)) SWIG_failgoto fail;
5203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5204 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelPar_clone" "', argument " "1"" of type '" "GModelPar const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelPar_clone" "', argument "
"1"" of type '" "GModelPar const *""'"); goto fail; } while(
0)
;
5206 }
5207 arg1 = reinterpret_cast< GModelPar * >(argp1);
5208 {
5209 try {
5210 result = (GModelPar *)((GModelPar const *)arg1)->clone();
5211 }
5212 catch (const GException::out_of_range& e) {
5213 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5214 }
5215 catch (const GExceptionHandler& e) {
5216 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5217 }
5218 catch (const std::exception& e) {
5219 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5220 }
5221 }
5222 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelPar, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], 0 |
0)
;
5223 return resultobj;
5224fail:
5225 return NULL__null;
5226}
5227
5228
5229SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelPar_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5230 PyObject *resultobj = 0;
5231 GModelPar *arg1 = (GModelPar *) 0 ;
5232 GXmlElement *arg2 = 0 ;
5233 void *argp1 = 0 ;
5234 int res1 = 0 ;
5235 void *argp2 = 0 ;
5236 int res2 = 0 ;
5237 PyObject * obj0 = 0 ;
5238 PyObject * obj1 = 0 ;
5239
5240 if (!PyArg_ParseTuple(args,(char *)"OO:GModelPar_read",&obj0,&obj1)) SWIG_failgoto fail;
5241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5242 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelPar_read" "', argument " "1"" of type '" "GModelPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelPar_read" "', argument "
"1"" of type '" "GModelPar *""'"); goto fail; } while(0)
;
5244 }
5245 arg1 = reinterpret_cast< GModelPar * >(argp1);
5246 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0 | 0, 0)
;
5247 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5248 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelPar_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelPar_read" "', argument "
"2"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
5249 }
5250 if (!argp2) {
5251 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelPar_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelPar_read" "', argument " "2"" of type '"
"GXmlElement const &""'"); goto fail; } while(0)
;
5252 }
5253 arg2 = reinterpret_cast< GXmlElement * >(argp2);
5254 {
5255 try {
5256 (arg1)->read((GXmlElement const &)*arg2);
5257 }
5258 catch (const GException::out_of_range& e) {
5259 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5260 }
5261 catch (const GExceptionHandler& e) {
5262 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5263 }
5264 catch (const std::exception& e) {
5265 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5266 }
5267 }
5268 resultobj = SWIG_Py_Void();
5269 return resultobj;
5270fail:
5271 return NULL__null;
5272}
5273
5274
5275SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelPar_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5276 PyObject *resultobj = 0;
5277 GModelPar *arg1 = (GModelPar *) 0 ;
5278 GXmlElement *arg2 = 0 ;
5279 void *argp1 = 0 ;
5280 int res1 = 0 ;
5281 void *argp2 = 0 ;
5282 int res2 = 0 ;
5283 PyObject * obj0 = 0 ;
5284 PyObject * obj1 = 0 ;
5285
5286 if (!PyArg_ParseTuple(args,(char *)"OO:GModelPar_write",&obj0,&obj1)) SWIG_failgoto fail;
5287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5288 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelPar_write" "', argument " "1"" of type '" "GModelPar const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelPar_write" "', argument "
"1"" of type '" "GModelPar const *""'"); goto fail; } while(
0)
;
5290 }
5291 arg1 = reinterpret_cast< GModelPar * >(argp1);
5292 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0, 0)
;
5293 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5294 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelPar_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelPar_write" "', argument "
"2"" of type '" "GXmlElement &""'"); goto fail; } while(
0)
;
5295 }
5296 if (!argp2) {
5297 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelPar_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelPar_write" "', argument " "2"" of type '"
"GXmlElement &""'"); goto fail; } while(0)
;
5298 }
5299 arg2 = reinterpret_cast< GXmlElement * >(argp2);
5300 {
5301 try {
5302 ((GModelPar const *)arg1)->write(*arg2);
5303 }
5304 catch (const GException::out_of_range& e) {
5305 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5306 }
5307 catch (const GExceptionHandler& e) {
5308 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5309 }
5310 catch (const std::exception& e) {
5311 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5312 }
5313 }
5314 resultobj = SWIG_Py_Void();
5315 return resultobj;
5316fail:
5317 return NULL__null;
5318}
5319
5320
5321SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelPar_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5322 PyObject *resultobj = 0;
5323 GModelPar *arg1 = (GModelPar *) 0 ;
5324 void *argp1 = 0 ;
5325 int res1 = 0 ;
5326 PyObject * obj0 = 0 ;
5327 GModelPar result;
5328
5329 if (!PyArg_ParseTuple(args,(char *)"O:GModelPar_copy",&obj0)) SWIG_failgoto fail;
5330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5331 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelPar_copy" "', argument " "1"" of type '" "GModelPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelPar_copy" "', argument "
"1"" of type '" "GModelPar *""'"); goto fail; } while(0)
;
5333 }
5334 arg1 = reinterpret_cast< GModelPar * >(argp1);
5335 {
5336 try {
5337 result = GModelPar_copy(arg1);
5338 }
5339 catch (const GException::out_of_range& e) {
5340 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5341 }
5342 catch (const GExceptionHandler& e) {
5343 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5344 }
5345 catch (const std::exception& e) {
5346 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5347 }
5348 }
5349 resultobj = SWIG_NewPointerObj((new GModelPar(static_cast< const GModelPar& >(result))), SWIGTYPE_p_GModelPar, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GModelPar(static_cast<
const GModelPar& >(result))), swig_types[8], 0x1 | 0)
;
5350 return resultobj;
5351fail:
5352 return NULL__null;
5353}
5354
5355
5356SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GModelPar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5357 PyObject *obj;
5358 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
5359 SWIG_TypeNewClientData(SWIGTYPE_p_GModelParswig_types[8], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
5360 return SWIG_Py_Void();
5361}
5362
5363SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5364 PyObject *resultobj = 0;
5365 GModels *result = 0 ;
5366
5367 if (!PyArg_ParseTuple(args,(char *)":new_GModels")) SWIG_failgoto fail;
5368 {
5369 try {
5370 result = (GModels *)new GModels();
5371 }
5372 catch (const GException::out_of_range& e) {
5373 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5374 }
5375 catch (const GExceptionHandler& e) {
5376 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5377 }
5378 catch (const std::exception& e) {
5379 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5380 }
5381 }
5382 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModels, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[36], (
(0x1 << 1) | 0x1) | 0)
;
5383 return resultobj;
5384fail:
5385 return NULL__null;
5386}
5387
5388
5389SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5390 PyObject *resultobj = 0;
5391 GModels *arg1 = 0 ;
5392 void *argp1 = 0 ;
5393 int res1 = 0 ;
5394 PyObject * obj0 = 0 ;
5395 GModels *result = 0 ;
5396
5397 if (!PyArg_ParseTuple(args,(char *)"O:new_GModels",&obj0)) SWIG_failgoto fail;
5398 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GModels, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[36]
, 0 | 0, 0)
;
5399 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModels" "', argument " "1"" of type '" "GModels const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModels" "', argument "
"1"" of type '" "GModels const &""'"); goto fail; } while
(0)
;
5401 }
5402 if (!argp1) {
5403 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModels" "', argument " "1"" of type '" "GModels const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModels" "', argument " "1"" of type '" "GModels const &"
"'"); goto fail; } while(0)
;
5404 }
5405 arg1 = reinterpret_cast< GModels * >(argp1);
5406 {
5407 try {
5408 result = (GModels *)new GModels((GModels const &)*arg1);
5409 }
5410 catch (const GException::out_of_range& e) {
5411 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5412 }
5413 catch (const GExceptionHandler& e) {
5414 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5415 }
5416 catch (const std::exception& e) {
5417 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5418 }
5419 }
5420 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModels, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[36], (
(0x1 << 1) | 0x1) | 0)
;
5421 return resultobj;
5422fail:
5423 return NULL__null;
5424}
5425
5426
5427SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5428 PyObject *resultobj = 0;
5429 std::string *arg1 = 0 ;
5430 int res1 = SWIG_OLDOBJ((0)) ;
5431 PyObject * obj0 = 0 ;
5432 GModels *result = 0 ;
5433
5434 if (!PyArg_ParseTuple(args,(char *)"O:new_GModels",&obj0)) SWIG_failgoto fail;
5435 {
5436 std::string *ptr = (std::string *)0;
5437 res1 = SWIG_AsPtr_std_string(obj0, &ptr);
5438 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModels" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModels" "', argument "
"1"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
5440 }
5441 if (!ptr) {
5442 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModels" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModels" "', argument " "1"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
5443 }
5444 arg1 = ptr;
5445 }
5446 {
5447 try {
5448 result = (GModels *)new GModels((std::string const &)*arg1);
5449 }
5450 catch (const GException::out_of_range& e) {
5451 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5452 }
5453 catch (const GExceptionHandler& e) {
5454 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5455 }
5456 catch (const std::exception& e) {
5457 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5458 }
5459 }
5460 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModels, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[36], (
(0x1 << 1) | 0x1) | 0)
;
5461 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
5462 return resultobj;
5463fail:
5464 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
5465 return NULL__null;
5466}
5467
5468
5469SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModels(PyObject *self, PyObject *args) {
5470 int argc;
5471 PyObject *argv[2];
5472 int ii;
5473
5474 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5475 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
5476 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
5477 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5478 }
5479 if (argc == 0) {
5480 return _wrap_new_GModels__SWIG_0(self, args);
5481 }
5482 if (argc == 1) {
5483 int _v;
5484 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GModels, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[36], 0, 0
)
;
5485 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5486 if (_v) {
5487 return _wrap_new_GModels__SWIG_1(self, args);
5488 }
5489 }
5490 if (argc == 1) {
5491 int _v;
5492 int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
5493 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5494 if (_v) {
5495 return _wrap_new_GModels__SWIG_2(self, args);
5496 }
5497 }
5498
5499fail:
5500 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GModels'.\n"
5501 " Possible C/C++ prototypes are:\n"
5502 " GModels::GModels()\n"
5503 " GModels::GModels(GModels const &)\n"
5504 " GModels::GModels(std::string const &)\n");
5505 return 0;
5506}
5507
5508
5509SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GModels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5510 PyObject *resultobj = 0;
5511 GModels *arg1 = (GModels *) 0 ;
5512 void *argp1 = 0 ;
5513 int res1 = 0 ;
5514 PyObject * obj0 = 0 ;
5515
5516 if (!PyArg_ParseTuple(args,(char *)"O:delete_GModels",&obj0)) SWIG_failgoto fail;
5517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModels, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[36]
, 0x1 | 0, 0)
;
5518 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GModels" "', argument " "1"" of type '" "GModels *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GModels" "', argument "
"1"" of type '" "GModels *""'"); goto fail; } while(0)
;
5520 }
5521 arg1 = reinterpret_cast< GModels * >(argp1);
5522 {
5523 try {
5524 delete arg1;
5525 }
5526 catch (const GException::out_of_range& e) {
5527 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5528 }
5529 catch (const GExceptionHandler& e) {
5530 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5531 }
5532 catch (const std::exception& e) {
5533 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5534 }
5535 }
5536 resultobj = SWIG_Py_Void();
5537 return resultobj;
5538fail:
5539 return NULL__null;
5540}
5541
5542
5543SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModels_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5544 PyObject *resultobj = 0;
5545 GModels *arg1 = (GModels *) 0 ;
5546 void *argp1 = 0 ;
5547 int res1 = 0 ;
5548 PyObject * obj0 = 0 ;
5549
5550 if (!PyArg_ParseTuple(args,(char *)"O:GModels_clear",&obj0)) SWIG_failgoto fail;
5551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModels, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[36]
, 0 | 0, 0)
;
5552 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModels_clear" "', argument " "1"" of type '" "GModels *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModels_clear" "', argument "
"1"" of type '" "GModels *""'"); goto fail; } while(0)
;
5554 }
5555 arg1 = reinterpret_cast< GModels * >(argp1);
5556 {
5557 try {
5558 (arg1)->clear();
5559 }
5560 catch (const GException::out_of_range& e) {
5561 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5562 }
5563 catch (const GExceptionHandler& e) {
5564 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5565 }
5566 catch (const std::exception& e) {
5567 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5568 }
5569 }
5570 resultobj = SWIG_Py_Void();
5571 return resultobj;
5572fail:
5573 return NULL__null;
5574}
5575
5576
5577SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModels_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5578 PyObject *resultobj = 0;
5579 GModels *arg1 = (GModels *) 0 ;
5580 void *argp1 = 0 ;
5581 int res1 = 0 ;
5582 PyObject * obj0 = 0 ;
5583 GModels *result = 0 ;
5584
5585 if (!PyArg_ParseTuple(args,(char *)"O:GModels_clone",&obj0)) SWIG_failgoto fail;
5586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModels, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[36]
, 0 | 0, 0)
;
5587 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModels_clone" "', argument " "1"" of type '" "GModels const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModels_clone" "', argument "
"1"" of type '" "GModels const *""'"); goto fail; } while(0)
;
5589 }
5590 arg1 = reinterpret_cast< GModels * >(argp1);
5591 {
5592 try {
5593 result = (GModels *)((GModels const *)arg1)->clone();
5594 }
5595 catch (const GException::out_of_range& e) {
5596 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5597 }
5598 catch (const GExceptionHandler& e) {
5599 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5600 }
5601 catch (const std::exception& e) {
5602 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5603 }
5604 }
5605 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModels, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[36], 0
| 0)
;
5606 return resultobj;
5607fail:
5608 return NULL__null;
5609}
5610
5611
5612SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModels_at(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5613 PyObject *resultobj = 0;
5614 GModels *arg1 = (GModels *) 0 ;
5615 int *arg2 = 0 ;
5616 void *argp1 = 0 ;
5617 int res1 = 0 ;
5618 int temp2 ;
5619 int val2 ;
5620 int ecode2 = 0 ;
5621 PyObject * obj0 = 0 ;
5622 PyObject * obj1 = 0 ;
5623 GModel *result = 0 ;
5624
5625 if (!PyArg_ParseTuple(args,(char *)"OO:GModels_at",&obj0,&obj1)) SWIG_failgoto fail;
5626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModels, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[36]
, 0 | 0, 0)
;
5627 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModels_at" "', argument " "1"" of type '" "GModels *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModels_at" "', argument "
"1"" of type '" "GModels *""'"); goto fail; } while(0)
;
5629 }
5630 arg1 = reinterpret_cast< GModels * >(argp1);
5631 ecode2 = SWIG_AsVal_int(obj1, &val2);
5632 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5633 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModels_at" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModels_at" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
5634 }
5635 temp2 = static_cast< int >(val2);
5636 arg2 = &temp2;
5637 {
5638 try {
5639 result = (GModel *)(arg1)->at((int const &)*arg2);
5640 }
5641 catch (const GException::out_of_range& e) {
5642 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5643 }
5644 catch (const GExceptionHandler& e) {
5645 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5646 }
5647 catch (const std::exception& e) {
5648 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5649 }
5650 }
5651 {
5652 if (dynamic_cast<GModelSky*>(result) != NULL__null) {
5653 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSky, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0
| 0)
;
5654 }
5655 else if (dynamic_cast<GModelData*>(result) != NULL__null) {
5656 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelData, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
5657 }
5658 else {
5659 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[6], 0 |
0)
;
5660 }
5661 }
5662 return resultobj;
5663fail:
5664 return NULL__null;
5665}
5666
5667
5668SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModels_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5669 PyObject *resultobj = 0;
5670 GModels *arg1 = (GModels *) 0 ;
5671 void *argp1 = 0 ;
5672 int res1 = 0 ;
5673 PyObject * obj0 = 0 ;
5674 int result;
5675
5676 if (!PyArg_ParseTuple(args,(char *)"O:GModels_size",&obj0)) SWIG_failgoto fail;
5677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModels, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[36]
, 0 | 0, 0)
;
5678 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModels_size" "', argument " "1"" of type '" "GModels const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModels_size" "', argument "
"1"" of type '" "GModels const *""'"); goto fail; } while(0)
;
5680 }
5681 arg1 = reinterpret_cast< GModels * >(argp1);
5682 {
5683 try {
5684 result = (int)((GModels const *)arg1)->size();
5685 }
5686 catch (const GException::out_of_range& e) {
5687 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5688 }
5689 catch (const GExceptionHandler& e) {
5690 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5691 }
5692 catch (const std::exception& e) {
5693 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5694 }
5695 }
5696 resultobj = SWIG_From_int(static_cast< int >(result));
5697 return resultobj;
5698fail:
5699 return NULL__null;
5700}
5701
5702
5703SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModels_isempty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5704 PyObject *resultobj = 0;
5705 GModels *arg1 = (GModels *) 0 ;
5706 void *argp1 = 0 ;
5707 int res1 = 0 ;
5708 PyObject * obj0 = 0 ;
5709 bool result;
5710
5711 if (!PyArg_ParseTuple(args,(char *)"O:GModels_isempty",&obj0)) SWIG_failgoto fail;
5712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModels, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[36]
, 0 | 0, 0)
;
5713 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModels_isempty" "', argument " "1"" of type '" "GModels const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModels_isempty" "', argument "
"1"" of type '" "GModels const *""'"); goto fail; } while(0)
;
5715 }
5716 arg1 = reinterpret_cast< GModels * >(argp1);
5717 {
5718 try {
5719 result = (bool)((GModels const *)arg1)->isempty();
5720 }
5721 catch (const GException::out_of_range& e) {
5722 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5723 }
5724 catch (const GExceptionHandler& e) {
5725 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5726 }
5727 catch (const std::exception& e) {
5728 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5729 }
5730 }
5731 resultobj = SWIG_From_bool(static_cast< bool >(result));
5732 return resultobj;
5733fail:
5734 return NULL__null;
5735}
5736
5737
5738SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModels_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5739 PyObject *resultobj = 0;
5740 GModels *arg1 = (GModels *) 0 ;
5741 int *arg2 = 0 ;
5742 GModel *arg3 = 0 ;
5743 void *argp1 = 0 ;
5744 int res1 = 0 ;
5745 int temp2 ;
5746 int val2 ;
5747 int ecode2 = 0 ;
5748 void *argp3 = 0 ;
5749 int res3 = 0 ;
5750 PyObject * obj0 = 0 ;
5751 PyObject * obj1 = 0 ;
5752 PyObject * obj2 = 0 ;
5753 GModel *result = 0 ;
5754
5755 if (!PyArg_ParseTuple(args,(char *)"OOO:GModels_set",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
5756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModels, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[36]
, 0 | 0, 0)
;
5757 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModels_set" "', argument " "1"" of type '" "GModels *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModels_set" "', argument "
"1"" of type '" "GModels *""'"); goto fail; } while(0)
;
5759 }
5760 arg1 = reinterpret_cast< GModels * >(argp1);
5761 ecode2 = SWIG_AsVal_int(obj1, &val2);
5762 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5763 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModels_set" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModels_set" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
5764 }
5765 temp2 = static_cast< int >(val2);
5766 arg2 = &temp2;
5767 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GModel, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[6],
0 | 0, 0)
;
5768 if (!SWIG_IsOK(res3)(res3 >= 0)) {
5769 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModels_set" "', argument " "3"" of type '" "GModel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModels_set" "', argument "
"3"" of type '" "GModel const &""'"); goto fail; } while
(0)
;
5770 }
5771 if (!argp3) {
5772 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModels_set" "', argument " "3"" of type '" "GModel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModels_set" "', argument " "3"" of type '" "GModel const &"
"'"); goto fail; } while(0)
;
5773 }
5774 arg3 = reinterpret_cast< GModel * >(argp3);
5775 {
5776 try {
5777 result = (GModel *)(arg1)->set((int const &)*arg2,(GModel const &)*arg3);
5778 }
5779 catch (const GException::out_of_range& e) {
5780 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5781 }
5782 catch (const GExceptionHandler& e) {
5783 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5784 }
5785 catch (const std::exception& e) {
5786 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5787 }
5788 }
5789 {
5790 if (dynamic_cast<GModelSky*>(result) != NULL__null) {
5791 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSky, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0
| 0)
;
5792 }
5793 else if (dynamic_cast<GModelData*>(result) != NULL__null) {
5794 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelData, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
5795 }
5796 else {
5797 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[6], 0 |
0)
;
5798 }
5799 }
5800 return resultobj;
5801fail:
5802 return NULL__null;
5803}
5804
5805
5806SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModels_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5807 PyObject *resultobj = 0;
5808 GModels *arg1 = (GModels *) 0 ;
5809 std::string *arg2 = 0 ;
5810 GModel *arg3 = 0 ;
5811 void *argp1 = 0 ;
5812 int res1 = 0 ;
5813 int res2 = SWIG_OLDOBJ((0)) ;
5814 void *argp3 = 0 ;
5815 int res3 = 0 ;
5816 PyObject * obj0 = 0 ;
5817 PyObject * obj1 = 0 ;
5818 PyObject * obj2 = 0 ;
5819 GModel *result = 0 ;
5820
5821 if (!PyArg_ParseTuple(args,(char *)"OOO:GModels_set",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
5822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModels, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[36]
, 0 | 0, 0)
;
5823 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModels_set" "', argument " "1"" of type '" "GModels *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModels_set" "', argument "
"1"" of type '" "GModels *""'"); goto fail; } while(0)
;
5825 }
5826 arg1 = reinterpret_cast< GModels * >(argp1);
5827 {
5828 std::string *ptr = (std::string *)0;
5829 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
5830 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5831 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModels_set" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModels_set" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
5832 }
5833 if (!ptr) {
5834 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModels_set" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModels_set" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
5835 }
5836 arg2 = ptr;
5837 }
5838 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GModel, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[6],
0 | 0, 0)
;
5839 if (!SWIG_IsOK(res3)(res3 >= 0)) {
5840 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModels_set" "', argument " "3"" of type '" "GModel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModels_set" "', argument "
"3"" of type '" "GModel const &""'"); goto fail; } while
(0)
;
5841 }
5842 if (!argp3) {
5843 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModels_set" "', argument " "3"" of type '" "GModel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModels_set" "', argument " "3"" of type '" "GModel const &"
"'"); goto fail; } while(0)
;
5844 }
5845 arg3 = reinterpret_cast< GModel * >(argp3);
5846 {
5847 try {
5848 result = (GModel *)(arg1)->set((std::string const &)*arg2,(GModel const &)*arg3);
5849 }
5850 catch (const GException::out_of_range& e) {
5851 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5852 }
5853 catch (const GExceptionHandler& e) {
5854 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5855 }
5856 catch (const std::exception& e) {
5857 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5858 }
5859 }
5860 {
5861 if (dynamic_cast<GModelSky*>(result) != NULL__null) {
5862 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSky, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0
| 0)
;
5863 }
5864 else if (dynamic_cast<GModelData*>(result) != NULL__null) {
5865 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelData, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
5866 }
5867 else {
5868 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[6], 0 |
0)
;
5869 }
5870 }
5871 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
5872 return resultobj;
5873fail:
5874 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
5875 return NULL__null;
5876}
5877
5878
5879SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModels_set(PyObject *self, PyObject *args) {
5880 int argc;
5881 PyObject *argv[4];
5882 int ii;
5883
5884 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5885 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
5886 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
5887 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5888 }
5889 if (argc == 3) {
5890 int _v;
5891 void *vptr = 0;
5892 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModels, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[36
], 0, 0)
;
5893 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5894 if (_v) {
5895 {
5896 int res = SWIG_AsVal_int(argv[1], NULL__null);
5897 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5898 }
5899 if (_v) {
5900 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GModel, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[6], 0, 0);
5901 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5902 if (_v) {
5903 return _wrap_GModels_set__SWIG_0(self, args);
5904 }
5905 }
5906 }
5907 }
5908 if (argc == 3) {
5909 int _v;
5910 void *vptr = 0;
5911 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModels, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[36
], 0, 0)
;
5912 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5913 if (_v) {
5914 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
5915 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5916 if (_v) {
5917 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GModel, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[6], 0, 0);
5918 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5919 if (_v) {
5920 return _wrap_GModels_set__SWIG_1(self, args);
5921 }
5922 }
5923 }
5924 }
5925
5926fail:
5927 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModels_set'.\n"
5928 " Possible C/C++ prototypes are:\n"
5929 " GModels::set(int const &,GModel const &)\n"
5930 " GModels::set(std::string const &,GModel const &)\n");
5931 return 0;
5932}
5933
5934
5935SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModels_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5936 PyObject *resultobj = 0;
5937 GModels *arg1 = (GModels *) 0 ;
5938 GModel *arg2 = 0 ;
5939 void *argp1 = 0 ;
5940 int res1 = 0 ;
5941 void *argp2 = 0 ;
5942 int res2 = 0 ;
5943 PyObject * obj0 = 0 ;
5944 PyObject * obj1 = 0 ;
5945 GModel *result = 0 ;
5946
5947 if (!PyArg_ParseTuple(args,(char *)"OO:GModels_append",&obj0,&obj1)) SWIG_failgoto fail;
5948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModels, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[36]
, 0 | 0, 0)
;
5949 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModels_append" "', argument " "1"" of type '" "GModels *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModels_append" "', argument "
"1"" of type '" "GModels *""'"); goto fail; } while(0)
;
5951 }
5952 arg1 = reinterpret_cast< GModels * >(argp1);
5953 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GModel, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[6],
0 | 0, 0)
;
5954 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5955 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModels_append" "', argument " "2"" of type '" "GModel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModels_append" "', argument "
"2"" of type '" "GModel const &""'"); goto fail; } while
(0)
;
5956 }
5957 if (!argp2) {
5958 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModels_append" "', argument " "2"" of type '" "GModel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModels_append" "', argument " "2"" of type '"
"GModel const &""'"); goto fail; } while(0)
;
5959 }
5960 arg2 = reinterpret_cast< GModel * >(argp2);
5961 {
5962 try {
5963 result = (GModel *)(arg1)->append((GModel const &)*arg2);
5964 }
5965 catch (const GException::out_of_range& e) {
5966 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5967 }
5968 catch (const GExceptionHandler& e) {
5969 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5970 }
5971 catch (const std::exception& e) {
5972 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5973 }
5974 }
5975 {
5976 if (dynamic_cast<GModelSky*>(result) != NULL__null) {
5977 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSky, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0
| 0)
;
5978 }
5979 else if (dynamic_cast<GModelData*>(result) != NULL__null) {
5980 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelData, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
5981 }
5982 else {
5983 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[6], 0 |
0)
;
5984 }
5985 }
5986 return resultobj;
5987fail:
5988 return NULL__null;
5989}
5990
5991
5992SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModels_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5993 PyObject *resultobj = 0;
5994 GModels *arg1 = (GModels *) 0 ;
5995 int *arg2 = 0 ;
5996 GModel *arg3 = 0 ;
5997 void *argp1 = 0 ;
5998 int res1 = 0 ;
5999 int temp2 ;
6000 int val2 ;
6001 int ecode2 = 0 ;
6002 void *argp3 = 0 ;
6003 int res3 = 0 ;
6004 PyObject * obj0 = 0 ;
6005 PyObject * obj1 = 0 ;
6006 PyObject * obj2 = 0 ;
6007 GModel *result = 0 ;
6008
6009 if (!PyArg_ParseTuple(args,(char *)"OOO:GModels_insert",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
6010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModels, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[36]
, 0 | 0, 0)
;
6011 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModels_insert" "', argument " "1"" of type '" "GModels *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModels_insert" "', argument "
"1"" of type '" "GModels *""'"); goto fail; } while(0)
;
6013 }
6014 arg1 = reinterpret_cast< GModels * >(argp1);
6015 ecode2 = SWIG_AsVal_int(obj1, &val2);
6016 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModels_insert" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModels_insert" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
6018 }
6019 temp2 = static_cast< int >(val2);
6020 arg2 = &temp2;
6021 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GModel, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[6],
0 | 0, 0)
;
6022 if (!SWIG_IsOK(res3)(res3 >= 0)) {
6023 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModels_insert" "', argument " "3"" of type '" "GModel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModels_insert" "', argument "
"3"" of type '" "GModel const &""'"); goto fail; } while
(0)
;
6024 }
6025 if (!argp3) {
6026 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModels_insert" "', argument " "3"" of type '" "GModel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModels_insert" "', argument " "3"" of type '"
"GModel const &""'"); goto fail; } while(0)
;
6027 }
6028 arg3 = reinterpret_cast< GModel * >(argp3);
6029 {
6030 try {
6031 result = (GModel *)(arg1)->insert((int const &)*arg2,(GModel const &)*arg3);
6032 }
6033 catch (const GException::out_of_range& e) {
6034 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6035 }
6036 catch (const GExceptionHandler& e) {
6037 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6038 }
6039 catch (const std::exception& e) {
6040 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6041 }
6042 }
6043 {
6044 if (dynamic_cast<GModelSky*>(result) != NULL__null) {
6045 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSky, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0
| 0)
;
6046 }
6047 else if (dynamic_cast<GModelData*>(result) != NULL__null) {
6048 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelData, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
6049 }
6050 else {
6051 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[6], 0 |
0)
;
6052 }
6053 }
6054 return resultobj;
6055fail:
6056 return NULL__null;
6057}
6058
6059
6060SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModels_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6061 PyObject *resultobj = 0;
6062 GModels *arg1 = (GModels *) 0 ;
6063 std::string *arg2 = 0 ;
6064 GModel *arg3 = 0 ;
6065 void *argp1 = 0 ;
6066 int res1 = 0 ;
6067 int res2 = SWIG_OLDOBJ((0)) ;
6068 void *argp3 = 0 ;
6069 int res3 = 0 ;
6070 PyObject * obj0 = 0 ;
6071 PyObject * obj1 = 0 ;
6072 PyObject * obj2 = 0 ;
6073 GModel *result = 0 ;
6074
6075 if (!PyArg_ParseTuple(args,(char *)"OOO:GModels_insert",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
6076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModels, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[36]
, 0 | 0, 0)
;
6077 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModels_insert" "', argument " "1"" of type '" "GModels *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModels_insert" "', argument "
"1"" of type '" "GModels *""'"); goto fail; } while(0)
;
6079 }
6080 arg1 = reinterpret_cast< GModels * >(argp1);
6081 {
6082 std::string *ptr = (std::string *)0;
6083 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
6084 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6085 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModels_insert" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModels_insert" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
6086 }
6087 if (!ptr) {
6088 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModels_insert" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModels_insert" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
6089 }
6090 arg2 = ptr;
6091 }
6092 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GModel, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[6],
0 | 0, 0)
;
6093 if (!SWIG_IsOK(res3)(res3 >= 0)) {
6094 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModels_insert" "', argument " "3"" of type '" "GModel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModels_insert" "', argument "
"3"" of type '" "GModel const &""'"); goto fail; } while
(0)
;
6095 }
6096 if (!argp3) {
6097 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModels_insert" "', argument " "3"" of type '" "GModel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModels_insert" "', argument " "3"" of type '"
"GModel const &""'"); goto fail; } while(0)
;
6098 }
6099 arg3 = reinterpret_cast< GModel * >(argp3);
6100 {
6101 try {
6102 result = (GModel *)(arg1)->insert((std::string const &)*arg2,(GModel const &)*arg3);
6103 }
6104 catch (const GException::out_of_range& e) {
6105 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6106 }
6107 catch (const GExceptionHandler& e) {
6108 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6109 }
6110 catch (const std::exception& e) {
6111 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6112 }
6113 }
6114 {
6115 if (dynamic_cast<GModelSky*>(result) != NULL__null) {
6116 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSky, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0
| 0)
;
6117 }
6118 else if (dynamic_cast<GModelData*>(result) != NULL__null) {
6119 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelData, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
6120 }
6121 else {
6122 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[6], 0 |
0)
;
6123 }
6124 }
6125 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
6126 return resultobj;
6127fail:
6128 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
6129 return NULL__null;
6130}
6131
6132
6133SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModels_insert(PyObject *self, PyObject *args) {
6134 int argc;
6135 PyObject *argv[4];
6136 int ii;
6137
6138 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
6139 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
6140 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
6141 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
6142 }
6143 if (argc == 3) {
6144 int _v;
6145 void *vptr = 0;
6146 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModels, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[36
], 0, 0)
;
6147 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6148 if (_v) {
6149 {
6150 int res = SWIG_AsVal_int(argv[1], NULL__null);
6151 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6152 }
6153 if (_v) {
6154 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GModel, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[6], 0, 0);
6155 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6156 if (_v) {
6157 return _wrap_GModels_insert__SWIG_0(self, args);
6158 }
6159 }
6160 }
6161 }
6162 if (argc == 3) {
6163 int _v;
6164 void *vptr = 0;
6165 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModels, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[36
], 0, 0)
;
6166 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6167 if (_v) {
6168 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
6169 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6170 if (_v) {
6171 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GModel, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[6], 0, 0);
6172 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6173 if (_v) {
6174 return _wrap_GModels_insert__SWIG_1(self, args);
6175 }
6176 }
6177 }
6178 }
6179
6180fail:
6181 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModels_insert'.\n"
6182 " Possible C/C++ prototypes are:\n"
6183 " GModels::insert(int const &,GModel const &)\n"
6184 " GModels::insert(std::string const &,GModel const &)\n");
6185 return 0;
6186}
6187
6188
6189SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModels_remove__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6190 PyObject *resultobj = 0;
6191 GModels *arg1 = (GModels *) 0 ;
6192 int *arg2 = 0 ;
6193 void *argp1 = 0 ;
6194 int res1 = 0 ;
6195 int temp2 ;
6196 int val2 ;
6197 int ecode2 = 0 ;
6198 PyObject * obj0 = 0 ;
6199 PyObject * obj1 = 0 ;
6200
6201 if (!PyArg_ParseTuple(args,(char *)"OO:GModels_remove",&obj0,&obj1)) SWIG_failgoto fail;
6202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModels, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[36]
, 0 | 0, 0)
;
6203 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModels_remove" "', argument " "1"" of type '" "GModels *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModels_remove" "', argument "
"1"" of type '" "GModels *""'"); goto fail; } while(0)
;
6205 }
6206 arg1 = reinterpret_cast< GModels * >(argp1);
6207 ecode2 = SWIG_AsVal_int(obj1, &val2);
6208 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModels_remove" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModels_remove" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
6210 }
6211 temp2 = static_cast< int >(val2);
6212 arg2 = &temp2;
6213 {
6214 try {
6215 (arg1)->remove((int const &)*arg2);
6216 }
6217 catch (const GException::out_of_range& e) {
6218 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6219 }
6220 catch (const GExceptionHandler& e) {
6221 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6222 }
6223 catch (const std::exception& e) {
6224 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6225 }
6226 }
6227 resultobj = SWIG_Py_Void();
6228 return resultobj;
6229fail:
6230 return NULL__null;
6231}
6232
6233
6234SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModels_remove__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6235 PyObject *resultobj = 0;
6236 GModels *arg1 = (GModels *) 0 ;
6237 std::string *arg2 = 0 ;
6238 void *argp1 = 0 ;
6239 int res1 = 0 ;
6240 int res2 = SWIG_OLDOBJ((0)) ;
6241 PyObject * obj0 = 0 ;
6242 PyObject * obj1 = 0 ;
6243
6244 if (!PyArg_ParseTuple(args,(char *)"OO:GModels_remove",&obj0,&obj1)) SWIG_failgoto fail;
6245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModels, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[36]
, 0 | 0, 0)
;
6246 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModels_remove" "', argument " "1"" of type '" "GModels *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModels_remove" "', argument "
"1"" of type '" "GModels *""'"); goto fail; } while(0)
;
6248 }
6249 arg1 = reinterpret_cast< GModels * >(argp1);
6250 {
6251 std::string *ptr = (std::string *)0;
6252 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
6253 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6254 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModels_remove" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModels_remove" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
6255 }
6256 if (!ptr) {
6257 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModels_remove" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModels_remove" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
6258 }
6259 arg2 = ptr;
6260 }
6261 {
6262 try {
6263 (arg1)->remove((std::string const &)*arg2);
6264 }
6265 catch (const GException::out_of_range& e) {
6266 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6267 }
6268 catch (const GExceptionHandler& e) {
6269 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6270 }
6271 catch (const std::exception& e) {
6272 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6273 }
6274 }
6275 resultobj = SWIG_Py_Void();
6276 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
6277 return resultobj;
6278fail:
6279 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
6280 return NULL__null;
6281}
6282
6283
6284SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModels_remove(PyObject *self, PyObject *args) {
6285 int argc;
6286 PyObject *argv[3];
6287 int ii;
6288
6289 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
6290 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
6291 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
6292 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
6293 }
6294 if (argc == 2) {
6295 int _v;
6296 void *vptr = 0;
6297 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModels, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[36
], 0, 0)
;
6298 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6299 if (_v) {
6300 {
6301 int res = SWIG_AsVal_int(argv[1], NULL__null);
6302 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6303 }
6304 if (_v) {
6305 return _wrap_GModels_remove__SWIG_0(self, args);
6306 }
6307 }
6308 }
6309 if (argc == 2) {
6310 int _v;
6311 void *vptr = 0;
6312 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModels, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[36
], 0, 0)
;
6313 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6314 if (_v) {
6315 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
6316 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6317 if (_v) {
6318 return _wrap_GModels_remove__SWIG_1(self, args);
6319 }
6320 }
6321 }
6322
6323fail:
6324 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModels_remove'.\n"
6325 " Possible C/C++ prototypes are:\n"
6326 " GModels::remove(int const &)\n"
6327 " GModels::remove(std::string const &)\n");
6328 return 0;
6329}
6330
6331
6332SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModels_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6333 PyObject *resultobj = 0;
6334 GModels *arg1 = (GModels *) 0 ;
6335 int *arg2 = 0 ;
6336 void *argp1 = 0 ;
6337 int res1 = 0 ;
6338 int temp2 ;
6339 int val2 ;
6340 int ecode2 = 0 ;
6341 PyObject * obj0 = 0 ;
6342 PyObject * obj1 = 0 ;
6343
6344 if (!PyArg_ParseTuple(args,(char *)"OO:GModels_reserve",&obj0,&obj1)) SWIG_failgoto fail;
6345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModels, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[36]
, 0 | 0, 0)
;
6346 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModels_reserve" "', argument " "1"" of type '" "GModels *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModels_reserve" "', argument "
"1"" of type '" "GModels *""'"); goto fail; } while(0)
;
6348 }
6349 arg1 = reinterpret_cast< GModels * >(argp1);
6350 ecode2 = SWIG_AsVal_int(obj1, &val2);
6351 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6352 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModels_reserve" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModels_reserve" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
6353 }
6354 temp2 = static_cast< int >(val2);
6355 arg2 = &temp2;
6356 {
6357 try {
6358 (arg1)->reserve((int const &)*arg2);
6359 }
6360 catch (const GException::out_of_range& e) {
6361 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6362 }
6363 catch (const GExceptionHandler& e) {
6364 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6365 }
6366 catch (const std::exception& e) {
6367 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6368 }
6369 }
6370 resultobj = SWIG_Py_Void();
6371 return resultobj;
6372fail:
6373 return NULL__null;
6374}
6375
6376
6377SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModels_extend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6378 PyObject *resultobj = 0;
6379 GModels *arg1 = (GModels *) 0 ;
6380 GModels *arg2 = 0 ;
6381 void *argp1 = 0 ;
6382 int res1 = 0 ;
6383 void *argp2 = 0 ;
6384 int res2 = 0 ;
6385 PyObject * obj0 = 0 ;
6386 PyObject * obj1 = 0 ;
6387
6388 if (!PyArg_ParseTuple(args,(char *)"OO:GModels_extend",&obj0,&obj1)) SWIG_failgoto fail;
6389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModels, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[36]
, 0 | 0, 0)
;
6390 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModels_extend" "', argument " "1"" of type '" "GModels *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModels_extend" "', argument "
"1"" of type '" "GModels *""'"); goto fail; } while(0)
;
6392 }
6393 arg1 = reinterpret_cast< GModels * >(argp1);
6394 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GModels, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[36]
, 0 | 0, 0)
;
6395 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6396 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModels_extend" "', argument " "2"" of type '" "GModels const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModels_extend" "', argument "
"2"" of type '" "GModels const &""'"); goto fail; } while
(0)
;
6397 }
6398 if (!argp2) {
6399 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModels_extend" "', argument " "2"" of type '" "GModels const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModels_extend" "', argument " "2"" of type '"
"GModels const &""'"); goto fail; } while(0)
;
6400 }
6401 arg2 = reinterpret_cast< GModels * >(argp2);
6402 {
6403 try {
6404 (arg1)->extend((GModels const &)*arg2);
6405 }
6406 catch (const GException::out_of_range& e) {
6407 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6408 }
6409 catch (const GExceptionHandler& e) {
6410 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6411 }
6412 catch (const std::exception& e) {
6413 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6414 }
6415 }
6416 resultobj = SWIG_Py_Void();
6417 return resultobj;
6418fail:
6419 return NULL__null;
6420}
6421
6422
6423SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModels_contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6424 PyObject *resultobj = 0;
6425 GModels *arg1 = (GModels *) 0 ;
6426 std::string *arg2 = 0 ;
6427 void *argp1 = 0 ;
6428 int res1 = 0 ;
6429 int res2 = SWIG_OLDOBJ((0)) ;
6430 PyObject * obj0 = 0 ;
6431 PyObject * obj1 = 0 ;
6432 bool result;
6433
6434 if (!PyArg_ParseTuple(args,(char *)"OO:GModels_contains",&obj0,&obj1)) SWIG_failgoto fail;
6435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModels, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[36]
, 0 | 0, 0)
;
6436 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModels_contains" "', argument " "1"" of type '" "GModels const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModels_contains" "', argument "
"1"" of type '" "GModels const *""'"); goto fail; } while(0)
;
6438 }
6439 arg1 = reinterpret_cast< GModels * >(argp1);
6440 {
6441 std::string *ptr = (std::string *)0;
6442 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
6443 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6444 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModels_contains" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModels_contains" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
6445 }
6446 if (!ptr) {
6447 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModels_contains" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModels_contains" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
6448 }
6449 arg2 = ptr;
6450 }
6451 {
6452 try {
6453 result = (bool)((GModels const *)arg1)->contains((std::string const &)*arg2);
6454 }
6455 catch (const GException::out_of_range& e) {
6456 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6457 }
6458 catch (const GExceptionHandler& e) {
6459 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6460 }
6461 catch (const std::exception& e) {
6462 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6463 }
6464 }
6465 resultobj = SWIG_From_bool(static_cast< bool >(result));
6466 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
6467 return resultobj;
6468fail:
6469 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
6470 return NULL__null;
6471}
6472
6473
6474SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModels_load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6475 PyObject *resultobj = 0;
6476 GModels *arg1 = (GModels *) 0 ;
6477 std::string *arg2 = 0 ;
6478 void *argp1 = 0 ;
6479 int res1 = 0 ;
6480 int res2 = SWIG_OLDOBJ((0)) ;
6481 PyObject * obj0 = 0 ;
6482 PyObject * obj1 = 0 ;
6483
6484 if (!PyArg_ParseTuple(args,(char *)"OO:GModels_load",&obj0,&obj1)) SWIG_failgoto fail;
6485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModels, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[36]
, 0 | 0, 0)
;
6486 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModels_load" "', argument " "1"" of type '" "GModels *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModels_load" "', argument "
"1"" of type '" "GModels *""'"); goto fail; } while(0)
;
6488 }
6489 arg1 = reinterpret_cast< GModels * >(argp1);
6490 {
6491 std::string *ptr = (std::string *)0;
6492 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
6493 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6494 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModels_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModels_load" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
6495 }
6496 if (!ptr) {
6497 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModels_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModels_load" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
6498 }
6499 arg2 = ptr;
6500 }
6501 {
6502 try {
6503 (arg1)->load((std::string const &)*arg2);
6504 }
6505 catch (const GException::out_of_range& e) {
6506 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6507 }
6508 catch (const GExceptionHandler& e) {
6509 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6510 }
6511 catch (const std::exception& e) {
6512 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6513 }
6514 }
6515 resultobj = SWIG_Py_Void();
6516 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
6517 return resultobj;
6518fail:
6519 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
6520 return NULL__null;
6521}
6522
6523
6524SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModels_save(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6525 PyObject *resultobj = 0;
6526 GModels *arg1 = (GModels *) 0 ;
6527 std::string *arg2 = 0 ;
6528 void *argp1 = 0 ;
6529 int res1 = 0 ;
6530 int res2 = SWIG_OLDOBJ((0)) ;
6531 PyObject * obj0 = 0 ;
6532 PyObject * obj1 = 0 ;
6533
6534 if (!PyArg_ParseTuple(args,(char *)"OO:GModels_save",&obj0,&obj1)) SWIG_failgoto fail;
6535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModels, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[36]
, 0 | 0, 0)
;
6536 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModels_save" "', argument " "1"" of type '" "GModels const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModels_save" "', argument "
"1"" of type '" "GModels const *""'"); goto fail; } while(0)
;
6538 }
6539 arg1 = reinterpret_cast< GModels * >(argp1);
6540 {
6541 std::string *ptr = (std::string *)0;
6542 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
6543 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6544 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModels_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModels_save" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
6545 }
6546 if (!ptr) {
6547 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModels_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModels_save" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
6548 }
6549 arg2 = ptr;
6550 }
6551 {
6552 try {
6553 ((GModels const *)arg1)->save((std::string const &)*arg2);
6554 }
6555 catch (const GException::out_of_range& e) {
6556 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6557 }
6558 catch (const GExceptionHandler& e) {
6559 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6560 }
6561 catch (const std::exception& e) {
6562 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6563 }
6564 }
6565 resultobj = SWIG_Py_Void();
6566 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
6567 return resultobj;
6568fail:
6569 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
6570 return NULL__null;
6571}
6572
6573
6574SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModels_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6575 PyObject *resultobj = 0;
6576 GModels *arg1 = (GModels *) 0 ;
6577 GXml *arg2 = 0 ;
6578 void *argp1 = 0 ;
6579 int res1 = 0 ;
6580 void *argp2 = 0 ;
6581 int res2 = 0 ;
6582 PyObject * obj0 = 0 ;
6583 PyObject * obj1 = 0 ;
6584
6585 if (!PyArg_ParseTuple(args,(char *)"OO:GModels_read",&obj0,&obj1)) SWIG_failgoto fail;
6586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModels, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[36]
, 0 | 0, 0)
;
6587 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModels_read" "', argument " "1"" of type '" "GModels *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModels_read" "', argument "
"1"" of type '" "GModels *""'"); goto fail; } while(0)
;
6589 }
6590 arg1 = reinterpret_cast< GModels * >(argp1);
6591 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXml, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[49]
, 0 | 0, 0)
;
6592 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6593 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModels_read" "', argument " "2"" of type '" "GXml const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModels_read" "', argument "
"2"" of type '" "GXml const &""'"); goto fail; } while(0
)
;
6594 }
6595 if (!argp2) {
6596 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModels_read" "', argument " "2"" of type '" "GXml const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModels_read" "', argument " "2"" of type '" "GXml const &"
"'"); goto fail; } while(0)
;
6597 }
6598 arg2 = reinterpret_cast< GXml * >(argp2);
6599 {
6600 try {
6601 (arg1)->read((GXml const &)*arg2);
6602 }
6603 catch (const GException::out_of_range& e) {
6604 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6605 }
6606 catch (const GExceptionHandler& e) {
6607 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6608 }
6609 catch (const std::exception& e) {
6610 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6611 }
6612 }
6613 resultobj = SWIG_Py_Void();
6614 return resultobj;
6615fail:
6616 return NULL__null;
6617}
6618
6619
6620SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModels_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6621 PyObject *resultobj = 0;
6622 GModels *arg1 = (GModels *) 0 ;
6623 GXml *arg2 = 0 ;
6624 void *argp1 = 0 ;
6625 int res1 = 0 ;
6626 void *argp2 = 0 ;
6627 int res2 = 0 ;
6628 PyObject * obj0 = 0 ;
6629 PyObject * obj1 = 0 ;
6630
6631 if (!PyArg_ParseTuple(args,(char *)"OO:GModels_write",&obj0,&obj1)) SWIG_failgoto fail;
6632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModels, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[36]
, 0 | 0, 0)
;
6633 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModels_write" "', argument " "1"" of type '" "GModels const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModels_write" "', argument "
"1"" of type '" "GModels const *""'"); goto fail; } while(0)
;
6635 }
6636 arg1 = reinterpret_cast< GModels * >(argp1);
6637 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXml, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[49]
, 0, 0)
;
6638 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6639 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModels_write" "', argument " "2"" of type '" "GXml &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModels_write" "', argument "
"2"" of type '" "GXml &""'"); goto fail; } while(0)
;
6640 }
6641 if (!argp2) {
6642 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModels_write" "', argument " "2"" of type '" "GXml &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModels_write" "', argument " "2"" of type '"
"GXml &""'"); goto fail; } while(0)
;
6643 }
6644 arg2 = reinterpret_cast< GXml * >(argp2);
6645 {
6646 try {
6647 ((GModels const *)arg1)->write(*arg2);
6648 }
6649 catch (const GException::out_of_range& e) {
6650 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6651 }
6652 catch (const GExceptionHandler& e) {
6653 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6654 }
6655 catch (const std::exception& e) {
6656 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6657 }
6658 }
6659 resultobj = SWIG_Py_Void();
6660 return resultobj;
6661fail:
6662 return NULL__null;
6663}
6664
6665
6666SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModels_npars(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6667 PyObject *resultobj = 0;
6668 GModels *arg1 = (GModels *) 0 ;
6669 void *argp1 = 0 ;
6670 int res1 = 0 ;
6671 PyObject * obj0 = 0 ;
6672 int result;
6673
6674 if (!PyArg_ParseTuple(args,(char *)"O:GModels_npars",&obj0)) SWIG_failgoto fail;
6675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModels, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[36]
, 0 | 0, 0)
;
6676 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModels_npars" "', argument " "1"" of type '" "GModels const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModels_npars" "', argument "
"1"" of type '" "GModels const *""'"); goto fail; } while(0)
;
6678 }
6679 arg1 = reinterpret_cast< GModels * >(argp1);
6680 {
6681 try {
6682 result = (int)((GModels const *)arg1)->npars();
6683 }
6684 catch (const GException::out_of_range& e) {
6685 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6686 }
6687 catch (const GExceptionHandler& e) {
6688 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6689 }
6690 catch (const std::exception& e) {
6691 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6692 }
6693 }
6694 resultobj = SWIG_From_int(static_cast< int >(result));
6695 return resultobj;
6696fail:
6697 return NULL__null;
6698}
6699
6700
6701SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModels_pars(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6702 PyObject *resultobj = 0;
6703 GModels *arg1 = (GModels *) 0 ;
6704 void *argp1 = 0 ;
6705 int res1 = 0 ;
6706 PyObject * obj0 = 0 ;
6707 GOptimizerPars result;
6708
6709 if (!PyArg_ParseTuple(args,(char *)"O:GModels_pars",&obj0)) SWIG_failgoto fail;
6710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModels, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[36]
, 0 | 0, 0)
;
6711 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModels_pars" "', argument " "1"" of type '" "GModels *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModels_pars" "', argument "
"1"" of type '" "GModels *""'"); goto fail; } while(0)
;
6713 }
6714 arg1 = reinterpret_cast< GModels * >(argp1);
6715 {
6716 try {
6717 result = (arg1)->pars();
6718 }
6719 catch (const GException::out_of_range& e) {
6720 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6721 }
6722 catch (const GExceptionHandler& e) {
6723 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6724 }
6725 catch (const std::exception& e) {
6726 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6727 }
6728 }
6729 resultobj = SWIG_NewPointerObj((new GOptimizerPars(static_cast< const GOptimizerPars& >(result))), SWIGTYPE_p_GOptimizerPars, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GOptimizerPars(static_cast
< const GOptimizerPars& >(result))), swig_types[39]
, 0x1 | 0)
;
6730 return resultobj;
6731fail:
6732 return NULL__null;
6733}
6734
6735
6736SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModels_eval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6737 PyObject *resultobj = 0;
6738 GModels *arg1 = (GModels *) 0 ;
6739 GEvent *arg2 = 0 ;
6740 GObservation *arg3 = 0 ;
6741 void *argp1 = 0 ;
6742 int res1 = 0 ;
6743 void *argp2 = 0 ;
6744 int res2 = 0 ;
6745 void *argp3 = 0 ;
6746 int res3 = 0 ;
6747 PyObject * obj0 = 0 ;
6748 PyObject * obj1 = 0 ;
6749 PyObject * obj2 = 0 ;
6750 double result;
6751
6752 if (!PyArg_ParseTuple(args,(char *)"OOO:GModels_eval",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
6753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModels, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[36]
, 0 | 0, 0)
;
6754 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModels_eval" "', argument " "1"" of type '" "GModels const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModels_eval" "', argument "
"1"" of type '" "GModels const *""'"); goto fail; } while(0)
;
6756 }
6757 arg1 = reinterpret_cast< GModels * >(argp1);
6758 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEvent, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[4],
0 | 0, 0)
;
6759 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6760 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModels_eval" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModels_eval" "', argument "
"2"" of type '" "GEvent const &""'"); goto fail; } while
(0)
;
6761 }
6762 if (!argp2) {
6763 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModels_eval" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModels_eval" "', argument " "2"" of type '" "GEvent const &"
"'"); goto fail; } while(0)
;
6764 }
6765 arg2 = reinterpret_cast< GEvent * >(argp2);
6766 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[37]
, 0 | 0, 0)
;
6767 if (!SWIG_IsOK(res3)(res3 >= 0)) {
6768 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModels_eval" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModels_eval" "', argument "
"3"" of type '" "GObservation const &""'"); goto fail; }
while(0)
;
6769 }
6770 if (!argp3) {
6771 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModels_eval" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModels_eval" "', argument " "3"" of type '" "GObservation const &"
"'"); goto fail; } while(0)
;
6772 }
6773 arg3 = reinterpret_cast< GObservation * >(argp3);
6774 {
6775 try {
6776 result = (double)((GModels const *)arg1)->eval((GEvent const &)*arg2,(GObservation const &)*arg3);
6777 }
6778 catch (const GException::out_of_range& e) {
6779 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6780 }
6781 catch (const GExceptionHandler& e) {
6782 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6783 }
6784 catch (const std::exception& e) {
6785 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6786 }
6787 }
6788 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
6789 return resultobj;
6790fail:
6791 return NULL__null;
6792}
6793
6794
6795SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModels_eval_gradients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6796 PyObject *resultobj = 0;
6797 GModels *arg1 = (GModels *) 0 ;
6798 GEvent *arg2 = 0 ;
6799 GObservation *arg3 = 0 ;
6800 void *argp1 = 0 ;
6801 int res1 = 0 ;
6802 void *argp2 = 0 ;
6803 int res2 = 0 ;
6804 void *argp3 = 0 ;
6805 int res3 = 0 ;
6806 PyObject * obj0 = 0 ;
6807 PyObject * obj1 = 0 ;
6808 PyObject * obj2 = 0 ;
6809 double result;
6810
6811 if (!PyArg_ParseTuple(args,(char *)"OOO:GModels_eval_gradients",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
6812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModels, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[36]
, 0 | 0, 0)
;
6813 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModels_eval_gradients" "', argument " "1"" of type '" "GModels const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModels_eval_gradients" "', argument "
"1"" of type '" "GModels const *""'"); goto fail; } while(0)
;
6815 }
6816 arg1 = reinterpret_cast< GModels * >(argp1);
6817 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEvent, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[4],
0 | 0, 0)
;
6818 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6819 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModels_eval_gradients" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModels_eval_gradients" "', argument "
"2"" of type '" "GEvent const &""'"); goto fail; } while
(0)
;
6820 }
6821 if (!argp2) {
6822 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModels_eval_gradients" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModels_eval_gradients" "', argument " "2"" of type '"
"GEvent const &""'"); goto fail; } while(0)
;
6823 }
6824 arg2 = reinterpret_cast< GEvent * >(argp2);
6825 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[37]
, 0 | 0, 0)
;
6826 if (!SWIG_IsOK(res3)(res3 >= 0)) {
6827 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModels_eval_gradients" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModels_eval_gradients" "', argument "
"3"" of type '" "GObservation const &""'"); goto fail; }
while(0)
;
6828 }
6829 if (!argp3) {
6830 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModels_eval_gradients" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModels_eval_gradients" "', argument " "3"" of type '"
"GObservation const &""'"); goto fail; } while(0)
;
6831 }
6832 arg3 = reinterpret_cast< GObservation * >(argp3);
6833 {
6834 try {
6835 result = (double)((GModels const *)arg1)->eval_gradients((GEvent const &)*arg2,(GObservation const &)*arg3);
6836 }
6837 catch (const GException::out_of_range& e) {
6838 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6839 }
6840 catch (const GExceptionHandler& e) {
6841 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6842 }
6843 catch (const std::exception& e) {
6844 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6845 }
6846 }
6847 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
6848 return resultobj;
6849fail:
6850 return NULL__null;
6851}
6852
6853
6854SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModels___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6855 PyObject *resultobj = 0;
6856 GModels *arg1 = (GModels *) 0 ;
6857 int *arg2 = 0 ;
6858 void *argp1 = 0 ;
6859 int res1 = 0 ;
6860 int temp2 ;
6861 int val2 ;
6862 int ecode2 = 0 ;
6863 PyObject * obj0 = 0 ;
6864 PyObject * obj1 = 0 ;
6865 GModel *result = 0 ;
6866
6867 if (!PyArg_ParseTuple(args,(char *)"OO:GModels___getitem__",&obj0,&obj1)) SWIG_failgoto fail;
6868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModels, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[36]
, 0 | 0, 0)
;
6869 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModels___getitem__" "', argument " "1"" of type '" "GModels *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModels___getitem__" "', argument "
"1"" of type '" "GModels *""'"); goto fail; } while(0)
;
6871 }
6872 arg1 = reinterpret_cast< GModels * >(argp1);
6873 ecode2 = SWIG_AsVal_int(obj1, &val2);
6874 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6875 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModels___getitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModels___getitem__" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
6876 }
6877 temp2 = static_cast< int >(val2);
6878 arg2 = &temp2;
6879 {
6880 try {
6881 result = (GModel *)GModels___getitem____SWIG_0(arg1,(int const &)*arg2);
6882 }
6883 catch (const GException::out_of_range& e) {
6884 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6885 }
6886 catch (const GExceptionHandler& e) {
6887 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6888 }
6889 catch (const std::exception& e) {
6890 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6891 }
6892 }
6893 {
6894 if (dynamic_cast<GModelSky*>(result) != NULL__null) {
6895 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSky, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0
| 0)
;
6896 }
6897 else if (dynamic_cast<GModelData*>(result) != NULL__null) {
6898 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelData, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
6899 }
6900 else {
6901 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[6], 0 |
0)
;
6902 }
6903 }
6904 return resultobj;
6905fail:
6906 return NULL__null;
6907}
6908
6909
6910SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModels___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6911 PyObject *resultobj = 0;
6912 GModels *arg1 = (GModels *) 0 ;
6913 std::string *arg2 = 0 ;
6914 void *argp1 = 0 ;
6915 int res1 = 0 ;
6916 int res2 = SWIG_OLDOBJ((0)) ;
6917 PyObject * obj0 = 0 ;
6918 PyObject * obj1 = 0 ;
6919 GModel *result = 0 ;
6920
6921 if (!PyArg_ParseTuple(args,(char *)"OO:GModels___getitem__",&obj0,&obj1)) SWIG_failgoto fail;
6922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModels, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[36]
, 0 | 0, 0)
;
6923 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModels___getitem__" "', argument " "1"" of type '" "GModels *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModels___getitem__" "', argument "
"1"" of type '" "GModels *""'"); goto fail; } while(0)
;
6925 }
6926 arg1 = reinterpret_cast< GModels * >(argp1);
6927 {
6928 std::string *ptr = (std::string *)0;
6929 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
6930 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6931 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModels___getitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModels___getitem__" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
6932 }
6933 if (!ptr) {
6934 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModels___getitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModels___getitem__" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
6935 }
6936 arg2 = ptr;
6937 }
6938 {
6939 try {
6940 result = (GModel *)GModels___getitem____SWIG_1(arg1,(std::string const &)*arg2);
6941 }
6942 catch (const GException::out_of_range& e) {
6943 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6944 }
6945 catch (const GExceptionHandler& e) {
6946 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6947 }
6948 catch (const std::exception& e) {
6949 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6950 }
6951 }
6952 {
6953 if (dynamic_cast<GModelSky*>(result) != NULL__null) {
6954 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSky, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0
| 0)
;
6955 }
6956 else if (dynamic_cast<GModelData*>(result) != NULL__null) {
6957 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelData, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
6958 }
6959 else {
6960 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[6], 0 |
0)
;
6961 }
6962 }
6963 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
6964 return resultobj;
6965fail:
6966 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
6967 return NULL__null;
6968}
6969
6970
6971SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModels___getitem__(PyObject *self, PyObject *args) {
6972 int argc;
6973 PyObject *argv[3];
6974 int ii;
6975
6976 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
6977 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
6978 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
6979 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
6980 }
6981 if (argc == 2) {
6982 int _v;
6983 void *vptr = 0;
6984 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModels, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[36
], 0, 0)
;
6985 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6986 if (_v) {
6987 {
6988 int res = SWIG_AsVal_int(argv[1], NULL__null);
6989 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6990 }
6991 if (_v) {
6992 return _wrap_GModels___getitem____SWIG_0(self, args);
6993 }
6994 }
6995 }
6996 if (argc == 2) {
6997 int _v;
6998 void *vptr = 0;
6999 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModels, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[36
], 0, 0)
;
7000 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7001 if (_v) {
7002 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
7003 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7004 if (_v) {
7005 return _wrap_GModels___getitem____SWIG_1(self, args);
7006 }
7007 }
7008 }
7009
7010fail:
7011 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModels___getitem__'.\n"
7012 " Possible C/C++ prototypes are:\n"
7013 " GModels::__getitem__(int const &)\n"
7014 " GModels::__getitem__(std::string const &)\n");
7015 return 0;
7016}
7017
7018
7019SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModels___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7020 PyObject *resultobj = 0;
7021 GModels *arg1 = (GModels *) 0 ;
7022 int *arg2 = 0 ;
7023 GModel *arg3 = 0 ;
7024 void *argp1 = 0 ;
7025 int res1 = 0 ;
7026 int temp2 ;
7027 int val2 ;
7028 int ecode2 = 0 ;
7029 void *argp3 = 0 ;
7030 int res3 = 0 ;
7031 PyObject * obj0 = 0 ;
7032 PyObject * obj1 = 0 ;
7033 PyObject * obj2 = 0 ;
7034
7035 if (!PyArg_ParseTuple(args,(char *)"OOO:GModels___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
7036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModels, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[36]
, 0 | 0, 0)
;
7037 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModels___setitem__" "', argument " "1"" of type '" "GModels *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModels___setitem__" "', argument "
"1"" of type '" "GModels *""'"); goto fail; } while(0)
;
7039 }
7040 arg1 = reinterpret_cast< GModels * >(argp1);
7041 ecode2 = SWIG_AsVal_int(obj1, &val2);
7042 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
7043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModels___setitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModels___setitem__" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
7044 }
7045 temp2 = static_cast< int >(val2);
7046 arg2 = &temp2;
7047 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GModel, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[6],
0 | 0, 0)
;
7048 if (!SWIG_IsOK(res3)(res3 >= 0)) {
7049 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModels___setitem__" "', argument " "3"" of type '" "GModel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModels___setitem__" "', argument "
"3"" of type '" "GModel const &""'"); goto fail; } while
(0)
;
7050 }
7051 if (!argp3) {
7052 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModels___setitem__" "', argument " "3"" of type '" "GModel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModels___setitem__" "', argument " "3"" of type '"
"GModel const &""'"); goto fail; } while(0)
;
7053 }
7054 arg3 = reinterpret_cast< GModel * >(argp3);
7055 {
7056 try {
7057 GModels___setitem____SWIG_0(arg1,(int const &)*arg2,(GModel const &)*arg3);
7058 }
7059 catch (const GException::out_of_range& e) {
7060 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7061 }
7062 catch (const GExceptionHandler& e) {
7063 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7064 }
7065 catch (const std::exception& e) {
7066 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7067 }
7068 }
7069 resultobj = SWIG_Py_Void();
7070 return resultobj;
7071fail:
7072 return NULL__null;
7073}
7074
7075
7076SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModels___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7077 PyObject *resultobj = 0;
7078 GModels *arg1 = (GModels *) 0 ;
7079 std::string *arg2 = 0 ;
7080 GModel *arg3 = 0 ;
7081 void *argp1 = 0 ;
7082 int res1 = 0 ;
7083 int res2 = SWIG_OLDOBJ((0)) ;
7084 void *argp3 = 0 ;
7085 int res3 = 0 ;
7086 PyObject * obj0 = 0 ;
7087 PyObject * obj1 = 0 ;
7088 PyObject * obj2 = 0 ;
7089
7090 if (!PyArg_ParseTuple(args,(char *)"OOO:GModels___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
7091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModels, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[36]
, 0 | 0, 0)
;
7092 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModels___setitem__" "', argument " "1"" of type '" "GModels *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModels___setitem__" "', argument "
"1"" of type '" "GModels *""'"); goto fail; } while(0)
;
7094 }
7095 arg1 = reinterpret_cast< GModels * >(argp1);
7096 {
7097 std::string *ptr = (std::string *)0;
7098 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
7099 if (!SWIG_IsOK(res2)(res2 >= 0)) {
7100 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModels___setitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModels___setitem__" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
7101 }
7102 if (!ptr) {
7103 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModels___setitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModels___setitem__" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
7104 }
7105 arg2 = ptr;
7106 }
7107 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GModel, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[6],
0 | 0, 0)
;
7108 if (!SWIG_IsOK(res3)(res3 >= 0)) {
7109 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModels___setitem__" "', argument " "3"" of type '" "GModel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModels___setitem__" "', argument "
"3"" of type '" "GModel const &""'"); goto fail; } while
(0)
;
7110 }
7111 if (!argp3) {
7112 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModels___setitem__" "', argument " "3"" of type '" "GModel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModels___setitem__" "', argument " "3"" of type '"
"GModel const &""'"); goto fail; } while(0)
;
7113 }
7114 arg3 = reinterpret_cast< GModel * >(argp3);
7115 {
7116 try {
7117 GModels___setitem____SWIG_1(arg1,(std::string const &)*arg2,(GModel const &)*arg3);
7118 }
7119 catch (const GException::out_of_range& e) {
7120 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7121 }
7122 catch (const GExceptionHandler& e) {
7123 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7124 }
7125 catch (const std::exception& e) {
7126 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7127 }
7128 }
7129 resultobj = SWIG_Py_Void();
7130 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
7131 return resultobj;
7132fail:
7133 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
7134 return NULL__null;
7135}
7136
7137
7138SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModels___setitem__(PyObject *self, PyObject *args) {
7139 int argc;
7140 PyObject *argv[4];
7141 int ii;
7142
7143 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
7144 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
7145 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
7146 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
7147 }
7148 if (argc == 3) {
7149 int _v;
7150 void *vptr = 0;
7151 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModels, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[36
], 0, 0)
;
7152 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7153 if (_v) {
7154 {
7155 int res = SWIG_AsVal_int(argv[1], NULL__null);
7156 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7157 }
7158 if (_v) {
7159 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GModel, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[6], 0, 0);
7160 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7161 if (_v) {
7162 return _wrap_GModels___setitem____SWIG_0(self, args);
7163 }
7164 }
7165 }
7166 }
7167 if (argc == 3) {
7168 int _v;
7169 void *vptr = 0;
7170 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModels, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[36
], 0, 0)
;
7171 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7172 if (_v) {
7173 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
7174 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7175 if (_v) {
7176 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GModel, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[6], 0, 0);
7177 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7178 if (_v) {
7179 return _wrap_GModels___setitem____SWIG_1(self, args);
7180 }
7181 }
7182 }
7183 }
7184
7185fail:
7186 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModels___setitem__'.\n"
7187 " Possible C/C++ prototypes are:\n"
7188 " GModels::__setitem__(int const &,GModel const &)\n"
7189 " GModels::__setitem__(std::string const &,GModel const &)\n");
7190 return 0;
7191}
7192
7193
7194SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModels_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7195 PyObject *resultobj = 0;
7196 GModels *arg1 = (GModels *) 0 ;
7197 void *argp1 = 0 ;
7198 int res1 = 0 ;
7199 PyObject * obj0 = 0 ;
7200 GModels result;
7201
7202 if (!PyArg_ParseTuple(args,(char *)"O:GModels_copy",&obj0)) SWIG_failgoto fail;
7203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModels, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[36]
, 0 | 0, 0)
;
7204 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModels_copy" "', argument " "1"" of type '" "GModels *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModels_copy" "', argument "
"1"" of type '" "GModels *""'"); goto fail; } while(0)
;
7206 }
7207 arg1 = reinterpret_cast< GModels * >(argp1);
7208 {
7209 try {
7210 result = GModels_copy(arg1);
7211 }
7212 catch (const GException::out_of_range& e) {
7213 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7214 }
7215 catch (const GExceptionHandler& e) {
7216 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7217 }
7218 catch (const std::exception& e) {
7219 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7220 }
7221 }
7222 resultobj = SWIG_NewPointerObj((new GModels(static_cast< const GModels& >(result))), SWIGTYPE_p_GModels, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GModels(static_cast<
const GModels& >(result))), swig_types[36], 0x1 | 0)
;
7223 return resultobj;
7224fail:
7225 return NULL__null;
7226}
7227
7228
7229SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GModels_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7230 PyObject *obj;
7231 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
7232 SWIG_TypeNewClientData(SWIGTYPE_p_GModelsswig_types[36], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
7233 return SWIG_Py_Void();
7234}
7235
7236SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GModel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7237 PyObject *resultobj = 0;
7238 GModel *arg1 = (GModel *) 0 ;
7239 void *argp1 = 0 ;
7240 int res1 = 0 ;
7241 PyObject * obj0 = 0 ;
7242
7243 if (!PyArg_ParseTuple(args,(char *)"O:delete_GModel",&obj0)) SWIG_failgoto fail;
7244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModel, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0x1 | 0, 0)
;
7245 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GModel" "', argument " "1"" of type '" "GModel *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GModel" "', argument "
"1"" of type '" "GModel *""'"); goto fail; } while(0)
;
7247 }
7248 arg1 = reinterpret_cast< GModel * >(argp1);
7249 {
7250 try {
7251 delete arg1;
7252 }
7253 catch (const GException::out_of_range& e) {
7254 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7255 }
7256 catch (const GExceptionHandler& e) {
7257 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7258 }
7259 catch (const std::exception& e) {
7260 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7261 }
7262 }
7263 resultobj = SWIG_Py_Void();
7264 return resultobj;
7265fail:
7266 return NULL__null;
7267}
7268
7269
7270SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModel_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7271 PyObject *resultobj = 0;
7272 GModel *arg1 = (GModel *) 0 ;
7273 void *argp1 = 0 ;
7274 int res1 = 0 ;
7275 PyObject * obj0 = 0 ;
7276
7277 if (!PyArg_ParseTuple(args,(char *)"O:GModel_clear",&obj0)) SWIG_failgoto fail;
7278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
7279 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModel_clear" "', argument " "1"" of type '" "GModel *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModel_clear" "', argument "
"1"" of type '" "GModel *""'"); goto fail; } while(0)
;
7281 }
7282 arg1 = reinterpret_cast< GModel * >(argp1);
7283 {
7284 try {
7285 (arg1)->clear();
7286 }
7287 catch (const GException::out_of_range& e) {
7288 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7289 }
7290 catch (const GExceptionHandler& e) {
7291 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7292 }
7293 catch (const std::exception& e) {
7294 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7295 }
7296 }
7297 resultobj = SWIG_Py_Void();
7298 return resultobj;
7299fail:
7300 return NULL__null;
7301}
7302
7303
7304SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModel_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7305 PyObject *resultobj = 0;
7306 GModel *arg1 = (GModel *) 0 ;
7307 void *argp1 = 0 ;
7308 int res1 = 0 ;
7309 PyObject * obj0 = 0 ;
7310 GModel *result = 0 ;
7311
7312 if (!PyArg_ParseTuple(args,(char *)"O:GModel_clone",&obj0)) SWIG_failgoto fail;
7313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
7314 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModel_clone" "', argument " "1"" of type '" "GModel const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModel_clone" "', argument "
"1"" of type '" "GModel const *""'"); goto fail; } while(0)
;
7316 }
7317 arg1 = reinterpret_cast< GModel * >(argp1);
7318 {
7319 try {
7320 result = (GModel *)((GModel const *)arg1)->clone();
7321 }
7322 catch (const GException::out_of_range& e) {
7323 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7324 }
7325 catch (const GExceptionHandler& e) {
7326 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7327 }
7328 catch (const std::exception& e) {
7329 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7330 }
7331 }
7332 {
7333 if (dynamic_cast<GModelSky*>(result) != NULL__null) {
7334 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSky, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0
| 0)
;
7335 }
7336 else if (dynamic_cast<GModelData*>(result) != NULL__null) {
7337 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelData, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
7338 }
7339 else {
7340 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[6], 0 |
0)
;
7341 }
7342 }
7343 return resultobj;
7344fail:
7345 return NULL__null;
7346}
7347
7348
7349SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModel_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7350 PyObject *resultobj = 0;
7351 GModel *arg1 = (GModel *) 0 ;
7352 void *argp1 = 0 ;
7353 int res1 = 0 ;
7354 PyObject * obj0 = 0 ;
7355 std::string result;
7356
7357 if (!PyArg_ParseTuple(args,(char *)"O:GModel_type",&obj0)) SWIG_failgoto fail;
7358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
7359 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModel_type" "', argument " "1"" of type '" "GModel const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModel_type" "', argument "
"1"" of type '" "GModel const *""'"); goto fail; } while(0)
;
7361 }
7362 arg1 = reinterpret_cast< GModel * >(argp1);
7363 {
7364 try {
7365 result = ((GModel const *)arg1)->type();
7366 }
7367 catch (const GException::out_of_range& e) {
7368 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7369 }
7370 catch (const GExceptionHandler& e) {
7371 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7372 }
7373 catch (const std::exception& e) {
7374 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7375 }
7376 }
7377 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
7378 return resultobj;
7379fail:
7380 return NULL__null;
7381}
7382
7383
7384SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModel_isconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7385 PyObject *resultobj = 0;
7386 GModel *arg1 = (GModel *) 0 ;
7387 void *argp1 = 0 ;
7388 int res1 = 0 ;
7389 PyObject * obj0 = 0 ;
7390 bool result;
7391
7392 if (!PyArg_ParseTuple(args,(char *)"O:GModel_isconstant",&obj0)) SWIG_failgoto fail;
7393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
7394 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModel_isconstant" "', argument " "1"" of type '" "GModel const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModel_isconstant" "', argument "
"1"" of type '" "GModel const *""'"); goto fail; } while(0)
;
7396 }
7397 arg1 = reinterpret_cast< GModel * >(argp1);
7398 {
7399 try {
7400 result = (bool)((GModel const *)arg1)->isconstant();
7401 }
7402 catch (const GException::out_of_range& e) {
7403 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7404 }
7405 catch (const GExceptionHandler& e) {
7406 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7407 }
7408 catch (const std::exception& e) {
7409 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7410 }
7411 }
7412 resultobj = SWIG_From_bool(static_cast< bool >(result));
7413 return resultobj;
7414fail:
7415 return NULL__null;
7416}
7417
7418
7419SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModel_eval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7420 PyObject *resultobj = 0;
7421 GModel *arg1 = (GModel *) 0 ;
7422 GEvent *arg2 = 0 ;
7423 GObservation *arg3 = 0 ;
7424 void *argp1 = 0 ;
7425 int res1 = 0 ;
7426 void *argp2 = 0 ;
7427 int res2 = 0 ;
7428 void *argp3 = 0 ;
7429 int res3 = 0 ;
7430 PyObject * obj0 = 0 ;
7431 PyObject * obj1 = 0 ;
7432 PyObject * obj2 = 0 ;
7433 double result;
7434
7435 if (!PyArg_ParseTuple(args,(char *)"OOO:GModel_eval",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
7436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
7437 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModel_eval" "', argument " "1"" of type '" "GModel const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModel_eval" "', argument "
"1"" of type '" "GModel const *""'"); goto fail; } while(0)
;
7439 }
7440 arg1 = reinterpret_cast< GModel * >(argp1);
7441 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEvent, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[4],
0 | 0, 0)
;
7442 if (!SWIG_IsOK(res2)(res2 >= 0)) {
7443 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModel_eval" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModel_eval" "', argument "
"2"" of type '" "GEvent const &""'"); goto fail; } while
(0)
;
7444 }
7445 if (!argp2) {
7446 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModel_eval" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModel_eval" "', argument " "2"" of type '" "GEvent const &"
"'"); goto fail; } while(0)
;
7447 }
7448 arg2 = reinterpret_cast< GEvent * >(argp2);
7449 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[37]
, 0 | 0, 0)
;
7450 if (!SWIG_IsOK(res3)(res3 >= 0)) {
7451 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModel_eval" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModel_eval" "', argument "
"3"" of type '" "GObservation const &""'"); goto fail; }
while(0)
;
7452 }
7453 if (!argp3) {
7454 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModel_eval" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModel_eval" "', argument " "3"" of type '" "GObservation const &"
"'"); goto fail; } while(0)
;
7455 }
7456 arg3 = reinterpret_cast< GObservation * >(argp3);
7457 {
7458 try {
7459 result = (double)((GModel const *)arg1)->eval((GEvent const &)*arg2,(GObservation const &)*arg3);
7460 }
7461 catch (const GException::out_of_range& e) {
7462 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7463 }
7464 catch (const GExceptionHandler& e) {
7465 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7466 }
7467 catch (const std::exception& e) {
7468 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7469 }
7470 }
7471 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
7472 return resultobj;
7473fail:
7474 return NULL__null;
7475}
7476
7477
7478SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModel_eval_gradients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7479 PyObject *resultobj = 0;
7480 GModel *arg1 = (GModel *) 0 ;
7481 GEvent *arg2 = 0 ;
7482 GObservation *arg3 = 0 ;
7483 void *argp1 = 0 ;
7484 int res1 = 0 ;
7485 void *argp2 = 0 ;
7486 int res2 = 0 ;
7487 void *argp3 = 0 ;
7488 int res3 = 0 ;
7489 PyObject * obj0 = 0 ;
7490 PyObject * obj1 = 0 ;
7491 PyObject * obj2 = 0 ;
7492 double result;
7493
7494 if (!PyArg_ParseTuple(args,(char *)"OOO:GModel_eval_gradients",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
7495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
7496 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModel_eval_gradients" "', argument " "1"" of type '" "GModel const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModel_eval_gradients" "', argument "
"1"" of type '" "GModel const *""'"); goto fail; } while(0)
;
7498 }
7499 arg1 = reinterpret_cast< GModel * >(argp1);
7500 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEvent, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[4],
0 | 0, 0)
;
7501 if (!SWIG_IsOK(res2)(res2 >= 0)) {
7502 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModel_eval_gradients" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModel_eval_gradients" "', argument "
"2"" of type '" "GEvent const &""'"); goto fail; } while
(0)
;
7503 }
7504 if (!argp2) {
7505 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModel_eval_gradients" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModel_eval_gradients" "', argument " "2"" of type '"
"GEvent const &""'"); goto fail; } while(0)
;
7506 }
7507 arg2 = reinterpret_cast< GEvent * >(argp2);
7508 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[37]
, 0 | 0, 0)
;
7509 if (!SWIG_IsOK(res3)(res3 >= 0)) {
7510 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModel_eval_gradients" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModel_eval_gradients" "', argument "
"3"" of type '" "GObservation const &""'"); goto fail; }
while(0)
;
7511 }
7512 if (!argp3) {
7513 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModel_eval_gradients" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModel_eval_gradients" "', argument " "3"" of type '"
"GObservation const &""'"); goto fail; } while(0)
;
7514 }
7515 arg3 = reinterpret_cast< GObservation * >(argp3);
7516 {
7517 try {
7518 result = (double)((GModel const *)arg1)->eval_gradients((GEvent const &)*arg2,(GObservation const &)*arg3);
7519 }
7520 catch (const GException::out_of_range& e) {
7521 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7522 }
7523 catch (const GExceptionHandler& e) {
7524 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7525 }
7526 catch (const std::exception& e) {
7527 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7528 }
7529 }
7530 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
7531 return resultobj;
7532fail:
7533 return NULL__null;
7534}
7535
7536
7537SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModel_npred(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7538 PyObject *resultobj = 0;
7539 GModel *arg1 = (GModel *) 0 ;
7540 GEnergy *arg2 = 0 ;
7541 GTime *arg3 = 0 ;
7542 GObservation *arg4 = 0 ;
7543 void *argp1 = 0 ;
7544 int res1 = 0 ;
7545 void *argp2 = 0 ;
7546 int res2 = 0 ;
7547 void *argp3 = 0 ;
7548 int res3 = 0 ;
7549 void *argp4 = 0 ;
7550 int res4 = 0 ;
7551 PyObject * obj0 = 0 ;
7552 PyObject * obj1 = 0 ;
7553 PyObject * obj2 = 0 ;
7554 PyObject * obj3 = 0 ;
7555 double result;
7556
7557 if (!PyArg_ParseTuple(args,(char *)"OOOO:GModel_npred",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
7558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
7559 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModel_npred" "', argument " "1"" of type '" "GModel const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModel_npred" "', argument "
"1"" of type '" "GModel const *""'"); goto fail; } while(0)
;
7561 }
7562 arg1 = reinterpret_cast< GModel * >(argp1);
7563 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
7564 if (!SWIG_IsOK(res2)(res2 >= 0)) {
7565 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModel_npred" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModel_npred" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
7566 }
7567 if (!argp2) {
7568 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModel_npred" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModel_npred" "', argument " "2"" of type '" "GEnergy const &"
"'"); goto fail; } while(0)
;
7569 }
7570 arg2 = reinterpret_cast< GEnergy * >(argp2);
7571 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[46]
, 0 | 0, 0)
;
7572 if (!SWIG_IsOK(res3)(res3 >= 0)) {
7573 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModel_npred" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModel_npred" "', argument "
"3"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
7574 }
7575 if (!argp3) {
7576 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModel_npred" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModel_npred" "', argument " "3"" of type '" "GTime const &"
"'"); goto fail; } while(0)
;
7577 }
7578 arg3 = reinterpret_cast< GTime * >(argp3);
7579 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[37]
, 0 | 0, 0)
;
7580 if (!SWIG_IsOK(res4)(res4 >= 0)) {
7581 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModel_npred" "', argument " "4"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModel_npred" "', argument "
"4"" of type '" "GObservation const &""'"); goto fail; }
while(0)
;
7582 }
7583 if (!argp4) {
7584 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModel_npred" "', argument " "4"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModel_npred" "', argument " "4"" of type '" "GObservation const &"
"'"); goto fail; } while(0)
;
7585 }
7586 arg4 = reinterpret_cast< GObservation * >(argp4);
7587 {
7588 try {
7589 result = (double)((GModel const *)arg1)->npred((GEnergy const &)*arg2,(GTime const &)*arg3,(GObservation const &)*arg4);
7590 }
7591 catch (const GException::out_of_range& e) {
7592 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7593 }
7594 catch (const GExceptionHandler& e) {
7595 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7596 }
7597 catch (const std::exception& e) {
7598 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7599 }
7600 }
7601 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
7602 return resultobj;
7603fail:
7604 return NULL__null;
7605}
7606
7607
7608SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModel_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7609 PyObject *resultobj = 0;
7610 GModel *arg1 = (GModel *) 0 ;
7611 GXmlElement *arg2 = 0 ;
7612 void *argp1 = 0 ;
7613 int res1 = 0 ;
7614 void *argp2 = 0 ;
7615 int res2 = 0 ;
7616 PyObject * obj0 = 0 ;
7617 PyObject * obj1 = 0 ;
7618
7619 if (!PyArg_ParseTuple(args,(char *)"OO:GModel_read",&obj0,&obj1)) SWIG_failgoto fail;
7620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
7621 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModel_read" "', argument " "1"" of type '" "GModel *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModel_read" "', argument "
"1"" of type '" "GModel *""'"); goto fail; } while(0)
;
7623 }
7624 arg1 = reinterpret_cast< GModel * >(argp1);
7625 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0 | 0, 0)
;
7626 if (!SWIG_IsOK(res2)(res2 >= 0)) {
7627 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModel_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModel_read" "', argument "
"2"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
7628 }
7629 if (!argp2) {
7630 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModel_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModel_read" "', argument " "2"" of type '" "GXmlElement const &"
"'"); goto fail; } while(0)
;
7631 }
7632 arg2 = reinterpret_cast< GXmlElement * >(argp2);
7633 {
7634 try {
7635 (arg1)->read((GXmlElement const &)*arg2);
7636 }
7637 catch (const GException::out_of_range& e) {
7638 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7639 }
7640 catch (const GExceptionHandler& e) {
7641 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7642 }
7643 catch (const std::exception& e) {
7644 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7645 }
7646 }
7647 resultobj = SWIG_Py_Void();
7648 return resultobj;
7649fail:
7650 return NULL__null;
7651}
7652
7653
7654SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModel_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7655 PyObject *resultobj = 0;
7656 GModel *arg1 = (GModel *) 0 ;
7657 GXmlElement *arg2 = 0 ;
7658 void *argp1 = 0 ;
7659 int res1 = 0 ;
7660 void *argp2 = 0 ;
7661 int res2 = 0 ;
7662 PyObject * obj0 = 0 ;
7663 PyObject * obj1 = 0 ;
7664
7665 if (!PyArg_ParseTuple(args,(char *)"OO:GModel_write",&obj0,&obj1)) SWIG_failgoto fail;
7666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
7667 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModel_write" "', argument " "1"" of type '" "GModel const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModel_write" "', argument "
"1"" of type '" "GModel const *""'"); goto fail; } while(0)
;
7669 }
7670 arg1 = reinterpret_cast< GModel * >(argp1);
7671 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0, 0)
;
7672 if (!SWIG_IsOK(res2)(res2 >= 0)) {
7673 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModel_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModel_write" "', argument "
"2"" of type '" "GXmlElement &""'"); goto fail; } while(
0)
;
7674 }
7675 if (!argp2) {
7676 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModel_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModel_write" "', argument " "2"" of type '" "GXmlElement &"
"'"); goto fail; } while(0)
;
7677 }
7678 arg2 = reinterpret_cast< GXmlElement * >(argp2);
7679 {
7680 try {
7681 ((GModel const *)arg1)->write(*arg2);
7682 }
7683 catch (const GException::out_of_range& e) {
7684 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7685 }
7686 catch (const GExceptionHandler& e) {
7687 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7688 }
7689 catch (const std::exception& e) {
7690 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7691 }
7692 }
7693 resultobj = SWIG_Py_Void();
7694 return resultobj;
7695fail:
7696 return NULL__null;
7697}
7698
7699
7700SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModel_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7701 PyObject *resultobj = 0;
7702 GModel *arg1 = (GModel *) 0 ;
7703 void *argp1 = 0 ;
7704 int res1 = 0 ;
7705 PyObject * obj0 = 0 ;
7706 int result;
7707
7708 if (!PyArg_ParseTuple(args,(char *)"O:GModel_size",&obj0)) SWIG_failgoto fail;
7709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
7710 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModel_size" "', argument " "1"" of type '" "GModel const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModel_size" "', argument "
"1"" of type '" "GModel const *""'"); goto fail; } while(0)
;
7712 }
7713 arg1 = reinterpret_cast< GModel * >(argp1);
7714 {
7715 try {
7716 result = (int)((GModel const *)arg1)->size();
7717 }
7718 catch (const GException::out_of_range& e) {
7719 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7720 }
7721 catch (const GExceptionHandler& e) {
7722 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7723 }
7724 catch (const std::exception& e) {
7725 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7726 }
7727 }
7728 resultobj = SWIG_From_int(static_cast< int >(result));
7729 return resultobj;
7730fail:
7731 return NULL__null;
7732}
7733
7734
7735SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModel_at(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7736 PyObject *resultobj = 0;
7737 GModel *arg1 = (GModel *) 0 ;
7738 int *arg2 = 0 ;
7739 void *argp1 = 0 ;
7740 int res1 = 0 ;
7741 int temp2 ;
7742 int val2 ;
7743 int ecode2 = 0 ;
7744 PyObject * obj0 = 0 ;
7745 PyObject * obj1 = 0 ;
7746 GModelPar *result = 0 ;
7747
7748 if (!PyArg_ParseTuple(args,(char *)"OO:GModel_at",&obj0,&obj1)) SWIG_failgoto fail;
7749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
7750 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModel_at" "', argument " "1"" of type '" "GModel *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModel_at" "', argument " "1"
" of type '" "GModel *""'"); goto fail; } while(0)
;
7752 }
7753 arg1 = reinterpret_cast< GModel * >(argp1);
7754 ecode2 = SWIG_AsVal_int(obj1, &val2);
7755 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
7756 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModel_at" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModel_at" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
7757 }
7758 temp2 = static_cast< int >(val2);
7759 arg2 = &temp2;
7760 {
7761 try {
7762 result = (GModelPar *) &(arg1)->at((int const &)*arg2);
7763 }
7764 catch (const GException::out_of_range& e) {
7765 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7766 }
7767 catch (const GExceptionHandler& e) {
7768 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7769 }
7770 catch (const std::exception& e) {
7771 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7772 }
7773 }
7774 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelPar, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], 0 |
0)
;
7775 return resultobj;
7776fail:
7777 return NULL__null;
7778}
7779
7780
7781SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModel_haspar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7782 PyObject *resultobj = 0;
7783 GModel *arg1 = (GModel *) 0 ;
7784 std::string *arg2 = 0 ;
7785 void *argp1 = 0 ;
7786 int res1 = 0 ;
7787 int res2 = SWIG_OLDOBJ((0)) ;
7788 PyObject * obj0 = 0 ;
7789 PyObject * obj1 = 0 ;
7790 bool result;
7791
7792 if (!PyArg_ParseTuple(args,(char *)"OO:GModel_haspar",&obj0,&obj1)) SWIG_failgoto fail;
7793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
7794 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModel_haspar" "', argument " "1"" of type '" "GModel const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModel_haspar" "', argument "
"1"" of type '" "GModel const *""'"); goto fail; } while(0)
;
7796 }
7797 arg1 = reinterpret_cast< GModel * >(argp1);
7798 {
7799 std::string *ptr = (std::string *)0;
7800 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
7801 if (!SWIG_IsOK(res2)(res2 >= 0)) {
7802 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModel_haspar" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModel_haspar" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
7803 }
7804 if (!ptr) {
7805 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModel_haspar" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModel_haspar" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
7806 }
7807 arg2 = ptr;
7808 }
7809 {
7810 try {
7811 result = (bool)((GModel const *)arg1)->haspar((std::string const &)*arg2);
7812 }
7813 catch (const GException::out_of_range& e) {
7814 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7815 }
7816 catch (const GExceptionHandler& e) {
7817 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7818 }
7819 catch (const std::exception& e) {
7820 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7821 }
7822 }
7823 resultobj = SWIG_From_bool(static_cast< bool >(result));
7824 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
7825 return resultobj;
7826fail:
7827 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
7828 return NULL__null;
7829}
7830
7831
7832SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModel_name__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7833 PyObject *resultobj = 0;
7834 GModel *arg1 = (GModel *) 0 ;
7835 void *argp1 = 0 ;
7836 int res1 = 0 ;
7837 PyObject * obj0 = 0 ;
7838 std::string *result = 0 ;
7839
7840 if (!PyArg_ParseTuple(args,(char *)"O:GModel_name",&obj0)) SWIG_failgoto fail;
7841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
7842 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModel_name" "', argument " "1"" of type '" "GModel const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModel_name" "', argument "
"1"" of type '" "GModel const *""'"); goto fail; } while(0)
;
7844 }
7845 arg1 = reinterpret_cast< GModel * >(argp1);
7846 {
7847 try {
7848 result = (std::string *) &((GModel const *)arg1)->name();
7849 }
7850 catch (const GException::out_of_range& e) {
7851 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7852 }
7853 catch (const GExceptionHandler& e) {
7854 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7855 }
7856 catch (const std::exception& e) {
7857 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7858 }
7859 }
7860 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
7861 return resultobj;
7862fail:
7863 return NULL__null;
7864}
7865
7866
7867SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModel_name__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7868 PyObject *resultobj = 0;
7869 GModel *arg1 = (GModel *) 0 ;
7870 std::string *arg2 = 0 ;
7871 void *argp1 = 0 ;
7872 int res1 = 0 ;
7873 int res2 = SWIG_OLDOBJ((0)) ;
7874 PyObject * obj0 = 0 ;
7875 PyObject * obj1 = 0 ;
7876
7877 if (!PyArg_ParseTuple(args,(char *)"OO:GModel_name",&obj0,&obj1)) SWIG_failgoto fail;
7878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
7879 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModel_name" "', argument " "1"" of type '" "GModel *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModel_name" "', argument "
"1"" of type '" "GModel *""'"); goto fail; } while(0)
;
7881 }
7882 arg1 = reinterpret_cast< GModel * >(argp1);
7883 {
7884 std::string *ptr = (std::string *)0;
7885 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
7886 if (!SWIG_IsOK(res2)(res2 >= 0)) {
7887 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModel_name" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModel_name" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
7888 }
7889 if (!ptr) {
7890 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModel_name" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModel_name" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
7891 }
7892 arg2 = ptr;
7893 }
7894 {
7895 try {
7896 (arg1)->name((std::string const &)*arg2);
7897 }
7898 catch (const GException::out_of_range& e) {
7899 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7900 }
7901 catch (const GExceptionHandler& e) {
7902 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7903 }
7904 catch (const std::exception& e) {
7905 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7906 }
7907 }
7908 resultobj = SWIG_Py_Void();
7909 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
7910 return resultobj;
7911fail:
7912 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
7913 return NULL__null;
7914}
7915
7916
7917SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModel_name(PyObject *self, PyObject *args) {
7918 int argc;
7919 PyObject *argv[3];
7920 int ii;
7921
7922 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
7923 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
7924 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
7925 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
7926 }
7927 if (argc == 1) {
7928 int _v;
7929 void *vptr = 0;
7930 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModel, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6
], 0, 0)
;
7931 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7932 if (_v) {
7933 return _wrap_GModel_name__SWIG_0(self, args);
7934 }
7935 }
7936 if (argc == 2) {
7937 int _v;
7938 void *vptr = 0;
7939 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModel, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6
], 0, 0)
;
7940 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7941 if (_v) {
7942 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
7943 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7944 if (_v) {
7945 return _wrap_GModel_name__SWIG_1(self, args);
7946 }
7947 }
7948 }
7949
7950fail:
7951 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModel_name'.\n"
7952 " Possible C/C++ prototypes are:\n"
7953 " GModel::name() const\n"
7954 " GModel::name(std::string const &)\n");
7955 return 0;
7956}
7957
7958
7959SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModel_instruments__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7960 PyObject *resultobj = 0;
7961 GModel *arg1 = (GModel *) 0 ;
7962 void *argp1 = 0 ;
7963 int res1 = 0 ;
7964 PyObject * obj0 = 0 ;
7965 std::string result;
7966
7967 if (!PyArg_ParseTuple(args,(char *)"O:GModel_instruments",&obj0)) SWIG_failgoto fail;
7968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
7969 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModel_instruments" "', argument " "1"" of type '" "GModel const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModel_instruments" "', argument "
"1"" of type '" "GModel const *""'"); goto fail; } while(0)
;
7971 }
7972 arg1 = reinterpret_cast< GModel * >(argp1);
7973 {
7974 try {
7975 result = ((GModel const *)arg1)->instruments();
7976 }
7977 catch (const GException::out_of_range& e) {
7978 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7979 }
7980 catch (const GExceptionHandler& e) {
7981 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7982 }
7983 catch (const std::exception& e) {
7984 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7985 }
7986 }
7987 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
7988 return resultobj;
7989fail:
7990 return NULL__null;
7991}
7992
7993
7994SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModel_instruments__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7995 PyObject *resultobj = 0;
7996 GModel *arg1 = (GModel *) 0 ;
7997 std::string *arg2 = 0 ;
7998 void *argp1 = 0 ;
7999 int res1 = 0 ;
8000 int res2 = SWIG_OLDOBJ((0)) ;
8001 PyObject * obj0 = 0 ;
8002 PyObject * obj1 = 0 ;
8003
8004 if (!PyArg_ParseTuple(args,(char *)"OO:GModel_instruments",&obj0,&obj1)) SWIG_failgoto fail;
8005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
8006 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModel_instruments" "', argument " "1"" of type '" "GModel *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModel_instruments" "', argument "
"1"" of type '" "GModel *""'"); goto fail; } while(0)
;
8008 }
8009 arg1 = reinterpret_cast< GModel * >(argp1);
8010 {
8011 std::string *ptr = (std::string *)0;
8012 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
8013 if (!SWIG_IsOK(res2)(res2 >= 0)) {
8014 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModel_instruments" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModel_instruments" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
8015 }
8016 if (!ptr) {
8017 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModel_instruments" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModel_instruments" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
8018 }
8019 arg2 = ptr;
8020 }
8021 {
8022 try {
8023 (arg1)->instruments((std::string const &)*arg2);
8024 }
8025 catch (const GException::out_of_range& e) {
8026 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8027 }
8028 catch (const GExceptionHandler& e) {
8029 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8030 }
8031 catch (const std::exception& e) {
8032 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8033 }
8034 }
8035 resultobj = SWIG_Py_Void();
8036 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
8037 return resultobj;
8038fail:
8039 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
8040 return NULL__null;
8041}
8042
8043
8044SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModel_instruments(PyObject *self, PyObject *args) {
8045 int argc;
8046 PyObject *argv[3];
8047 int ii;
8048
8049 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
8050 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
8051 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
8052 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
8053 }
8054 if (argc == 1) {
8055 int _v;
8056 void *vptr = 0;
8057 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModel, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6
], 0, 0)
;
8058 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8059 if (_v) {
8060 return _wrap_GModel_instruments__SWIG_0(self, args);
8061 }
8062 }
8063 if (argc == 2) {
8064 int _v;
8065 void *vptr = 0;
8066 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModel, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6
], 0, 0)
;
8067 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8068 if (_v) {
8069 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
8070 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8071 if (_v) {
8072 return _wrap_GModel_instruments__SWIG_1(self, args);
8073 }
8074 }
8075 }
8076
8077fail:
8078 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModel_instruments'.\n"
8079 " Possible C/C++ prototypes are:\n"
8080 " GModel::instruments() const\n"
8081 " GModel::instruments(std::string const &)\n");
8082 return 0;
8083}
8084
8085
8086SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModel_scale__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8087 PyObject *resultobj = 0;
8088 GModel *arg1 = (GModel *) 0 ;
8089 std::string *arg2 = 0 ;
8090 void *argp1 = 0 ;
8091 int res1 = 0 ;
8092 int res2 = SWIG_OLDOBJ((0)) ;
8093 PyObject * obj0 = 0 ;
8094 PyObject * obj1 = 0 ;
8095 GModelPar result;
8096
8097 if (!PyArg_ParseTuple(args,(char *)"OO:GModel_scale",&obj0,&obj1)) SWIG_failgoto fail;
8098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
8099 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModel_scale" "', argument " "1"" of type '" "GModel const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModel_scale" "', argument "
"1"" of type '" "GModel const *""'"); goto fail; } while(0)
;
8101 }
8102 arg1 = reinterpret_cast< GModel * >(argp1);
8103 {
8104 std::string *ptr = (std::string *)0;
8105 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
8106 if (!SWIG_IsOK(res2)(res2 >= 0)) {
8107 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModel_scale" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModel_scale" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
8108 }
8109 if (!ptr) {
8110 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModel_scale" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModel_scale" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
8111 }
8112 arg2 = ptr;
8113 }
8114 {
8115 try {
8116 result = ((GModel const *)arg1)->scale((std::string const &)*arg2);
8117 }
8118 catch (const GException::out_of_range& e) {
8119 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8120 }
8121 catch (const GExceptionHandler& e) {
8122 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8123 }
8124 catch (const std::exception& e) {
8125 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8126 }
8127 }
8128 resultobj = SWIG_NewPointerObj((new GModelPar(static_cast< const GModelPar& >(result))), SWIGTYPE_p_GModelPar, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GModelPar(static_cast<
const GModelPar& >(result))), swig_types[8], 0x1 | 0)
;
8129 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
8130 return resultobj;
8131fail:
8132 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
8133 return NULL__null;
8134}
8135
8136
8137SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModel_scale__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8138 PyObject *resultobj = 0;
8139 GModel *arg1 = (GModel *) 0 ;
8140 GModelPar *arg2 = 0 ;
8141 void *argp1 = 0 ;
8142 int res1 = 0 ;
8143 void *argp2 = 0 ;
8144 int res2 = 0 ;
8145 PyObject * obj0 = 0 ;
8146 PyObject * obj1 = 0 ;
8147
8148 if (!PyArg_ParseTuple(args,(char *)"OO:GModel_scale",&obj0,&obj1)) SWIG_failgoto fail;
8149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
8150 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModel_scale" "', argument " "1"" of type '" "GModel *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModel_scale" "', argument "
"1"" of type '" "GModel *""'"); goto fail; } while(0)
;
8152 }
8153 arg1 = reinterpret_cast< GModel * >(argp1);
8154 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GModelPar, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[8],
0 | 0, 0)
;
8155 if (!SWIG_IsOK(res2)(res2 >= 0)) {
8156 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModel_scale" "', argument " "2"" of type '" "GModelPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModel_scale" "', argument "
"2"" of type '" "GModelPar const &""'"); goto fail; } while
(0)
;
8157 }
8158 if (!argp2) {
8159 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModel_scale" "', argument " "2"" of type '" "GModelPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModel_scale" "', argument " "2"" of type '" "GModelPar const &"
"'"); goto fail; } while(0)
;
8160 }
8161 arg2 = reinterpret_cast< GModelPar * >(argp2);
8162 {
8163 try {
8164 (arg1)->scale((GModelPar const &)*arg2);
8165 }
8166 catch (const GException::out_of_range& e) {
8167 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8168 }
8169 catch (const GExceptionHandler& e) {
8170 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8171 }
8172 catch (const std::exception& e) {
8173 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8174 }
8175 }
8176 resultobj = SWIG_Py_Void();
8177 return resultobj;
8178fail:
8179 return NULL__null;
8180}
8181
8182
8183SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModel_scale(PyObject *self, PyObject *args) {
8184 int argc;
8185 PyObject *argv[3];
8186 int ii;
8187
8188 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
8189 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
8190 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
8191 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
8192 }
8193 if (argc == 2) {
8194 int _v;
8195 void *vptr = 0;
8196 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModel, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6
], 0, 0)
;
8197 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8198 if (_v) {
8199 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GModelPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[8], 0, 0);
8200 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8201 if (_v) {
8202 return _wrap_GModel_scale__SWIG_1(self, args);
8203 }
8204 }
8205 }
8206 if (argc == 2) {
8207 int _v;
8208 void *vptr = 0;
8209 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModel, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6
], 0, 0)
;
8210 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8211 if (_v) {
8212 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
8213 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8214 if (_v) {
8215 return _wrap_GModel_scale__SWIG_0(self, args);
8216 }
8217 }
8218 }
8219
8220fail:
8221 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModel_scale'.\n"
8222 " Possible C/C++ prototypes are:\n"
8223 " GModel::scale(std::string const &) const\n"
8224 " GModel::scale(GModelPar const &)\n");
8225 return 0;
8226}
8227
8228
8229SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModel_ids__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8230 PyObject *resultobj = 0;
8231 GModel *arg1 = (GModel *) 0 ;
8232 void *argp1 = 0 ;
8233 int res1 = 0 ;
8234 PyObject * obj0 = 0 ;
8235 std::string result;
8236
8237 if (!PyArg_ParseTuple(args,(char *)"O:GModel_ids",&obj0)) SWIG_failgoto fail;
8238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
8239 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModel_ids" "', argument " "1"" of type '" "GModel const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModel_ids" "', argument "
"1"" of type '" "GModel const *""'"); goto fail; } while(0)
;
8241 }
8242 arg1 = reinterpret_cast< GModel * >(argp1);
8243 {
8244 try {
8245 result = ((GModel const *)arg1)->ids();
8246 }
8247 catch (const GException::out_of_range& e) {
8248 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8249 }
8250 catch (const GExceptionHandler& e) {
8251 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8252 }
8253 catch (const std::exception& e) {
8254 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8255 }
8256 }
8257 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
8258 return resultobj;
8259fail:
8260 return NULL__null;
8261}
8262
8263
8264SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModel_ids__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8265 PyObject *resultobj = 0;
8266 GModel *arg1 = (GModel *) 0 ;
8267 std::string *arg2 = 0 ;
8268 void *argp1 = 0 ;
8269 int res1 = 0 ;
8270 int res2 = SWIG_OLDOBJ((0)) ;
8271 PyObject * obj0 = 0 ;
8272 PyObject * obj1 = 0 ;
8273
8274 if (!PyArg_ParseTuple(args,(char *)"OO:GModel_ids",&obj0,&obj1)) SWIG_failgoto fail;
8275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
8276 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModel_ids" "', argument " "1"" of type '" "GModel *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModel_ids" "', argument "
"1"" of type '" "GModel *""'"); goto fail; } while(0)
;
8278 }
8279 arg1 = reinterpret_cast< GModel * >(argp1);
8280 {
8281 std::string *ptr = (std::string *)0;
8282 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
8283 if (!SWIG_IsOK(res2)(res2 >= 0)) {
8284 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModel_ids" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModel_ids" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
8285 }
8286 if (!ptr) {
8287 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModel_ids" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModel_ids" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
8288 }
8289 arg2 = ptr;
8290 }
8291 {
8292 try {
8293 (arg1)->ids((std::string const &)*arg2);
8294 }
8295 catch (const GException::out_of_range& e) {
8296 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8297 }
8298 catch (const GExceptionHandler& e) {
8299 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8300 }
8301 catch (const std::exception& e) {
8302 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8303 }
8304 }
8305 resultobj = SWIG_Py_Void();
8306 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
8307 return resultobj;
8308fail:
8309 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
8310 return NULL__null;
8311}
8312
8313
8314SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModel_ids(PyObject *self, PyObject *args) {
8315 int argc;
8316 PyObject *argv[3];
8317 int ii;
8318
8319 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
8320 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
8321 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
8322 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
8323 }
8324 if (argc == 1) {
8325 int _v;
8326 void *vptr = 0;
8327 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModel, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6
], 0, 0)
;
8328 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8329 if (_v) {
8330 return _wrap_GModel_ids__SWIG_0(self, args);
8331 }
8332 }
8333 if (argc == 2) {
8334 int _v;
8335 void *vptr = 0;
8336 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModel, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6
], 0, 0)
;
8337 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8338 if (_v) {
8339 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
8340 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8341 if (_v) {
8342 return _wrap_GModel_ids__SWIG_1(self, args);
8343 }
8344 }
8345 }
8346
8347fail:
8348 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModel_ids'.\n"
8349 " Possible C/C++ prototypes are:\n"
8350 " GModel::ids() const\n"
8351 " GModel::ids(std::string const &)\n");
8352 return 0;
8353}
8354
8355
8356SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModel_isvalid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8357 PyObject *resultobj = 0;
8358 GModel *arg1 = (GModel *) 0 ;
8359 std::string *arg2 = 0 ;
8360 std::string *arg3 = 0 ;
8361 void *argp1 = 0 ;
8362 int res1 = 0 ;
8363 int res2 = SWIG_OLDOBJ((0)) ;
8364 int res3 = SWIG_OLDOBJ((0)) ;
8365 PyObject * obj0 = 0 ;
8366 PyObject * obj1 = 0 ;
8367 PyObject * obj2 = 0 ;
8368 bool result;
8369
8370 if (!PyArg_ParseTuple(args,(char *)"OOO:GModel_isvalid",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
8371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
8372 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModel_isvalid" "', argument " "1"" of type '" "GModel const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModel_isvalid" "', argument "
"1"" of type '" "GModel const *""'"); goto fail; } while(0)
;
8374 }
8375 arg1 = reinterpret_cast< GModel * >(argp1);
8376 {
8377 std::string *ptr = (std::string *)0;
8378 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
8379 if (!SWIG_IsOK(res2)(res2 >= 0)) {
8380 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModel_isvalid" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModel_isvalid" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
8381 }
8382 if (!ptr) {
8383 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModel_isvalid" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModel_isvalid" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
8384 }
8385 arg2 = ptr;
8386 }
8387 {
8388 std::string *ptr = (std::string *)0;
8389 res3 = SWIG_AsPtr_std_string(obj2, &ptr);
8390 if (!SWIG_IsOK(res3)(res3 >= 0)) {
8391 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModel_isvalid" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModel_isvalid" "', argument "
"3"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
8392 }
8393 if (!ptr) {
8394 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModel_isvalid" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModel_isvalid" "', argument " "3"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
8395 }
8396 arg3 = ptr;
8397 }
8398 {
8399 try {
8400 result = (bool)((GModel const *)arg1)->isvalid((std::string const &)*arg2,(std::string const &)*arg3);
8401 }
8402 catch (const GException::out_of_range& e) {
8403 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8404 }
8405 catch (const GExceptionHandler& e) {
8406 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8407 }
8408 catch (const std::exception& e) {
8409 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8410 }
8411 }
8412 resultobj = SWIG_From_bool(static_cast< bool >(result));
8413 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
8414 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
8415 return resultobj;
8416fail:
8417 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
8418 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
8419 return NULL__null;
8420}
8421
8422
8423SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModel___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8424 PyObject *resultobj = 0;
8425 GModel *arg1 = (GModel *) 0 ;
8426 int *arg2 = 0 ;
8427 void *argp1 = 0 ;
8428 int res1 = 0 ;
8429 int temp2 ;
8430 int val2 ;
8431 int ecode2 = 0 ;
8432 PyObject * obj0 = 0 ;
8433 PyObject * obj1 = 0 ;
8434 GModelPar *result = 0 ;
8435
8436 if (!PyArg_ParseTuple(args,(char *)"OO:GModel___getitem__",&obj0,&obj1)) SWIG_failgoto fail;
8437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
8438 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModel___getitem__" "', argument " "1"" of type '" "GModel *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModel___getitem__" "', argument "
"1"" of type '" "GModel *""'"); goto fail; } while(0)
;
8440 }
8441 arg1 = reinterpret_cast< GModel * >(argp1);
8442 ecode2 = SWIG_AsVal_int(obj1, &val2);
8443 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
8444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModel___getitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModel___getitem__" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
8445 }
8446 temp2 = static_cast< int >(val2);
8447 arg2 = &temp2;
8448 {
8449 try {
8450 result = (GModelPar *) &GModel___getitem____SWIG_0(arg1,(int const &)*arg2);
8451 }
8452 catch (const GException::out_of_range& e) {
8453 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8454 }
8455 catch (const GExceptionHandler& e) {
8456 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8457 }
8458 catch (const std::exception& e) {
8459 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8460 }
8461 }
8462 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelPar, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], 0 |
0)
;
8463 return resultobj;
8464fail:
8465 return NULL__null;
8466}
8467
8468
8469SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModel___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8470 PyObject *resultobj = 0;
8471 GModel *arg1 = (GModel *) 0 ;
8472 std::string *arg2 = 0 ;
8473 void *argp1 = 0 ;
8474 int res1 = 0 ;
8475 int res2 = SWIG_OLDOBJ((0)) ;
8476 PyObject * obj0 = 0 ;
8477 PyObject * obj1 = 0 ;
8478 GModelPar *result = 0 ;
8479
8480 if (!PyArg_ParseTuple(args,(char *)"OO:GModel___getitem__",&obj0,&obj1)) SWIG_failgoto fail;
8481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
8482 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModel___getitem__" "', argument " "1"" of type '" "GModel *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModel___getitem__" "', argument "
"1"" of type '" "GModel *""'"); goto fail; } while(0)
;
8484 }
8485 arg1 = reinterpret_cast< GModel * >(argp1);
8486 {
8487 std::string *ptr = (std::string *)0;
8488 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
8489 if (!SWIG_IsOK(res2)(res2 >= 0)) {
8490 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModel___getitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModel___getitem__" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
8491 }
8492 if (!ptr) {
8493 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModel___getitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModel___getitem__" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
8494 }
8495 arg2 = ptr;
8496 }
8497 {
8498 try {
8499 result = (GModelPar *) &GModel___getitem____SWIG_1(arg1,(std::string const &)*arg2);
8500 }
8501 catch (const GException::out_of_range& e) {
8502 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8503 }
8504 catch (const GExceptionHandler& e) {
8505 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8506 }
8507 catch (const std::exception& e) {
8508 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8509 }
8510 }
8511 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelPar, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], 0 |
0)
;
8512 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
8513 return resultobj;
8514fail:
8515 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
8516 return NULL__null;
8517}
8518
8519
8520SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModel___getitem__(PyObject *self, PyObject *args) {
8521 int argc;
8522 PyObject *argv[3];
8523 int ii;
8524
8525 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
8526 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
8527 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
8528 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
8529 }
8530 if (argc == 2) {
8531 int _v;
8532 void *vptr = 0;
8533 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModel, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6
], 0, 0)
;
8534 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8535 if (_v) {
8536 {
8537 int res = SWIG_AsVal_int(argv[1], NULL__null);
8538 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8539 }
8540 if (_v) {
8541 return _wrap_GModel___getitem____SWIG_0(self, args);
8542 }
8543 }
8544 }
8545 if (argc == 2) {
8546 int _v;
8547 void *vptr = 0;
8548 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModel, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6
], 0, 0)
;
8549 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8550 if (_v) {
8551 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
8552 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8553 if (_v) {
8554 return _wrap_GModel___getitem____SWIG_1(self, args);
8555 }
8556 }
8557 }
8558
8559fail:
8560 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModel___getitem__'.\n"
8561 " Possible C/C++ prototypes are:\n"
8562 " GModel::__getitem__(int const &)\n"
8563 " GModel::__getitem__(std::string const &)\n");
8564 return 0;
8565}
8566
8567
8568SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModel___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8569 PyObject *resultobj = 0;
8570 GModel *arg1 = (GModel *) 0 ;
8571 int *arg2 = 0 ;
8572 GModelPar *arg3 = 0 ;
8573 void *argp1 = 0 ;
8574 int res1 = 0 ;
8575 int temp2 ;
8576 int val2 ;
8577 int ecode2 = 0 ;
8578 void *argp3 = 0 ;
8579 int res3 = 0 ;
8580 PyObject * obj0 = 0 ;
8581 PyObject * obj1 = 0 ;
8582 PyObject * obj2 = 0 ;
8583
8584 if (!PyArg_ParseTuple(args,(char *)"OOO:GModel___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
8585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
8586 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModel___setitem__" "', argument " "1"" of type '" "GModel *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModel___setitem__" "', argument "
"1"" of type '" "GModel *""'"); goto fail; } while(0)
;
8588 }
8589 arg1 = reinterpret_cast< GModel * >(argp1);
8590 ecode2 = SWIG_AsVal_int(obj1, &val2);
8591 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
8592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModel___setitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModel___setitem__" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
8593 }
8594 temp2 = static_cast< int >(val2);
8595 arg2 = &temp2;
8596 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GModelPar, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[8],
0 | 0, 0)
;
8597 if (!SWIG_IsOK(res3)(res3 >= 0)) {
8598 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModel___setitem__" "', argument " "3"" of type '" "GModelPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModel___setitem__" "', argument "
"3"" of type '" "GModelPar const &""'"); goto fail; } while
(0)
;
8599 }
8600 if (!argp3) {
8601 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModel___setitem__" "', argument " "3"" of type '" "GModelPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModel___setitem__" "', argument " "3"" of type '"
"GModelPar const &""'"); goto fail; } while(0)
;
8602 }
8603 arg3 = reinterpret_cast< GModelPar * >(argp3);
8604 {
8605 try {
8606 GModel___setitem____SWIG_0(arg1,(int const &)*arg2,(GModelPar const &)*arg3);
8607 }
8608 catch (const GException::out_of_range& e) {
8609 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8610 }
8611 catch (const GExceptionHandler& e) {
8612 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8613 }
8614 catch (const std::exception& e) {
8615 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8616 }
8617 }
8618 resultobj = SWIG_Py_Void();
8619 return resultobj;
8620fail:
8621 return NULL__null;
8622}
8623
8624
8625SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModel___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8626 PyObject *resultobj = 0;
8627 GModel *arg1 = (GModel *) 0 ;
8628 std::string *arg2 = 0 ;
8629 GModelPar *arg3 = 0 ;
8630 void *argp1 = 0 ;
8631 int res1 = 0 ;
8632 int res2 = SWIG_OLDOBJ((0)) ;
8633 void *argp3 = 0 ;
8634 int res3 = 0 ;
8635 PyObject * obj0 = 0 ;
8636 PyObject * obj1 = 0 ;
8637 PyObject * obj2 = 0 ;
8638
8639 if (!PyArg_ParseTuple(args,(char *)"OOO:GModel___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
8640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
8641 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModel___setitem__" "', argument " "1"" of type '" "GModel *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModel___setitem__" "', argument "
"1"" of type '" "GModel *""'"); goto fail; } while(0)
;
8643 }
8644 arg1 = reinterpret_cast< GModel * >(argp1);
8645 {
8646 std::string *ptr = (std::string *)0;
8647 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
8648 if (!SWIG_IsOK(res2)(res2 >= 0)) {
8649 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModel___setitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModel___setitem__" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
8650 }
8651 if (!ptr) {
8652 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModel___setitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModel___setitem__" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
8653 }
8654 arg2 = ptr;
8655 }
8656 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GModelPar, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[8],
0 | 0, 0)
;
8657 if (!SWIG_IsOK(res3)(res3 >= 0)) {
8658 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModel___setitem__" "', argument " "3"" of type '" "GModelPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModel___setitem__" "', argument "
"3"" of type '" "GModelPar const &""'"); goto fail; } while
(0)
;
8659 }
8660 if (!argp3) {
8661 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModel___setitem__" "', argument " "3"" of type '" "GModelPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModel___setitem__" "', argument " "3"" of type '"
"GModelPar const &""'"); goto fail; } while(0)
;
8662 }
8663 arg3 = reinterpret_cast< GModelPar * >(argp3);
8664 {
8665 try {
8666 GModel___setitem____SWIG_1(arg1,(std::string const &)*arg2,(GModelPar const &)*arg3);
8667 }
8668 catch (const GException::out_of_range& e) {
8669 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8670 }
8671 catch (const GExceptionHandler& e) {
8672 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8673 }
8674 catch (const std::exception& e) {
8675 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8676 }
8677 }
8678 resultobj = SWIG_Py_Void();
8679 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
8680 return resultobj;
8681fail:
8682 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
8683 return NULL__null;
8684}
8685
8686
8687SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModel___setitem__(PyObject *self, PyObject *args) {
8688 int argc;
8689 PyObject *argv[4];
8690 int ii;
8691
8692 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
8693 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
8694 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
8695 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
8696 }
8697 if (argc == 3) {
8698 int _v;
8699 void *vptr = 0;
8700 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModel, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6
], 0, 0)
;
8701 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8702 if (_v) {
8703 {
8704 int res = SWIG_AsVal_int(argv[1], NULL__null);
8705 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8706 }
8707 if (_v) {
8708 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GModelPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[8], 0, 0);
8709 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8710 if (_v) {
8711 return _wrap_GModel___setitem____SWIG_0(self, args);
8712 }
8713 }
8714 }
8715 }
8716 if (argc == 3) {
8717 int _v;
8718 void *vptr = 0;
8719 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModel, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6
], 0, 0)
;
8720 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8721 if (_v) {
8722 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
8723 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8724 if (_v) {
8725 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GModelPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[8], 0, 0);
8726 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8727 if (_v) {
8728 return _wrap_GModel___setitem____SWIG_1(self, args);
8729 }
8730 }
8731 }
8732 }
8733
8734fail:
8735 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModel___setitem__'.\n"
8736 " Possible C/C++ prototypes are:\n"
8737 " GModel::__setitem__(int const &,GModelPar const &)\n"
8738 " GModel::__setitem__(std::string const &,GModelPar const &)\n");
8739 return 0;
8740}
8741
8742
8743SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GModel_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8744 PyObject *obj;
8745 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
8746 SWIG_TypeNewClientData(SWIGTYPE_p_GModelswig_types[6], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
8747 return SWIG_Py_Void();
8748}
8749
8750SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelRegistry__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8751 PyObject *resultobj = 0;
8752 GModelRegistry *result = 0 ;
8753
8754 if (!PyArg_ParseTuple(args,(char *)":new_GModelRegistry")) SWIG_failgoto fail;
8755 {
8756 try {
8757 result = (GModelRegistry *)new GModelRegistry();
8758 }
8759 catch (const GException::out_of_range& e) {
8760 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8761 }
8762 catch (const GExceptionHandler& e) {
8763 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8764 }
8765 catch (const std::exception& e) {
8766 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8767 }
8768 }
8769 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelRegistry, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[9], ((
0x1 << 1) | 0x1) | 0)
;
8770 return resultobj;
8771fail:
8772 return NULL__null;
8773}
8774
8775
8776SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelRegistry__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8777 PyObject *resultobj = 0;
8778 GModel *arg1 = (GModel *) 0 ;
8779 void *argp1 = 0 ;
8780 int res1 = 0 ;
8781 PyObject * obj0 = 0 ;
8782 GModelRegistry *result = 0 ;
8783
8784 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelRegistry",&obj0)) SWIG_failgoto fail;
8785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
8786 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelRegistry" "', argument " "1"" of type '" "GModel const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelRegistry" "', argument "
"1"" of type '" "GModel const *""'"); goto fail; } while(0)
;
8788 }
8789 arg1 = reinterpret_cast< GModel * >(argp1);
8790 {
8791 try {
8792 result = (GModelRegistry *)new GModelRegistry((GModel const *)arg1);
8793 }
8794 catch (const GException::out_of_range& e) {
8795 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8796 }
8797 catch (const GExceptionHandler& e) {
8798 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8799 }
8800 catch (const std::exception& e) {
8801 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8802 }
8803 }
8804 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelRegistry, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[9], ((
0x1 << 1) | 0x1) | 0)
;
8805 return resultobj;
8806fail:
8807 return NULL__null;
8808}
8809
8810
8811SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelRegistry__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8812 PyObject *resultobj = 0;
8813 GModelRegistry *arg1 = 0 ;
8814 void *argp1 = 0 ;
8815 int res1 = 0 ;
8816 PyObject * obj0 = 0 ;
8817 GModelRegistry *result = 0 ;
8818
8819 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelRegistry",&obj0)) SWIG_failgoto fail;
8820 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GModelRegistry, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
8821 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelRegistry" "', argument " "1"" of type '" "GModelRegistry const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelRegistry" "', argument "
"1"" of type '" "GModelRegistry const &""'"); goto fail;
} while(0)
;
8823 }
8824 if (!argp1) {
8825 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelRegistry" "', argument " "1"" of type '" "GModelRegistry const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelRegistry" "', argument " "1"" of type '"
"GModelRegistry const &""'"); goto fail; } while(0)
;
8826 }
8827 arg1 = reinterpret_cast< GModelRegistry * >(argp1);
8828 {
8829 try {
8830 result = (GModelRegistry *)new GModelRegistry((GModelRegistry const &)*arg1);
8831 }
8832 catch (const GException::out_of_range& e) {
8833 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8834 }
8835 catch (const GExceptionHandler& e) {
8836 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8837 }
8838 catch (const std::exception& e) {
8839 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8840 }
8841 }
8842 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelRegistry, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[9], ((
0x1 << 1) | 0x1) | 0)
;
8843 return resultobj;
8844fail:
8845 return NULL__null;
8846}
8847
8848
8849SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelRegistry(PyObject *self, PyObject *args) {
8850 int argc;
8851 PyObject *argv[2];
8852 int ii;
8853
8854 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
8855 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
8856 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
8857 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
8858 }
8859 if (argc == 0) {
8860 return _wrap_new_GModelRegistry__SWIG_0(self, args);
8861 }
8862 if (argc == 1) {
8863 int _v;
8864 void *vptr = 0;
8865 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModel, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6
], 0, 0)
;
8866 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8867 if (_v) {
8868 return _wrap_new_GModelRegistry__SWIG_1(self, args);
8869 }
8870 }
8871 if (argc == 1) {
8872 int _v;
8873 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GModelRegistry, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[9], 0, 0);
8874 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8875 if (_v) {
8876 return _wrap_new_GModelRegistry__SWIG_2(self, args);
8877 }
8878 }
8879
8880fail:
8881 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GModelRegistry'.\n"
8882 " Possible C/C++ prototypes are:\n"
8883 " GModelRegistry::GModelRegistry()\n"
8884 " GModelRegistry::GModelRegistry(GModel const *)\n"
8885 " GModelRegistry::GModelRegistry(GModelRegistry const &)\n");
8886 return 0;
8887}
8888
8889
8890SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GModelRegistry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8891 PyObject *resultobj = 0;
8892 GModelRegistry *arg1 = (GModelRegistry *) 0 ;
8893 void *argp1 = 0 ;
8894 int res1 = 0 ;
8895 PyObject * obj0 = 0 ;
8896
8897 if (!PyArg_ParseTuple(args,(char *)"O:delete_GModelRegistry",&obj0)) SWIG_failgoto fail;
8898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelRegistry, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0x1 | 0, 0)
;
8899 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GModelRegistry" "', argument " "1"" of type '" "GModelRegistry *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GModelRegistry" "', argument "
"1"" of type '" "GModelRegistry *""'"); goto fail; } while(0
)
;
8901 }
8902 arg1 = reinterpret_cast< GModelRegistry * >(argp1);
8903 {
8904 try {
8905 delete arg1;
8906 }
8907 catch (const GException::out_of_range& e) {
8908 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8909 }
8910 catch (const GExceptionHandler& e) {
8911 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8912 }
8913 catch (const std::exception& e) {
8914 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8915 }
8916 }
8917 resultobj = SWIG_Py_Void();
8918 return resultobj;
8919fail:
8920 return NULL__null;
8921}
8922
8923
8924SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelRegistry_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8925 PyObject *resultobj = 0;
8926 GModelRegistry *arg1 = (GModelRegistry *) 0 ;
8927 void *argp1 = 0 ;
8928 int res1 = 0 ;
8929 PyObject * obj0 = 0 ;
8930 int result;
8931
8932 if (!PyArg_ParseTuple(args,(char *)"O:GModelRegistry_size",&obj0)) SWIG_failgoto fail;
8933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelRegistry, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
8934 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelRegistry_size" "', argument " "1"" of type '" "GModelRegistry const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelRegistry_size" "', argument "
"1"" of type '" "GModelRegistry const *""'"); goto fail; } while
(0)
;
8936 }
8937 arg1 = reinterpret_cast< GModelRegistry * >(argp1);
8938 {
8939 try {
8940 result = (int)((GModelRegistry const *)arg1)->size();
8941 }
8942 catch (const GException::out_of_range& e) {
8943 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8944 }
8945 catch (const GExceptionHandler& e) {
8946 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8947 }
8948 catch (const std::exception& e) {
8949 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8950 }
8951 }
8952 resultobj = SWIG_From_int(static_cast< int >(result));
8953 return resultobj;
8954fail:
8955 return NULL__null;
8956}
8957
8958
8959SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelRegistry_alloc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8960 PyObject *resultobj = 0;
8961 GModelRegistry *arg1 = (GModelRegistry *) 0 ;
8962 std::string *arg2 = 0 ;
8963 void *argp1 = 0 ;
8964 int res1 = 0 ;
8965 int res2 = SWIG_OLDOBJ((0)) ;
8966 PyObject * obj0 = 0 ;
8967 PyObject * obj1 = 0 ;
8968 GModel *result = 0 ;
8969
8970 if (!PyArg_ParseTuple(args,(char *)"OO:GModelRegistry_alloc",&obj0,&obj1)) SWIG_failgoto fail;
8971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelRegistry, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
8972 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelRegistry_alloc" "', argument " "1"" of type '" "GModelRegistry const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelRegistry_alloc" "', argument "
"1"" of type '" "GModelRegistry const *""'"); goto fail; } while
(0)
;
8974 }
8975 arg1 = reinterpret_cast< GModelRegistry * >(argp1);
8976 {
8977 std::string *ptr = (std::string *)0;
8978 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
8979 if (!SWIG_IsOK(res2)(res2 >= 0)) {
8980 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelRegistry_alloc" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelRegistry_alloc" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
8981 }
8982 if (!ptr) {
8983 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelRegistry_alloc" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelRegistry_alloc" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
8984 }
8985 arg2 = ptr;
8986 }
8987 {
8988 try {
8989 result = (GModel *)((GModelRegistry const *)arg1)->alloc((std::string const &)*arg2);
8990 }
8991 catch (const GException::out_of_range& e) {
8992 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8993 }
8994 catch (const GExceptionHandler& e) {
8995 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8996 }
8997 catch (const std::exception& e) {
8998 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8999 }
9000 }
9001 {
9002 if (dynamic_cast<GModelSky*>(result) != NULL__null) {
9003 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSky, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0
| 0)
;
9004 }
9005 else if (dynamic_cast<GModelData*>(result) != NULL__null) {
9006 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelData, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
9007 }
9008 else {
9009 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModel, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[6], 0 |
0)
;
9010 }
9011 }
9012 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
9013 return resultobj;
9014fail:
9015 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
9016 return NULL__null;
9017}
9018
9019
9020SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelRegistry_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9021 PyObject *resultobj = 0;
9022 GModelRegistry *arg1 = (GModelRegistry *) 0 ;
9023 int *arg2 = 0 ;
9024 void *argp1 = 0 ;
9025 int res1 = 0 ;
9026 int temp2 ;
9027 int val2 ;
9028 int ecode2 = 0 ;
9029 PyObject * obj0 = 0 ;
9030 PyObject * obj1 = 0 ;
9031 std::string result;
9032
9033 if (!PyArg_ParseTuple(args,(char *)"OO:GModelRegistry_name",&obj0,&obj1)) SWIG_failgoto fail;
9034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelRegistry, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
9035 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelRegistry_name" "', argument " "1"" of type '" "GModelRegistry const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelRegistry_name" "', argument "
"1"" of type '" "GModelRegistry const *""'"); goto fail; } while
(0)
;
9037 }
9038 arg1 = reinterpret_cast< GModelRegistry * >(argp1);
9039 ecode2 = SWIG_AsVal_int(obj1, &val2);
9040 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
9041 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelRegistry_name" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelRegistry_name" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
9042 }
9043 temp2 = static_cast< int >(val2);
9044 arg2 = &temp2;
9045 {
9046 try {
9047 result = ((GModelRegistry const *)arg1)->name((int const &)*arg2);
9048 }
9049 catch (const GException::out_of_range& e) {
9050 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9051 }
9052 catch (const GExceptionHandler& e) {
9053 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9054 }
9055 catch (const std::exception& e) {
9056 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9057 }
9058 }
9059 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
9060 return resultobj;
9061fail:
9062 return NULL__null;
9063}
9064
9065
9066SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GModelRegistry_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9067 PyObject *obj;
9068 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
9069 SWIG_TypeNewClientData(SWIGTYPE_p_GModelRegistryswig_types[9], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
9070 return SWIG_Py_Void();
9071}
9072
9073SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSky__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9074 PyObject *resultobj = 0;
9075 GModelSky *result = 0 ;
9076
9077 if (!PyArg_ParseTuple(args,(char *)":new_GModelSky")) SWIG_failgoto fail;
9078 {
9079 try {
9080 result = (GModelSky *)new GModelSky();
9081 }
9082 catch (const GException::out_of_range& e) {
9083 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9084 }
9085 catch (const GExceptionHandler& e) {
9086 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9087 }
9088 catch (const std::exception& e) {
9089 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9090 }
9091 }
9092 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSky, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], (
(0x1 << 1) | 0x1) | 0)
;
9093 return resultobj;
9094fail:
9095 return NULL__null;
9096}
9097
9098
9099SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSky__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9100 PyObject *resultobj = 0;
9101 std::string *arg1 = 0 ;
9102 int res1 = SWIG_OLDOBJ((0)) ;
9103 PyObject * obj0 = 0 ;
9104 GModelSky *result = 0 ;
9105
9106 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSky",&obj0)) SWIG_failgoto fail;
9107 {
9108 std::string *ptr = (std::string *)0;
9109 res1 = SWIG_AsPtr_std_string(obj0, &ptr);
9110 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSky" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSky" "', argument "
"1"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
9112 }
9113 if (!ptr) {
9114 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSky" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSky" "', argument " "1"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
9115 }
9116 arg1 = ptr;
9117 }
9118 {
9119 try {
9120 result = (GModelSky *)new GModelSky((std::string const &)*arg1);
9121 }
9122 catch (const GException::out_of_range& e) {
9123 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9124 }
9125 catch (const GExceptionHandler& e) {
9126 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9127 }
9128 catch (const std::exception& e) {
9129 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9130 }
9131 }
9132 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSky, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], (
(0x1 << 1) | 0x1) | 0)
;
9133 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
9134 return resultobj;
9135fail:
9136 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
9137 return NULL__null;
9138}
9139
9140
9141SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSky__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9142 PyObject *resultobj = 0;
9143 GXmlElement *arg1 = 0 ;
9144 void *argp1 = 0 ;
9145 int res1 = 0 ;
9146 PyObject * obj0 = 0 ;
9147 GModelSky *result = 0 ;
9148
9149 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSky",&obj0)) SWIG_failgoto fail;
9150 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[50]
, 0 | 0, 0)
;
9151 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSky" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSky" "', argument "
"1"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
9153 }
9154 if (!argp1) {
9155 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSky" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSky" "', argument " "1"" of type '"
"GXmlElement const &""'"); goto fail; } while(0)
;
9156 }
9157 arg1 = reinterpret_cast< GXmlElement * >(argp1);
9158 {
9159 try {
9160 result = (GModelSky *)new GModelSky((GXmlElement const &)*arg1);
9161 }
9162 catch (const GException::out_of_range& e) {
9163 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9164 }
9165 catch (const GExceptionHandler& e) {
9166 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9167 }
9168 catch (const std::exception& e) {
9169 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9170 }
9171 }
9172 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSky, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], (
(0x1 << 1) | 0x1) | 0)
;
9173 return resultobj;
9174fail:
9175 return NULL__null;
9176}
9177
9178
9179SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSky__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9180 PyObject *resultobj = 0;
9181 GXmlElement *arg1 = 0 ;
9182 GXmlElement *arg2 = 0 ;
9183 void *argp1 = 0 ;
9184 int res1 = 0 ;
9185 void *argp2 = 0 ;
9186 int res2 = 0 ;
9187 PyObject * obj0 = 0 ;
9188 PyObject * obj1 = 0 ;
9189 GModelSky *result = 0 ;
9190
9191 if (!PyArg_ParseTuple(args,(char *)"OO:new_GModelSky",&obj0,&obj1)) SWIG_failgoto fail;
9192 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[50]
, 0 | 0, 0)
;
9193 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSky" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSky" "', argument "
"1"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
9195 }
9196 if (!argp1) {
9197 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSky" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSky" "', argument " "1"" of type '"
"GXmlElement const &""'"); goto fail; } while(0)
;
9198 }
9199 arg1 = reinterpret_cast< GXmlElement * >(argp1);
9200 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0 | 0, 0)
;
9201 if (!SWIG_IsOK(res2)(res2 >= 0)) {
9202 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GModelSky" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "new_GModelSky" "', argument "
"2"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
9203 }
9204 if (!argp2) {
9205 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSky" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSky" "', argument " "2"" of type '"
"GXmlElement const &""'"); goto fail; } while(0)
;
9206 }
9207 arg2 = reinterpret_cast< GXmlElement * >(argp2);
9208 {
9209 try {
9210 result = (GModelSky *)new GModelSky((GXmlElement const &)*arg1,(GXmlElement const &)*arg2);
9211 }
9212 catch (const GException::out_of_range& e) {
9213 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9214 }
9215 catch (const GExceptionHandler& e) {
9216 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9217 }
9218 catch (const std::exception& e) {
9219 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9220 }
9221 }
9222 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSky, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], (
(0x1 << 1) | 0x1) | 0)
;
9223 return resultobj;
9224fail:
9225 return NULL__null;
9226}
9227
9228
9229SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSky__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9230 PyObject *resultobj = 0;
9231 GXmlElement *arg1 = 0 ;
9232 GXmlElement *arg2 = 0 ;
9233 GXmlElement *arg3 = 0 ;
9234 void *argp1 = 0 ;
9235 int res1 = 0 ;
9236 void *argp2 = 0 ;
9237 int res2 = 0 ;
9238 void *argp3 = 0 ;
9239 int res3 = 0 ;
9240 PyObject * obj0 = 0 ;
9241 PyObject * obj1 = 0 ;
9242 PyObject * obj2 = 0 ;
9243 GModelSky *result = 0 ;
9244
9245 if (!PyArg_ParseTuple(args,(char *)"OOO:new_GModelSky",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
9246 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[50]
, 0 | 0, 0)
;
9247 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSky" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSky" "', argument "
"1"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
9249 }
9250 if (!argp1) {
9251 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSky" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSky" "', argument " "1"" of type '"
"GXmlElement const &""'"); goto fail; } while(0)
;
9252 }
9253 arg1 = reinterpret_cast< GXmlElement * >(argp1);
9254 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0 | 0, 0)
;
9255 if (!SWIG_IsOK(res2)(res2 >= 0)) {
9256 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GModelSky" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "new_GModelSky" "', argument "
"2"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
9257 }
9258 if (!argp2) {
9259 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSky" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSky" "', argument " "2"" of type '"
"GXmlElement const &""'"); goto fail; } while(0)
;
9260 }
9261 arg2 = reinterpret_cast< GXmlElement * >(argp2);
9262 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[50]
, 0 | 0, 0)
;
9263 if (!SWIG_IsOK(res3)(res3 >= 0)) {
9264 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_GModelSky" "', argument " "3"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "new_GModelSky" "', argument "
"3"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
9265 }
9266 if (!argp3) {
9267 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSky" "', argument " "3"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSky" "', argument " "3"" of type '"
"GXmlElement const &""'"); goto fail; } while(0)
;
9268 }
9269 arg3 = reinterpret_cast< GXmlElement * >(argp3);
9270 {
9271 try {
9272 result = (GModelSky *)new GModelSky((GXmlElement const &)*arg1,(GXmlElement const &)*arg2,(GXmlElement const &)*arg3);
9273 }
9274 catch (const GException::out_of_range& e) {
9275 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9276 }
9277 catch (const GExceptionHandler& e) {
9278 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9279 }
9280 catch (const std::exception& e) {
9281 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9282 }
9283 }
9284 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSky, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], (
(0x1 << 1) | 0x1) | 0)
;
9285 return resultobj;
9286fail:
9287 return NULL__null;
9288}
9289
9290
9291SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSky__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9292 PyObject *resultobj = 0;
9293 GModelSpatial *arg1 = 0 ;
9294 GModelSpectral *arg2 = 0 ;
9295 void *argp1 = 0 ;
9296 int res1 = 0 ;
9297 void *argp2 = 0 ;
9298 int res2 = 0 ;
9299 PyObject * obj0 = 0 ;
9300 PyObject * obj1 = 0 ;
9301 GModelSky *result = 0 ;
9302
9303 if (!PyArg_ParseTuple(args,(char *)"OO:new_GModelSky",&obj0,&obj1)) SWIG_failgoto fail;
9304 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GModelSpatial, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
9305 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSky" "', argument " "1"" of type '" "GModelSpatial const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSky" "', argument "
"1"" of type '" "GModelSpatial const &""'"); goto fail; }
while(0)
;
9307 }
9308 if (!argp1) {
9309 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSky" "', argument " "1"" of type '" "GModelSpatial const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSky" "', argument " "1"" of type '"
"GModelSpatial const &""'"); goto fail; } while(0)
;
9310 }
9311 arg1 = reinterpret_cast< GModelSpatial * >(argp1);
9312 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GModelSpectral, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[24]
, 0 | 0, 0)
;
9313 if (!SWIG_IsOK(res2)(res2 >= 0)) {
9314 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GModelSky" "', argument " "2"" of type '" "GModelSpectral const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "new_GModelSky" "', argument "
"2"" of type '" "GModelSpectral const &""'"); goto fail;
} while(0)
;
9315 }
9316 if (!argp2) {
9317 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSky" "', argument " "2"" of type '" "GModelSpectral const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSky" "', argument " "2"" of type '"
"GModelSpectral const &""'"); goto fail; } while(0)
;
9318 }
9319 arg2 = reinterpret_cast< GModelSpectral * >(argp2);
9320 {
9321 try {
9322 result = (GModelSky *)new GModelSky((GModelSpatial const &)*arg1,(GModelSpectral const &)*arg2);
9323 }
9324 catch (const GException::out_of_range& e) {
9325 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9326 }
9327 catch (const GExceptionHandler& e) {
9328 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9329 }
9330 catch (const std::exception& e) {
9331 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9332 }
9333 }
9334 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSky, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], (
(0x1 << 1) | 0x1) | 0)
;
9335 return resultobj;
9336fail:
9337 return NULL__null;
9338}
9339
9340
9341SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSky__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9342 PyObject *resultobj = 0;
9343 GModelSpatial *arg1 = 0 ;
9344 GModelSpectral *arg2 = 0 ;
9345 GModelTemporal *arg3 = 0 ;
9346 void *argp1 = 0 ;
9347 int res1 = 0 ;
9348 void *argp2 = 0 ;
9349 int res2 = 0 ;
9350 void *argp3 = 0 ;
9351 int res3 = 0 ;
9352 PyObject * obj0 = 0 ;
9353 PyObject * obj1 = 0 ;
9354 PyObject * obj2 = 0 ;
9355 GModelSky *result = 0 ;
9356
9357 if (!PyArg_ParseTuple(args,(char *)"OOO:new_GModelSky",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
9358 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GModelSpatial, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
9359 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSky" "', argument " "1"" of type '" "GModelSpatial const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSky" "', argument "
"1"" of type '" "GModelSpatial const &""'"); goto fail; }
while(0)
;
9361 }
9362 if (!argp1) {
9363 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSky" "', argument " "1"" of type '" "GModelSpatial const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSky" "', argument " "1"" of type '"
"GModelSpatial const &""'"); goto fail; } while(0)
;
9364 }
9365 arg1 = reinterpret_cast< GModelSpatial * >(argp1);
9366 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GModelSpectral, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[24]
, 0 | 0, 0)
;
9367 if (!SWIG_IsOK(res2)(res2 >= 0)) {
9368 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GModelSky" "', argument " "2"" of type '" "GModelSpectral const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "new_GModelSky" "', argument "
"2"" of type '" "GModelSpectral const &""'"); goto fail;
} while(0)
;
9369 }
9370 if (!argp2) {
9371 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSky" "', argument " "2"" of type '" "GModelSpectral const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSky" "', argument " "2"" of type '"
"GModelSpectral const &""'"); goto fail; } while(0)
;
9372 }
9373 arg2 = reinterpret_cast< GModelSpectral * >(argp2);
9374 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GModelTemporal, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[33]
, 0 | 0, 0)
;
9375 if (!SWIG_IsOK(res3)(res3 >= 0)) {
9376 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_GModelSky" "', argument " "3"" of type '" "GModelTemporal const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "new_GModelSky" "', argument "
"3"" of type '" "GModelTemporal const &""'"); goto fail;
} while(0)
;
9377 }
9378 if (!argp3) {
9379 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSky" "', argument " "3"" of type '" "GModelTemporal const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSky" "', argument " "3"" of type '"
"GModelTemporal const &""'"); goto fail; } while(0)
;
9380 }
9381 arg3 = reinterpret_cast< GModelTemporal * >(argp3);
9382 {
9383 try {
9384 result = (GModelSky *)new GModelSky((GModelSpatial const &)*arg1,(GModelSpectral const &)*arg2,(GModelTemporal const &)*arg3);
9385 }
9386 catch (const GException::out_of_range& e) {
9387 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9388 }
9389 catch (const GExceptionHandler& e) {
9390 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9391 }
9392 catch (const std::exception& e) {
9393 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9394 }
9395 }
9396 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSky, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], (
(0x1 << 1) | 0x1) | 0)
;
9397 return resultobj;
9398fail:
9399 return NULL__null;
9400}
9401
9402
9403SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSky__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9404 PyObject *resultobj = 0;
9405 GModelSky *arg1 = 0 ;
9406 void *argp1 = 0 ;
9407 int res1 = 0 ;
9408 PyObject * obj0 = 0 ;
9409 GModelSky *result = 0 ;
9410
9411 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSky",&obj0)) SWIG_failgoto fail;
9412 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GModelSky, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
9413 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSky" "', argument " "1"" of type '" "GModelSky const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSky" "', argument "
"1"" of type '" "GModelSky const &""'"); goto fail; } while
(0)
;
9415 }
9416 if (!argp1) {
9417 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSky" "', argument " "1"" of type '" "GModelSky const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSky" "', argument " "1"" of type '"
"GModelSky const &""'"); goto fail; } while(0)
;
9418 }
9419 arg1 = reinterpret_cast< GModelSky * >(argp1);
9420 {
9421 try {
9422 result = (GModelSky *)new GModelSky((GModelSky const &)*arg1);
9423 }
9424 catch (const GException::out_of_range& e) {
9425 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9426 }
9427 catch (const GExceptionHandler& e) {
9428 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9429 }
9430 catch (const std::exception& e) {
9431 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9432 }
9433 }
9434 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSky, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], (
(0x1 << 1) | 0x1) | 0)
;
9435 return resultobj;
9436fail:
9437 return NULL__null;
9438}
9439
9440
9441SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSky(PyObject *self, PyObject *args) {
9442 int argc;
9443 PyObject *argv[4];
9444 int ii;
9445
9446 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
9447 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
9448 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
9449 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
9450 }
9451 if (argc == 0) {
9452 return _wrap_new_GModelSky__SWIG_0(self, args);
9453 }
9454 if (argc == 1) {
9455 int _v;
9456 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GXmlElement, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[50], 0, 0
)
;
9457 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9458 if (_v) {
9459 return _wrap_new_GModelSky__SWIG_2(self, args);
9460 }
9461 }
9462 if (argc == 1) {
9463 int _v;
9464 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GModelSky, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[10], 0, 0
)
;
9465 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9466 if (_v) {
9467 return _wrap_new_GModelSky__SWIG_7(self, args);
9468 }
9469 }
9470 if (argc == 1) {
9471 int _v;
9472 int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
9473 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9474 if (_v) {
9475 return _wrap_new_GModelSky__SWIG_1(self, args);
9476 }
9477 }
9478 if (argc == 2) {
9479 int _v;
9480 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GModelSpatial, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[11], 0, 0
)
;
9481 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9482 if (_v) {
9483 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GModelSpectral, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[24], 0, 0
)
;
9484 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9485 if (_v) {
9486 return _wrap_new_GModelSky__SWIG_5(self, args);
9487 }
9488 }
9489 }
9490 if (argc == 2) {
9491 int _v;
9492 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GXmlElement, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[50], 0, 0
)
;
9493 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9494 if (_v) {
9495 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GXmlElement, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[50], 0, 0
)
;
9496 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9497 if (_v) {
9498 return _wrap_new_GModelSky__SWIG_3(self, args);
9499 }
9500 }
9501 }
9502 if (argc == 3) {
9503 int _v;
9504 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GModelSpatial, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[11], 0, 0
)
;
9505 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9506 if (_v) {
9507 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GModelSpectral, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[24], 0, 0
)
;
9508 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9509 if (_v) {
9510 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GModelTemporal, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[33], 0, 0
)
;
9511 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9512 if (_v) {
9513 return _wrap_new_GModelSky__SWIG_6(self, args);
9514 }
9515 }
9516 }
9517 }
9518 if (argc == 3) {
9519 int _v;
9520 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GXmlElement, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[50], 0, 0
)
;
9521 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9522 if (_v) {
9523 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GXmlElement, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[50], 0, 0
)
;
9524 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9525 if (_v) {
9526 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GXmlElement, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[50], 0, 0
)
;
9527 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9528 if (_v) {
9529 return _wrap_new_GModelSky__SWIG_4(self, args);
9530 }
9531 }
9532 }
9533 }
9534
9535fail:
9536 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GModelSky'.\n"
9537 " Possible C/C++ prototypes are:\n"
9538 " GModelSky::GModelSky()\n"
9539 " GModelSky::GModelSky(std::string const &)\n"
9540 " GModelSky::GModelSky(GXmlElement const &)\n"
9541 " GModelSky::GModelSky(GXmlElement const &,GXmlElement const &)\n"
9542 " GModelSky::GModelSky(GXmlElement const &,GXmlElement const &,GXmlElement const &)\n"
9543 " GModelSky::GModelSky(GModelSpatial const &,GModelSpectral const &)\n"
9544 " GModelSky::GModelSky(GModelSpatial const &,GModelSpectral const &,GModelTemporal const &)\n"
9545 " GModelSky::GModelSky(GModelSky const &)\n");
9546 return 0;
9547}
9548
9549
9550SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GModelSky(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9551 PyObject *resultobj = 0;
9552 GModelSky *arg1 = (GModelSky *) 0 ;
9553 void *argp1 = 0 ;
9554 int res1 = 0 ;
9555 PyObject * obj0 = 0 ;
9556
9557 if (!PyArg_ParseTuple(args,(char *)"O:delete_GModelSky",&obj0)) SWIG_failgoto fail;
9558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSky, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0x1 | 0, 0)
;
9559 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GModelSky" "', argument " "1"" of type '" "GModelSky *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GModelSky" "', argument "
"1"" of type '" "GModelSky *""'"); goto fail; } while(0)
;
9561 }
9562 arg1 = reinterpret_cast< GModelSky * >(argp1);
9563 {
9564 try {
9565 delete arg1;
9566 }
9567 catch (const GException::out_of_range& e) {
9568 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9569 }
9570 catch (const GExceptionHandler& e) {
9571 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9572 }
9573 catch (const std::exception& e) {
9574 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9575 }
9576 }
9577 resultobj = SWIG_Py_Void();
9578 return resultobj;
9579fail:
9580 return NULL__null;
9581}
9582
9583
9584SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSky_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9585 PyObject *resultobj = 0;
9586 GModelSky *arg1 = (GModelSky *) 0 ;
9587 void *argp1 = 0 ;
9588 int res1 = 0 ;
9589 PyObject * obj0 = 0 ;
9590
9591 if (!PyArg_ParseTuple(args,(char *)"O:GModelSky_clear",&obj0)) SWIG_failgoto fail;
9592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSky, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
9593 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSky_clear" "', argument " "1"" of type '" "GModelSky *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSky_clear" "', argument "
"1"" of type '" "GModelSky *""'"); goto fail; } while(0)
;
9595 }
9596 arg1 = reinterpret_cast< GModelSky * >(argp1);
9597 {
9598 try {
9599 (arg1)->clear();
9600 }
9601 catch (const GException::out_of_range& e) {
9602 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9603 }
9604 catch (const GExceptionHandler& e) {
9605 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9606 }
9607 catch (const std::exception& e) {
9608 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9609 }
9610 }
9611 resultobj = SWIG_Py_Void();
9612 return resultobj;
9613fail:
9614 return NULL__null;
9615}
9616
9617
9618SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSky_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9619 PyObject *resultobj = 0;
9620 GModelSky *arg1 = (GModelSky *) 0 ;
9621 void *argp1 = 0 ;
9622 int res1 = 0 ;
9623 PyObject * obj0 = 0 ;
9624 GModelSky *result = 0 ;
9625
9626 if (!PyArg_ParseTuple(args,(char *)"O:GModelSky_clone",&obj0)) SWIG_failgoto fail;
9627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSky, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
9628 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSky_clone" "', argument " "1"" of type '" "GModelSky const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSky_clone" "', argument "
"1"" of type '" "GModelSky const *""'"); goto fail; } while(
0)
;
9630 }
9631 arg1 = reinterpret_cast< GModelSky * >(argp1);
9632 {
9633 try {
9634 result = (GModelSky *)((GModelSky const *)arg1)->clone();
9635 }
9636 catch (const GException::out_of_range& e) {
9637 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9638 }
9639 catch (const GExceptionHandler& e) {
9640 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9641 }
9642 catch (const std::exception& e) {
9643 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9644 }
9645 }
9646 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSky, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0
| 0)
;
9647 return resultobj;
9648fail:
9649 return NULL__null;
9650}
9651
9652
9653SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSky_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9654 PyObject *resultobj = 0;
9655 GModelSky *arg1 = (GModelSky *) 0 ;
9656 void *argp1 = 0 ;
9657 int res1 = 0 ;
9658 PyObject * obj0 = 0 ;
9659 std::string result;
9660
9661 if (!PyArg_ParseTuple(args,(char *)"O:GModelSky_type",&obj0)) SWIG_failgoto fail;
9662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSky, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
9663 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSky_type" "', argument " "1"" of type '" "GModelSky const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSky_type" "', argument "
"1"" of type '" "GModelSky const *""'"); goto fail; } while(
0)
;
9665 }
9666 arg1 = reinterpret_cast< GModelSky * >(argp1);
9667 {
9668 try {
9669 result = ((GModelSky const *)arg1)->type();
9670 }
9671 catch (const GException::out_of_range& e) {
9672 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9673 }
9674 catch (const GExceptionHandler& e) {
9675 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9676 }
9677 catch (const std::exception& e) {
9678 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9679 }
9680 }
9681 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
9682 return resultobj;
9683fail:
9684 return NULL__null;
9685}
9686
9687
9688SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSky_isconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9689 PyObject *resultobj = 0;
9690 GModelSky *arg1 = (GModelSky *) 0 ;
9691 void *argp1 = 0 ;
9692 int res1 = 0 ;
9693 PyObject * obj0 = 0 ;
9694 bool result;
9695
9696 if (!PyArg_ParseTuple(args,(char *)"O:GModelSky_isconstant",&obj0)) SWIG_failgoto fail;
9697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSky, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
9698 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSky_isconstant" "', argument " "1"" of type '" "GModelSky const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSky_isconstant" "', argument "
"1"" of type '" "GModelSky const *""'"); goto fail; } while(
0)
;
9700 }
9701 arg1 = reinterpret_cast< GModelSky * >(argp1);
9702 {
9703 try {
9704 result = (bool)((GModelSky const *)arg1)->isconstant();
9705 }
9706 catch (const GException::out_of_range& e) {
9707 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9708 }
9709 catch (const GExceptionHandler& e) {
9710 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9711 }
9712 catch (const std::exception& e) {
9713 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9714 }
9715 }
9716 resultobj = SWIG_From_bool(static_cast< bool >(result));
9717 return resultobj;
9718fail:
9719 return NULL__null;
9720}
9721
9722
9723SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSky_eval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9724 PyObject *resultobj = 0;
9725 GModelSky *arg1 = (GModelSky *) 0 ;
9726 GEvent *arg2 = 0 ;
9727 GObservation *arg3 = 0 ;
9728 void *argp1 = 0 ;
9729 int res1 = 0 ;
9730 void *argp2 = 0 ;
9731 int res2 = 0 ;
9732 void *argp3 = 0 ;
9733 int res3 = 0 ;
9734 PyObject * obj0 = 0 ;
9735 PyObject * obj1 = 0 ;
9736 PyObject * obj2 = 0 ;
9737 double result;
9738
9739 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSky_eval",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
9740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSky, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
9741 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSky_eval" "', argument " "1"" of type '" "GModelSky const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSky_eval" "', argument "
"1"" of type '" "GModelSky const *""'"); goto fail; } while(
0)
;
9743 }
9744 arg1 = reinterpret_cast< GModelSky * >(argp1);
9745 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEvent, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[4],
0 | 0, 0)
;
9746 if (!SWIG_IsOK(res2)(res2 >= 0)) {
9747 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSky_eval" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSky_eval" "', argument "
"2"" of type '" "GEvent const &""'"); goto fail; } while
(0)
;
9748 }
9749 if (!argp2) {
9750 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSky_eval" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSky_eval" "', argument " "2"" of type '"
"GEvent const &""'"); goto fail; } while(0)
;
9751 }
9752 arg2 = reinterpret_cast< GEvent * >(argp2);
9753 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[37]
, 0 | 0, 0)
;
9754 if (!SWIG_IsOK(res3)(res3 >= 0)) {
9755 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSky_eval" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSky_eval" "', argument "
"3"" of type '" "GObservation const &""'"); goto fail; }
while(0)
;
9756 }
9757 if (!argp3) {
9758 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSky_eval" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSky_eval" "', argument " "3"" of type '"
"GObservation const &""'"); goto fail; } while(0)
;
9759 }
9760 arg3 = reinterpret_cast< GObservation * >(argp3);
9761 {
9762 try {
9763 result = (double)((GModelSky const *)arg1)->eval((GEvent const &)*arg2,(GObservation const &)*arg3);
9764 }
9765 catch (const GException::out_of_range& e) {
9766 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9767 }
9768 catch (const GExceptionHandler& e) {
9769 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9770 }
9771 catch (const std::exception& e) {
9772 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9773 }
9774 }
9775 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
9776 return resultobj;
9777fail:
9778 return NULL__null;
9779}
9780
9781
9782SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSky_eval_gradients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9783 PyObject *resultobj = 0;
9784 GModelSky *arg1 = (GModelSky *) 0 ;
9785 GEvent *arg2 = 0 ;
9786 GObservation *arg3 = 0 ;
9787 void *argp1 = 0 ;
9788 int res1 = 0 ;
9789 void *argp2 = 0 ;
9790 int res2 = 0 ;
9791 void *argp3 = 0 ;
9792 int res3 = 0 ;
9793 PyObject * obj0 = 0 ;
9794 PyObject * obj1 = 0 ;
9795 PyObject * obj2 = 0 ;
9796 double result;
9797
9798 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSky_eval_gradients",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
9799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSky, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
9800 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSky_eval_gradients" "', argument " "1"" of type '" "GModelSky const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSky_eval_gradients" "', argument "
"1"" of type '" "GModelSky const *""'"); goto fail; } while(
0)
;
9802 }
9803 arg1 = reinterpret_cast< GModelSky * >(argp1);
9804 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEvent, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[4],
0 | 0, 0)
;
9805 if (!SWIG_IsOK(res2)(res2 >= 0)) {
9806 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSky_eval_gradients" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSky_eval_gradients" "', argument "
"2"" of type '" "GEvent const &""'"); goto fail; } while
(0)
;
9807 }
9808 if (!argp2) {
9809 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSky_eval_gradients" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSky_eval_gradients" "', argument " "2"" of type '"
"GEvent const &""'"); goto fail; } while(0)
;
9810 }
9811 arg2 = reinterpret_cast< GEvent * >(argp2);
9812 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[37]
, 0 | 0, 0)
;
9813 if (!SWIG_IsOK(res3)(res3 >= 0)) {
9814 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSky_eval_gradients" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSky_eval_gradients" "', argument "
"3"" of type '" "GObservation const &""'"); goto fail; }
while(0)
;
9815 }
9816 if (!argp3) {
9817 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSky_eval_gradients" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSky_eval_gradients" "', argument " "3"" of type '"
"GObservation const &""'"); goto fail; } while(0)
;
9818 }
9819 arg3 = reinterpret_cast< GObservation * >(argp3);
9820 {
9821 try {
9822 result = (double)((GModelSky const *)arg1)->eval_gradients((GEvent const &)*arg2,(GObservation const &)*arg3);
9823 }
9824 catch (const GException::out_of_range& e) {
9825 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9826 }
9827 catch (const GExceptionHandler& e) {
9828 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9829 }
9830 catch (const std::exception& e) {
9831 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9832 }
9833 }
9834 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
9835 return resultobj;
9836fail:
9837 return NULL__null;
9838}
9839
9840
9841SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSky_npred(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9842 PyObject *resultobj = 0;
9843 GModelSky *arg1 = (GModelSky *) 0 ;
9844 GEnergy *arg2 = 0 ;
9845 GTime *arg3 = 0 ;
9846 GObservation *arg4 = 0 ;
9847 void *argp1 = 0 ;
9848 int res1 = 0 ;
9849 void *argp2 = 0 ;
9850 int res2 = 0 ;
9851 void *argp3 = 0 ;
9852 int res3 = 0 ;
9853 void *argp4 = 0 ;
9854 int res4 = 0 ;
9855 PyObject * obj0 = 0 ;
9856 PyObject * obj1 = 0 ;
9857 PyObject * obj2 = 0 ;
9858 PyObject * obj3 = 0 ;
9859 double result;
9860
9861 if (!PyArg_ParseTuple(args,(char *)"OOOO:GModelSky_npred",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
9862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSky, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
9863 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSky_npred" "', argument " "1"" of type '" "GModelSky const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSky_npred" "', argument "
"1"" of type '" "GModelSky const *""'"); goto fail; } while(
0)
;
9865 }
9866 arg1 = reinterpret_cast< GModelSky * >(argp1);
9867 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
9868 if (!SWIG_IsOK(res2)(res2 >= 0)) {
9869 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSky_npred" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSky_npred" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
9870 }
9871 if (!argp2) {
9872 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSky_npred" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSky_npred" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
9873 }
9874 arg2 = reinterpret_cast< GEnergy * >(argp2);
9875 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[46]
, 0 | 0, 0)
;
9876 if (!SWIG_IsOK(res3)(res3 >= 0)) {
9877 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSky_npred" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSky_npred" "', argument "
"3"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
9878 }
9879 if (!argp3) {
9880 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSky_npred" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSky_npred" "', argument " "3"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
9881 }
9882 arg3 = reinterpret_cast< GTime * >(argp3);
9883 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[37]
, 0 | 0, 0)
;
9884 if (!SWIG_IsOK(res4)(res4 >= 0)) {
9885 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelSky_npred" "', argument " "4"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelSky_npred" "', argument "
"4"" of type '" "GObservation const &""'"); goto fail; }
while(0)
;
9886 }
9887 if (!argp4) {
9888 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSky_npred" "', argument " "4"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSky_npred" "', argument " "4"" of type '"
"GObservation const &""'"); goto fail; } while(0)
;
9889 }
9890 arg4 = reinterpret_cast< GObservation * >(argp4);
9891 {
9892 try {
9893 result = (double)((GModelSky const *)arg1)->npred((GEnergy const &)*arg2,(GTime const &)*arg3,(GObservation const &)*arg4);
9894 }
9895 catch (const GException::out_of_range& e) {
9896 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9897 }
9898 catch (const GExceptionHandler& e) {
9899 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9900 }
9901 catch (const std::exception& e) {
9902 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9903 }
9904 }
9905 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
9906 return resultobj;
9907fail:
9908 return NULL__null;
9909}
9910
9911
9912SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSky_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9913 PyObject *resultobj = 0;
9914 GModelSky *arg1 = (GModelSky *) 0 ;
9915 GXmlElement *arg2 = 0 ;
9916 void *argp1 = 0 ;
9917 int res1 = 0 ;
9918 void *argp2 = 0 ;
9919 int res2 = 0 ;
9920 PyObject * obj0 = 0 ;
9921 PyObject * obj1 = 0 ;
9922
9923 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSky_read",&obj0,&obj1)) SWIG_failgoto fail;
9924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSky, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
9925 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSky_read" "', argument " "1"" of type '" "GModelSky *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSky_read" "', argument "
"1"" of type '" "GModelSky *""'"); goto fail; } while(0)
;
9927 }
9928 arg1 = reinterpret_cast< GModelSky * >(argp1);
9929 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0 | 0, 0)
;
9930 if (!SWIG_IsOK(res2)(res2 >= 0)) {
9931 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSky_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSky_read" "', argument "
"2"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
9932 }
9933 if (!argp2) {
9934 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSky_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSky_read" "', argument " "2"" of type '"
"GXmlElement const &""'"); goto fail; } while(0)
;
9935 }
9936 arg2 = reinterpret_cast< GXmlElement * >(argp2);
9937 {
9938 try {
9939 (arg1)->read((GXmlElement const &)*arg2);
9940 }
9941 catch (const GException::out_of_range& e) {
9942 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9943 }
9944 catch (const GExceptionHandler& e) {
9945 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9946 }
9947 catch (const std::exception& e) {
9948 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9949 }
9950 }
9951 resultobj = SWIG_Py_Void();
9952 return resultobj;
9953fail:
9954 return NULL__null;
9955}
9956
9957
9958SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSky_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9959 PyObject *resultobj = 0;
9960 GModelSky *arg1 = (GModelSky *) 0 ;
9961 GXmlElement *arg2 = 0 ;
9962 void *argp1 = 0 ;
9963 int res1 = 0 ;
9964 void *argp2 = 0 ;
9965 int res2 = 0 ;
9966 PyObject * obj0 = 0 ;
9967 PyObject * obj1 = 0 ;
9968
9969 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSky_write",&obj0,&obj1)) SWIG_failgoto fail;
9970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSky, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
9971 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSky_write" "', argument " "1"" of type '" "GModelSky const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSky_write" "', argument "
"1"" of type '" "GModelSky const *""'"); goto fail; } while(
0)
;
9973 }
9974 arg1 = reinterpret_cast< GModelSky * >(argp1);
9975 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0, 0)
;
9976 if (!SWIG_IsOK(res2)(res2 >= 0)) {
9977 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSky_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSky_write" "', argument "
"2"" of type '" "GXmlElement &""'"); goto fail; } while(
0)
;
9978 }
9979 if (!argp2) {
9980 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSky_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSky_write" "', argument " "2"" of type '"
"GXmlElement &""'"); goto fail; } while(0)
;
9981 }
9982 arg2 = reinterpret_cast< GXmlElement * >(argp2);
9983 {
9984 try {
9985 ((GModelSky const *)arg1)->write(*arg2);
9986 }
9987 catch (const GException::out_of_range& e) {
9988 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9989 }
9990 catch (const GExceptionHandler& e) {
9991 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9992 }
9993 catch (const std::exception& e) {
9994 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9995 }
9996 }
9997 resultobj = SWIG_Py_Void();
9998 return resultobj;
9999fail:
10000 return NULL__null;
10001}
10002
10003
10004SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSky_spatial(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10005 PyObject *resultobj = 0;
10006 GModelSky *arg1 = (GModelSky *) 0 ;
10007 void *argp1 = 0 ;
10008 int res1 = 0 ;
10009 PyObject * obj0 = 0 ;
10010 GModelSpatial *result = 0 ;
10011
10012 if (!PyArg_ParseTuple(args,(char *)"O:GModelSky_spatial",&obj0)) SWIG_failgoto fail;
10013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSky, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
10014 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSky_spatial" "', argument " "1"" of type '" "GModelSky const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSky_spatial" "', argument "
"1"" of type '" "GModelSky const *""'"); goto fail; } while(
0)
;
10016 }
10017 arg1 = reinterpret_cast< GModelSky * >(argp1);
10018 {
10019 try {
10020 result = (GModelSpatial *)((GModelSky const *)arg1)->spatial();
10021 }
10022 catch (const GException::out_of_range& e) {
10023 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10024 }
10025 catch (const GExceptionHandler& e) {
10026 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10027 }
10028 catch (const std::exception& e) {
10029 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10030 }
10031 }
10032 {
10033 if (dynamic_cast<GModelSpatialPointSource*>(result) != NULL__null) {
10034 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialPointSource, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[18], 0
| 0)
;
10035 }
10036 else if (dynamic_cast<GModelSpatialRadial*>(result) != NULL__null) {
10037 if (dynamic_cast<GModelSpatialRadialDisk*>(result) != NULL__null) {
10038 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialRadialDisk, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[20], 0
| 0)
;
10039 }
10040 else if (dynamic_cast<GModelSpatialRadialGauss*>(result) != NULL__null) {
10041 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialRadialGauss, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[21], 0
| 0)
;
10042 }
10043 else if (dynamic_cast<GModelSpatialRadialShell*>(result) != NULL__null) {
10044 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialRadialShell, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[22], 0
| 0)
;
10045 }
10046 else {
10047 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialRadial, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[19], 0
| 0)
;
10048 }
10049 }
10050 else if (dynamic_cast<GModelSpatialElliptical*>(result) != NULL__null) {
10051 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialElliptical, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[16], 0
| 0)
;
10052 }
10053 else if (dynamic_cast<GModelSpatialDiffuse*>(result) != NULL__null) {
10054 if (dynamic_cast<GModelSpatialDiffuseConst*>(result) != NULL__null) {
10055 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialDiffuseConst, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[13], 0
| 0)
;
10056 }
10057 else if (dynamic_cast<GModelSpatialDiffuseCube*>(result) != NULL__null) {
10058 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialDiffuseCube, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[14], 0
| 0)
;
10059 }
10060 else if (dynamic_cast<GModelSpatialDiffuseMap*>(result) != NULL__null) {
10061 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialDiffuseMap, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[15], 0
| 0)
;
10062 }
10063 else {
10064 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialDiffuse, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[12], 0
| 0)
;
10065 }
10066 }
10067 else {
10068 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatial, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[11], 0
| 0)
;
10069 }
10070 }
10071 return resultobj;
10072fail:
10073 return NULL__null;
10074}
10075
10076
10077SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSky_spectral(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10078 PyObject *resultobj = 0;
10079 GModelSky *arg1 = (GModelSky *) 0 ;
10080 void *argp1 = 0 ;
10081 int res1 = 0 ;
10082 PyObject * obj0 = 0 ;
10083 GModelSpectral *result = 0 ;
10084
10085 if (!PyArg_ParseTuple(args,(char *)"O:GModelSky_spectral",&obj0)) SWIG_failgoto fail;
10086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSky, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
10087 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSky_spectral" "', argument " "1"" of type '" "GModelSky const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSky_spectral" "', argument "
"1"" of type '" "GModelSky const *""'"); goto fail; } while(
0)
;
10089 }
10090 arg1 = reinterpret_cast< GModelSky * >(argp1);
10091 {
10092 try {
10093 result = (GModelSpectral *)((GModelSky const *)arg1)->spectral();
10094 }
10095 catch (const GException::out_of_range& e) {
10096 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10097 }
10098 catch (const GExceptionHandler& e) {
10099 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10100 }
10101 catch (const std::exception& e) {
10102 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10103 }
10104 }
10105 {
10106 if (dynamic_cast<GModelSpectralConst*>(result) != NULL__null) {
10107 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralConst, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[25], 0
| 0)
;
10108 }
10109 else if (dynamic_cast<GModelSpectralFunc*>(result) != NULL__null) {
10110 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralFunc, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[27], 0
| 0)
;
10111 }
10112 else if (dynamic_cast<GModelSpectralNodes*>(result) != NULL__null) {
10113 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralNodes, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[29], 0
| 0)
;
10114 }
10115 else if (dynamic_cast<GModelSpectralPlaw*>(result) != NULL__null) {
10116 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralPlaw, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[30], 0
| 0)
;
10117 }
10118 else if (dynamic_cast<GModelSpectralPlaw2*>(result) != NULL__null) {
10119 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralPlaw2, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[31], 0
| 0)
;
10120 }
10121 else if (dynamic_cast<GModelSpectralLogParabola*>(result) != NULL__null) {
10122 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralLogParabola, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[28], 0
| 0)
;
10123 }
10124 else {
10125 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectral, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[24], 0
| 0)
;
10126 }
10127 }
10128 return resultobj;
10129fail:
10130 return NULL__null;
10131}
10132
10133
10134SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSky_temporal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10135 PyObject *resultobj = 0;
10136 GModelSky *arg1 = (GModelSky *) 0 ;
10137 void *argp1 = 0 ;
10138 int res1 = 0 ;
10139 PyObject * obj0 = 0 ;
10140 GModelTemporal *result = 0 ;
10141
10142 if (!PyArg_ParseTuple(args,(char *)"O:GModelSky_temporal",&obj0)) SWIG_failgoto fail;
10143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSky, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
10144 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSky_temporal" "', argument " "1"" of type '" "GModelSky const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSky_temporal" "', argument "
"1"" of type '" "GModelSky const *""'"); goto fail; } while(
0)
;
10146 }
10147 arg1 = reinterpret_cast< GModelSky * >(argp1);
10148 {
10149 try {
10150 result = (GModelTemporal *)((GModelSky const *)arg1)->temporal();
10151 }
10152 catch (const GException::out_of_range& e) {
10153 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10154 }
10155 catch (const GExceptionHandler& e) {
10156 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10157 }
10158 catch (const std::exception& e) {
10159 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10160 }
10161 }
10162 {
10163 if (dynamic_cast<GModelTemporalConst*>(result) != NULL__null) {
10164 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelTemporalConst, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[34], 0
| 0)
;
10165 }
10166 else {
10167 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelTemporal, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[33], 0
| 0)
;
10168 }
10169 }
10170 return resultobj;
10171fail:
10172 return NULL__null;
10173}
10174
10175
10176SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSky_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10177 PyObject *resultobj = 0;
10178 GModelSky *arg1 = (GModelSky *) 0 ;
10179 GPhoton *arg2 = 0 ;
10180 void *argp1 = 0 ;
10181 int res1 = 0 ;
10182 void *argp2 = 0 ;
10183 int res2 = 0 ;
10184 PyObject * obj0 = 0 ;
10185 PyObject * obj1 = 0 ;
10186 double result;
10187
10188 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSky_value",&obj0,&obj1)) SWIG_failgoto fail;
10189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSky, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
10190 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSky_value" "', argument " "1"" of type '" "GModelSky *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSky_value" "', argument "
"1"" of type '" "GModelSky *""'"); goto fail; } while(0)
;
10192 }
10193 arg1 = reinterpret_cast< GModelSky * >(argp1);
10194 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[40]
, 0 | 0, 0)
;
10195 if (!SWIG_IsOK(res2)(res2 >= 0)) {
10196 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSky_value" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSky_value" "', argument "
"2"" of type '" "GPhoton const &""'"); goto fail; } while
(0)
;
10197 }
10198 if (!argp2) {
10199 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSky_value" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSky_value" "', argument " "2"" of type '"
"GPhoton const &""'"); goto fail; } while(0)
;
10200 }
10201 arg2 = reinterpret_cast< GPhoton * >(argp2);
10202 {
10203 try {
10204 result = (double)(arg1)->value((GPhoton const &)*arg2);
10205 }
10206 catch (const GException::out_of_range& e) {
10207 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10208 }
10209 catch (const GExceptionHandler& e) {
10210 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10211 }
10212 catch (const std::exception& e) {
10213 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10214 }
10215 }
10216 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
10217 return resultobj;
10218fail:
10219 return NULL__null;
10220}
10221
10222
10223SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSky_gradients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10224 PyObject *resultobj = 0;
10225 GModelSky *arg1 = (GModelSky *) 0 ;
10226 GPhoton *arg2 = 0 ;
10227 void *argp1 = 0 ;
10228 int res1 = 0 ;
10229 void *argp2 = 0 ;
10230 int res2 = 0 ;
10231 PyObject * obj0 = 0 ;
10232 PyObject * obj1 = 0 ;
10233 GVector result;
10234
10235 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSky_gradients",&obj0,&obj1)) SWIG_failgoto fail;
10236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSky, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
10237 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSky_gradients" "', argument " "1"" of type '" "GModelSky *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSky_gradients" "', argument "
"1"" of type '" "GModelSky *""'"); goto fail; } while(0)
;
10239 }
10240 arg1 = reinterpret_cast< GModelSky * >(argp1);
10241 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[40]
, 0 | 0, 0)
;
10242 if (!SWIG_IsOK(res2)(res2 >= 0)) {
10243 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSky_gradients" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSky_gradients" "', argument "
"2"" of type '" "GPhoton const &""'"); goto fail; } while
(0)
;
10244 }
10245 if (!argp2) {
10246 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSky_gradients" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSky_gradients" "', argument " "2"" of type '"
"GPhoton const &""'"); goto fail; } while(0)
;
10247 }
10248 arg2 = reinterpret_cast< GPhoton * >(argp2);
10249 {
10250 try {
10251 result = (arg1)->gradients((GPhoton const &)*arg2);
10252 }
10253 catch (const GException::out_of_range& e) {
10254 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10255 }
10256 catch (const GExceptionHandler& e) {
10257 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10258 }
10259 catch (const std::exception& e) {
10260 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10261 }
10262 }
10263 resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast<
const GVector& >(result))), swig_types[48], 0x1 | 0)
;
10264 return resultobj;
10265fail:
10266 return NULL__null;
10267}
10268
10269
10270SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSky_mc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10271 PyObject *resultobj = 0;
10272 GModelSky *arg1 = (GModelSky *) 0 ;
10273 double *arg2 = 0 ;
10274 GSkyDir *arg3 = 0 ;
10275 double *arg4 = 0 ;
10276 GEnergy *arg5 = 0 ;
10277 GEnergy *arg6 = 0 ;
10278 GTime *arg7 = 0 ;
10279 GTime *arg8 = 0 ;
10280 GRan *arg9 = 0 ;
10281 void *argp1 = 0 ;
10282 int res1 = 0 ;
10283 double temp2 ;
10284 double val2 ;
10285 int ecode2 = 0 ;
10286 void *argp3 = 0 ;
10287 int res3 = 0 ;
10288 double temp4 ;
10289 double val4 ;
10290 int ecode4 = 0 ;
10291 void *argp5 = 0 ;
10292 int res5 = 0 ;
10293 void *argp6 = 0 ;
10294 int res6 = 0 ;
10295 void *argp7 = 0 ;
10296 int res7 = 0 ;
10297 void *argp8 = 0 ;
10298 int res8 = 0 ;
10299 void *argp9 = 0 ;
10300 int res9 = 0 ;
10301 PyObject * obj0 = 0 ;
10302 PyObject * obj1 = 0 ;
10303 PyObject * obj2 = 0 ;
10304 PyObject * obj3 = 0 ;
10305 PyObject * obj4 = 0 ;
10306 PyObject * obj5 = 0 ;
10307 PyObject * obj6 = 0 ;
10308 PyObject * obj7 = 0 ;
10309 PyObject * obj8 = 0 ;
10310 GPhotons result;
10311
10312 if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:GModelSky_mc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_failgoto fail;
10313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSky, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
10314 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSky_mc" "', argument " "1"" of type '" "GModelSky const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSky_mc" "', argument "
"1"" of type '" "GModelSky const *""'"); goto fail; } while(
0)
;
10316 }
10317 arg1 = reinterpret_cast< GModelSky * >(argp1);
10318 ecode2 = SWIG_AsVal_double(obj1, &val2);
10319 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
10320 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSky_mc" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSky_mc" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
10321 }
10322 temp2 = static_cast< double >(val2);
10323 arg2 = &temp2;
10324 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[44]
, 0 | 0, 0)
;
10325 if (!SWIG_IsOK(res3)(res3 >= 0)) {
10326 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSky_mc" "', argument " "3"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSky_mc" "', argument "
"3"" of type '" "GSkyDir const &""'"); goto fail; } while
(0)
;
10327 }
10328 if (!argp3) {
10329 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSky_mc" "', argument " "3"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSky_mc" "', argument " "3"" of type '" "GSkyDir const &"
"'"); goto fail; } while(0)
;
10330 }
10331 arg3 = reinterpret_cast< GSkyDir * >(argp3);
10332 ecode4 = SWIG_AsVal_double(obj3, &val4);
10333 if (!SWIG_IsOK(ecode4)(ecode4 >= 0)) {
10334 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GModelSky_mc" "', argument " "4"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 !=
(-1)) ? ecode4 : -5)), "in method '" "GModelSky_mc" "', argument "
"4"" of type '" "double""'"); goto fail; } while(0)
;
10335 }
10336 temp4 = static_cast< double >(val4);
10337 arg4 = &temp4;
10338 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj4, &argp5, swig_types[3],
0 | 0, 0)
;
10339 if (!SWIG_IsOK(res5)(res5 >= 0)) {
10340 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GModelSky_mc" "', argument " "5"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res5 != (
-1)) ? res5 : -5)), "in method '" "GModelSky_mc" "', argument "
"5"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
10341 }
10342 if (!argp5) {
10343 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSky_mc" "', argument " "5"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSky_mc" "', argument " "5"" of type '" "GEnergy const &"
"'"); goto fail; } while(0)
;
10344 }
10345 arg5 = reinterpret_cast< GEnergy * >(argp5);
10346 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj5, &argp6, swig_types[3],
0 | 0, 0)
;
10347 if (!SWIG_IsOK(res6)(res6 >= 0)) {
10348 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GModelSky_mc" "', argument " "6"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res6 != (
-1)) ? res6 : -5)), "in method '" "GModelSky_mc" "', argument "
"6"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
10349 }
10350 if (!argp6) {
10351 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSky_mc" "', argument " "6"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSky_mc" "', argument " "6"" of type '" "GEnergy const &"
"'"); goto fail; } while(0)
;
10352 }
10353 arg6 = reinterpret_cast< GEnergy * >(argp6);
10354 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj6, &argp7, swig_types[46]
, 0 | 0, 0)
;
10355 if (!SWIG_IsOK(res7)(res7 >= 0)) {
10356 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "GModelSky_mc" "', argument " "7"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res7 != (
-1)) ? res7 : -5)), "in method '" "GModelSky_mc" "', argument "
"7"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
10357 }
10358 if (!argp7) {
10359 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSky_mc" "', argument " "7"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSky_mc" "', argument " "7"" of type '" "GTime const &"
"'"); goto fail; } while(0)
;
10360 }
10361 arg7 = reinterpret_cast< GTime * >(argp7);
10362 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj7, &argp8, swig_types[46]
, 0 | 0, 0)
;
10363 if (!SWIG_IsOK(res8)(res8 >= 0)) {
10364 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "GModelSky_mc" "', argument " "8"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res8 != (
-1)) ? res8 : -5)), "in method '" "GModelSky_mc" "', argument "
"8"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
10365 }
10366 if (!argp8) {
10367 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSky_mc" "', argument " "8"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSky_mc" "', argument " "8"" of type '" "GTime const &"
"'"); goto fail; } while(0)
;
10368 }
10369 arg8 = reinterpret_cast< GTime * >(argp8);
10370 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_GRan, 0 )SWIG_Python_ConvertPtrAndOwn(obj8, &argp9, swig_types[42]
, 0, 0)
;
10371 if (!SWIG_IsOK(res9)(res9 >= 0)) {
10372 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "GModelSky_mc" "', argument " "9"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res9 != (
-1)) ? res9 : -5)), "in method '" "GModelSky_mc" "', argument "
"9"" of type '" "GRan &""'"); goto fail; } while(0)
;
10373 }
10374 if (!argp9) {
10375 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSky_mc" "', argument " "9"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSky_mc" "', argument " "9"" of type '" "GRan &"
"'"); goto fail; } while(0)
;
10376 }
10377 arg9 = reinterpret_cast< GRan * >(argp9);
10378 {
10379 try {
10380 result = ((GModelSky const *)arg1)->mc((double const &)*arg2,(GSkyDir const &)*arg3,(double const &)*arg4,(GEnergy const &)*arg5,(GEnergy const &)*arg6,(GTime const &)*arg7,(GTime const &)*arg8,*arg9);
10381 }
10382 catch (const GException::out_of_range& e) {
10383 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10384 }
10385 catch (const GExceptionHandler& e) {
10386 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10387 }
10388 catch (const std::exception& e) {
10389 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10390 }
10391 }
10392 resultobj = SWIG_NewPointerObj((new GPhotons(static_cast< const GPhotons& >(result))), SWIGTYPE_p_GPhotons, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GPhotons(static_cast<
const GPhotons& >(result))), swig_types[41], 0x1 | 0)
;
10393 return resultobj;
10394fail:
10395 return NULL__null;
10396}
10397
10398
10399SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GModelSky_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10400 PyObject *obj;
10401 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
10402 SWIG_TypeNewClientData(SWIGTYPE_p_GModelSkyswig_types[10], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
10403 return SWIG_Py_Void();
10404}
10405
10406SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GModelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10407 PyObject *resultobj = 0;
10408 GModelData *arg1 = (GModelData *) 0 ;
10409 void *argp1 = 0 ;
10410 int res1 = 0 ;
10411 PyObject * obj0 = 0 ;
10412
10413 if (!PyArg_ParseTuple(args,(char *)"O:delete_GModelData",&obj0)) SWIG_failgoto fail;
10414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelData, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0x1 | 0, 0)
;
10415 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GModelData" "', argument " "1"" of type '" "GModelData *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GModelData" "', argument "
"1"" of type '" "GModelData *""'"); goto fail; } while(0)
;
10417 }
10418 arg1 = reinterpret_cast< GModelData * >(argp1);
10419 {
10420 try {
10421 delete arg1;
10422 }
10423 catch (const GException::out_of_range& e) {
10424 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10425 }
10426 catch (const GExceptionHandler& e) {
10427 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10428 }
10429 catch (const std::exception& e) {
10430 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10431 }
10432 }
10433 resultobj = SWIG_Py_Void();
10434 return resultobj;
10435fail:
10436 return NULL__null;
10437}
10438
10439
10440SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelData_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10441 PyObject *resultobj = 0;
10442 GModelData *arg1 = (GModelData *) 0 ;
10443 void *argp1 = 0 ;
10444 int res1 = 0 ;
10445 PyObject * obj0 = 0 ;
10446
10447 if (!PyArg_ParseTuple(args,(char *)"O:GModelData_clear",&obj0)) SWIG_failgoto fail;
10448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelData, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
10449 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelData_clear" "', argument " "1"" of type '" "GModelData *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelData_clear" "', argument "
"1"" of type '" "GModelData *""'"); goto fail; } while(0)
;
10451 }
10452 arg1 = reinterpret_cast< GModelData * >(argp1);
10453 {
10454 try {
10455 (arg1)->clear();
10456 }
10457 catch (const GException::out_of_range& e) {
10458 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10459 }
10460 catch (const GExceptionHandler& e) {
10461 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10462 }
10463 catch (const std::exception& e) {
10464 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10465 }
10466 }
10467 resultobj = SWIG_Py_Void();
10468 return resultobj;
10469fail:
10470 return NULL__null;
10471}
10472
10473
10474SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelData_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10475 PyObject *resultobj = 0;
10476 GModelData *arg1 = (GModelData *) 0 ;
10477 void *argp1 = 0 ;
10478 int res1 = 0 ;
10479 PyObject * obj0 = 0 ;
10480 GModelData *result = 0 ;
10481
10482 if (!PyArg_ParseTuple(args,(char *)"O:GModelData_clone",&obj0)) SWIG_failgoto fail;
10483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelData, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
10484 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelData_clone" "', argument " "1"" of type '" "GModelData const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelData_clone" "', argument "
"1"" of type '" "GModelData const *""'"); goto fail; } while
(0)
;
10486 }
10487 arg1 = reinterpret_cast< GModelData * >(argp1);
10488 {
10489 try {
10490 result = (GModelData *)((GModelData const *)arg1)->clone();
10491 }
10492 catch (const GException::out_of_range& e) {
10493 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10494 }
10495 catch (const GExceptionHandler& e) {
10496 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10497 }
10498 catch (const std::exception& e) {
10499 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10500 }
10501 }
10502 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelData, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
10503 return resultobj;
10504fail:
10505 return NULL__null;
10506}
10507
10508
10509SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelData_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10510 PyObject *resultobj = 0;
10511 GModelData *arg1 = (GModelData *) 0 ;
10512 void *argp1 = 0 ;
10513 int res1 = 0 ;
10514 PyObject * obj0 = 0 ;
10515 std::string result;
10516
10517 if (!PyArg_ParseTuple(args,(char *)"O:GModelData_type",&obj0)) SWIG_failgoto fail;
10518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelData, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
10519 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelData_type" "', argument " "1"" of type '" "GModelData const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelData_type" "', argument "
"1"" of type '" "GModelData const *""'"); goto fail; } while
(0)
;
10521 }
10522 arg1 = reinterpret_cast< GModelData * >(argp1);
10523 {
10524 try {
10525 result = ((GModelData const *)arg1)->type();
10526 }
10527 catch (const GException::out_of_range& e) {
10528 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10529 }
10530 catch (const GExceptionHandler& e) {
10531 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10532 }
10533 catch (const std::exception& e) {
10534 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10535 }
10536 }
10537 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
10538 return resultobj;
10539fail:
10540 return NULL__null;
10541}
10542
10543
10544SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelData_isconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10545 PyObject *resultobj = 0;
10546 GModelData *arg1 = (GModelData *) 0 ;
10547 void *argp1 = 0 ;
10548 int res1 = 0 ;
10549 PyObject * obj0 = 0 ;
10550 bool result;
10551
10552 if (!PyArg_ParseTuple(args,(char *)"O:GModelData_isconstant",&obj0)) SWIG_failgoto fail;
10553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelData, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
10554 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelData_isconstant" "', argument " "1"" of type '" "GModelData const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelData_isconstant" "', argument "
"1"" of type '" "GModelData const *""'"); goto fail; } while
(0)
;
10556 }
10557 arg1 = reinterpret_cast< GModelData * >(argp1);
10558 {
10559 try {
10560 result = (bool)((GModelData const *)arg1)->isconstant();
10561 }
10562 catch (const GException::out_of_range& e) {
10563 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10564 }
10565 catch (const GExceptionHandler& e) {
10566 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10567 }
10568 catch (const std::exception& e) {
10569 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10570 }
10571 }
10572 resultobj = SWIG_From_bool(static_cast< bool >(result));
10573 return resultobj;
10574fail:
10575 return NULL__null;
10576}
10577
10578
10579SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelData_eval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10580 PyObject *resultobj = 0;
10581 GModelData *arg1 = (GModelData *) 0 ;
10582 GEvent *arg2 = 0 ;
10583 GObservation *arg3 = 0 ;
10584 void *argp1 = 0 ;
10585 int res1 = 0 ;
10586 void *argp2 = 0 ;
10587 int res2 = 0 ;
10588 void *argp3 = 0 ;
10589 int res3 = 0 ;
10590 PyObject * obj0 = 0 ;
10591 PyObject * obj1 = 0 ;
10592 PyObject * obj2 = 0 ;
10593 double result;
10594
10595 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelData_eval",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
10596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelData, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
10597 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelData_eval" "', argument " "1"" of type '" "GModelData const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelData_eval" "', argument "
"1"" of type '" "GModelData const *""'"); goto fail; } while
(0)
;
10599 }
10600 arg1 = reinterpret_cast< GModelData * >(argp1);
10601 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEvent, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[4],
0 | 0, 0)
;
10602 if (!SWIG_IsOK(res2)(res2 >= 0)) {
10603 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelData_eval" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelData_eval" "', argument "
"2"" of type '" "GEvent const &""'"); goto fail; } while
(0)
;
10604 }
10605 if (!argp2) {
10606 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelData_eval" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelData_eval" "', argument " "2"" of type '"
"GEvent const &""'"); goto fail; } while(0)
;
10607 }
10608 arg2 = reinterpret_cast< GEvent * >(argp2);
10609 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[37]
, 0 | 0, 0)
;
10610 if (!SWIG_IsOK(res3)(res3 >= 0)) {
10611 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelData_eval" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelData_eval" "', argument "
"3"" of type '" "GObservation const &""'"); goto fail; }
while(0)
;
10612 }
10613 if (!argp3) {
10614 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelData_eval" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelData_eval" "', argument " "3"" of type '"
"GObservation const &""'"); goto fail; } while(0)
;
10615 }
10616 arg3 = reinterpret_cast< GObservation * >(argp3);
10617 {
10618 try {
10619 result = (double)((GModelData const *)arg1)->eval((GEvent const &)*arg2,(GObservation const &)*arg3);
10620 }
10621 catch (const GException::out_of_range& e) {
10622 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10623 }
10624 catch (const GExceptionHandler& e) {
10625 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10626 }
10627 catch (const std::exception& e) {
10628 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10629 }
10630 }
10631 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
10632 return resultobj;
10633fail:
10634 return NULL__null;
10635}
10636
10637
10638SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelData_eval_gradients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10639 PyObject *resultobj = 0;
10640 GModelData *arg1 = (GModelData *) 0 ;
10641 GEvent *arg2 = 0 ;
10642 GObservation *arg3 = 0 ;
10643 void *argp1 = 0 ;
10644 int res1 = 0 ;
10645 void *argp2 = 0 ;
10646 int res2 = 0 ;
10647 void *argp3 = 0 ;
10648 int res3 = 0 ;
10649 PyObject * obj0 = 0 ;
10650 PyObject * obj1 = 0 ;
10651 PyObject * obj2 = 0 ;
10652 double result;
10653
10654 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelData_eval_gradients",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
10655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelData, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
10656 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelData_eval_gradients" "', argument " "1"" of type '" "GModelData const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelData_eval_gradients"
"', argument " "1"" of type '" "GModelData const *""'"); goto
fail; } while(0)
;
10658 }
10659 arg1 = reinterpret_cast< GModelData * >(argp1);
10660 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEvent, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[4],
0 | 0, 0)
;
10661 if (!SWIG_IsOK(res2)(res2 >= 0)) {
10662 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelData_eval_gradients" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelData_eval_gradients"
"', argument " "2"" of type '" "GEvent const &""'"); goto
fail; } while(0)
;
10663 }
10664 if (!argp2) {
10665 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelData_eval_gradients" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelData_eval_gradients" "', argument " "2"
" of type '" "GEvent const &""'"); goto fail; } while(0)
;
10666 }
10667 arg2 = reinterpret_cast< GEvent * >(argp2);
10668 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[37]
, 0 | 0, 0)
;
10669 if (!SWIG_IsOK(res3)(res3 >= 0)) {
10670 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelData_eval_gradients" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelData_eval_gradients"
"', argument " "3"" of type '" "GObservation const &""'"
); goto fail; } while(0)
;
10671 }
10672 if (!argp3) {
10673 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelData_eval_gradients" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelData_eval_gradients" "', argument " "3"
" of type '" "GObservation const &""'"); goto fail; } while
(0)
;
10674 }
10675 arg3 = reinterpret_cast< GObservation * >(argp3);
10676 {
10677 try {
10678 result = (double)((GModelData const *)arg1)->eval_gradients((GEvent const &)*arg2,(GObservation const &)*arg3);
10679 }
10680 catch (const GException::out_of_range& e) {
10681 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10682 }
10683 catch (const GExceptionHandler& e) {
10684 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10685 }
10686 catch (const std::exception& e) {
10687 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10688 }
10689 }
10690 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
10691 return resultobj;
10692fail:
10693 return NULL__null;
10694}
10695
10696
10697SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelData_npred(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10698 PyObject *resultobj = 0;
10699 GModelData *arg1 = (GModelData *) 0 ;
10700 GEnergy *arg2 = 0 ;
10701 GTime *arg3 = 0 ;
10702 GObservation *arg4 = 0 ;
10703 void *argp1 = 0 ;
10704 int res1 = 0 ;
10705 void *argp2 = 0 ;
10706 int res2 = 0 ;
10707 void *argp3 = 0 ;
10708 int res3 = 0 ;
10709 void *argp4 = 0 ;
10710 int res4 = 0 ;
10711 PyObject * obj0 = 0 ;
10712 PyObject * obj1 = 0 ;
10713 PyObject * obj2 = 0 ;
10714 PyObject * obj3 = 0 ;
10715 double result;
10716
10717 if (!PyArg_ParseTuple(args,(char *)"OOOO:GModelData_npred",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
10718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelData, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
10719 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelData_npred" "', argument " "1"" of type '" "GModelData const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelData_npred" "', argument "
"1"" of type '" "GModelData const *""'"); goto fail; } while
(0)
;
10721 }
10722 arg1 = reinterpret_cast< GModelData * >(argp1);
10723 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
10724 if (!SWIG_IsOK(res2)(res2 >= 0)) {
10725 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelData_npred" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelData_npred" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
10726 }
10727 if (!argp2) {
10728 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelData_npred" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelData_npred" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
10729 }
10730 arg2 = reinterpret_cast< GEnergy * >(argp2);
10731 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[46]
, 0 | 0, 0)
;
10732 if (!SWIG_IsOK(res3)(res3 >= 0)) {
10733 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelData_npred" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelData_npred" "', argument "
"3"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
10734 }
10735 if (!argp3) {
10736 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelData_npred" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelData_npred" "', argument " "3"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
10737 }
10738 arg3 = reinterpret_cast< GTime * >(argp3);
10739 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[37]
, 0 | 0, 0)
;
10740 if (!SWIG_IsOK(res4)(res4 >= 0)) {
10741 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelData_npred" "', argument " "4"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelData_npred" "', argument "
"4"" of type '" "GObservation const &""'"); goto fail; }
while(0)
;
10742 }
10743 if (!argp4) {
10744 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelData_npred" "', argument " "4"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelData_npred" "', argument " "4"" of type '"
"GObservation const &""'"); goto fail; } while(0)
;
10745 }
10746 arg4 = reinterpret_cast< GObservation * >(argp4);
10747 {
10748 try {
10749 result = (double)((GModelData const *)arg1)->npred((GEnergy const &)*arg2,(GTime const &)*arg3,(GObservation const &)*arg4);
10750 }
10751 catch (const GException::out_of_range& e) {
10752 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10753 }
10754 catch (const GExceptionHandler& e) {
10755 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10756 }
10757 catch (const std::exception& e) {
10758 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10759 }
10760 }
10761 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
10762 return resultobj;
10763fail:
10764 return NULL__null;
10765}
10766
10767
10768SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelData_mc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10769 PyObject *resultobj = 0;
10770 GModelData *arg1 = (GModelData *) 0 ;
10771 GObservation *arg2 = 0 ;
10772 GRan *arg3 = 0 ;
10773 void *argp1 = 0 ;
10774 int res1 = 0 ;
10775 void *argp2 = 0 ;
10776 int res2 = 0 ;
10777 void *argp3 = 0 ;
10778 int res3 = 0 ;
10779 PyObject * obj0 = 0 ;
10780 PyObject * obj1 = 0 ;
10781 PyObject * obj2 = 0 ;
10782 GEvents *result = 0 ;
10783
10784 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelData_mc",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
10785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelData, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
10786 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelData_mc" "', argument " "1"" of type '" "GModelData const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelData_mc" "', argument "
"1"" of type '" "GModelData const *""'"); goto fail; } while
(0)
;
10788 }
10789 arg1 = reinterpret_cast< GModelData * >(argp1);
10790 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[37]
, 0 | 0, 0)
;
10791 if (!SWIG_IsOK(res2)(res2 >= 0)) {
10792 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelData_mc" "', argument " "2"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelData_mc" "', argument "
"2"" of type '" "GObservation const &""'"); goto fail; }
while(0)
;
10793 }
10794 if (!argp2) {
10795 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelData_mc" "', argument " "2"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelData_mc" "', argument " "2"" of type '"
"GObservation const &""'"); goto fail; } while(0)
;
10796 }
10797 arg2 = reinterpret_cast< GObservation * >(argp2);
10798 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GRan, 0 )SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[42]
, 0, 0)
;
10799 if (!SWIG_IsOK(res3)(res3 >= 0)) {
10800 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelData_mc" "', argument " "3"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelData_mc" "', argument "
"3"" of type '" "GRan &""'"); goto fail; } while(0)
;
10801 }
10802 if (!argp3) {
10803 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelData_mc" "', argument " "3"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelData_mc" "', argument " "3"" of type '"
"GRan &""'"); goto fail; } while(0)
;
10804 }
10805 arg3 = reinterpret_cast< GRan * >(argp3);
10806 {
10807 try {
10808 result = (GEvents *)((GModelData const *)arg1)->mc((GObservation const &)*arg2,*arg3);
10809 }
10810 catch (const GException::out_of_range& e) {
10811 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10812 }
10813 catch (const GExceptionHandler& e) {
10814 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10815 }
10816 catch (const std::exception& e) {
10817 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10818 }
10819 }
10820 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEvents, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], 0 |
0)
;
10821 return resultobj;
10822fail:
10823 return NULL__null;
10824}
10825
10826
10827SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelData_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10828 PyObject *resultobj = 0;
10829 GModelData *arg1 = (GModelData *) 0 ;
10830 GXmlElement *arg2 = 0 ;
10831 void *argp1 = 0 ;
10832 int res1 = 0 ;
10833 void *argp2 = 0 ;
10834 int res2 = 0 ;
10835 PyObject * obj0 = 0 ;
10836 PyObject * obj1 = 0 ;
10837
10838 if (!PyArg_ParseTuple(args,(char *)"OO:GModelData_read",&obj0,&obj1)) SWIG_failgoto fail;
10839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelData, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
10840 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelData_read" "', argument " "1"" of type '" "GModelData *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelData_read" "', argument "
"1"" of type '" "GModelData *""'"); goto fail; } while(0)
;
10842 }
10843 arg1 = reinterpret_cast< GModelData * >(argp1);
10844 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0 | 0, 0)
;
10845 if (!SWIG_IsOK(res2)(res2 >= 0)) {
10846 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelData_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelData_read" "', argument "
"2"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
10847 }
10848 if (!argp2) {
10849 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelData_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelData_read" "', argument " "2"" of type '"
"GXmlElement const &""'"); goto fail; } while(0)
;
10850 }
10851 arg2 = reinterpret_cast< GXmlElement * >(argp2);
10852 {
10853 try {
10854 (arg1)->read((GXmlElement const &)*arg2);
10855 }
10856 catch (const GException::out_of_range& e) {
10857 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10858 }
10859 catch (const GExceptionHandler& e) {
10860 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10861 }
10862 catch (const std::exception& e) {
10863 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10864 }
10865 }
10866 resultobj = SWIG_Py_Void();
10867 return resultobj;
10868fail:
10869 return NULL__null;
10870}
10871
10872
10873SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelData_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10874 PyObject *resultobj = 0;
10875 GModelData *arg1 = (GModelData *) 0 ;
10876 GXmlElement *arg2 = 0 ;
10877 void *argp1 = 0 ;
10878 int res1 = 0 ;
10879 void *argp2 = 0 ;
10880 int res2 = 0 ;
10881 PyObject * obj0 = 0 ;
10882 PyObject * obj1 = 0 ;
10883
10884 if (!PyArg_ParseTuple(args,(char *)"OO:GModelData_write",&obj0,&obj1)) SWIG_failgoto fail;
10885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelData, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
10886 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelData_write" "', argument " "1"" of type '" "GModelData const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelData_write" "', argument "
"1"" of type '" "GModelData const *""'"); goto fail; } while
(0)
;
10888 }
10889 arg1 = reinterpret_cast< GModelData * >(argp1);
10890 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0, 0)
;
10891 if (!SWIG_IsOK(res2)(res2 >= 0)) {
10892 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelData_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelData_write" "', argument "
"2"" of type '" "GXmlElement &""'"); goto fail; } while(
0)
;
10893 }
10894 if (!argp2) {
10895 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelData_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelData_write" "', argument " "2"" of type '"
"GXmlElement &""'"); goto fail; } while(0)
;
10896 }
10897 arg2 = reinterpret_cast< GXmlElement * >(argp2);
10898 {
10899 try {
10900 ((GModelData const *)arg1)->write(*arg2);
10901 }
10902 catch (const GException::out_of_range& e) {
10903 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10904 }
10905 catch (const GExceptionHandler& e) {
10906 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10907 }
10908 catch (const std::exception& e) {
10909 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10910 }
10911 }
10912 resultobj = SWIG_Py_Void();
10913 return resultobj;
10914fail:
10915 return NULL__null;
10916}
10917
10918
10919SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GModelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10920 PyObject *obj;
10921 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
10922 SWIG_TypeNewClientData(SWIGTYPE_p_GModelDataswig_types[7], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
10923 return SWIG_Py_Void();
10924}
10925
10926SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GModelSpatial(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10927 PyObject *resultobj = 0;
10928 GModelSpatial *arg1 = (GModelSpatial *) 0 ;
10929 void *argp1 = 0 ;
10930 int res1 = 0 ;
10931 PyObject * obj0 = 0 ;
10932
10933 if (!PyArg_ParseTuple(args,(char *)"O:delete_GModelSpatial",&obj0)) SWIG_failgoto fail;
10934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatial, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0x1 | 0, 0)
;
10935 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GModelSpatial" "', argument " "1"" of type '" "GModelSpatial *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GModelSpatial" "', argument "
"1"" of type '" "GModelSpatial *""'"); goto fail; } while(0)
;
10937 }
10938 arg1 = reinterpret_cast< GModelSpatial * >(argp1);
10939 {
10940 try {
10941 delete arg1;
10942 }
10943 catch (const GException::out_of_range& e) {
10944 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10945 }
10946 catch (const GExceptionHandler& e) {
10947 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10948 }
10949 catch (const std::exception& e) {
10950 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10951 }
10952 }
10953 resultobj = SWIG_Py_Void();
10954 return resultobj;
10955fail:
10956 return NULL__null;
10957}
10958
10959
10960SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatial_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10961 PyObject *resultobj = 0;
10962 GModelSpatial *arg1 = (GModelSpatial *) 0 ;
10963 void *argp1 = 0 ;
10964 int res1 = 0 ;
10965 PyObject * obj0 = 0 ;
10966
10967 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatial_clear",&obj0)) SWIG_failgoto fail;
10968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatial, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
10969 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatial_clear" "', argument " "1"" of type '" "GModelSpatial *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatial_clear" "', argument "
"1"" of type '" "GModelSpatial *""'"); goto fail; } while(0)
;
10971 }
10972 arg1 = reinterpret_cast< GModelSpatial * >(argp1);
10973 {
10974 try {
10975 (arg1)->clear();
10976 }
10977 catch (const GException::out_of_range& e) {
10978 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10979 }
10980 catch (const GExceptionHandler& e) {
10981 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10982 }
10983 catch (const std::exception& e) {
10984 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10985 }
10986 }
10987 resultobj = SWIG_Py_Void();
10988 return resultobj;
10989fail:
10990 return NULL__null;
10991}
10992
10993
10994SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatial_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10995 PyObject *resultobj = 0;
10996 GModelSpatial *arg1 = (GModelSpatial *) 0 ;
10997 void *argp1 = 0 ;
10998 int res1 = 0 ;
10999 PyObject * obj0 = 0 ;
11000 GModelSpatial *result = 0 ;
11001
11002 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatial_clone",&obj0)) SWIG_failgoto fail;
11003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatial, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
11004 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatial_clone" "', argument " "1"" of type '" "GModelSpatial const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatial_clone" "', argument "
"1"" of type '" "GModelSpatial const *""'"); goto fail; } while
(0)
;
11006 }
11007 arg1 = reinterpret_cast< GModelSpatial * >(argp1);
11008 {
11009 try {
11010 result = (GModelSpatial *)((GModelSpatial const *)arg1)->clone();
11011 }
11012 catch (const GException::out_of_range& e) {
11013 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11014 }
11015 catch (const GExceptionHandler& e) {
11016 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11017 }
11018 catch (const std::exception& e) {
11019 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11020 }
11021 }
11022 {
11023 if (dynamic_cast<GModelSpatialPointSource*>(result) != NULL__null) {
11024 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialPointSource, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[18], 0
| 0)
;
11025 }
11026 else if (dynamic_cast<GModelSpatialRadial*>(result) != NULL__null) {
11027 if (dynamic_cast<GModelSpatialRadialDisk*>(result) != NULL__null) {
11028 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialRadialDisk, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[20], 0
| 0)
;
11029 }
11030 else if (dynamic_cast<GModelSpatialRadialGauss*>(result) != NULL__null) {
11031 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialRadialGauss, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[21], 0
| 0)
;
11032 }
11033 else if (dynamic_cast<GModelSpatialRadialShell*>(result) != NULL__null) {
11034 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialRadialShell, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[22], 0
| 0)
;
11035 }
11036 else {
11037 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialRadial, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[19], 0
| 0)
;
11038 }
11039 }
11040 else if (dynamic_cast<GModelSpatialElliptical*>(result) != NULL__null) {
11041 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialElliptical, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[16], 0
| 0)
;
11042 }
11043 else if (dynamic_cast<GModelSpatialDiffuse*>(result) != NULL__null) {
11044 if (dynamic_cast<GModelSpatialDiffuseConst*>(result) != NULL__null) {
11045 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialDiffuseConst, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[13], 0
| 0)
;
11046 }
11047 else if (dynamic_cast<GModelSpatialDiffuseCube*>(result) != NULL__null) {
11048 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialDiffuseCube, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[14], 0
| 0)
;
11049 }
11050 else if (dynamic_cast<GModelSpatialDiffuseMap*>(result) != NULL__null) {
11051 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialDiffuseMap, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[15], 0
| 0)
;
11052 }
11053 else {
11054 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialDiffuse, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[12], 0
| 0)
;
11055 }
11056 }
11057 else {
11058 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatial, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[11], 0
| 0)
;
11059 }
11060 }
11061 return resultobj;
11062fail:
11063 return NULL__null;
11064}
11065
11066
11067SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatial_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11068 PyObject *resultobj = 0;
11069 GModelSpatial *arg1 = (GModelSpatial *) 0 ;
11070 void *argp1 = 0 ;
11071 int res1 = 0 ;
11072 PyObject * obj0 = 0 ;
11073 std::string result;
11074
11075 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatial_type",&obj0)) SWIG_failgoto fail;
11076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatial, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
11077 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatial_type" "', argument " "1"" of type '" "GModelSpatial const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatial_type" "', argument "
"1"" of type '" "GModelSpatial const *""'"); goto fail; } while
(0)
;
11079 }
11080 arg1 = reinterpret_cast< GModelSpatial * >(argp1);
11081 {
11082 try {
11083 result = ((GModelSpatial const *)arg1)->type();
11084 }
11085 catch (const GException::out_of_range& e) {
11086 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11087 }
11088 catch (const GExceptionHandler& e) {
11089 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11090 }
11091 catch (const std::exception& e) {
11092 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11093 }
11094 }
11095 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
11096 return resultobj;
11097fail:
11098 return NULL__null;
11099}
11100
11101
11102SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatial_eval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11103 PyObject *resultobj = 0;
11104 GModelSpatial *arg1 = (GModelSpatial *) 0 ;
11105 GPhoton *arg2 = 0 ;
11106 void *argp1 = 0 ;
11107 int res1 = 0 ;
11108 void *argp2 = 0 ;
11109 int res2 = 0 ;
11110 PyObject * obj0 = 0 ;
11111 PyObject * obj1 = 0 ;
11112 double result;
11113
11114 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatial_eval",&obj0,&obj1)) SWIG_failgoto fail;
11115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatial, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
11116 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatial_eval" "', argument " "1"" of type '" "GModelSpatial const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatial_eval" "', argument "
"1"" of type '" "GModelSpatial const *""'"); goto fail; } while
(0)
;
11118 }
11119 arg1 = reinterpret_cast< GModelSpatial * >(argp1);
11120 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[40]
, 0 | 0, 0)
;
11121 if (!SWIG_IsOK(res2)(res2 >= 0)) {
11122 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatial_eval" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatial_eval" "', argument "
"2"" of type '" "GPhoton const &""'"); goto fail; } while
(0)
;
11123 }
11124 if (!argp2) {
11125 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatial_eval" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatial_eval" "', argument " "2"" of type '"
"GPhoton const &""'"); goto fail; } while(0)
;
11126 }
11127 arg2 = reinterpret_cast< GPhoton * >(argp2);
11128 {
11129 try {
11130 result = (double)((GModelSpatial const *)arg1)->eval((GPhoton const &)*arg2);
11131 }
11132 catch (const GException::out_of_range& e) {
11133 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11134 }
11135 catch (const GExceptionHandler& e) {
11136 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11137 }
11138 catch (const std::exception& e) {
11139 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11140 }
11141 }
11142 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
11143 return resultobj;
11144fail:
11145 return NULL__null;
11146}
11147
11148
11149SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatial_eval_gradients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11150 PyObject *resultobj = 0;
11151 GModelSpatial *arg1 = (GModelSpatial *) 0 ;
11152 GPhoton *arg2 = 0 ;
11153 void *argp1 = 0 ;
11154 int res1 = 0 ;
11155 void *argp2 = 0 ;
11156 int res2 = 0 ;
11157 PyObject * obj0 = 0 ;
11158 PyObject * obj1 = 0 ;
11159 double result;
11160
11161 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatial_eval_gradients",&obj0,&obj1)) SWIG_failgoto fail;
11162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatial, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
11163 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatial_eval_gradients" "', argument " "1"" of type '" "GModelSpatial const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatial_eval_gradients"
"', argument " "1"" of type '" "GModelSpatial const *""'"); goto
fail; } while(0)
;
11165 }
11166 arg1 = reinterpret_cast< GModelSpatial * >(argp1);
11167 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[40]
, 0 | 0, 0)
;
11168 if (!SWIG_IsOK(res2)(res2 >= 0)) {
11169 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatial_eval_gradients" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatial_eval_gradients"
"', argument " "2"" of type '" "GPhoton const &""'"); goto
fail; } while(0)
;
11170 }
11171 if (!argp2) {
11172 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatial_eval_gradients" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatial_eval_gradients" "', argument " "2"
" of type '" "GPhoton const &""'"); goto fail; } while(0)
;
11173 }
11174 arg2 = reinterpret_cast< GPhoton * >(argp2);
11175 {
11176 try {
11177 result = (double)((GModelSpatial const *)arg1)->eval_gradients((GPhoton const &)*arg2);
11178 }
11179 catch (const GException::out_of_range& e) {
11180 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11181 }
11182 catch (const GExceptionHandler& e) {
11183 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11184 }
11185 catch (const std::exception& e) {
11186 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11187 }
11188 }
11189 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
11190 return resultobj;
11191fail:
11192 return NULL__null;
11193}
11194
11195
11196SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatial_mc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11197 PyObject *resultobj = 0;
11198 GModelSpatial *arg1 = (GModelSpatial *) 0 ;
11199 GEnergy *arg2 = 0 ;
11200 GTime *arg3 = 0 ;
11201 GRan *arg4 = 0 ;
11202 void *argp1 = 0 ;
11203 int res1 = 0 ;
11204 void *argp2 = 0 ;
11205 int res2 = 0 ;
11206 void *argp3 = 0 ;
11207 int res3 = 0 ;
11208 void *argp4 = 0 ;
11209 int res4 = 0 ;
11210 PyObject * obj0 = 0 ;
11211 PyObject * obj1 = 0 ;
11212 PyObject * obj2 = 0 ;
11213 PyObject * obj3 = 0 ;
11214 GSkyDir result;
11215
11216 if (!PyArg_ParseTuple(args,(char *)"OOOO:GModelSpatial_mc",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
11217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatial, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
11218 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatial_mc" "', argument " "1"" of type '" "GModelSpatial const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatial_mc" "', argument "
"1"" of type '" "GModelSpatial const *""'"); goto fail; } while
(0)
;
11220 }
11221 arg1 = reinterpret_cast< GModelSpatial * >(argp1);
11222 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
11223 if (!SWIG_IsOK(res2)(res2 >= 0)) {
11224 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatial_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatial_mc" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
11225 }
11226 if (!argp2) {
11227 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatial_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatial_mc" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
11228 }
11229 arg2 = reinterpret_cast< GEnergy * >(argp2);
11230 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[46]
, 0 | 0, 0)
;
11231 if (!SWIG_IsOK(res3)(res3 >= 0)) {
11232 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpatial_mc" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpatial_mc" "', argument "
"3"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
11233 }
11234 if (!argp3) {
11235 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatial_mc" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatial_mc" "', argument " "3"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
11236 }
11237 arg3 = reinterpret_cast< GTime * >(argp3);
11238 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GRan, 0 )SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[42]
, 0, 0)
;
11239 if (!SWIG_IsOK(res4)(res4 >= 0)) {
11240 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelSpatial_mc" "', argument " "4"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelSpatial_mc" "', argument "
"4"" of type '" "GRan &""'"); goto fail; } while(0)
;
11241 }
11242 if (!argp4) {
11243 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatial_mc" "', argument " "4"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatial_mc" "', argument " "4"" of type '"
"GRan &""'"); goto fail; } while(0)
;
11244 }
11245 arg4 = reinterpret_cast< GRan * >(argp4);
11246 {
11247 try {
11248 result = ((GModelSpatial const *)arg1)->mc((GEnergy const &)*arg2,(GTime const &)*arg3,*arg4);
11249 }
11250 catch (const GException::out_of_range& e) {
11251 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11252 }
11253 catch (const GExceptionHandler& e) {
11254 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11255 }
11256 catch (const std::exception& e) {
11257 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11258 }
11259 }
11260 resultobj = SWIG_NewPointerObj((new GSkyDir(static_cast< const GSkyDir& >(result))), SWIGTYPE_p_GSkyDir, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GSkyDir(static_cast<
const GSkyDir& >(result))), swig_types[44], 0x1 | 0)
;
11261 return resultobj;
11262fail:
11263 return NULL__null;
11264}
11265
11266
11267SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatial_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11268 PyObject *resultobj = 0;
11269 GModelSpatial *arg1 = (GModelSpatial *) 0 ;
11270 GXmlElement *arg2 = 0 ;
11271 void *argp1 = 0 ;
11272 int res1 = 0 ;
11273 void *argp2 = 0 ;
11274 int res2 = 0 ;
11275 PyObject * obj0 = 0 ;
11276 PyObject * obj1 = 0 ;
11277
11278 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatial_read",&obj0,&obj1)) SWIG_failgoto fail;
11279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatial, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
11280 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatial_read" "', argument " "1"" of type '" "GModelSpatial *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatial_read" "', argument "
"1"" of type '" "GModelSpatial *""'"); goto fail; } while(0)
;
11282 }
11283 arg1 = reinterpret_cast< GModelSpatial * >(argp1);
11284 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0 | 0, 0)
;
11285 if (!SWIG_IsOK(res2)(res2 >= 0)) {
11286 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatial_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatial_read" "', argument "
"2"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
11287 }
11288 if (!argp2) {
11289 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatial_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatial_read" "', argument " "2"" of type '"
"GXmlElement const &""'"); goto fail; } while(0)
;
11290 }
11291 arg2 = reinterpret_cast< GXmlElement * >(argp2);
11292 {
11293 try {
11294 (arg1)->read((GXmlElement const &)*arg2);
11295 }
11296 catch (const GException::out_of_range& e) {
11297 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11298 }
11299 catch (const GExceptionHandler& e) {
11300 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11301 }
11302 catch (const std::exception& e) {
11303 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11304 }
11305 }
11306 resultobj = SWIG_Py_Void();
11307 return resultobj;
11308fail:
11309 return NULL__null;
11310}
11311
11312
11313SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatial_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11314 PyObject *resultobj = 0;
11315 GModelSpatial *arg1 = (GModelSpatial *) 0 ;
11316 GXmlElement *arg2 = 0 ;
11317 void *argp1 = 0 ;
11318 int res1 = 0 ;
11319 void *argp2 = 0 ;
11320 int res2 = 0 ;
11321 PyObject * obj0 = 0 ;
11322 PyObject * obj1 = 0 ;
11323
11324 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatial_write",&obj0,&obj1)) SWIG_failgoto fail;
11325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatial, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
11326 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatial_write" "', argument " "1"" of type '" "GModelSpatial const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatial_write" "', argument "
"1"" of type '" "GModelSpatial const *""'"); goto fail; } while
(0)
;
11328 }
11329 arg1 = reinterpret_cast< GModelSpatial * >(argp1);
11330 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0, 0)
;
11331 if (!SWIG_IsOK(res2)(res2 >= 0)) {
11332 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatial_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatial_write" "', argument "
"2"" of type '" "GXmlElement &""'"); goto fail; } while(
0)
;
11333 }
11334 if (!argp2) {
11335 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatial_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatial_write" "', argument " "2"" of type '"
"GXmlElement &""'"); goto fail; } while(0)
;
11336 }
11337 arg2 = reinterpret_cast< GXmlElement * >(argp2);
11338 {
11339 try {
11340 ((GModelSpatial const *)arg1)->write(*arg2);
11341 }
11342 catch (const GException::out_of_range& e) {
11343 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11344 }
11345 catch (const GExceptionHandler& e) {
11346 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11347 }
11348 catch (const std::exception& e) {
11349 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11350 }
11351 }
11352 resultobj = SWIG_Py_Void();
11353 return resultobj;
11354fail:
11355 return NULL__null;
11356}
11357
11358
11359SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatial_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11360 PyObject *resultobj = 0;
11361 GModelSpatial *arg1 = (GModelSpatial *) 0 ;
11362 void *argp1 = 0 ;
11363 int res1 = 0 ;
11364 PyObject * obj0 = 0 ;
11365 int result;
11366
11367 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatial_size",&obj0)) SWIG_failgoto fail;
11368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatial, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
11369 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatial_size" "', argument " "1"" of type '" "GModelSpatial const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatial_size" "', argument "
"1"" of type '" "GModelSpatial const *""'"); goto fail; } while
(0)
;
11371 }
11372 arg1 = reinterpret_cast< GModelSpatial * >(argp1);
11373 {
11374 try {
11375 result = (int)((GModelSpatial const *)arg1)->size();
11376 }
11377 catch (const GException::out_of_range& e) {
11378 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11379 }
11380 catch (const GExceptionHandler& e) {
11381 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11382 }
11383 catch (const std::exception& e) {
11384 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11385 }
11386 }
11387 resultobj = SWIG_From_int(static_cast< int >(result));
11388 return resultobj;
11389fail:
11390 return NULL__null;
11391}
11392
11393
11394SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatial_autoscale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11395 PyObject *resultobj = 0;
11396 GModelSpatial *arg1 = (GModelSpatial *) 0 ;
11397 void *argp1 = 0 ;
11398 int res1 = 0 ;
11399 PyObject * obj0 = 0 ;
11400
11401 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatial_autoscale",&obj0)) SWIG_failgoto fail;
11402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatial, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
11403 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatial_autoscale" "', argument " "1"" of type '" "GModelSpatial *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatial_autoscale" "', argument "
"1"" of type '" "GModelSpatial *""'"); goto fail; } while(0)
;
11405 }
11406 arg1 = reinterpret_cast< GModelSpatial * >(argp1);
11407 {
11408 try {
11409 (arg1)->autoscale();
11410 }
11411 catch (const GException::out_of_range& e) {
11412 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11413 }
11414 catch (const GExceptionHandler& e) {
11415 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11416 }
11417 catch (const std::exception& e) {
11418 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11419 }
11420 }
11421 resultobj = SWIG_Py_Void();
11422 return resultobj;
11423fail:
11424 return NULL__null;
11425}
11426
11427
11428SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatial___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11429 PyObject *resultobj = 0;
11430 GModelSpatial *arg1 = (GModelSpatial *) 0 ;
11431 int *arg2 = 0 ;
11432 void *argp1 = 0 ;
11433 int res1 = 0 ;
11434 int temp2 ;
11435 int val2 ;
11436 int ecode2 = 0 ;
11437 PyObject * obj0 = 0 ;
11438 PyObject * obj1 = 0 ;
11439 GModelPar *result = 0 ;
11440
11441 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatial___getitem__",&obj0,&obj1)) SWIG_failgoto fail;
11442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatial, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
11443 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatial___getitem__" "', argument " "1"" of type '" "GModelSpatial *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatial___getitem__"
"', argument " "1"" of type '" "GModelSpatial *""'"); goto fail
; } while(0)
;
11445 }
11446 arg1 = reinterpret_cast< GModelSpatial * >(argp1);
11447 ecode2 = SWIG_AsVal_int(obj1, &val2);
11448 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
11449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpatial___getitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpatial___getitem__"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
11450 }
11451 temp2 = static_cast< int >(val2);
11452 arg2 = &temp2;
11453 {
11454 try {
11455 result = (GModelPar *) &GModelSpatial___getitem____SWIG_0(arg1,(int const &)*arg2);
11456 }
11457 catch (const GException::out_of_range& e) {
11458 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11459 }
11460 catch (const GExceptionHandler& e) {
11461 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11462 }
11463 catch (const std::exception& e) {
11464 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11465 }
11466 }
11467 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelPar, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], 0 |
0)
;
11468 return resultobj;
11469fail:
11470 return NULL__null;
11471}
11472
11473
11474SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatial___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11475 PyObject *resultobj = 0;
11476 GModelSpatial *arg1 = (GModelSpatial *) 0 ;
11477 std::string *arg2 = 0 ;
11478 void *argp1 = 0 ;
11479 int res1 = 0 ;
11480 int res2 = SWIG_OLDOBJ((0)) ;
11481 PyObject * obj0 = 0 ;
11482 PyObject * obj1 = 0 ;
11483 GModelPar *result = 0 ;
11484
11485 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatial___getitem__",&obj0,&obj1)) SWIG_failgoto fail;
11486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatial, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
11487 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatial___getitem__" "', argument " "1"" of type '" "GModelSpatial *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatial___getitem__"
"', argument " "1"" of type '" "GModelSpatial *""'"); goto fail
; } while(0)
;
11489 }
11490 arg1 = reinterpret_cast< GModelSpatial * >(argp1);
11491 {
11492 std::string *ptr = (std::string *)0;
11493 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
11494 if (!SWIG_IsOK(res2)(res2 >= 0)) {
11495 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatial___getitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatial___getitem__"
"', argument " "2"" of type '" "std::string const &""'")
; goto fail; } while(0)
;
11496 }
11497 if (!ptr) {
11498 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatial___getitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatial___getitem__" "', argument " "2"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
11499 }
11500 arg2 = ptr;
11501 }
11502 {
11503 try {
11504 result = (GModelPar *) &GModelSpatial___getitem____SWIG_1(arg1,(std::string const &)*arg2);
11505 }
11506 catch (const GException::out_of_range& e) {
11507 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11508 }
11509 catch (const GExceptionHandler& e) {
11510 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11511 }
11512 catch (const std::exception& e) {
11513 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11514 }
11515 }
11516 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelPar, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], 0 |
0)
;
11517 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
11518 return resultobj;
11519fail:
11520 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
11521 return NULL__null;
11522}
11523
11524
11525SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatial___getitem__(PyObject *self, PyObject *args) {
11526 int argc;
11527 PyObject *argv[3];
11528 int ii;
11529
11530 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
11531 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
11532 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
11533 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
11534 }
11535 if (argc == 2) {
11536 int _v;
11537 void *vptr = 0;
11538 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatial, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11
], 0, 0)
;
11539 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11540 if (_v) {
11541 {
11542 int res = SWIG_AsVal_int(argv[1], NULL__null);
11543 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11544 }
11545 if (_v) {
11546 return _wrap_GModelSpatial___getitem____SWIG_0(self, args);
11547 }
11548 }
11549 }
11550 if (argc == 2) {
11551 int _v;
11552 void *vptr = 0;
11553 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatial, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11
], 0, 0)
;
11554 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11555 if (_v) {
11556 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
11557 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11558 if (_v) {
11559 return _wrap_GModelSpatial___getitem____SWIG_1(self, args);
11560 }
11561 }
11562 }
11563
11564fail:
11565 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatial___getitem__'.\n"
11566 " Possible C/C++ prototypes are:\n"
11567 " GModelSpatial::__getitem__(int const &)\n"
11568 " GModelSpatial::__getitem__(std::string const &)\n");
11569 return 0;
11570}
11571
11572
11573SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatial___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11574 PyObject *resultobj = 0;
11575 GModelSpatial *arg1 = (GModelSpatial *) 0 ;
11576 int *arg2 = 0 ;
11577 GModelPar *arg3 = 0 ;
11578 void *argp1 = 0 ;
11579 int res1 = 0 ;
11580 int temp2 ;
11581 int val2 ;
11582 int ecode2 = 0 ;
11583 void *argp3 = 0 ;
11584 int res3 = 0 ;
11585 PyObject * obj0 = 0 ;
11586 PyObject * obj1 = 0 ;
11587 PyObject * obj2 = 0 ;
11588
11589 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpatial___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
11590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatial, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
11591 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatial___setitem__" "', argument " "1"" of type '" "GModelSpatial *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatial___setitem__"
"', argument " "1"" of type '" "GModelSpatial *""'"); goto fail
; } while(0)
;
11593 }
11594 arg1 = reinterpret_cast< GModelSpatial * >(argp1);
11595 ecode2 = SWIG_AsVal_int(obj1, &val2);
11596 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
11597 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpatial___setitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpatial___setitem__"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
11598 }
11599 temp2 = static_cast< int >(val2);
11600 arg2 = &temp2;
11601 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GModelPar, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[8],
0 | 0, 0)
;
11602 if (!SWIG_IsOK(res3)(res3 >= 0)) {
11603 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpatial___setitem__" "', argument " "3"" of type '" "GModelPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpatial___setitem__"
"', argument " "3"" of type '" "GModelPar const &""'"); goto
fail; } while(0)
;
11604 }
11605 if (!argp3) {
11606 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatial___setitem__" "', argument " "3"" of type '" "GModelPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatial___setitem__" "', argument " "3"
" of type '" "GModelPar const &""'"); goto fail; } while(
0)
;
11607 }
11608 arg3 = reinterpret_cast< GModelPar * >(argp3);
11609 {
11610 try {
11611 GModelSpatial___setitem____SWIG_0(arg1,(int const &)*arg2,(GModelPar const &)*arg3);
11612 }
11613 catch (const GException::out_of_range& e) {
11614 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11615 }
11616 catch (const GExceptionHandler& e) {
11617 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11618 }
11619 catch (const std::exception& e) {
11620 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11621 }
11622 }
11623 resultobj = SWIG_Py_Void();
11624 return resultobj;
11625fail:
11626 return NULL__null;
11627}
11628
11629
11630SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatial___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11631 PyObject *resultobj = 0;
11632 GModelSpatial *arg1 = (GModelSpatial *) 0 ;
11633 std::string *arg2 = 0 ;
11634 GModelPar *arg3 = 0 ;
11635 void *argp1 = 0 ;
11636 int res1 = 0 ;
11637 int res2 = SWIG_OLDOBJ((0)) ;
11638 void *argp3 = 0 ;
11639 int res3 = 0 ;
11640 PyObject * obj0 = 0 ;
11641 PyObject * obj1 = 0 ;
11642 PyObject * obj2 = 0 ;
11643
11644 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpatial___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
11645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatial, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
11646 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatial___setitem__" "', argument " "1"" of type '" "GModelSpatial *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatial___setitem__"
"', argument " "1"" of type '" "GModelSpatial *""'"); goto fail
; } while(0)
;
11648 }
11649 arg1 = reinterpret_cast< GModelSpatial * >(argp1);
11650 {
11651 std::string *ptr = (std::string *)0;
11652 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
11653 if (!SWIG_IsOK(res2)(res2 >= 0)) {
11654 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatial___setitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatial___setitem__"
"', argument " "2"" of type '" "std::string const &""'")
; goto fail; } while(0)
;
11655 }
11656 if (!ptr) {
11657 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatial___setitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatial___setitem__" "', argument " "2"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
11658 }
11659 arg2 = ptr;
11660 }
11661 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GModelPar, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[8],
0 | 0, 0)
;
11662 if (!SWIG_IsOK(res3)(res3 >= 0)) {
11663 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpatial___setitem__" "', argument " "3"" of type '" "GModelPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpatial___setitem__"
"', argument " "3"" of type '" "GModelPar const &""'"); goto
fail; } while(0)
;
11664 }
11665 if (!argp3) {
11666 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatial___setitem__" "', argument " "3"" of type '" "GModelPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatial___setitem__" "', argument " "3"
" of type '" "GModelPar const &""'"); goto fail; } while(
0)
;
11667 }
11668 arg3 = reinterpret_cast< GModelPar * >(argp3);
11669 {
11670 try {
11671 GModelSpatial___setitem____SWIG_1(arg1,(std::string const &)*arg2,(GModelPar const &)*arg3);
11672 }
11673 catch (const GException::out_of_range& e) {
11674 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11675 }
11676 catch (const GExceptionHandler& e) {
11677 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11678 }
11679 catch (const std::exception& e) {
11680 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11681 }
11682 }
11683 resultobj = SWIG_Py_Void();
11684 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
11685 return resultobj;
11686fail:
11687 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
11688 return NULL__null;
11689}
11690
11691
11692SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatial___setitem__(PyObject *self, PyObject *args) {
11693 int argc;
11694 PyObject *argv[4];
11695 int ii;
11696
11697 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
11698 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
11699 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
11700 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
11701 }
11702 if (argc == 3) {
11703 int _v;
11704 void *vptr = 0;
11705 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatial, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11
], 0, 0)
;
11706 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11707 if (_v) {
11708 {
11709 int res = SWIG_AsVal_int(argv[1], NULL__null);
11710 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11711 }
11712 if (_v) {
11713 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GModelPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[8], 0, 0);
11714 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11715 if (_v) {
11716 return _wrap_GModelSpatial___setitem____SWIG_0(self, args);
11717 }
11718 }
11719 }
11720 }
11721 if (argc == 3) {
11722 int _v;
11723 void *vptr = 0;
11724 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatial, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11
], 0, 0)
;
11725 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11726 if (_v) {
11727 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
11728 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11729 if (_v) {
11730 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GModelPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[8], 0, 0);
11731 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11732 if (_v) {
11733 return _wrap_GModelSpatial___setitem____SWIG_1(self, args);
11734 }
11735 }
11736 }
11737 }
11738
11739fail:
11740 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatial___setitem__'.\n"
11741 " Possible C/C++ prototypes are:\n"
11742 " GModelSpatial::__setitem__(int const &,GModelPar const &)\n"
11743 " GModelSpatial::__setitem__(std::string const &,GModelPar const &)\n");
11744 return 0;
11745}
11746
11747
11748SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GModelSpatial_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11749 PyObject *obj;
11750 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
11751 SWIG_TypeNewClientData(SWIGTYPE_p_GModelSpatialswig_types[11], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
11752 return SWIG_Py_Void();
11753}
11754
11755SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialRegistry__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11756 PyObject *resultobj = 0;
11757 GModelSpatialRegistry *result = 0 ;
11758
11759 if (!PyArg_ParseTuple(args,(char *)":new_GModelSpatialRegistry")) SWIG_failgoto fail;
11760 {
11761 try {
11762 result = (GModelSpatialRegistry *)new GModelSpatialRegistry();
11763 }
11764 catch (const GException::out_of_range& e) {
11765 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11766 }
11767 catch (const GExceptionHandler& e) {
11768 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11769 }
11770 catch (const std::exception& e) {
11771 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11772 }
11773 }
11774 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialRegistry, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[23], (
(0x1 << 1) | 0x1) | 0)
;
11775 return resultobj;
11776fail:
11777 return NULL__null;
11778}
11779
11780
11781SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialRegistry__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11782 PyObject *resultobj = 0;
11783 GModelSpatial *arg1 = (GModelSpatial *) 0 ;
11784 void *argp1 = 0 ;
11785 int res1 = 0 ;
11786 PyObject * obj0 = 0 ;
11787 GModelSpatialRegistry *result = 0 ;
11788
11789 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpatialRegistry",&obj0)) SWIG_failgoto fail;
11790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatial, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
11791 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpatialRegistry" "', argument " "1"" of type '" "GModelSpatial const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpatialRegistry"
"', argument " "1"" of type '" "GModelSpatial const *""'"); goto
fail; } while(0)
;
11793 }
11794 arg1 = reinterpret_cast< GModelSpatial * >(argp1);
11795 {
11796 try {
11797 result = (GModelSpatialRegistry *)new GModelSpatialRegistry((GModelSpatial const *)arg1);
11798 }
11799 catch (const GException::out_of_range& e) {
11800 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11801 }
11802 catch (const GExceptionHandler& e) {
11803 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11804 }
11805 catch (const std::exception& e) {
11806 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11807 }
11808 }
11809 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialRegistry, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[23], (
(0x1 << 1) | 0x1) | 0)
;
11810 return resultobj;
11811fail:
11812 return NULL__null;
11813}
11814
11815
11816SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialRegistry__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11817 PyObject *resultobj = 0;
11818 GModelSpatialRegistry *arg1 = 0 ;
11819 void *argp1 = 0 ;
11820 int res1 = 0 ;
11821 PyObject * obj0 = 0 ;
11822 GModelSpatialRegistry *result = 0 ;
11823
11824 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpatialRegistry",&obj0)) SWIG_failgoto fail;
11825 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GModelSpatialRegistry, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[23]
, 0 | 0, 0)
;
11826 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpatialRegistry" "', argument " "1"" of type '" "GModelSpatialRegistry const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpatialRegistry"
"', argument " "1"" of type '" "GModelSpatialRegistry const &"
"'"); goto fail; } while(0)
;
11828 }
11829 if (!argp1) {
11830 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpatialRegistry" "', argument " "1"" of type '" "GModelSpatialRegistry const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpatialRegistry" "', argument " "1"
" of type '" "GModelSpatialRegistry const &""'"); goto fail
; } while(0)
;
11831 }
11832 arg1 = reinterpret_cast< GModelSpatialRegistry * >(argp1);
11833 {
11834 try {
11835 result = (GModelSpatialRegistry *)new GModelSpatialRegistry((GModelSpatialRegistry const &)*arg1);
11836 }
11837 catch (const GException::out_of_range& e) {
11838 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11839 }
11840 catch (const GExceptionHandler& e) {
11841 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11842 }
11843 catch (const std::exception& e) {
11844 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11845 }
11846 }
11847 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialRegistry, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[23], (
(0x1 << 1) | 0x1) | 0)
;
11848 return resultobj;
11849fail:
11850 return NULL__null;
11851}
11852
11853
11854SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialRegistry(PyObject *self, PyObject *args) {
11855 int argc;
11856 PyObject *argv[2];
11857 int ii;
11858
11859 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
11860 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
11861 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
11862 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
11863 }
11864 if (argc == 0) {
11865 return _wrap_new_GModelSpatialRegistry__SWIG_0(self, args);
11866 }
11867 if (argc == 1) {
11868 int _v;
11869 void *vptr = 0;
11870 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatial, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11
], 0, 0)
;
11871 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11872 if (_v) {
11873 return _wrap_new_GModelSpatialRegistry__SWIG_1(self, args);
11874 }
11875 }
11876 if (argc == 1) {
11877 int _v;
11878 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GModelSpatialRegistry, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[23], 0, 0
)
;
11879 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11880 if (_v) {
11881 return _wrap_new_GModelSpatialRegistry__SWIG_2(self, args);
11882 }
11883 }
11884
11885fail:
11886 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GModelSpatialRegistry'.\n"
11887 " Possible C/C++ prototypes are:\n"
11888 " GModelSpatialRegistry::GModelSpatialRegistry()\n"
11889 " GModelSpatialRegistry::GModelSpatialRegistry(GModelSpatial const *)\n"
11890 " GModelSpatialRegistry::GModelSpatialRegistry(GModelSpatialRegistry const &)\n");
11891 return 0;
11892}
11893
11894
11895SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GModelSpatialRegistry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11896 PyObject *resultobj = 0;
11897 GModelSpatialRegistry *arg1 = (GModelSpatialRegistry *) 0 ;
11898 void *argp1 = 0 ;
11899 int res1 = 0 ;
11900 PyObject * obj0 = 0 ;
11901
11902 if (!PyArg_ParseTuple(args,(char *)"O:delete_GModelSpatialRegistry",&obj0)) SWIG_failgoto fail;
11903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRegistry, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[23]
, 0x1 | 0, 0)
;
11904 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GModelSpatialRegistry" "', argument " "1"" of type '" "GModelSpatialRegistry *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GModelSpatialRegistry"
"', argument " "1"" of type '" "GModelSpatialRegistry *""'")
; goto fail; } while(0)
;
11906 }
11907 arg1 = reinterpret_cast< GModelSpatialRegistry * >(argp1);
11908 {
11909 try {
11910 delete arg1;
11911 }
11912 catch (const GException::out_of_range& e) {
11913 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11914 }
11915 catch (const GExceptionHandler& e) {
11916 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11917 }
11918 catch (const std::exception& e) {
11919 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11920 }
11921 }
11922 resultobj = SWIG_Py_Void();
11923 return resultobj;
11924fail:
11925 return NULL__null;
11926}
11927
11928
11929SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRegistry_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11930 PyObject *resultobj = 0;
11931 GModelSpatialRegistry *arg1 = (GModelSpatialRegistry *) 0 ;
11932 void *argp1 = 0 ;
11933 int res1 = 0 ;
11934 PyObject * obj0 = 0 ;
11935 int result;
11936
11937 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialRegistry_size",&obj0)) SWIG_failgoto fail;
11938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRegistry, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[23]
, 0 | 0, 0)
;
11939 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRegistry_size" "', argument " "1"" of type '" "GModelSpatialRegistry const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRegistry_size"
"', argument " "1"" of type '" "GModelSpatialRegistry const *"
"'"); goto fail; } while(0)
;
11941 }
11942 arg1 = reinterpret_cast< GModelSpatialRegistry * >(argp1);
11943 {
11944 try {
11945 result = (int)((GModelSpatialRegistry const *)arg1)->size();
11946 }
11947 catch (const GException::out_of_range& e) {
11948 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11949 }
11950 catch (const GExceptionHandler& e) {
11951 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11952 }
11953 catch (const std::exception& e) {
11954 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11955 }
11956 }
11957 resultobj = SWIG_From_int(static_cast< int >(result));
11958 return resultobj;
11959fail:
11960 return NULL__null;
11961}
11962
11963
11964SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRegistry_alloc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11965 PyObject *resultobj = 0;
11966 GModelSpatialRegistry *arg1 = (GModelSpatialRegistry *) 0 ;
11967 std::string *arg2 = 0 ;
11968 void *argp1 = 0 ;
11969 int res1 = 0 ;
11970 int res2 = SWIG_OLDOBJ((0)) ;
11971 PyObject * obj0 = 0 ;
11972 PyObject * obj1 = 0 ;
11973 GModelSpatial *result = 0 ;
11974
11975 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialRegistry_alloc",&obj0,&obj1)) SWIG_failgoto fail;
11976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRegistry, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[23]
, 0 | 0, 0)
;
11977 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRegistry_alloc" "', argument " "1"" of type '" "GModelSpatialRegistry const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRegistry_alloc"
"', argument " "1"" of type '" "GModelSpatialRegistry const *"
"'"); goto fail; } while(0)
;
11979 }
11980 arg1 = reinterpret_cast< GModelSpatialRegistry * >(argp1);
11981 {
11982 std::string *ptr = (std::string *)0;
11983 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
11984 if (!SWIG_IsOK(res2)(res2 >= 0)) {
11985 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialRegistry_alloc" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialRegistry_alloc"
"', argument " "2"" of type '" "std::string const &""'")
; goto fail; } while(0)
;
11986 }
11987 if (!ptr) {
11988 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRegistry_alloc" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRegistry_alloc" "', argument " "2"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
11989 }
11990 arg2 = ptr;
11991 }
11992 {
11993 try {
11994 result = (GModelSpatial *)((GModelSpatialRegistry const *)arg1)->alloc((std::string const &)*arg2);
11995 }
11996 catch (const GException::out_of_range& e) {
11997 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11998 }
11999 catch (const GExceptionHandler& e) {
12000 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12001 }
12002 catch (const std::exception& e) {
12003 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12004 }
12005 }
12006 {
12007 if (dynamic_cast<GModelSpatialPointSource*>(result) != NULL__null) {
12008 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialPointSource, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[18], 0
| 0)
;
12009 }
12010 else if (dynamic_cast<GModelSpatialRadial*>(result) != NULL__null) {
12011 if (dynamic_cast<GModelSpatialRadialDisk*>(result) != NULL__null) {
12012 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialRadialDisk, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[20], 0
| 0)
;
12013 }
12014 else if (dynamic_cast<GModelSpatialRadialGauss*>(result) != NULL__null) {
12015 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialRadialGauss, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[21], 0
| 0)
;
12016 }
12017 else if (dynamic_cast<GModelSpatialRadialShell*>(result) != NULL__null) {
12018 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialRadialShell, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[22], 0
| 0)
;
12019 }
12020 else {
12021 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialRadial, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[19], 0
| 0)
;
12022 }
12023 }
12024 else if (dynamic_cast<GModelSpatialElliptical*>(result) != NULL__null) {
12025 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialElliptical, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[16], 0
| 0)
;
12026 }
12027 else if (dynamic_cast<GModelSpatialDiffuse*>(result) != NULL__null) {
12028 if (dynamic_cast<GModelSpatialDiffuseConst*>(result) != NULL__null) {
12029 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialDiffuseConst, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[13], 0
| 0)
;
12030 }
12031 else if (dynamic_cast<GModelSpatialDiffuseCube*>(result) != NULL__null) {
12032 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialDiffuseCube, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[14], 0
| 0)
;
12033 }
12034 else if (dynamic_cast<GModelSpatialDiffuseMap*>(result) != NULL__null) {
12035 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialDiffuseMap, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[15], 0
| 0)
;
12036 }
12037 else {
12038 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialDiffuse, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[12], 0
| 0)
;
12039 }
12040 }
12041 else {
12042 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatial, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[11], 0
| 0)
;
12043 }
12044 }
12045 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
12046 return resultobj;
12047fail:
12048 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
12049 return NULL__null;
12050}
12051
12052
12053SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRegistry_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12054 PyObject *resultobj = 0;
12055 GModelSpatialRegistry *arg1 = (GModelSpatialRegistry *) 0 ;
12056 int *arg2 = 0 ;
12057 void *argp1 = 0 ;
12058 int res1 = 0 ;
12059 int temp2 ;
12060 int val2 ;
12061 int ecode2 = 0 ;
12062 PyObject * obj0 = 0 ;
12063 PyObject * obj1 = 0 ;
12064 std::string result;
12065
12066 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialRegistry_name",&obj0,&obj1)) SWIG_failgoto fail;
12067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRegistry, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[23]
, 0 | 0, 0)
;
12068 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRegistry_name" "', argument " "1"" of type '" "GModelSpatialRegistry const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRegistry_name"
"', argument " "1"" of type '" "GModelSpatialRegistry const *"
"'"); goto fail; } while(0)
;
12070 }
12071 arg1 = reinterpret_cast< GModelSpatialRegistry * >(argp1);
12072 ecode2 = SWIG_AsVal_int(obj1, &val2);
12073 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
12074 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpatialRegistry_name" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpatialRegistry_name"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
12075 }
12076 temp2 = static_cast< int >(val2);
12077 arg2 = &temp2;
12078 {
12079 try {
12080 result = ((GModelSpatialRegistry const *)arg1)->name((int const &)*arg2);
12081 }
12082 catch (const GException::out_of_range& e) {
12083 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12084 }
12085 catch (const GExceptionHandler& e) {
12086 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12087 }
12088 catch (const std::exception& e) {
12089 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12090 }
12091 }
12092 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
12093 return resultobj;
12094fail:
12095 return NULL__null;
12096}
12097
12098
12099SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRegistry___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12100 PyObject *resultobj = 0;
12101 GModelSpatialRegistry *arg1 = (GModelSpatialRegistry *) 0 ;
12102 void *argp1 = 0 ;
12103 int res1 = 0 ;
12104 PyObject * obj0 = 0 ;
12105 char *result = 0 ;
12106
12107 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialRegistry___str__",&obj0)) SWIG_failgoto fail;
12108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRegistry, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[23]
, 0 | 0, 0)
;
12109 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRegistry___str__" "', argument " "1"" of type '" "GModelSpatialRegistry *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRegistry___str__"
"', argument " "1"" of type '" "GModelSpatialRegistry *""'")
; goto fail; } while(0)
;
12111 }
12112 arg1 = reinterpret_cast< GModelSpatialRegistry * >(argp1);
12113 {
12114 try {
12115 result = (char *)GModelSpatialRegistry___str__(arg1);
12116 }
12117 catch (const GException::out_of_range& e) {
12118 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12119 }
12120 catch (const GExceptionHandler& e) {
12121 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12122 }
12123 catch (const std::exception& e) {
12124 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12125 }
12126 }
12127 resultobj = SWIG_FromCharPtr((const char *)result);
12128 return resultobj;
12129fail:
12130 return NULL__null;
12131}
12132
12133
12134SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GModelSpatialRegistry_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12135 PyObject *obj;
12136 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
12137 SWIG_TypeNewClientData(SWIGTYPE_p_GModelSpatialRegistryswig_types[23], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
12138 return SWIG_Py_Void();
12139}
12140
12141SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialPointSource__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12142 PyObject *resultobj = 0;
12143 GModelSpatialPointSource *result = 0 ;
12144
12145 if (!PyArg_ParseTuple(args,(char *)":new_GModelSpatialPointSource")) SWIG_failgoto fail;
12146 {
12147 try {
12148 result = (GModelSpatialPointSource *)new GModelSpatialPointSource();
12149 }
12150 catch (const GException::out_of_range& e) {
12151 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12152 }
12153 catch (const GExceptionHandler& e) {
12154 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12155 }
12156 catch (const std::exception& e) {
12157 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12158 }
12159 }
12160 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialPointSource, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[18], (
(0x1 << 1) | 0x1) | 0)
;
12161 return resultobj;
12162fail:
12163 return NULL__null;
12164}
12165
12166
12167SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialPointSource__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12168 PyObject *resultobj = 0;
12169 GSkyDir *arg1 = 0 ;
12170 void *argp1 = 0 ;
12171 int res1 = 0 ;
12172 PyObject * obj0 = 0 ;
12173 GModelSpatialPointSource *result = 0 ;
12174
12175 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpatialPointSource",&obj0)) SWIG_failgoto fail;
12176 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[44]
, 0 | 0, 0)
;
12177 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpatialPointSource" "', argument " "1"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpatialPointSource"
"', argument " "1"" of type '" "GSkyDir const &""'"); goto
fail; } while(0)
;
12179 }
12180 if (!argp1) {
12181 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpatialPointSource" "', argument " "1"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpatialPointSource" "', argument " "1"
" of type '" "GSkyDir const &""'"); goto fail; } while(0)
;
12182 }
12183 arg1 = reinterpret_cast< GSkyDir * >(argp1);
12184 {
12185 try {
12186 result = (GModelSpatialPointSource *)new GModelSpatialPointSource((GSkyDir const &)*arg1);
12187 }
12188 catch (const GException::out_of_range& e) {
12189 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12190 }
12191 catch (const GExceptionHandler& e) {
12192 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12193 }
12194 catch (const std::exception& e) {
12195 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12196 }
12197 }
12198 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialPointSource, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[18], (
(0x1 << 1) | 0x1) | 0)
;
12199 return resultobj;
12200fail:
12201 return NULL__null;
12202}
12203
12204
12205SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialPointSource__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12206 PyObject *resultobj = 0;
12207 double *arg1 = 0 ;
12208 double *arg2 = 0 ;
12209 double temp1 ;
12210 double val1 ;
12211 int ecode1 = 0 ;
12212 double temp2 ;
12213 double val2 ;
12214 int ecode2 = 0 ;
12215 PyObject * obj0 = 0 ;
12216 PyObject * obj1 = 0 ;
12217 GModelSpatialPointSource *result = 0 ;
12218
12219 if (!PyArg_ParseTuple(args,(char *)"OO:new_GModelSpatialPointSource",&obj0,&obj1)) SWIG_failgoto fail;
12220 ecode1 = SWIG_AsVal_double(obj0, &val1);
12221 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
12222 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GModelSpatialPointSource" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "new_GModelSpatialPointSource"
"', argument " "1"" of type '" "double""'"); goto fail; } while
(0)
;
12223 }
12224 temp1 = static_cast< double >(val1);
12225 arg1 = &temp1;
12226 ecode2 = SWIG_AsVal_double(obj1, &val2);
12227 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
12228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GModelSpatialPointSource" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "new_GModelSpatialPointSource"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
12229 }
12230 temp2 = static_cast< double >(val2);
12231 arg2 = &temp2;
12232 {
12233 try {
12234 result = (GModelSpatialPointSource *)new GModelSpatialPointSource((double const &)*arg1,(double const &)*arg2);
12235 }
12236 catch (const GException::out_of_range& e) {
12237 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12238 }
12239 catch (const GExceptionHandler& e) {
12240 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12241 }
12242 catch (const std::exception& e) {
12243 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12244 }
12245 }
12246 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialPointSource, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[18], (
(0x1 << 1) | 0x1) | 0)
;
12247 return resultobj;
12248fail:
12249 return NULL__null;
12250}
12251
12252
12253SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialPointSource__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12254 PyObject *resultobj = 0;
12255 GXmlElement *arg1 = 0 ;
12256 void *argp1 = 0 ;
12257 int res1 = 0 ;
12258 PyObject * obj0 = 0 ;
12259 GModelSpatialPointSource *result = 0 ;
12260
12261 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpatialPointSource",&obj0)) SWIG_failgoto fail;
12262 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[50]
, 0 | 0, 0)
;
12263 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpatialPointSource" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpatialPointSource"
"', argument " "1"" of type '" "GXmlElement const &""'")
; goto fail; } while(0)
;
12265 }
12266 if (!argp1) {
12267 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpatialPointSource" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpatialPointSource" "', argument " "1"
" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
12268 }
12269 arg1 = reinterpret_cast< GXmlElement * >(argp1);
12270 {
12271 try {
12272 result = (GModelSpatialPointSource *)new GModelSpatialPointSource((GXmlElement const &)*arg1);
12273 }
12274 catch (const GException::out_of_range& e) {
12275 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12276 }
12277 catch (const GExceptionHandler& e) {
12278 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12279 }
12280 catch (const std::exception& e) {
12281 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12282 }
12283 }
12284 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialPointSource, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[18], (
(0x1 << 1) | 0x1) | 0)
;
12285 return resultobj;
12286fail:
12287 return NULL__null;
12288}
12289
12290
12291SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialPointSource__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12292 PyObject *resultobj = 0;
12293 GModelSpatialPointSource *arg1 = 0 ;
12294 void *argp1 = 0 ;
12295 int res1 = 0 ;
12296 PyObject * obj0 = 0 ;
12297 GModelSpatialPointSource *result = 0 ;
12298
12299 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpatialPointSource",&obj0)) SWIG_failgoto fail;
12300 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GModelSpatialPointSource, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0 | 0, 0)
;
12301 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpatialPointSource" "', argument " "1"" of type '" "GModelSpatialPointSource const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpatialPointSource"
"', argument " "1"" of type '" "GModelSpatialPointSource const &"
"'"); goto fail; } while(0)
;
12303 }
12304 if (!argp1) {
12305 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpatialPointSource" "', argument " "1"" of type '" "GModelSpatialPointSource const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpatialPointSource" "', argument " "1"
" of type '" "GModelSpatialPointSource const &""'"); goto
fail; } while(0)
;
12306 }
12307 arg1 = reinterpret_cast< GModelSpatialPointSource * >(argp1);
12308 {
12309 try {
12310 result = (GModelSpatialPointSource *)new GModelSpatialPointSource((GModelSpatialPointSource const &)*arg1);
12311 }
12312 catch (const GException::out_of_range& e) {
12313 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12314 }
12315 catch (const GExceptionHandler& e) {
12316 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12317 }
12318 catch (const std::exception& e) {
12319 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12320 }
12321 }
12322 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialPointSource, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[18], (
(0x1 << 1) | 0x1) | 0)
;
12323 return resultobj;
12324fail:
12325 return NULL__null;
12326}
12327
12328
12329SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialPointSource(PyObject *self, PyObject *args) {
12330 int argc;
12331 PyObject *argv[3];
12332 int ii;
12333
12334 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
12335 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
12336 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
12337 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
12338 }
12339 if (argc == 0) {
12340 return _wrap_new_GModelSpatialPointSource__SWIG_0(self, args);
12341 }
12342 if (argc == 1) {
12343 int _v;
12344 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GSkyDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[44], 0, 0
)
;
12345 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12346 if (_v) {
12347 return _wrap_new_GModelSpatialPointSource__SWIG_1(self, args);
12348 }
12349 }
12350 if (argc == 1) {
12351 int _v;
12352 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GXmlElement, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[50], 0, 0
)
;
12353 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12354 if (_v) {
12355 return _wrap_new_GModelSpatialPointSource__SWIG_3(self, args);
12356 }
12357 }
12358 if (argc == 1) {
12359 int _v;
12360 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GModelSpatialPointSource, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[18], 0, 0
)
;
12361 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12362 if (_v) {
12363 return _wrap_new_GModelSpatialPointSource__SWIG_4(self, args);
12364 }
12365 }
12366 if (argc == 2) {
12367 int _v;
12368 {
12369 int res = SWIG_AsVal_double(argv[0], NULL__null);
12370 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12371 }
12372 if (_v) {
12373 {
12374 int res = SWIG_AsVal_double(argv[1], NULL__null);
12375 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12376 }
12377 if (_v) {
12378 return _wrap_new_GModelSpatialPointSource__SWIG_2(self, args);
12379 }
12380 }
12381 }
12382
12383fail:
12384 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GModelSpatialPointSource'.\n"
12385 " Possible C/C++ prototypes are:\n"
12386 " GModelSpatialPointSource::GModelSpatialPointSource()\n"
12387 " GModelSpatialPointSource::GModelSpatialPointSource(GSkyDir const &)\n"
12388 " GModelSpatialPointSource::GModelSpatialPointSource(double const &,double const &)\n"
12389 " GModelSpatialPointSource::GModelSpatialPointSource(GXmlElement const &)\n"
12390 " GModelSpatialPointSource::GModelSpatialPointSource(GModelSpatialPointSource const &)\n");
12391 return 0;
12392}
12393
12394
12395SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GModelSpatialPointSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12396 PyObject *resultobj = 0;
12397 GModelSpatialPointSource *arg1 = (GModelSpatialPointSource *) 0 ;
12398 void *argp1 = 0 ;
12399 int res1 = 0 ;
12400 PyObject * obj0 = 0 ;
12401
12402 if (!PyArg_ParseTuple(args,(char *)"O:delete_GModelSpatialPointSource",&obj0)) SWIG_failgoto fail;
12403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialPointSource, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0x1 | 0, 0)
;
12404 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GModelSpatialPointSource" "', argument " "1"" of type '" "GModelSpatialPointSource *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GModelSpatialPointSource"
"', argument " "1"" of type '" "GModelSpatialPointSource *""'"
); goto fail; } while(0)
;
12406 }
12407 arg1 = reinterpret_cast< GModelSpatialPointSource * >(argp1);
12408 {
12409 try {
12410 delete arg1;
12411 }
12412 catch (const GException::out_of_range& e) {
12413 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12414 }
12415 catch (const GExceptionHandler& e) {
12416 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12417 }
12418 catch (const std::exception& e) {
12419 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12420 }
12421 }
12422 resultobj = SWIG_Py_Void();
12423 return resultobj;
12424fail:
12425 return NULL__null;
12426}
12427
12428
12429SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialPointSource_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12430 PyObject *resultobj = 0;
12431 GModelSpatialPointSource *arg1 = (GModelSpatialPointSource *) 0 ;
12432 void *argp1 = 0 ;
12433 int res1 = 0 ;
12434 PyObject * obj0 = 0 ;
12435
12436 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialPointSource_clear",&obj0)) SWIG_failgoto fail;
12437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialPointSource, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0 | 0, 0)
;
12438 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialPointSource_clear" "', argument " "1"" of type '" "GModelSpatialPointSource *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialPointSource_clear"
"', argument " "1"" of type '" "GModelSpatialPointSource *""'"
); goto fail; } while(0)
;
12440 }
12441 arg1 = reinterpret_cast< GModelSpatialPointSource * >(argp1);
12442 {
12443 try {
12444 (arg1)->clear();
12445 }
12446 catch (const GException::out_of_range& e) {
12447 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12448 }
12449 catch (const GExceptionHandler& e) {
12450 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12451 }
12452 catch (const std::exception& e) {
12453 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12454 }
12455 }
12456 resultobj = SWIG_Py_Void();
12457 return resultobj;
12458fail:
12459 return NULL__null;
12460}
12461
12462
12463SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialPointSource_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12464 PyObject *resultobj = 0;
12465 GModelSpatialPointSource *arg1 = (GModelSpatialPointSource *) 0 ;
12466 void *argp1 = 0 ;
12467 int res1 = 0 ;
12468 PyObject * obj0 = 0 ;
12469 GModelSpatialPointSource *result = 0 ;
12470
12471 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialPointSource_clone",&obj0)) SWIG_failgoto fail;
12472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialPointSource, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0 | 0, 0)
;
12473 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialPointSource_clone" "', argument " "1"" of type '" "GModelSpatialPointSource const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialPointSource_clone"
"', argument " "1"" of type '" "GModelSpatialPointSource const *"
"'"); goto fail; } while(0)
;
12475 }
12476 arg1 = reinterpret_cast< GModelSpatialPointSource * >(argp1);
12477 {
12478 try {
12479 result = (GModelSpatialPointSource *)((GModelSpatialPointSource const *)arg1)->clone();
12480 }
12481 catch (const GException::out_of_range& e) {
12482 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12483 }
12484 catch (const GExceptionHandler& e) {
12485 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12486 }
12487 catch (const std::exception& e) {
12488 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12489 }
12490 }
12491 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialPointSource, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[18], 0
| 0)
;
12492 return resultobj;
12493fail:
12494 return NULL__null;
12495}
12496
12497
12498SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialPointSource_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12499 PyObject *resultobj = 0;
12500 GModelSpatialPointSource *arg1 = (GModelSpatialPointSource *) 0 ;
12501 void *argp1 = 0 ;
12502 int res1 = 0 ;
12503 PyObject * obj0 = 0 ;
12504 std::string result;
12505
12506 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialPointSource_type",&obj0)) SWIG_failgoto fail;
12507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialPointSource, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0 | 0, 0)
;
12508 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialPointSource_type" "', argument " "1"" of type '" "GModelSpatialPointSource const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialPointSource_type"
"', argument " "1"" of type '" "GModelSpatialPointSource const *"
"'"); goto fail; } while(0)
;
12510 }
12511 arg1 = reinterpret_cast< GModelSpatialPointSource * >(argp1);
12512 {
12513 try {
12514 result = ((GModelSpatialPointSource const *)arg1)->type();
12515 }
12516 catch (const GException::out_of_range& e) {
12517 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12518 }
12519 catch (const GExceptionHandler& e) {
12520 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12521 }
12522 catch (const std::exception& e) {
12523 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12524 }
12525 }
12526 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
12527 return resultobj;
12528fail:
12529 return NULL__null;
12530}
12531
12532
12533SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialPointSource_eval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12534 PyObject *resultobj = 0;
12535 GModelSpatialPointSource *arg1 = (GModelSpatialPointSource *) 0 ;
12536 GPhoton *arg2 = 0 ;
12537 void *argp1 = 0 ;
12538 int res1 = 0 ;
12539 void *argp2 = 0 ;
12540 int res2 = 0 ;
12541 PyObject * obj0 = 0 ;
12542 PyObject * obj1 = 0 ;
12543 double result;
12544
12545 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialPointSource_eval",&obj0,&obj1)) SWIG_failgoto fail;
12546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialPointSource, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0 | 0, 0)
;
12547 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialPointSource_eval" "', argument " "1"" of type '" "GModelSpatialPointSource const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialPointSource_eval"
"', argument " "1"" of type '" "GModelSpatialPointSource const *"
"'"); goto fail; } while(0)
;
12549 }
12550 arg1 = reinterpret_cast< GModelSpatialPointSource * >(argp1);
12551 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[40]
, 0 | 0, 0)
;
12552 if (!SWIG_IsOK(res2)(res2 >= 0)) {
12553 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialPointSource_eval" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialPointSource_eval"
"', argument " "2"" of type '" "GPhoton const &""'"); goto
fail; } while(0)
;
12554 }
12555 if (!argp2) {
12556 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialPointSource_eval" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialPointSource_eval" "', argument "
"2"" of type '" "GPhoton const &""'"); goto fail; } while
(0)
;
12557 }
12558 arg2 = reinterpret_cast< GPhoton * >(argp2);
12559 {
12560 try {
12561 result = (double)((GModelSpatialPointSource const *)arg1)->eval((GPhoton const &)*arg2);
12562 }
12563 catch (const GException::out_of_range& e) {
12564 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12565 }
12566 catch (const GExceptionHandler& e) {
12567 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12568 }
12569 catch (const std::exception& e) {
12570 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12571 }
12572 }
12573 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
12574 return resultobj;
12575fail:
12576 return NULL__null;
12577}
12578
12579
12580SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialPointSource_eval_gradients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12581 PyObject *resultobj = 0;
12582 GModelSpatialPointSource *arg1 = (GModelSpatialPointSource *) 0 ;
12583 GPhoton *arg2 = 0 ;
12584 void *argp1 = 0 ;
12585 int res1 = 0 ;
12586 void *argp2 = 0 ;
12587 int res2 = 0 ;
12588 PyObject * obj0 = 0 ;
12589 PyObject * obj1 = 0 ;
12590 double result;
12591
12592 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialPointSource_eval_gradients",&obj0,&obj1)) SWIG_failgoto fail;
12593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialPointSource, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0 | 0, 0)
;
12594 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialPointSource_eval_gradients" "', argument " "1"" of type '" "GModelSpatialPointSource const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialPointSource_eval_gradients"
"', argument " "1"" of type '" "GModelSpatialPointSource const *"
"'"); goto fail; } while(0)
;
12596 }
12597 arg1 = reinterpret_cast< GModelSpatialPointSource * >(argp1);
12598 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[40]
, 0 | 0, 0)
;
12599 if (!SWIG_IsOK(res2)(res2 >= 0)) {
12600 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialPointSource_eval_gradients" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialPointSource_eval_gradients"
"', argument " "2"" of type '" "GPhoton const &""'"); goto
fail; } while(0)
;
12601 }
12602 if (!argp2) {
12603 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialPointSource_eval_gradients" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialPointSource_eval_gradients" "', argument "
"2"" of type '" "GPhoton const &""'"); goto fail; } while
(0)
;
12604 }
12605 arg2 = reinterpret_cast< GPhoton * >(argp2);
12606 {
12607 try {
12608 result = (double)((GModelSpatialPointSource const *)arg1)->eval_gradients((GPhoton const &)*arg2);
12609 }
12610 catch (const GException::out_of_range& e) {
12611 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12612 }
12613 catch (const GExceptionHandler& e) {
12614 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12615 }
12616 catch (const std::exception& e) {
12617 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12618 }
12619 }
12620 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
12621 return resultobj;
12622fail:
12623 return NULL__null;
12624}
12625
12626
12627SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialPointSource_mc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12628 PyObject *resultobj = 0;
12629 GModelSpatialPointSource *arg1 = (GModelSpatialPointSource *) 0 ;
12630 GEnergy *arg2 = 0 ;
12631 GTime *arg3 = 0 ;
12632 GRan *arg4 = 0 ;
12633 void *argp1 = 0 ;
12634 int res1 = 0 ;
12635 void *argp2 = 0 ;
12636 int res2 = 0 ;
12637 void *argp3 = 0 ;
12638 int res3 = 0 ;
12639 void *argp4 = 0 ;
12640 int res4 = 0 ;
12641 PyObject * obj0 = 0 ;
12642 PyObject * obj1 = 0 ;
12643 PyObject * obj2 = 0 ;
12644 PyObject * obj3 = 0 ;
12645 GSkyDir result;
12646
12647 if (!PyArg_ParseTuple(args,(char *)"OOOO:GModelSpatialPointSource_mc",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
12648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialPointSource, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0 | 0, 0)
;
12649 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialPointSource_mc" "', argument " "1"" of type '" "GModelSpatialPointSource const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialPointSource_mc"
"', argument " "1"" of type '" "GModelSpatialPointSource const *"
"'"); goto fail; } while(0)
;
12651 }
12652 arg1 = reinterpret_cast< GModelSpatialPointSource * >(argp1);
12653 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
12654 if (!SWIG_IsOK(res2)(res2 >= 0)) {
12655 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialPointSource_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialPointSource_mc"
"', argument " "2"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
12656 }
12657 if (!argp2) {
12658 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialPointSource_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialPointSource_mc" "', argument " "2"
" of type '" "GEnergy const &""'"); goto fail; } while(0)
;
12659 }
12660 arg2 = reinterpret_cast< GEnergy * >(argp2);
12661 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[46]
, 0 | 0, 0)
;
12662 if (!SWIG_IsOK(res3)(res3 >= 0)) {
12663 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpatialPointSource_mc" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpatialPointSource_mc"
"', argument " "3"" of type '" "GTime const &""'"); goto
fail; } while(0)
;
12664 }
12665 if (!argp3) {
12666 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialPointSource_mc" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialPointSource_mc" "', argument " "3"
" of type '" "GTime const &""'"); goto fail; } while(0)
;
12667 }
12668 arg3 = reinterpret_cast< GTime * >(argp3);
12669 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GRan, 0 )SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[42]
, 0, 0)
;
12670 if (!SWIG_IsOK(res4)(res4 >= 0)) {
12671 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelSpatialPointSource_mc" "', argument " "4"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelSpatialPointSource_mc"
"', argument " "4"" of type '" "GRan &""'"); goto fail; }
while(0)
;
12672 }
12673 if (!argp4) {
12674 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialPointSource_mc" "', argument " "4"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialPointSource_mc" "', argument " "4"
" of type '" "GRan &""'"); goto fail; } while(0)
;
12675 }
12676 arg4 = reinterpret_cast< GRan * >(argp4);
12677 {
12678 try {
12679 result = ((GModelSpatialPointSource const *)arg1)->mc((GEnergy const &)*arg2,(GTime const &)*arg3,*arg4);
12680 }
12681 catch (const GException::out_of_range& e) {
12682 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12683 }
12684 catch (const GExceptionHandler& e) {
12685 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12686 }
12687 catch (const std::exception& e) {
12688 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12689 }
12690 }
12691 resultobj = SWIG_NewPointerObj((new GSkyDir(static_cast< const GSkyDir& >(result))), SWIGTYPE_p_GSkyDir, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GSkyDir(static_cast<
const GSkyDir& >(result))), swig_types[44], 0x1 | 0)
;
12692 return resultobj;
12693fail:
12694 return NULL__null;
12695}
12696
12697
12698SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialPointSource_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12699 PyObject *resultobj = 0;
12700 GModelSpatialPointSource *arg1 = (GModelSpatialPointSource *) 0 ;
12701 GXmlElement *arg2 = 0 ;
12702 void *argp1 = 0 ;
12703 int res1 = 0 ;
12704 void *argp2 = 0 ;
12705 int res2 = 0 ;
12706 PyObject * obj0 = 0 ;
12707 PyObject * obj1 = 0 ;
12708
12709 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialPointSource_read",&obj0,&obj1)) SWIG_failgoto fail;
12710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialPointSource, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0 | 0, 0)
;
12711 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialPointSource_read" "', argument " "1"" of type '" "GModelSpatialPointSource *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialPointSource_read"
"', argument " "1"" of type '" "GModelSpatialPointSource *""'"
); goto fail; } while(0)
;
12713 }
12714 arg1 = reinterpret_cast< GModelSpatialPointSource * >(argp1);
12715 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0 | 0, 0)
;
12716 if (!SWIG_IsOK(res2)(res2 >= 0)) {
12717 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialPointSource_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialPointSource_read"
"', argument " "2"" of type '" "GXmlElement const &""'")
; goto fail; } while(0)
;
12718 }
12719 if (!argp2) {
12720 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialPointSource_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialPointSource_read" "', argument "
"2"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
12721 }
12722 arg2 = reinterpret_cast< GXmlElement * >(argp2);
12723 {
12724 try {
12725 (arg1)->read((GXmlElement const &)*arg2);
12726 }
12727 catch (const GException::out_of_range& e) {
12728 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12729 }
12730 catch (const GExceptionHandler& e) {
12731 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12732 }
12733 catch (const std::exception& e) {
12734 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12735 }
12736 }
12737 resultobj = SWIG_Py_Void();
12738 return resultobj;
12739fail:
12740 return NULL__null;
12741}
12742
12743
12744SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialPointSource_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12745 PyObject *resultobj = 0;
12746 GModelSpatialPointSource *arg1 = (GModelSpatialPointSource *) 0 ;
12747 GXmlElement *arg2 = 0 ;
12748 void *argp1 = 0 ;
12749 int res1 = 0 ;
12750 void *argp2 = 0 ;
12751 int res2 = 0 ;
12752 PyObject * obj0 = 0 ;
12753 PyObject * obj1 = 0 ;
12754
12755 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialPointSource_write",&obj0,&obj1)) SWIG_failgoto fail;
12756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialPointSource, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0 | 0, 0)
;
12757 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialPointSource_write" "', argument " "1"" of type '" "GModelSpatialPointSource const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialPointSource_write"
"', argument " "1"" of type '" "GModelSpatialPointSource const *"
"'"); goto fail; } while(0)
;
12759 }
12760 arg1 = reinterpret_cast< GModelSpatialPointSource * >(argp1);
12761 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0, 0)
;
12762 if (!SWIG_IsOK(res2)(res2 >= 0)) {
12763 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialPointSource_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialPointSource_write"
"', argument " "2"" of type '" "GXmlElement &""'"); goto
fail; } while(0)
;
12764 }
12765 if (!argp2) {
12766 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialPointSource_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialPointSource_write" "', argument "
"2"" of type '" "GXmlElement &""'"); goto fail; } while(
0)
;
12767 }
12768 arg2 = reinterpret_cast< GXmlElement * >(argp2);
12769 {
12770 try {
12771 ((GModelSpatialPointSource const *)arg1)->write(*arg2);
12772 }
12773 catch (const GException::out_of_range& e) {
12774 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12775 }
12776 catch (const GExceptionHandler& e) {
12777 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12778 }
12779 catch (const std::exception& e) {
12780 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12781 }
12782 }
12783 resultobj = SWIG_Py_Void();
12784 return resultobj;
12785fail:
12786 return NULL__null;
12787}
12788
12789
12790SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialPointSource_ra__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12791 PyObject *resultobj = 0;
12792 GModelSpatialPointSource *arg1 = (GModelSpatialPointSource *) 0 ;
12793 void *argp1 = 0 ;
12794 int res1 = 0 ;
12795 PyObject * obj0 = 0 ;
12796 double result;
12797
12798 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialPointSource_ra",&obj0)) SWIG_failgoto fail;
12799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialPointSource, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0 | 0, 0)
;
12800 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialPointSource_ra" "', argument " "1"" of type '" "GModelSpatialPointSource const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialPointSource_ra"
"', argument " "1"" of type '" "GModelSpatialPointSource const *"
"'"); goto fail; } while(0)
;
12802 }
12803 arg1 = reinterpret_cast< GModelSpatialPointSource * >(argp1);
12804 {
12805 try {
12806 result = (double)((GModelSpatialPointSource const *)arg1)->ra();
12807 }
12808 catch (const GException::out_of_range& e) {
12809 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12810 }
12811 catch (const GExceptionHandler& e) {
12812 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12813 }
12814 catch (const std::exception& e) {
12815 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12816 }
12817 }
12818 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
12819 return resultobj;
12820fail:
12821 return NULL__null;
12822}
12823
12824
12825SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialPointSource_dec__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12826 PyObject *resultobj = 0;
12827 GModelSpatialPointSource *arg1 = (GModelSpatialPointSource *) 0 ;
12828 void *argp1 = 0 ;
12829 int res1 = 0 ;
12830 PyObject * obj0 = 0 ;
12831 double result;
12832
12833 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialPointSource_dec",&obj0)) SWIG_failgoto fail;
12834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialPointSource, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0 | 0, 0)
;
12835 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialPointSource_dec" "', argument " "1"" of type '" "GModelSpatialPointSource const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialPointSource_dec"
"', argument " "1"" of type '" "GModelSpatialPointSource const *"
"'"); goto fail; } while(0)
;
12837 }
12838 arg1 = reinterpret_cast< GModelSpatialPointSource * >(argp1);
12839 {
12840 try {
12841 result = (double)((GModelSpatialPointSource const *)arg1)->dec();
12842 }
12843 catch (const GException::out_of_range& e) {
12844 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12845 }
12846 catch (const GExceptionHandler& e) {
12847 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12848 }
12849 catch (const std::exception& e) {
12850 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12851 }
12852 }
12853 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
12854 return resultobj;
12855fail:
12856 return NULL__null;
12857}
12858
12859
12860SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialPointSource_ra__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12861 PyObject *resultobj = 0;
12862 GModelSpatialPointSource *arg1 = (GModelSpatialPointSource *) 0 ;
12863 double *arg2 = 0 ;
12864 void *argp1 = 0 ;
12865 int res1 = 0 ;
12866 double temp2 ;
12867 double val2 ;
12868 int ecode2 = 0 ;
12869 PyObject * obj0 = 0 ;
12870 PyObject * obj1 = 0 ;
12871
12872 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialPointSource_ra",&obj0,&obj1)) SWIG_failgoto fail;
12873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialPointSource, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0 | 0, 0)
;
12874 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialPointSource_ra" "', argument " "1"" of type '" "GModelSpatialPointSource *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialPointSource_ra"
"', argument " "1"" of type '" "GModelSpatialPointSource *""'"
); goto fail; } while(0)
;
12876 }
12877 arg1 = reinterpret_cast< GModelSpatialPointSource * >(argp1);
12878 ecode2 = SWIG_AsVal_double(obj1, &val2);
12879 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
12880 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpatialPointSource_ra" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpatialPointSource_ra"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
12881 }
12882 temp2 = static_cast< double >(val2);
12883 arg2 = &temp2;
12884 {
12885 try {
12886 (arg1)->ra((double const &)*arg2);
12887 }
12888 catch (const GException::out_of_range& e) {
12889 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12890 }
12891 catch (const GExceptionHandler& e) {
12892 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12893 }
12894 catch (const std::exception& e) {
12895 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12896 }
12897 }
12898 resultobj = SWIG_Py_Void();
12899 return resultobj;
12900fail:
12901 return NULL__null;
12902}
12903
12904
12905SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialPointSource_ra(PyObject *self, PyObject *args) {
12906 int argc;
12907 PyObject *argv[3];
12908 int ii;
12909
12910 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
12911 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
12912 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
12913 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
12914 }
12915 if (argc == 1) {
12916 int _v;
12917 void *vptr = 0;
12918 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialPointSource, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[18
], 0, 0)
;
12919 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12920 if (_v) {
12921 return _wrap_GModelSpatialPointSource_ra__SWIG_0(self, args);
12922 }
12923 }
12924 if (argc == 2) {
12925 int _v;
12926 void *vptr = 0;
12927 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialPointSource, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[18
], 0, 0)
;
12928 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12929 if (_v) {
12930 {
12931 int res = SWIG_AsVal_double(argv[1], NULL__null);
12932 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12933 }
12934 if (_v) {
12935 return _wrap_GModelSpatialPointSource_ra__SWIG_1(self, args);
12936 }
12937 }
12938 }
12939
12940fail:
12941 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialPointSource_ra'.\n"
12942 " Possible C/C++ prototypes are:\n"
12943 " GModelSpatialPointSource::ra() const\n"
12944 " GModelSpatialPointSource::ra(double const &)\n");
12945 return 0;
12946}
12947
12948
12949SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialPointSource_dec__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12950 PyObject *resultobj = 0;
12951 GModelSpatialPointSource *arg1 = (GModelSpatialPointSource *) 0 ;
12952 double *arg2 = 0 ;
12953 void *argp1 = 0 ;
12954 int res1 = 0 ;
12955 double temp2 ;
12956 double val2 ;
12957 int ecode2 = 0 ;
12958 PyObject * obj0 = 0 ;
12959 PyObject * obj1 = 0 ;
12960
12961 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialPointSource_dec",&obj0,&obj1)) SWIG_failgoto fail;
12962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialPointSource, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0 | 0, 0)
;
12963 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialPointSource_dec" "', argument " "1"" of type '" "GModelSpatialPointSource *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialPointSource_dec"
"', argument " "1"" of type '" "GModelSpatialPointSource *""'"
); goto fail; } while(0)
;
12965 }
12966 arg1 = reinterpret_cast< GModelSpatialPointSource * >(argp1);
12967 ecode2 = SWIG_AsVal_double(obj1, &val2);
12968 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
12969 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpatialPointSource_dec" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpatialPointSource_dec"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
12970 }
12971 temp2 = static_cast< double >(val2);
12972 arg2 = &temp2;
12973 {
12974 try {
12975 (arg1)->dec((double const &)*arg2);
12976 }
12977 catch (const GException::out_of_range& e) {
12978 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12979 }
12980 catch (const GExceptionHandler& e) {
12981 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12982 }
12983 catch (const std::exception& e) {
12984 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12985 }
12986 }
12987 resultobj = SWIG_Py_Void();
12988 return resultobj;
12989fail:
12990 return NULL__null;
12991}
12992
12993
12994SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialPointSource_dec(PyObject *self, PyObject *args) {
12995 int argc;
12996 PyObject *argv[3];
12997 int ii;
12998
12999 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
13000 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
13001 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
13002 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
13003 }
13004 if (argc == 1) {
13005 int _v;
13006 void *vptr = 0;
13007 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialPointSource, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[18
], 0, 0)
;
13008 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13009 if (_v) {
13010 return _wrap_GModelSpatialPointSource_dec__SWIG_0(self, args);
13011 }
13012 }
13013 if (argc == 2) {
13014 int _v;
13015 void *vptr = 0;
13016 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialPointSource, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[18
], 0, 0)
;
13017 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13018 if (_v) {
13019 {
13020 int res = SWIG_AsVal_double(argv[1], NULL__null);
13021 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13022 }
13023 if (_v) {
13024 return _wrap_GModelSpatialPointSource_dec__SWIG_1(self, args);
13025 }
13026 }
13027 }
13028
13029fail:
13030 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialPointSource_dec'.\n"
13031 " Possible C/C++ prototypes are:\n"
13032 " GModelSpatialPointSource::dec() const\n"
13033 " GModelSpatialPointSource::dec(double const &)\n");
13034 return 0;
13035}
13036
13037
13038SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialPointSource_dir__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13039 PyObject *resultobj = 0;
13040 GModelSpatialPointSource *arg1 = (GModelSpatialPointSource *) 0 ;
13041 void *argp1 = 0 ;
13042 int res1 = 0 ;
13043 PyObject * obj0 = 0 ;
13044 GSkyDir result;
13045
13046 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialPointSource_dir",&obj0)) SWIG_failgoto fail;
13047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialPointSource, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0 | 0, 0)
;
13048 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialPointSource_dir" "', argument " "1"" of type '" "GModelSpatialPointSource const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialPointSource_dir"
"', argument " "1"" of type '" "GModelSpatialPointSource const *"
"'"); goto fail; } while(0)
;
13050 }
13051 arg1 = reinterpret_cast< GModelSpatialPointSource * >(argp1);
13052 {
13053 try {
13054 result = ((GModelSpatialPointSource const *)arg1)->dir();
13055 }
13056 catch (const GException::out_of_range& e) {
13057 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13058 }
13059 catch (const GExceptionHandler& e) {
13060 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13061 }
13062 catch (const std::exception& e) {
13063 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13064 }
13065 }
13066 resultobj = SWIG_NewPointerObj((new GSkyDir(static_cast< const GSkyDir& >(result))), SWIGTYPE_p_GSkyDir, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GSkyDir(static_cast<
const GSkyDir& >(result))), swig_types[44], 0x1 | 0)
;
13067 return resultobj;
13068fail:
13069 return NULL__null;
13070}
13071
13072
13073SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialPointSource_dir__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13074 PyObject *resultobj = 0;
13075 GModelSpatialPointSource *arg1 = (GModelSpatialPointSource *) 0 ;
13076 GSkyDir *arg2 = 0 ;
13077 void *argp1 = 0 ;
13078 int res1 = 0 ;
13079 void *argp2 = 0 ;
13080 int res2 = 0 ;
13081 PyObject * obj0 = 0 ;
13082 PyObject * obj1 = 0 ;
13083
13084 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialPointSource_dir",&obj0,&obj1)) SWIG_failgoto fail;
13085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialPointSource, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0 | 0, 0)
;
13086 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialPointSource_dir" "', argument " "1"" of type '" "GModelSpatialPointSource *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialPointSource_dir"
"', argument " "1"" of type '" "GModelSpatialPointSource *""'"
); goto fail; } while(0)
;
13088 }
13089 arg1 = reinterpret_cast< GModelSpatialPointSource * >(argp1);
13090 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[44]
, 0 | 0, 0)
;
13091 if (!SWIG_IsOK(res2)(res2 >= 0)) {
13092 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialPointSource_dir" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialPointSource_dir"
"', argument " "2"" of type '" "GSkyDir const &""'"); goto
fail; } while(0)
;
13093 }
13094 if (!argp2) {
13095 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialPointSource_dir" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialPointSource_dir" "', argument " "2"
" of type '" "GSkyDir const &""'"); goto fail; } while(0)
;
13096 }
13097 arg2 = reinterpret_cast< GSkyDir * >(argp2);
13098 {
13099 try {
13100 (arg1)->dir((GSkyDir const &)*arg2);
13101 }
13102 catch (const GException::out_of_range& e) {
13103 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13104 }
13105 catch (const GExceptionHandler& e) {
13106 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13107 }
13108 catch (const std::exception& e) {
13109 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13110 }
13111 }
13112 resultobj = SWIG_Py_Void();
13113 return resultobj;
13114fail:
13115 return NULL__null;
13116}
13117
13118
13119SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialPointSource_dir(PyObject *self, PyObject *args) {
13120 int argc;
13121 PyObject *argv[3];
13122 int ii;
13123
13124 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
13125 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
13126 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
13127 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
13128 }
13129 if (argc == 1) {
13130 int _v;
13131 void *vptr = 0;
13132 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialPointSource, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[18
], 0, 0)
;
13133 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13134 if (_v) {
13135 return _wrap_GModelSpatialPointSource_dir__SWIG_0(self, args);
13136 }
13137 }
13138 if (argc == 2) {
13139 int _v;
13140 void *vptr = 0;
13141 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialPointSource, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[18
], 0, 0)
;
13142 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13143 if (_v) {
13144 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GSkyDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[44], 0, 0
)
;
13145 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13146 if (_v) {
13147 return _wrap_GModelSpatialPointSource_dir__SWIG_1(self, args);
13148 }
13149 }
13150 }
13151
13152fail:
13153 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialPointSource_dir'.\n"
13154 " Possible C/C++ prototypes are:\n"
13155 " GModelSpatialPointSource::dir() const\n"
13156 " GModelSpatialPointSource::dir(GSkyDir const &)\n");
13157 return 0;
13158}
13159
13160
13161SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialPointSource_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13162 PyObject *resultobj = 0;
13163 GModelSpatialPointSource *arg1 = (GModelSpatialPointSource *) 0 ;
13164 void *argp1 = 0 ;
13165 int res1 = 0 ;
13166 PyObject * obj0 = 0 ;
13167 GModelSpatialPointSource result;
13168
13169 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialPointSource_copy",&obj0)) SWIG_failgoto fail;
13170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialPointSource, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0 | 0, 0)
;
13171 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialPointSource_copy" "', argument " "1"" of type '" "GModelSpatialPointSource *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialPointSource_copy"
"', argument " "1"" of type '" "GModelSpatialPointSource *""'"
); goto fail; } while(0)
;
13173 }
13174 arg1 = reinterpret_cast< GModelSpatialPointSource * >(argp1);
13175 {
13176 try {
13177 result = GModelSpatialPointSource_copy(arg1);
13178 }
13179 catch (const GException::out_of_range& e) {
13180 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13181 }
13182 catch (const GExceptionHandler& e) {
13183 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13184 }
13185 catch (const std::exception& e) {
13186 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13187 }
13188 }
13189 resultobj = SWIG_NewPointerObj((new GModelSpatialPointSource(static_cast< const GModelSpatialPointSource& >(result))), SWIGTYPE_p_GModelSpatialPointSource, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GModelSpatialPointSource
(static_cast< const GModelSpatialPointSource& >(result
))), swig_types[18], 0x1 | 0)
;
13190 return resultobj;
13191fail:
13192 return NULL__null;
13193}
13194
13195
13196SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GModelSpatialPointSource_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13197 PyObject *obj;
13198 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
13199 SWIG_TypeNewClientData(SWIGTYPE_p_GModelSpatialPointSourceswig_types[18], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
13200 return SWIG_Py_Void();
13201}
13202
13203SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GModelSpatialRadial(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13204 PyObject *resultobj = 0;
13205 GModelSpatialRadial *arg1 = (GModelSpatialRadial *) 0 ;
13206 void *argp1 = 0 ;
13207 int res1 = 0 ;
13208 PyObject * obj0 = 0 ;
13209
13210 if (!PyArg_ParseTuple(args,(char *)"O:delete_GModelSpatialRadial",&obj0)) SWIG_failgoto fail;
13211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadial, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19]
, 0x1 | 0, 0)
;
13212 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GModelSpatialRadial" "', argument " "1"" of type '" "GModelSpatialRadial *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GModelSpatialRadial"
"', argument " "1"" of type '" "GModelSpatialRadial *""'"); goto
fail; } while(0)
;
13214 }
13215 arg1 = reinterpret_cast< GModelSpatialRadial * >(argp1);
13216 {
13217 try {
13218 delete arg1;
13219 }
13220 catch (const GException::out_of_range& e) {
13221 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13222 }
13223 catch (const GExceptionHandler& e) {
13224 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13225 }
13226 catch (const std::exception& e) {
13227 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13228 }
13229 }
13230 resultobj = SWIG_Py_Void();
13231 return resultobj;
13232fail:
13233 return NULL__null;
13234}
13235
13236
13237SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadial_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13238 PyObject *resultobj = 0;
13239 GModelSpatialRadial *arg1 = (GModelSpatialRadial *) 0 ;
13240 void *argp1 = 0 ;
13241 int res1 = 0 ;
13242 PyObject * obj0 = 0 ;
13243
13244 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialRadial_clear",&obj0)) SWIG_failgoto fail;
13245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadial, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19]
, 0 | 0, 0)
;
13246 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadial_clear" "', argument " "1"" of type '" "GModelSpatialRadial *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadial_clear"
"', argument " "1"" of type '" "GModelSpatialRadial *""'"); goto
fail; } while(0)
;
13248 }
13249 arg1 = reinterpret_cast< GModelSpatialRadial * >(argp1);
13250 {
13251 try {
13252 (arg1)->clear();
13253 }
13254 catch (const GException::out_of_range& e) {
13255 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13256 }
13257 catch (const GExceptionHandler& e) {
13258 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13259 }
13260 catch (const std::exception& e) {
13261 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13262 }
13263 }
13264 resultobj = SWIG_Py_Void();
13265 return resultobj;
13266fail:
13267 return NULL__null;
13268}
13269
13270
13271SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadial_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13272 PyObject *resultobj = 0;
13273 GModelSpatialRadial *arg1 = (GModelSpatialRadial *) 0 ;
13274 void *argp1 = 0 ;
13275 int res1 = 0 ;
13276 PyObject * obj0 = 0 ;
13277 GModelSpatialRadial *result = 0 ;
13278
13279 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialRadial_clone",&obj0)) SWIG_failgoto fail;
13280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadial, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19]
, 0 | 0, 0)
;
13281 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadial_clone" "', argument " "1"" of type '" "GModelSpatialRadial const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadial_clone"
"', argument " "1"" of type '" "GModelSpatialRadial const *"
"'"); goto fail; } while(0)
;
13283 }
13284 arg1 = reinterpret_cast< GModelSpatialRadial * >(argp1);
13285 {
13286 try {
13287 result = (GModelSpatialRadial *)((GModelSpatialRadial const *)arg1)->clone();
13288 }
13289 catch (const GException::out_of_range& e) {
13290 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13291 }
13292 catch (const GExceptionHandler& e) {
13293 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13294 }
13295 catch (const std::exception& e) {
13296 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13297 }
13298 }
13299 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialRadial, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[19], 0
| 0)
;
13300 return resultobj;
13301fail:
13302 return NULL__null;
13303}
13304
13305
13306SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadial_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13307 PyObject *resultobj = 0;
13308 GModelSpatialRadial *arg1 = (GModelSpatialRadial *) 0 ;
13309 void *argp1 = 0 ;
13310 int res1 = 0 ;
13311 PyObject * obj0 = 0 ;
13312 std::string result;
13313
13314 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialRadial_type",&obj0)) SWIG_failgoto fail;
13315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadial, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19]
, 0 | 0, 0)
;
13316 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadial_type" "', argument " "1"" of type '" "GModelSpatialRadial const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadial_type" "', argument "
"1"" of type '" "GModelSpatialRadial const *""'"); goto fail
; } while(0)
;
13318 }
13319 arg1 = reinterpret_cast< GModelSpatialRadial * >(argp1);
13320 {
13321 try {
13322 result = ((GModelSpatialRadial const *)arg1)->type();
13323 }
13324 catch (const GException::out_of_range& e) {
13325 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13326 }
13327 catch (const GExceptionHandler& e) {
13328 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13329 }
13330 catch (const std::exception& e) {
13331 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13332 }
13333 }
13334 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
13335 return resultobj;
13336fail:
13337 return NULL__null;
13338}
13339
13340
13341SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadial_eval__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13342 PyObject *resultobj = 0;
13343 GModelSpatialRadial *arg1 = (GModelSpatialRadial *) 0 ;
13344 double *arg2 = 0 ;
13345 GEnergy *arg3 = 0 ;
13346 GTime *arg4 = 0 ;
13347 void *argp1 = 0 ;
13348 int res1 = 0 ;
13349 double temp2 ;
13350 double val2 ;
13351 int ecode2 = 0 ;
13352 void *argp3 = 0 ;
13353 int res3 = 0 ;
13354 void *argp4 = 0 ;
13355 int res4 = 0 ;
13356 PyObject * obj0 = 0 ;
13357 PyObject * obj1 = 0 ;
13358 PyObject * obj2 = 0 ;
13359 PyObject * obj3 = 0 ;
13360 double result;
13361
13362 if (!PyArg_ParseTuple(args,(char *)"OOOO:GModelSpatialRadial_eval",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
13363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadial, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19]
, 0 | 0, 0)
;
13364 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadial_eval" "', argument " "1"" of type '" "GModelSpatialRadial const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadial_eval" "', argument "
"1"" of type '" "GModelSpatialRadial const *""'"); goto fail
; } while(0)
;
13366 }
13367 arg1 = reinterpret_cast< GModelSpatialRadial * >(argp1);
13368 ecode2 = SWIG_AsVal_double(obj1, &val2);
13369 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
13370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpatialRadial_eval" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpatialRadial_eval"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
13371 }
13372 temp2 = static_cast< double >(val2);
13373 arg2 = &temp2;
13374 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
13375 if (!SWIG_IsOK(res3)(res3 >= 0)) {
13376 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpatialRadial_eval" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpatialRadial_eval" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
13377 }
13378 if (!argp3) {
13379 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadial_eval" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadial_eval" "', argument " "3"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
13380 }
13381 arg3 = reinterpret_cast< GEnergy * >(argp3);
13382 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[46]
, 0 | 0, 0)
;
13383 if (!SWIG_IsOK(res4)(res4 >= 0)) {
13384 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelSpatialRadial_eval" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelSpatialRadial_eval" "', argument "
"4"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
13385 }
13386 if (!argp4) {
13387 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadial_eval" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadial_eval" "', argument " "4"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
13388 }
13389 arg4 = reinterpret_cast< GTime * >(argp4);
13390 {
13391 try {
13392 result = (double)((GModelSpatialRadial const *)arg1)->eval((double const &)*arg2,(GEnergy const &)*arg3,(GTime const &)*arg4);
13393 }
13394 catch (const GException::out_of_range& e) {
13395 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13396 }
13397 catch (const GExceptionHandler& e) {
13398 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13399 }
13400 catch (const std::exception& e) {
13401 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13402 }
13403 }
13404 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
13405 return resultobj;
13406fail:
13407 return NULL__null;
13408}
13409
13410
13411SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadial_eval_gradients__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13412 PyObject *resultobj = 0;
13413 GModelSpatialRadial *arg1 = (GModelSpatialRadial *) 0 ;
13414 double *arg2 = 0 ;
13415 GEnergy *arg3 = 0 ;
13416 GTime *arg4 = 0 ;
13417 void *argp1 = 0 ;
13418 int res1 = 0 ;
13419 double temp2 ;
13420 double val2 ;
13421 int ecode2 = 0 ;
13422 void *argp3 = 0 ;
13423 int res3 = 0 ;
13424 void *argp4 = 0 ;
13425 int res4 = 0 ;
13426 PyObject * obj0 = 0 ;
13427 PyObject * obj1 = 0 ;
13428 PyObject * obj2 = 0 ;
13429 PyObject * obj3 = 0 ;
13430 double result;
13431
13432 if (!PyArg_ParseTuple(args,(char *)"OOOO:GModelSpatialRadial_eval_gradients",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
13433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadial, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19]
, 0 | 0, 0)
;
13434 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadial_eval_gradients" "', argument " "1"" of type '" "GModelSpatialRadial const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadial_eval_gradients"
"', argument " "1"" of type '" "GModelSpatialRadial const *"
"'"); goto fail; } while(0)
;
13436 }
13437 arg1 = reinterpret_cast< GModelSpatialRadial * >(argp1);
13438 ecode2 = SWIG_AsVal_double(obj1, &val2);
13439 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
13440 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpatialRadial_eval_gradients" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpatialRadial_eval_gradients"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
13441 }
13442 temp2 = static_cast< double >(val2);
13443 arg2 = &temp2;
13444 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
13445 if (!SWIG_IsOK(res3)(res3 >= 0)) {
13446 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpatialRadial_eval_gradients" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpatialRadial_eval_gradients"
"', argument " "3"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
13447 }
13448 if (!argp3) {
13449 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadial_eval_gradients" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadial_eval_gradients" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
13450 }
13451 arg3 = reinterpret_cast< GEnergy * >(argp3);
13452 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[46]
, 0 | 0, 0)
;
13453 if (!SWIG_IsOK(res4)(res4 >= 0)) {
13454 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelSpatialRadial_eval_gradients" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelSpatialRadial_eval_gradients"
"', argument " "4"" of type '" "GTime const &""'"); goto
fail; } while(0)
;
13455 }
13456 if (!argp4) {
13457 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadial_eval_gradients" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadial_eval_gradients" "', argument "
"4"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
13458 }
13459 arg4 = reinterpret_cast< GTime * >(argp4);
13460 {
13461 try {
13462 result = (double)((GModelSpatialRadial const *)arg1)->eval_gradients((double const &)*arg2,(GEnergy const &)*arg3,(GTime const &)*arg4);
13463 }
13464 catch (const GException::out_of_range& e) {
13465 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13466 }
13467 catch (const GExceptionHandler& e) {
13468 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13469 }
13470 catch (const std::exception& e) {
13471 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13472 }
13473 }
13474 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
13475 return resultobj;
13476fail:
13477 return NULL__null;
13478}
13479
13480
13481SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadial_mc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13482 PyObject *resultobj = 0;
13483 GModelSpatialRadial *arg1 = (GModelSpatialRadial *) 0 ;
13484 GEnergy *arg2 = 0 ;
13485 GTime *arg3 = 0 ;
13486 GRan *arg4 = 0 ;
13487 void *argp1 = 0 ;
13488 int res1 = 0 ;
13489 void *argp2 = 0 ;
13490 int res2 = 0 ;
13491 void *argp3 = 0 ;
13492 int res3 = 0 ;
13493 void *argp4 = 0 ;
13494 int res4 = 0 ;
13495 PyObject * obj0 = 0 ;
13496 PyObject * obj1 = 0 ;
13497 PyObject * obj2 = 0 ;
13498 PyObject * obj3 = 0 ;
13499 GSkyDir result;
13500
13501 if (!PyArg_ParseTuple(args,(char *)"OOOO:GModelSpatialRadial_mc",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
13502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadial, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19]
, 0 | 0, 0)
;
13503 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadial_mc" "', argument " "1"" of type '" "GModelSpatialRadial const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadial_mc" "', argument "
"1"" of type '" "GModelSpatialRadial const *""'"); goto fail
; } while(0)
;
13505 }
13506 arg1 = reinterpret_cast< GModelSpatialRadial * >(argp1);
13507 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
13508 if (!SWIG_IsOK(res2)(res2 >= 0)) {
13509 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialRadial_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialRadial_mc" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
13510 }
13511 if (!argp2) {
13512 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadial_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadial_mc" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
13513 }
13514 arg2 = reinterpret_cast< GEnergy * >(argp2);
13515 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[46]
, 0 | 0, 0)
;
13516 if (!SWIG_IsOK(res3)(res3 >= 0)) {
13517 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpatialRadial_mc" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpatialRadial_mc" "', argument "
"3"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
13518 }
13519 if (!argp3) {
13520 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadial_mc" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadial_mc" "', argument " "3"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
13521 }
13522 arg3 = reinterpret_cast< GTime * >(argp3);
13523 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GRan, 0 )SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[42]
, 0, 0)
;
13524 if (!SWIG_IsOK(res4)(res4 >= 0)) {
13525 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelSpatialRadial_mc" "', argument " "4"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelSpatialRadial_mc" "', argument "
"4"" of type '" "GRan &""'"); goto fail; } while(0)
;
13526 }
13527 if (!argp4) {
13528 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadial_mc" "', argument " "4"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadial_mc" "', argument " "4"" of type '"
"GRan &""'"); goto fail; } while(0)
;
13529 }
13530 arg4 = reinterpret_cast< GRan * >(argp4);
13531 {
13532 try {
13533 result = ((GModelSpatialRadial const *)arg1)->mc((GEnergy const &)*arg2,(GTime const &)*arg3,*arg4);
13534 }
13535 catch (const GException::out_of_range& e) {
13536 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13537 }
13538 catch (const GExceptionHandler& e) {
13539 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13540 }
13541 catch (const std::exception& e) {
13542 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13543 }
13544 }
13545 resultobj = SWIG_NewPointerObj((new GSkyDir(static_cast< const GSkyDir& >(result))), SWIGTYPE_p_GSkyDir, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GSkyDir(static_cast<
const GSkyDir& >(result))), swig_types[44], 0x1 | 0)
;
13546 return resultobj;
13547fail:
13548 return NULL__null;
13549}
13550
13551
13552SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadial_theta_max(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13553 PyObject *resultobj = 0;
13554 GModelSpatialRadial *arg1 = (GModelSpatialRadial *) 0 ;
13555 void *argp1 = 0 ;
13556 int res1 = 0 ;
13557 PyObject * obj0 = 0 ;
13558 double result;
13559
13560 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialRadial_theta_max",&obj0)) SWIG_failgoto fail;
13561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadial, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19]
, 0 | 0, 0)
;
13562 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadial_theta_max" "', argument " "1"" of type '" "GModelSpatialRadial const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadial_theta_max"
"', argument " "1"" of type '" "GModelSpatialRadial const *"
"'"); goto fail; } while(0)
;
13564 }
13565 arg1 = reinterpret_cast< GModelSpatialRadial * >(argp1);
13566 {
13567 try {
13568 result = (double)((GModelSpatialRadial const *)arg1)->theta_max();
13569 }
13570 catch (const GException::out_of_range& e) {
13571 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13572 }
13573 catch (const GExceptionHandler& e) {
13574 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13575 }
13576 catch (const std::exception& e) {
13577 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13578 }
13579 }
13580 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
13581 return resultobj;
13582fail:
13583 return NULL__null;
13584}
13585
13586
13587SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadial_eval__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13588 PyObject *resultobj = 0;
13589 GModelSpatialRadial *arg1 = (GModelSpatialRadial *) 0 ;
13590 GPhoton *arg2 = 0 ;
13591 void *argp1 = 0 ;
13592 int res1 = 0 ;
13593 void *argp2 = 0 ;
13594 int res2 = 0 ;
13595 PyObject * obj0 = 0 ;
13596 PyObject * obj1 = 0 ;
13597 double result;
13598
13599 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialRadial_eval",&obj0,&obj1)) SWIG_failgoto fail;
13600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadial, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19]
, 0 | 0, 0)
;
13601 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadial_eval" "', argument " "1"" of type '" "GModelSpatialRadial const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadial_eval" "', argument "
"1"" of type '" "GModelSpatialRadial const *""'"); goto fail
; } while(0)
;
13603 }
13604 arg1 = reinterpret_cast< GModelSpatialRadial * >(argp1);
13605 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[40]
, 0 | 0, 0)
;
13606 if (!SWIG_IsOK(res2)(res2 >= 0)) {
13607 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialRadial_eval" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialRadial_eval" "', argument "
"2"" of type '" "GPhoton const &""'"); goto fail; } while
(0)
;
13608 }
13609 if (!argp2) {
13610 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadial_eval" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadial_eval" "', argument " "2"" of type '"
"GPhoton const &""'"); goto fail; } while(0)
;
13611 }
13612 arg2 = reinterpret_cast< GPhoton * >(argp2);
13613 {
13614 try {
13615 result = (double)((GModelSpatialRadial const *)arg1)->eval((GPhoton const &)*arg2);
13616 }
13617 catch (const GException::out_of_range& e) {
13618 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13619 }
13620 catch (const GExceptionHandler& e) {
13621 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13622 }
13623 catch (const std::exception& e) {
13624 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13625 }
13626 }
13627 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
13628 return resultobj;
13629fail:
13630 return NULL__null;
13631}
13632
13633
13634SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadial_eval(PyObject *self, PyObject *args) {
13635 int argc;
13636 PyObject *argv[5];
13637 int ii;
13638
13639 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
13640 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
13641 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
13642 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
13643 }
13644 if (argc == 2) {
13645 int _v;
13646 void *vptr = 0;
13647 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialRadial, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[19
], 0, 0)
;
13648 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13649 if (_v) {
13650 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GPhoton, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[40], 0, 0
)
;
13651 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13652 if (_v) {
13653 return _wrap_GModelSpatialRadial_eval__SWIG_1(self, args);
13654 }
13655 }
13656 }
13657 if (argc == 4) {
13658 int _v;
13659 void *vptr = 0;
13660 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialRadial, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[19
], 0, 0)
;
13661 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13662 if (_v) {
13663 {
13664 int res = SWIG_AsVal_double(argv[1], NULL__null);
13665 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13666 }
13667 if (_v) {
13668 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[3], 0, 0);
13669 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13670 if (_v) {
13671 int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GTime, 0)SWIG_Python_ConvertPtrAndOwn(argv[3], 0, swig_types[46], 0, 0
)
;
13672 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13673 if (_v) {
13674 return _wrap_GModelSpatialRadial_eval__SWIG_0(self, args);
13675 }
13676 }
13677 }
13678 }
13679 }
13680
13681fail:
13682 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialRadial_eval'.\n"
13683 " Possible C/C++ prototypes are:\n"
13684 " GModelSpatialRadial::eval(double const &,GEnergy const &,GTime const &) const\n"
13685 " GModelSpatialRadial::eval(GPhoton const &) const\n");
13686 return 0;
13687}
13688
13689
13690SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadial_eval_gradients__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13691 PyObject *resultobj = 0;
13692 GModelSpatialRadial *arg1 = (GModelSpatialRadial *) 0 ;
13693 GPhoton *arg2 = 0 ;
13694 void *argp1 = 0 ;
13695 int res1 = 0 ;
13696 void *argp2 = 0 ;
13697 int res2 = 0 ;
13698 PyObject * obj0 = 0 ;
13699 PyObject * obj1 = 0 ;
13700 double result;
13701
13702 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialRadial_eval_gradients",&obj0,&obj1)) SWIG_failgoto fail;
13703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadial, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19]
, 0 | 0, 0)
;
13704 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadial_eval_gradients" "', argument " "1"" of type '" "GModelSpatialRadial const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadial_eval_gradients"
"', argument " "1"" of type '" "GModelSpatialRadial const *"
"'"); goto fail; } while(0)
;
13706 }
13707 arg1 = reinterpret_cast< GModelSpatialRadial * >(argp1);
13708 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[40]
, 0 | 0, 0)
;
13709 if (!SWIG_IsOK(res2)(res2 >= 0)) {
13710 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialRadial_eval_gradients" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialRadial_eval_gradients"
"', argument " "2"" of type '" "GPhoton const &""'"); goto
fail; } while(0)
;
13711 }
13712 if (!argp2) {
13713 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadial_eval_gradients" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadial_eval_gradients" "', argument "
"2"" of type '" "GPhoton const &""'"); goto fail; } while
(0)
;
13714 }
13715 arg2 = reinterpret_cast< GPhoton * >(argp2);
13716 {
13717 try {
13718 result = (double)((GModelSpatialRadial const *)arg1)->eval_gradients((GPhoton const &)*arg2);
13719 }
13720 catch (const GException::out_of_range& e) {
13721 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13722 }
13723 catch (const GExceptionHandler& e) {
13724 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13725 }
13726 catch (const std::exception& e) {
13727 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13728 }
13729 }
13730 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
13731 return resultobj;
13732fail:
13733 return NULL__null;
13734}
13735
13736
13737SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadial_eval_gradients(PyObject *self, PyObject *args) {
13738 int argc;
13739 PyObject *argv[5];
13740 int ii;
13741
13742 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
13743 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
13744 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
13745 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
13746 }
13747 if (argc == 2) {
13748 int _v;
13749 void *vptr = 0;
13750 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialRadial, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[19
], 0, 0)
;
13751 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13752 if (_v) {
13753 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GPhoton, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[40], 0, 0
)
;
13754 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13755 if (_v) {
13756 return _wrap_GModelSpatialRadial_eval_gradients__SWIG_1(self, args);
13757 }
13758 }
13759 }
13760 if (argc == 4) {
13761 int _v;
13762 void *vptr = 0;
13763 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialRadial, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[19
], 0, 0)
;
13764 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13765 if (_v) {
13766 {
13767 int res = SWIG_AsVal_double(argv[1], NULL__null);
13768 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13769 }
13770 if (_v) {
13771 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[3], 0, 0);
13772 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13773 if (_v) {
13774 int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GTime, 0)SWIG_Python_ConvertPtrAndOwn(argv[3], 0, swig_types[46], 0, 0
)
;
13775 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13776 if (_v) {
13777 return _wrap_GModelSpatialRadial_eval_gradients__SWIG_0(self, args);
13778 }
13779 }
13780 }
13781 }
13782 }
13783
13784fail:
13785 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialRadial_eval_gradients'.\n"
13786 " Possible C/C++ prototypes are:\n"
13787 " GModelSpatialRadial::eval_gradients(double const &,GEnergy const &,GTime const &) const\n"
13788 " GModelSpatialRadial::eval_gradients(GPhoton const &) const\n");
13789 return 0;
13790}
13791
13792
13793SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadial_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13794 PyObject *resultobj = 0;
13795 GModelSpatialRadial *arg1 = (GModelSpatialRadial *) 0 ;
13796 GXmlElement *arg2 = 0 ;
13797 void *argp1 = 0 ;
13798 int res1 = 0 ;
13799 void *argp2 = 0 ;
13800 int res2 = 0 ;
13801 PyObject * obj0 = 0 ;
13802 PyObject * obj1 = 0 ;
13803
13804 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialRadial_read",&obj0,&obj1)) SWIG_failgoto fail;
13805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadial, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19]
, 0 | 0, 0)
;
13806 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadial_read" "', argument " "1"" of type '" "GModelSpatialRadial *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadial_read" "', argument "
"1"" of type '" "GModelSpatialRadial *""'"); goto fail; } while
(0)
;
13808 }
13809 arg1 = reinterpret_cast< GModelSpatialRadial * >(argp1);
13810 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0 | 0, 0)
;
13811 if (!SWIG_IsOK(res2)(res2 >= 0)) {
13812 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialRadial_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialRadial_read" "', argument "
"2"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
13813 }
13814 if (!argp2) {
13815 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadial_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadial_read" "', argument " "2"" of type '"
"GXmlElement const &""'"); goto fail; } while(0)
;
13816 }
13817 arg2 = reinterpret_cast< GXmlElement * >(argp2);
13818 {
13819 try {
13820 (arg1)->read((GXmlElement const &)*arg2);
13821 }
13822 catch (const GException::out_of_range& e) {
13823 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13824 }
13825 catch (const GExceptionHandler& e) {
13826 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13827 }
13828 catch (const std::exception& e) {
13829 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13830 }
13831 }
13832 resultobj = SWIG_Py_Void();
13833 return resultobj;
13834fail:
13835 return NULL__null;
13836}
13837
13838
13839SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadial_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13840 PyObject *resultobj = 0;
13841 GModelSpatialRadial *arg1 = (GModelSpatialRadial *) 0 ;
13842 GXmlElement *arg2 = 0 ;
13843 void *argp1 = 0 ;
13844 int res1 = 0 ;
13845 void *argp2 = 0 ;
13846 int res2 = 0 ;
13847 PyObject * obj0 = 0 ;
13848 PyObject * obj1 = 0 ;
13849
13850 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialRadial_write",&obj0,&obj1)) SWIG_failgoto fail;
13851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadial, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19]
, 0 | 0, 0)
;
13852 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadial_write" "', argument " "1"" of type '" "GModelSpatialRadial const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadial_write"
"', argument " "1"" of type '" "GModelSpatialRadial const *"
"'"); goto fail; } while(0)
;
13854 }
13855 arg1 = reinterpret_cast< GModelSpatialRadial * >(argp1);
13856 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0, 0)
;
13857 if (!SWIG_IsOK(res2)(res2 >= 0)) {
13858 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialRadial_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialRadial_write"
"', argument " "2"" of type '" "GXmlElement &""'"); goto
fail; } while(0)
;
13859 }
13860 if (!argp2) {
13861 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadial_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadial_write" "', argument " "2"
" of type '" "GXmlElement &""'"); goto fail; } while(0)
;
13862 }
13863 arg2 = reinterpret_cast< GXmlElement * >(argp2);
13864 {
13865 try {
13866 ((GModelSpatialRadial const *)arg1)->write(*arg2);
13867 }
13868 catch (const GException::out_of_range& e) {
13869 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13870 }
13871 catch (const GExceptionHandler& e) {
13872 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13873 }
13874 catch (const std::exception& e) {
13875 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13876 }
13877 }
13878 resultobj = SWIG_Py_Void();
13879 return resultobj;
13880fail:
13881 return NULL__null;
13882}
13883
13884
13885SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadial_ra__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13886 PyObject *resultobj = 0;
13887 GModelSpatialRadial *arg1 = (GModelSpatialRadial *) 0 ;
13888 void *argp1 = 0 ;
13889 int res1 = 0 ;
13890 PyObject * obj0 = 0 ;
13891 double result;
13892
13893 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialRadial_ra",&obj0)) SWIG_failgoto fail;
13894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadial, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19]
, 0 | 0, 0)
;
13895 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadial_ra" "', argument " "1"" of type '" "GModelSpatialRadial const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadial_ra" "', argument "
"1"" of type '" "GModelSpatialRadial const *""'"); goto fail
; } while(0)
;
13897 }
13898 arg1 = reinterpret_cast< GModelSpatialRadial * >(argp1);
13899 {
13900 try {
13901 result = (double)((GModelSpatialRadial const *)arg1)->ra();
13902 }
13903 catch (const GException::out_of_range& e) {
13904 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13905 }
13906 catch (const GExceptionHandler& e) {
13907 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13908 }
13909 catch (const std::exception& e) {
13910 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13911 }
13912 }
13913 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
13914 return resultobj;
13915fail:
13916 return NULL__null;
13917}
13918
13919
13920SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadial_dec__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13921 PyObject *resultobj = 0;
13922 GModelSpatialRadial *arg1 = (GModelSpatialRadial *) 0 ;
13923 void *argp1 = 0 ;
13924 int res1 = 0 ;
13925 PyObject * obj0 = 0 ;
13926 double result;
13927
13928 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialRadial_dec",&obj0)) SWIG_failgoto fail;
13929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadial, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19]
, 0 | 0, 0)
;
13930 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadial_dec" "', argument " "1"" of type '" "GModelSpatialRadial const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadial_dec" "', argument "
"1"" of type '" "GModelSpatialRadial const *""'"); goto fail
; } while(0)
;
13932 }
13933 arg1 = reinterpret_cast< GModelSpatialRadial * >(argp1);
13934 {
13935 try {
13936 result = (double)((GModelSpatialRadial const *)arg1)->dec();
13937 }
13938 catch (const GException::out_of_range& e) {
13939 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13940 }
13941 catch (const GExceptionHandler& e) {
13942 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13943 }
13944 catch (const std::exception& e) {
13945 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13946 }
13947 }
13948 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
13949 return resultobj;
13950fail:
13951 return NULL__null;
13952}
13953
13954
13955SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadial_ra__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13956 PyObject *resultobj = 0;
13957 GModelSpatialRadial *arg1 = (GModelSpatialRadial *) 0 ;
13958 double *arg2 = 0 ;
13959 void *argp1 = 0 ;
13960 int res1 = 0 ;
13961 double temp2 ;
13962 double val2 ;
13963 int ecode2 = 0 ;
13964 PyObject * obj0 = 0 ;
13965 PyObject * obj1 = 0 ;
13966
13967 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialRadial_ra",&obj0,&obj1)) SWIG_failgoto fail;
13968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadial, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19]
, 0 | 0, 0)
;
13969 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadial_ra" "', argument " "1"" of type '" "GModelSpatialRadial *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadial_ra" "', argument "
"1"" of type '" "GModelSpatialRadial *""'"); goto fail; } while
(0)
;
13971 }
13972 arg1 = reinterpret_cast< GModelSpatialRadial * >(argp1);
13973 ecode2 = SWIG_AsVal_double(obj1, &val2);
13974 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
13975 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpatialRadial_ra" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpatialRadial_ra"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
13976 }
13977 temp2 = static_cast< double >(val2);
13978 arg2 = &temp2;
13979 {
13980 try {
13981 (arg1)->ra((double const &)*arg2);
13982 }
13983 catch (const GException::out_of_range& e) {
13984 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13985 }
13986 catch (const GExceptionHandler& e) {
13987 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13988 }
13989 catch (const std::exception& e) {
13990 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13991 }
13992 }
13993 resultobj = SWIG_Py_Void();
13994 return resultobj;
13995fail:
13996 return NULL__null;
13997}
13998
13999
14000SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadial_ra(PyObject *self, PyObject *args) {
14001 int argc;
14002 PyObject *argv[3];
14003 int ii;
14004
14005 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
14006 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
14007 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
14008 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
14009 }
14010 if (argc == 1) {
14011 int _v;
14012 void *vptr = 0;
14013 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialRadial, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[19
], 0, 0)
;
14014 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
14015 if (_v) {
14016 return _wrap_GModelSpatialRadial_ra__SWIG_0(self, args);
14017 }
14018 }
14019 if (argc == 2) {
14020 int _v;
14021 void *vptr = 0;
14022 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialRadial, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[19
], 0, 0)
;
14023 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
14024 if (_v) {
14025 {
14026 int res = SWIG_AsVal_double(argv[1], NULL__null);
14027 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
14028 }
14029 if (_v) {
14030 return _wrap_GModelSpatialRadial_ra__SWIG_1(self, args);
14031 }
14032 }
14033 }
14034
14035fail:
14036 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialRadial_ra'.\n"
14037 " Possible C/C++ prototypes are:\n"
14038 " GModelSpatialRadial::ra() const\n"
14039 " GModelSpatialRadial::ra(double const &)\n");
14040 return 0;
14041}
14042
14043
14044SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadial_dec__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14045 PyObject *resultobj = 0;
14046 GModelSpatialRadial *arg1 = (GModelSpatialRadial *) 0 ;
14047 double *arg2 = 0 ;
14048 void *argp1 = 0 ;
14049 int res1 = 0 ;
14050 double temp2 ;
14051 double val2 ;
14052 int ecode2 = 0 ;
14053 PyObject * obj0 = 0 ;
14054 PyObject * obj1 = 0 ;
14055
14056 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialRadial_dec",&obj0,&obj1)) SWIG_failgoto fail;
14057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadial, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19]
, 0 | 0, 0)
;
14058 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadial_dec" "', argument " "1"" of type '" "GModelSpatialRadial *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadial_dec" "', argument "
"1"" of type '" "GModelSpatialRadial *""'"); goto fail; } while
(0)
;
14060 }
14061 arg1 = reinterpret_cast< GModelSpatialRadial * >(argp1);
14062 ecode2 = SWIG_AsVal_double(obj1, &val2);
14063 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
14064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpatialRadial_dec" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpatialRadial_dec"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
14065 }
14066 temp2 = static_cast< double >(val2);
14067 arg2 = &temp2;
14068 {
14069 try {
14070 (arg1)->dec((double const &)*arg2);
14071 }
14072 catch (const GException::out_of_range& e) {
14073 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14074 }
14075 catch (const GExceptionHandler& e) {
14076 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14077 }
14078 catch (const std::exception& e) {
14079 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14080 }
14081 }
14082 resultobj = SWIG_Py_Void();
14083 return resultobj;
14084fail:
14085 return NULL__null;
14086}
14087
14088
14089SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadial_dec(PyObject *self, PyObject *args) {
14090 int argc;
14091 PyObject *argv[3];
14092 int ii;
14093
14094 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
14095 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
14096 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
14097 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
14098 }
14099 if (argc == 1) {
14100 int _v;
14101 void *vptr = 0;
14102 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialRadial, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[19
], 0, 0)
;
14103 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
14104 if (_v) {
14105 return _wrap_GModelSpatialRadial_dec__SWIG_0(self, args);
14106 }
14107 }
14108 if (argc == 2) {
14109 int _v;
14110 void *vptr = 0;
14111 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialRadial, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[19
], 0, 0)
;
14112 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
14113 if (_v) {
14114 {
14115 int res = SWIG_AsVal_double(argv[1], NULL__null);
14116 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
14117 }
14118 if (_v) {
14119 return _wrap_GModelSpatialRadial_dec__SWIG_1(self, args);
14120 }
14121 }
14122 }
14123
14124fail:
14125 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialRadial_dec'.\n"
14126 " Possible C/C++ prototypes are:\n"
14127 " GModelSpatialRadial::dec() const\n"
14128 " GModelSpatialRadial::dec(double const &)\n");
14129 return 0;
14130}
14131
14132
14133SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadial_dir__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14134 PyObject *resultobj = 0;
14135 GModelSpatialRadial *arg1 = (GModelSpatialRadial *) 0 ;
14136 void *argp1 = 0 ;
14137 int res1 = 0 ;
14138 PyObject * obj0 = 0 ;
14139 GSkyDir result;
14140
14141 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialRadial_dir",&obj0)) SWIG_failgoto fail;
14142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadial, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19]
, 0 | 0, 0)
;
14143 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadial_dir" "', argument " "1"" of type '" "GModelSpatialRadial const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadial_dir" "', argument "
"1"" of type '" "GModelSpatialRadial const *""'"); goto fail
; } while(0)
;
14145 }
14146 arg1 = reinterpret_cast< GModelSpatialRadial * >(argp1);
14147 {
14148 try {
14149 result = ((GModelSpatialRadial const *)arg1)->dir();
14150 }
14151 catch (const GException::out_of_range& e) {
14152 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14153 }
14154 catch (const GExceptionHandler& e) {
14155 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14156 }
14157 catch (const std::exception& e) {
14158 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14159 }
14160 }
14161 resultobj = SWIG_NewPointerObj((new GSkyDir(static_cast< const GSkyDir& >(result))), SWIGTYPE_p_GSkyDir, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GSkyDir(static_cast<
const GSkyDir& >(result))), swig_types[44], 0x1 | 0)
;
14162 return resultobj;
14163fail:
14164 return NULL__null;
14165}
14166
14167
14168SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadial_dir__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14169 PyObject *resultobj = 0;
14170 GModelSpatialRadial *arg1 = (GModelSpatialRadial *) 0 ;
14171 GSkyDir *arg2 = 0 ;
14172 void *argp1 = 0 ;
14173 int res1 = 0 ;
14174 void *argp2 = 0 ;
14175 int res2 = 0 ;
14176 PyObject * obj0 = 0 ;
14177 PyObject * obj1 = 0 ;
14178
14179 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialRadial_dir",&obj0,&obj1)) SWIG_failgoto fail;
14180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadial, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19]
, 0 | 0, 0)
;
14181 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadial_dir" "', argument " "1"" of type '" "GModelSpatialRadial *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadial_dir" "', argument "
"1"" of type '" "GModelSpatialRadial *""'"); goto fail; } while
(0)
;
14183 }
14184 arg1 = reinterpret_cast< GModelSpatialRadial * >(argp1);
14185 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[44]
, 0 | 0, 0)
;
14186 if (!SWIG_IsOK(res2)(res2 >= 0)) {
14187 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialRadial_dir" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialRadial_dir" "', argument "
"2"" of type '" "GSkyDir const &""'"); goto fail; } while
(0)
;
14188 }
14189 if (!argp2) {
14190 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadial_dir" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadial_dir" "', argument " "2"" of type '"
"GSkyDir const &""'"); goto fail; } while(0)
;
14191 }
14192 arg2 = reinterpret_cast< GSkyDir * >(argp2);
14193 {
14194 try {
14195 (arg1)->dir((GSkyDir const &)*arg2);
14196 }
14197 catch (const GException::out_of_range& e) {
14198 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14199 }
14200 catch (const GExceptionHandler& e) {
14201 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14202 }
14203 catch (const std::exception& e) {
14204 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14205 }
14206 }
14207 resultobj = SWIG_Py_Void();
14208 return resultobj;
14209fail:
14210 return NULL__null;
14211}
14212
14213
14214SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadial_dir(PyObject *self, PyObject *args) {
14215 int argc;
14216 PyObject *argv[3];
14217 int ii;
14218
14219 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
14220 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
14221 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
14222 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
14223 }
14224 if (argc == 1) {
14225 int _v;
14226 void *vptr = 0;
14227 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialRadial, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[19
], 0, 0)
;
14228 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
14229 if (_v) {
14230 return _wrap_GModelSpatialRadial_dir__SWIG_0(self, args);
14231 }
14232 }
14233 if (argc == 2) {
14234 int _v;
14235 void *vptr = 0;
14236 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialRadial, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[19
], 0, 0)
;
14237 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
14238 if (_v) {
14239 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GSkyDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[44], 0, 0
)
;
14240 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
14241 if (_v) {
14242 return _wrap_GModelSpatialRadial_dir__SWIG_1(self, args);
14243 }
14244 }
14245 }
14246
14247fail:
14248 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialRadial_dir'.\n"
14249 " Possible C/C++ prototypes are:\n"
14250 " GModelSpatialRadial::dir() const\n"
14251 " GModelSpatialRadial::dir(GSkyDir const &)\n");
14252 return 0;
14253}
14254
14255
14256SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GModelSpatialRadial_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14257 PyObject *obj;
14258 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
14259 SWIG_TypeNewClientData(SWIGTYPE_p_GModelSpatialRadialswig_types[19], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
14260 return SWIG_Py_Void();
14261}
14262
14263SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialRadialDisk__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14264 PyObject *resultobj = 0;
14265 GModelSpatialRadialDisk *result = 0 ;
14266
14267 if (!PyArg_ParseTuple(args,(char *)":new_GModelSpatialRadialDisk")) SWIG_failgoto fail;
14268 {
14269 try {
14270 result = (GModelSpatialRadialDisk *)new GModelSpatialRadialDisk();
14271 }
14272 catch (const GException::out_of_range& e) {
14273 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14274 }
14275 catch (const GExceptionHandler& e) {
14276 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14277 }
14278 catch (const std::exception& e) {
14279 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14280 }
14281 }
14282 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialRadialDisk, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[20], (
(0x1 << 1) | 0x1) | 0)
;
14283 return resultobj;
14284fail:
14285 return NULL__null;
14286}
14287
14288
14289SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialRadialDisk__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14290 PyObject *resultobj = 0;
14291 GSkyDir *arg1 = 0 ;
14292 double *arg2 = 0 ;
14293 void *argp1 = 0 ;
14294 int res1 = 0 ;
14295 double temp2 ;
14296 double val2 ;
14297 int ecode2 = 0 ;
14298 PyObject * obj0 = 0 ;
14299 PyObject * obj1 = 0 ;
14300 GModelSpatialRadialDisk *result = 0 ;
14301
14302 if (!PyArg_ParseTuple(args,(char *)"OO:new_GModelSpatialRadialDisk",&obj0,&obj1)) SWIG_failgoto fail;
14303 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[44]
, 0 | 0, 0)
;
14304 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpatialRadialDisk" "', argument " "1"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpatialRadialDisk"
"', argument " "1"" of type '" "GSkyDir const &""'"); goto
fail; } while(0)
;
14306 }
14307 if (!argp1) {
14308 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpatialRadialDisk" "', argument " "1"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpatialRadialDisk" "', argument " "1"
" of type '" "GSkyDir const &""'"); goto fail; } while(0)
;
14309 }
14310 arg1 = reinterpret_cast< GSkyDir * >(argp1);
14311 ecode2 = SWIG_AsVal_double(obj1, &val2);
14312 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
14313 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GModelSpatialRadialDisk" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "new_GModelSpatialRadialDisk"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
14314 }
14315 temp2 = static_cast< double >(val2);
14316 arg2 = &temp2;
14317 {
14318 try {
14319 result = (GModelSpatialRadialDisk *)new GModelSpatialRadialDisk((GSkyDir const &)*arg1,(double const &)*arg2);
14320 }
14321 catch (const GException::out_of_range& e) {
14322 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14323 }
14324 catch (const GExceptionHandler& e) {
14325 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14326 }
14327 catch (const std::exception& e) {
14328 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14329 }
14330 }
14331 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialRadialDisk, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[20], (
(0x1 << 1) | 0x1) | 0)
;
14332 return resultobj;
14333fail:
14334 return NULL__null;
14335}
14336
14337
14338SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialRadialDisk__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14339 PyObject *resultobj = 0;
14340 GXmlElement *arg1 = 0 ;
14341 void *argp1 = 0 ;
14342 int res1 = 0 ;
14343 PyObject * obj0 = 0 ;
14344 GModelSpatialRadialDisk *result = 0 ;
14345
14346 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpatialRadialDisk",&obj0)) SWIG_failgoto fail;
14347 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[50]
, 0 | 0, 0)
;
14348 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpatialRadialDisk" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpatialRadialDisk"
"', argument " "1"" of type '" "GXmlElement const &""'")
; goto fail; } while(0)
;
14350 }
14351 if (!argp1) {
14352 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpatialRadialDisk" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpatialRadialDisk" "', argument " "1"
" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
14353 }
14354 arg1 = reinterpret_cast< GXmlElement * >(argp1);
14355 {
14356 try {
14357 result = (GModelSpatialRadialDisk *)new GModelSpatialRadialDisk((GXmlElement const &)*arg1);
14358 }
14359 catch (const GException::out_of_range& e) {
14360 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14361 }
14362 catch (const GExceptionHandler& e) {
14363 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14364 }
14365 catch (const std::exception& e) {
14366 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14367 }
14368 }
14369 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialRadialDisk, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[20], (
(0x1 << 1) | 0x1) | 0)
;
14370 return resultobj;
14371fail:
14372 return NULL__null;
14373}
14374
14375
14376SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialRadialDisk__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14377 PyObject *resultobj = 0;
14378 GModelSpatialRadialDisk *arg1 = 0 ;
14379 void *argp1 = 0 ;
14380 int res1 = 0 ;
14381 PyObject * obj0 = 0 ;
14382 GModelSpatialRadialDisk *result = 0 ;
14383
14384 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpatialRadialDisk",&obj0)) SWIG_failgoto fail;
14385 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GModelSpatialRadialDisk, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
14386 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpatialRadialDisk" "', argument " "1"" of type '" "GModelSpatialRadialDisk const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpatialRadialDisk"
"', argument " "1"" of type '" "GModelSpatialRadialDisk const &"
"'"); goto fail; } while(0)
;
14388 }
14389 if (!argp1) {
14390 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpatialRadialDisk" "', argument " "1"" of type '" "GModelSpatialRadialDisk const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpatialRadialDisk" "', argument " "1"
" of type '" "GModelSpatialRadialDisk const &""'"); goto fail
; } while(0)
;
14391 }
14392 arg1 = reinterpret_cast< GModelSpatialRadialDisk * >(argp1);
14393 {
14394 try {
14395 result = (GModelSpatialRadialDisk *)new GModelSpatialRadialDisk((GModelSpatialRadialDisk const &)*arg1);
14396 }
14397 catch (const GException::out_of_range& e) {
14398 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14399 }
14400 catch (const GExceptionHandler& e) {
14401 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14402 }
14403 catch (const std::exception& e) {
14404 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14405 }
14406 }
14407 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialRadialDisk, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[20], (
(0x1 << 1) | 0x1) | 0)
;
14408 return resultobj;
14409fail:
14410 return NULL__null;
14411}
14412
14413
14414SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialRadialDisk(PyObject *self, PyObject *args) {
14415 int argc;
14416 PyObject *argv[3];
14417 int ii;
14418
14419 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
14420 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
14421 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
14422 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
14423 }
14424 if (argc == 0) {
14425 return _wrap_new_GModelSpatialRadialDisk__SWIG_0(self, args);
14426 }
14427 if (argc == 1) {
14428 int _v;
14429 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GXmlElement, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[50], 0, 0
)
;
14430 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
14431 if (_v) {
14432 return _wrap_new_GModelSpatialRadialDisk__SWIG_2(self, args);
14433 }
14434 }
14435 if (argc == 1) {
14436 int _v;
14437 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GModelSpatialRadialDisk, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[20], 0, 0
)
;
14438 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
14439 if (_v) {
14440 return _wrap_new_GModelSpatialRadialDisk__SWIG_3(self, args);
14441 }
14442 }
14443 if (argc == 2) {
14444 int _v;
14445 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GSkyDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[44], 0, 0
)
;
14446 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
14447 if (_v) {
14448 {
14449 int res = SWIG_AsVal_double(argv[1], NULL__null);
14450 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
14451 }
14452 if (_v) {
14453 return _wrap_new_GModelSpatialRadialDisk__SWIG_1(self, args);
14454 }
14455 }
14456 }
14457
14458fail:
14459 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GModelSpatialRadialDisk'.\n"
14460 " Possible C/C++ prototypes are:\n"
14461 " GModelSpatialRadialDisk::GModelSpatialRadialDisk()\n"
14462 " GModelSpatialRadialDisk::GModelSpatialRadialDisk(GSkyDir const &,double const &)\n"
14463 " GModelSpatialRadialDisk::GModelSpatialRadialDisk(GXmlElement const &)\n"
14464 " GModelSpatialRadialDisk::GModelSpatialRadialDisk(GModelSpatialRadialDisk const &)\n");
14465 return 0;
14466}
14467
14468
14469SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GModelSpatialRadialDisk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14470 PyObject *resultobj = 0;
14471 GModelSpatialRadialDisk *arg1 = (GModelSpatialRadialDisk *) 0 ;
14472 void *argp1 = 0 ;
14473 int res1 = 0 ;
14474 PyObject * obj0 = 0 ;
14475
14476 if (!PyArg_ParseTuple(args,(char *)"O:delete_GModelSpatialRadialDisk",&obj0)) SWIG_failgoto fail;
14477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialDisk, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0x1 | 0, 0)
;
14478 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GModelSpatialRadialDisk" "', argument " "1"" of type '" "GModelSpatialRadialDisk *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GModelSpatialRadialDisk"
"', argument " "1"" of type '" "GModelSpatialRadialDisk *""'"
); goto fail; } while(0)
;
14480 }
14481 arg1 = reinterpret_cast< GModelSpatialRadialDisk * >(argp1);
14482 {
14483 try {
14484 delete arg1;
14485 }
14486 catch (const GException::out_of_range& e) {
14487 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14488 }
14489 catch (const GExceptionHandler& e) {
14490 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14491 }
14492 catch (const std::exception& e) {
14493 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14494 }
14495 }
14496 resultobj = SWIG_Py_Void();
14497 return resultobj;
14498fail:
14499 return NULL__null;
14500}
14501
14502
14503SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialDisk_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14504 PyObject *resultobj = 0;
14505 GModelSpatialRadialDisk *arg1 = (GModelSpatialRadialDisk *) 0 ;
14506 void *argp1 = 0 ;
14507 int res1 = 0 ;
14508 PyObject * obj0 = 0 ;
14509
14510 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialRadialDisk_clear",&obj0)) SWIG_failgoto fail;
14511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialDisk, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
14512 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialDisk_clear" "', argument " "1"" of type '" "GModelSpatialRadialDisk *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialDisk_clear"
"', argument " "1"" of type '" "GModelSpatialRadialDisk *""'"
); goto fail; } while(0)
;
14514 }
14515 arg1 = reinterpret_cast< GModelSpatialRadialDisk * >(argp1);
14516 {
14517 try {
14518 (arg1)->clear();
14519 }
14520 catch (const GException::out_of_range& e) {
14521 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14522 }
14523 catch (const GExceptionHandler& e) {
14524 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14525 }
14526 catch (const std::exception& e) {
14527 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14528 }
14529 }
14530 resultobj = SWIG_Py_Void();
14531 return resultobj;
14532fail:
14533 return NULL__null;
14534}
14535
14536
14537SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialDisk_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14538 PyObject *resultobj = 0;
14539 GModelSpatialRadialDisk *arg1 = (GModelSpatialRadialDisk *) 0 ;
14540 void *argp1 = 0 ;
14541 int res1 = 0 ;
14542 PyObject * obj0 = 0 ;
14543 GModelSpatialRadialDisk *result = 0 ;
14544
14545 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialRadialDisk_clone",&obj0)) SWIG_failgoto fail;
14546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialDisk, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
14547 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialDisk_clone" "', argument " "1"" of type '" "GModelSpatialRadialDisk const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialDisk_clone"
"', argument " "1"" of type '" "GModelSpatialRadialDisk const *"
"'"); goto fail; } while(0)
;
14549 }
14550 arg1 = reinterpret_cast< GModelSpatialRadialDisk * >(argp1);
14551 {
14552 try {
14553 result = (GModelSpatialRadialDisk *)((GModelSpatialRadialDisk const *)arg1)->clone();
14554 }
14555 catch (const GException::out_of_range& e) {
14556 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14557 }
14558 catch (const GExceptionHandler& e) {
14559 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14560 }
14561 catch (const std::exception& e) {
14562 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14563 }
14564 }
14565 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialRadialDisk, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[20], 0
| 0)
;
14566 return resultobj;
14567fail:
14568 return NULL__null;
14569}
14570
14571
14572SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialDisk_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14573 PyObject *resultobj = 0;
14574 GModelSpatialRadialDisk *arg1 = (GModelSpatialRadialDisk *) 0 ;
14575 void *argp1 = 0 ;
14576 int res1 = 0 ;
14577 PyObject * obj0 = 0 ;
14578 std::string result;
14579
14580 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialRadialDisk_type",&obj0)) SWIG_failgoto fail;
14581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialDisk, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
14582 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialDisk_type" "', argument " "1"" of type '" "GModelSpatialRadialDisk const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialDisk_type"
"', argument " "1"" of type '" "GModelSpatialRadialDisk const *"
"'"); goto fail; } while(0)
;
14584 }
14585 arg1 = reinterpret_cast< GModelSpatialRadialDisk * >(argp1);
14586 {
14587 try {
14588 result = ((GModelSpatialRadialDisk const *)arg1)->type();
14589 }
14590 catch (const GException::out_of_range& e) {
14591 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14592 }
14593 catch (const GExceptionHandler& e) {
14594 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14595 }
14596 catch (const std::exception& e) {
14597 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14598 }
14599 }
14600 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
14601 return resultobj;
14602fail:
14603 return NULL__null;
14604}
14605
14606
14607SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialDisk_eval__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14608 PyObject *resultobj = 0;
14609 GModelSpatialRadialDisk *arg1 = (GModelSpatialRadialDisk *) 0 ;
14610 double *arg2 = 0 ;
14611 GEnergy *arg3 = 0 ;
14612 GTime *arg4 = 0 ;
14613 void *argp1 = 0 ;
14614 int res1 = 0 ;
14615 double temp2 ;
14616 double val2 ;
14617 int ecode2 = 0 ;
14618 void *argp3 = 0 ;
14619 int res3 = 0 ;
14620 void *argp4 = 0 ;
14621 int res4 = 0 ;
14622 PyObject * obj0 = 0 ;
14623 PyObject * obj1 = 0 ;
14624 PyObject * obj2 = 0 ;
14625 PyObject * obj3 = 0 ;
14626 double result;
14627
14628 if (!PyArg_ParseTuple(args,(char *)"OOOO:GModelSpatialRadialDisk_eval",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
14629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialDisk, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
14630 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialDisk_eval" "', argument " "1"" of type '" "GModelSpatialRadialDisk const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialDisk_eval"
"', argument " "1"" of type '" "GModelSpatialRadialDisk const *"
"'"); goto fail; } while(0)
;
14632 }
14633 arg1 = reinterpret_cast< GModelSpatialRadialDisk * >(argp1);
14634 ecode2 = SWIG_AsVal_double(obj1, &val2);
14635 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
14636 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpatialRadialDisk_eval" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpatialRadialDisk_eval"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
14637 }
14638 temp2 = static_cast< double >(val2);
14639 arg2 = &temp2;
14640 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
14641 if (!SWIG_IsOK(res3)(res3 >= 0)) {
14642 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpatialRadialDisk_eval" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpatialRadialDisk_eval"
"', argument " "3"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
14643 }
14644 if (!argp3) {
14645 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadialDisk_eval" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadialDisk_eval" "', argument " "3"
" of type '" "GEnergy const &""'"); goto fail; } while(0)
;
14646 }
14647 arg3 = reinterpret_cast< GEnergy * >(argp3);
14648 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[46]
, 0 | 0, 0)
;
14649 if (!SWIG_IsOK(res4)(res4 >= 0)) {
14650 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelSpatialRadialDisk_eval" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelSpatialRadialDisk_eval"
"', argument " "4"" of type '" "GTime const &""'"); goto
fail; } while(0)
;
14651 }
14652 if (!argp4) {
14653 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadialDisk_eval" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadialDisk_eval" "', argument " "4"
" of type '" "GTime const &""'"); goto fail; } while(0)
;
14654 }
14655 arg4 = reinterpret_cast< GTime * >(argp4);
14656 {
14657 try {
14658 result = (double)((GModelSpatialRadialDisk const *)arg1)->eval((double const &)*arg2,(GEnergy const &)*arg3,(GTime const &)*arg4);
14659 }
14660 catch (const GException::out_of_range& e) {
14661 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14662 }
14663 catch (const GExceptionHandler& e) {
14664 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14665 }
14666 catch (const std::exception& e) {
14667 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14668 }
14669 }
14670 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
14671 return resultobj;
14672fail:
14673 return NULL__null;
14674}
14675
14676
14677SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialDisk_eval_gradients__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14678 PyObject *resultobj = 0;
14679 GModelSpatialRadialDisk *arg1 = (GModelSpatialRadialDisk *) 0 ;
14680 double *arg2 = 0 ;
14681 GEnergy *arg3 = 0 ;
14682 GTime *arg4 = 0 ;
14683 void *argp1 = 0 ;
14684 int res1 = 0 ;
14685 double temp2 ;
14686 double val2 ;
14687 int ecode2 = 0 ;
14688 void *argp3 = 0 ;
14689 int res3 = 0 ;
14690 void *argp4 = 0 ;
14691 int res4 = 0 ;
14692 PyObject * obj0 = 0 ;
14693 PyObject * obj1 = 0 ;
14694 PyObject * obj2 = 0 ;
14695 PyObject * obj3 = 0 ;
14696 double result;
14697
14698 if (!PyArg_ParseTuple(args,(char *)"OOOO:GModelSpatialRadialDisk_eval_gradients",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
14699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialDisk, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
14700 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialDisk_eval_gradients" "', argument " "1"" of type '" "GModelSpatialRadialDisk const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialDisk_eval_gradients"
"', argument " "1"" of type '" "GModelSpatialRadialDisk const *"
"'"); goto fail; } while(0)
;
14702 }
14703 arg1 = reinterpret_cast< GModelSpatialRadialDisk * >(argp1);
14704 ecode2 = SWIG_AsVal_double(obj1, &val2);
14705 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
14706 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpatialRadialDisk_eval_gradients" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpatialRadialDisk_eval_gradients"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
14707 }
14708 temp2 = static_cast< double >(val2);
14709 arg2 = &temp2;
14710 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
14711 if (!SWIG_IsOK(res3)(res3 >= 0)) {
14712 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpatialRadialDisk_eval_gradients" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpatialRadialDisk_eval_gradients"
"', argument " "3"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
14713 }
14714 if (!argp3) {
14715 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadialDisk_eval_gradients" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadialDisk_eval_gradients" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
14716 }
14717 arg3 = reinterpret_cast< GEnergy * >(argp3);
14718 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[46]
, 0 | 0, 0)
;
14719 if (!SWIG_IsOK(res4)(res4 >= 0)) {
14720 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelSpatialRadialDisk_eval_gradients" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelSpatialRadialDisk_eval_gradients"
"', argument " "4"" of type '" "GTime const &""'"); goto
fail; } while(0)
;
14721 }
14722 if (!argp4) {
14723 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadialDisk_eval_gradients" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadialDisk_eval_gradients" "', argument "
"4"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
14724 }
14725 arg4 = reinterpret_cast< GTime * >(argp4);
14726 {
14727 try {
14728 result = (double)((GModelSpatialRadialDisk const *)arg1)->eval_gradients((double const &)*arg2,(GEnergy const &)*arg3,(GTime const &)*arg4);
14729 }
14730 catch (const GException::out_of_range& e) {
14731 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14732 }
14733 catch (const GExceptionHandler& e) {
14734 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14735 }
14736 catch (const std::exception& e) {
14737 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14738 }
14739 }
14740 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
14741 return resultobj;
14742fail:
14743 return NULL__null;
14744}
14745
14746
14747SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialDisk_mc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14748 PyObject *resultobj = 0;
14749 GModelSpatialRadialDisk *arg1 = (GModelSpatialRadialDisk *) 0 ;
14750 GEnergy *arg2 = 0 ;
14751 GTime *arg3 = 0 ;
14752 GRan *arg4 = 0 ;
14753 void *argp1 = 0 ;
14754 int res1 = 0 ;
14755 void *argp2 = 0 ;
14756 int res2 = 0 ;
14757 void *argp3 = 0 ;
14758 int res3 = 0 ;
14759 void *argp4 = 0 ;
14760 int res4 = 0 ;
14761 PyObject * obj0 = 0 ;
14762 PyObject * obj1 = 0 ;
14763 PyObject * obj2 = 0 ;
14764 PyObject * obj3 = 0 ;
14765 GSkyDir result;
14766
14767 if (!PyArg_ParseTuple(args,(char *)"OOOO:GModelSpatialRadialDisk_mc",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
14768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialDisk, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
14769 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialDisk_mc" "', argument " "1"" of type '" "GModelSpatialRadialDisk const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialDisk_mc"
"', argument " "1"" of type '" "GModelSpatialRadialDisk const *"
"'"); goto fail; } while(0)
;
14771 }
14772 arg1 = reinterpret_cast< GModelSpatialRadialDisk * >(argp1);
14773 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
14774 if (!SWIG_IsOK(res2)(res2 >= 0)) {
14775 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialRadialDisk_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialRadialDisk_mc"
"', argument " "2"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
14776 }
14777 if (!argp2) {
14778 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadialDisk_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadialDisk_mc" "', argument " "2"
" of type '" "GEnergy const &""'"); goto fail; } while(0)
;
14779 }
14780 arg2 = reinterpret_cast< GEnergy * >(argp2);
14781 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[46]
, 0 | 0, 0)
;
14782 if (!SWIG_IsOK(res3)(res3 >= 0)) {
14783 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpatialRadialDisk_mc" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpatialRadialDisk_mc"
"', argument " "3"" of type '" "GTime const &""'"); goto
fail; } while(0)
;
14784 }
14785 if (!argp3) {
14786 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadialDisk_mc" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadialDisk_mc" "', argument " "3"
" of type '" "GTime const &""'"); goto fail; } while(0)
;
14787 }
14788 arg3 = reinterpret_cast< GTime * >(argp3);
14789 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GRan, 0 )SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[42]
, 0, 0)
;
14790 if (!SWIG_IsOK(res4)(res4 >= 0)) {
14791 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelSpatialRadialDisk_mc" "', argument " "4"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelSpatialRadialDisk_mc"
"', argument " "4"" of type '" "GRan &""'"); goto fail; }
while(0)
;
14792 }
14793 if (!argp4) {
14794 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadialDisk_mc" "', argument " "4"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadialDisk_mc" "', argument " "4"
" of type '" "GRan &""'"); goto fail; } while(0)
;
14795 }
14796 arg4 = reinterpret_cast< GRan * >(argp4);
14797 {
14798 try {
14799 result = ((GModelSpatialRadialDisk const *)arg1)->mc((GEnergy const &)*arg2,(GTime const &)*arg3,*arg4);
14800 }
14801 catch (const GException::out_of_range& e) {
14802 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14803 }
14804 catch (const GExceptionHandler& e) {
14805 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14806 }
14807 catch (const std::exception& e) {
14808 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14809 }
14810 }
14811 resultobj = SWIG_NewPointerObj((new GSkyDir(static_cast< const GSkyDir& >(result))), SWIGTYPE_p_GSkyDir, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GSkyDir(static_cast<
const GSkyDir& >(result))), swig_types[44], 0x1 | 0)
;
14812 return resultobj;
14813fail:
14814 return NULL__null;
14815}
14816
14817
14818SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialDisk_theta_max(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14819 PyObject *resultobj = 0;
14820 GModelSpatialRadialDisk *arg1 = (GModelSpatialRadialDisk *) 0 ;
14821 void *argp1 = 0 ;
14822 int res1 = 0 ;
14823 PyObject * obj0 = 0 ;
14824 double result;
14825
14826 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialRadialDisk_theta_max",&obj0)) SWIG_failgoto fail;
14827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialDisk, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
14828 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialDisk_theta_max" "', argument " "1"" of type '" "GModelSpatialRadialDisk const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialDisk_theta_max"
"', argument " "1"" of type '" "GModelSpatialRadialDisk const *"
"'"); goto fail; } while(0)
;
14830 }
14831 arg1 = reinterpret_cast< GModelSpatialRadialDisk * >(argp1);
14832 {
14833 try {
14834 result = (double)((GModelSpatialRadialDisk const *)arg1)->theta_max();
14835 }
14836 catch (const GException::out_of_range& e) {
14837 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14838 }
14839 catch (const GExceptionHandler& e) {
14840 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14841 }
14842 catch (const std::exception& e) {
14843 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14844 }
14845 }
14846 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
14847 return resultobj;
14848fail:
14849 return NULL__null;
14850}
14851
14852
14853SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialDisk_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14854 PyObject *resultobj = 0;
14855 GModelSpatialRadialDisk *arg1 = (GModelSpatialRadialDisk *) 0 ;
14856 GXmlElement *arg2 = 0 ;
14857 void *argp1 = 0 ;
14858 int res1 = 0 ;
14859 void *argp2 = 0 ;
14860 int res2 = 0 ;
14861 PyObject * obj0 = 0 ;
14862 PyObject * obj1 = 0 ;
14863
14864 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialRadialDisk_read",&obj0,&obj1)) SWIG_failgoto fail;
14865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialDisk, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
14866 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialDisk_read" "', argument " "1"" of type '" "GModelSpatialRadialDisk *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialDisk_read"
"', argument " "1"" of type '" "GModelSpatialRadialDisk *""'"
); goto fail; } while(0)
;
14868 }
14869 arg1 = reinterpret_cast< GModelSpatialRadialDisk * >(argp1);
14870 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0 | 0, 0)
;
14871 if (!SWIG_IsOK(res2)(res2 >= 0)) {
14872 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialRadialDisk_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialRadialDisk_read"
"', argument " "2"" of type '" "GXmlElement const &""'")
; goto fail; } while(0)
;
14873 }
14874 if (!argp2) {
14875 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadialDisk_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadialDisk_read" "', argument " "2"
" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
14876 }
14877 arg2 = reinterpret_cast< GXmlElement * >(argp2);
14878 {
14879 try {
14880 (arg1)->read((GXmlElement const &)*arg2);
14881 }
14882 catch (const GException::out_of_range& e) {
14883 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14884 }
14885 catch (const GExceptionHandler& e) {
14886 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14887 }
14888 catch (const std::exception& e) {
14889 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14890 }
14891 }
14892 resultobj = SWIG_Py_Void();
14893 return resultobj;
14894fail:
14895 return NULL__null;
14896}
14897
14898
14899SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialDisk_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14900 PyObject *resultobj = 0;
14901 GModelSpatialRadialDisk *arg1 = (GModelSpatialRadialDisk *) 0 ;
14902 GXmlElement *arg2 = 0 ;
14903 void *argp1 = 0 ;
14904 int res1 = 0 ;
14905 void *argp2 = 0 ;
14906 int res2 = 0 ;
14907 PyObject * obj0 = 0 ;
14908 PyObject * obj1 = 0 ;
14909
14910 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialRadialDisk_write",&obj0,&obj1)) SWIG_failgoto fail;
14911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialDisk, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
14912 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialDisk_write" "', argument " "1"" of type '" "GModelSpatialRadialDisk const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialDisk_write"
"', argument " "1"" of type '" "GModelSpatialRadialDisk const *"
"'"); goto fail; } while(0)
;
14914 }
14915 arg1 = reinterpret_cast< GModelSpatialRadialDisk * >(argp1);
14916 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0, 0)
;
14917 if (!SWIG_IsOK(res2)(res2 >= 0)) {
14918 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialRadialDisk_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialRadialDisk_write"
"', argument " "2"" of type '" "GXmlElement &""'"); goto
fail; } while(0)
;
14919 }
14920 if (!argp2) {
14921 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadialDisk_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadialDisk_write" "', argument "
"2"" of type '" "GXmlElement &""'"); goto fail; } while(
0)
;
14922 }
14923 arg2 = reinterpret_cast< GXmlElement * >(argp2);
14924 {
14925 try {
14926 ((GModelSpatialRadialDisk const *)arg1)->write(*arg2);
14927 }
14928 catch (const GException::out_of_range& e) {
14929 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14930 }
14931 catch (const GExceptionHandler& e) {
14932 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14933 }
14934 catch (const std::exception& e) {
14935 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14936 }
14937 }
14938 resultobj = SWIG_Py_Void();
14939 return resultobj;
14940fail:
14941 return NULL__null;
14942}
14943
14944
14945SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialDisk_radius__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14946 PyObject *resultobj = 0;
14947 GModelSpatialRadialDisk *arg1 = (GModelSpatialRadialDisk *) 0 ;
14948 void *argp1 = 0 ;
14949 int res1 = 0 ;
14950 PyObject * obj0 = 0 ;
14951 double result;
14952
14953 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialRadialDisk_radius",&obj0)) SWIG_failgoto fail;
14954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialDisk, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
14955 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialDisk_radius" "', argument " "1"" of type '" "GModelSpatialRadialDisk const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialDisk_radius"
"', argument " "1"" of type '" "GModelSpatialRadialDisk const *"
"'"); goto fail; } while(0)
;
14957 }
14958 arg1 = reinterpret_cast< GModelSpatialRadialDisk * >(argp1);
14959 {
14960 try {
14961 result = (double)((GModelSpatialRadialDisk const *)arg1)->radius();
14962 }
14963 catch (const GException::out_of_range& e) {
14964 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14965 }
14966 catch (const GExceptionHandler& e) {
14967 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14968 }
14969 catch (const std::exception& e) {
14970 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14971 }
14972 }
14973 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
14974 return resultobj;
14975fail:
14976 return NULL__null;
14977}
14978
14979
14980SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialDisk_radius__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14981 PyObject *resultobj = 0;
14982 GModelSpatialRadialDisk *arg1 = (GModelSpatialRadialDisk *) 0 ;
14983 double *arg2 = 0 ;
14984 void *argp1 = 0 ;
14985 int res1 = 0 ;
14986 double temp2 ;
14987 double val2 ;
14988 int ecode2 = 0 ;
14989 PyObject * obj0 = 0 ;
14990 PyObject * obj1 = 0 ;
14991
14992 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialRadialDisk_radius",&obj0,&obj1)) SWIG_failgoto fail;
14993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialDisk, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
14994 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialDisk_radius" "', argument " "1"" of type '" "GModelSpatialRadialDisk *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialDisk_radius"
"', argument " "1"" of type '" "GModelSpatialRadialDisk *""'"
); goto fail; } while(0)
;
14996 }
14997 arg1 = reinterpret_cast< GModelSpatialRadialDisk * >(argp1);
14998 ecode2 = SWIG_AsVal_double(obj1, &val2);
14999 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
15000 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpatialRadialDisk_radius" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpatialRadialDisk_radius"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
15001 }
15002 temp2 = static_cast< double >(val2);
15003 arg2 = &temp2;
15004 {
15005 try {
15006 (arg1)->radius((double const &)*arg2);
15007 }
15008 catch (const GException::out_of_range& e) {
15009 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15010 }
15011 catch (const GExceptionHandler& e) {
15012 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15013 }
15014 catch (const std::exception& e) {
15015 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15016 }
15017 }
15018 resultobj = SWIG_Py_Void();
15019 return resultobj;
15020fail:
15021 return NULL__null;
15022}
15023
15024
15025SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialDisk_radius(PyObject *self, PyObject *args) {
15026 int argc;
15027 PyObject *argv[3];
15028 int ii;
15029
15030 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
15031 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
15032 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
15033 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
15034 }
15035 if (argc == 1) {
15036 int _v;
15037 void *vptr = 0;
15038 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialRadialDisk, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[20
], 0, 0)
;
15039 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15040 if (_v) {
15041 return _wrap_GModelSpatialRadialDisk_radius__SWIG_0(self, args);
15042 }
15043 }
15044 if (argc == 2) {
15045 int _v;
15046 void *vptr = 0;
15047 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialRadialDisk, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[20
], 0, 0)
;
15048 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15049 if (_v) {
15050 {
15051 int res = SWIG_AsVal_double(argv[1], NULL__null);
15052 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15053 }
15054 if (_v) {
15055 return _wrap_GModelSpatialRadialDisk_radius__SWIG_1(self, args);
15056 }
15057 }
15058 }
15059
15060fail:
15061 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialRadialDisk_radius'.\n"
15062 " Possible C/C++ prototypes are:\n"
15063 " GModelSpatialRadialDisk::radius() const\n"
15064 " GModelSpatialRadialDisk::radius(double const &)\n");
15065 return 0;
15066}
15067
15068
15069SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialDisk_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15070 PyObject *resultobj = 0;
15071 GModelSpatialRadialDisk *arg1 = (GModelSpatialRadialDisk *) 0 ;
15072 void *argp1 = 0 ;
15073 int res1 = 0 ;
15074 PyObject * obj0 = 0 ;
15075 GModelSpatialRadialDisk result;
15076
15077 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialRadialDisk_copy",&obj0)) SWIG_failgoto fail;
15078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialDisk, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
15079 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialDisk_copy" "', argument " "1"" of type '" "GModelSpatialRadialDisk *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialDisk_copy"
"', argument " "1"" of type '" "GModelSpatialRadialDisk *""'"
); goto fail; } while(0)
;
15081 }
15082 arg1 = reinterpret_cast< GModelSpatialRadialDisk * >(argp1);
15083 {
15084 try {
15085 result = GModelSpatialRadialDisk_copy(arg1);
15086 }
15087 catch (const GException::out_of_range& e) {
15088 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15089 }
15090 catch (const GExceptionHandler& e) {
15091 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15092 }
15093 catch (const std::exception& e) {
15094 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15095 }
15096 }
15097 resultobj = SWIG_NewPointerObj((new GModelSpatialRadialDisk(static_cast< const GModelSpatialRadialDisk& >(result))), SWIGTYPE_p_GModelSpatialRadialDisk, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GModelSpatialRadialDisk
(static_cast< const GModelSpatialRadialDisk& >(result
))), swig_types[20], 0x1 | 0)
;
15098 return resultobj;
15099fail:
15100 return NULL__null;
15101}
15102
15103
15104SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialDisk_eval__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15105 PyObject *resultobj = 0;
15106 GModelSpatialRadialDisk *arg1 = (GModelSpatialRadialDisk *) 0 ;
15107 GPhoton *arg2 = 0 ;
15108 void *argp1 = 0 ;
15109 int res1 = 0 ;
15110 void *argp2 = 0 ;
15111 int res2 = 0 ;
15112 PyObject * obj0 = 0 ;
15113 PyObject * obj1 = 0 ;
15114 double result;
15115
15116 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialRadialDisk_eval",&obj0,&obj1)) SWIG_failgoto fail;
15117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialDisk, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
15118 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialDisk_eval" "', argument " "1"" of type '" "GModelSpatialRadialDisk const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialDisk_eval"
"', argument " "1"" of type '" "GModelSpatialRadialDisk const *"
"'"); goto fail; } while(0)
;
15120 }
15121 arg1 = reinterpret_cast< GModelSpatialRadialDisk * >(argp1);
15122 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[40]
, 0 | 0, 0)
;
15123 if (!SWIG_IsOK(res2)(res2 >= 0)) {
15124 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialRadialDisk_eval" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialRadialDisk_eval"
"', argument " "2"" of type '" "GPhoton const &""'"); goto
fail; } while(0)
;
15125 }
15126 if (!argp2) {
15127 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadialDisk_eval" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadialDisk_eval" "', argument " "2"
" of type '" "GPhoton const &""'"); goto fail; } while(0)
;
15128 }
15129 arg2 = reinterpret_cast< GPhoton * >(argp2);
15130 {
15131 try {
15132 result = (double)GModelSpatialRadialDisk_eval__SWIG_1((GModelSpatialRadialDisk const *)arg1,(GPhoton const &)*arg2);
15133 }
15134 catch (const GException::out_of_range& e) {
15135 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15136 }
15137 catch (const GExceptionHandler& e) {
15138 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15139 }
15140 catch (const std::exception& e) {
15141 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15142 }
15143 }
15144 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
15145 return resultobj;
15146fail:
15147 return NULL__null;
15148}
15149
15150
15151SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialDisk_eval(PyObject *self, PyObject *args) {
15152 int argc;
15153 PyObject *argv[5];
15154 int ii;
15155
15156 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
15157 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
15158 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
15159 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
15160 }
15161 if (argc == 2) {
15162 int _v;
15163 void *vptr = 0;
15164 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialRadialDisk, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[20
], 0, 0)
;
15165 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15166 if (_v) {
15167 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GPhoton, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[40], 0, 0
)
;
15168 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15169 if (_v) {
15170 return _wrap_GModelSpatialRadialDisk_eval__SWIG_1(self, args);
15171 }
15172 }
15173 }
15174 if (argc == 4) {
15175 int _v;
15176 void *vptr = 0;
15177 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialRadialDisk, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[20
], 0, 0)
;
15178 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15179 if (_v) {
15180 {
15181 int res = SWIG_AsVal_double(argv[1], NULL__null);
15182 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15183 }
15184 if (_v) {
15185 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[3], 0, 0);
15186 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15187 if (_v) {
15188 int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GTime, 0)SWIG_Python_ConvertPtrAndOwn(argv[3], 0, swig_types[46], 0, 0
)
;
15189 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15190 if (_v) {
15191 return _wrap_GModelSpatialRadialDisk_eval__SWIG_0(self, args);
15192 }
15193 }
15194 }
15195 }
15196 }
15197
15198fail:
15199 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialRadialDisk_eval'.\n"
15200 " Possible C/C++ prototypes are:\n"
15201 " GModelSpatialRadialDisk::eval(double const &,GEnergy const &,GTime const &) const\n"
15202 " GModelSpatialRadialDisk::eval(GPhoton const &) const\n");
15203 return 0;
15204}
15205
15206
15207SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialDisk_eval_gradients__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15208 PyObject *resultobj = 0;
15209 GModelSpatialRadialDisk *arg1 = (GModelSpatialRadialDisk *) 0 ;
15210 GPhoton *arg2 = 0 ;
15211 void *argp1 = 0 ;
15212 int res1 = 0 ;
15213 void *argp2 = 0 ;
15214 int res2 = 0 ;
15215 PyObject * obj0 = 0 ;
15216 PyObject * obj1 = 0 ;
15217 double result;
15218
15219 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialRadialDisk_eval_gradients",&obj0,&obj1)) SWIG_failgoto fail;
15220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialDisk, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
15221 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialDisk_eval_gradients" "', argument " "1"" of type '" "GModelSpatialRadialDisk const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialDisk_eval_gradients"
"', argument " "1"" of type '" "GModelSpatialRadialDisk const *"
"'"); goto fail; } while(0)
;
15223 }
15224 arg1 = reinterpret_cast< GModelSpatialRadialDisk * >(argp1);
15225 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[40]
, 0 | 0, 0)
;
15226 if (!SWIG_IsOK(res2)(res2 >= 0)) {
15227 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialRadialDisk_eval_gradients" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialRadialDisk_eval_gradients"
"', argument " "2"" of type '" "GPhoton const &""'"); goto
fail; } while(0)
;
15228 }
15229 if (!argp2) {
15230 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadialDisk_eval_gradients" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadialDisk_eval_gradients" "', argument "
"2"" of type '" "GPhoton const &""'"); goto fail; } while
(0)
;
15231 }
15232 arg2 = reinterpret_cast< GPhoton * >(argp2);
15233 {
15234 try {
15235 result = (double)GModelSpatialRadialDisk_eval_gradients__SWIG_1((GModelSpatialRadialDisk const *)arg1,(GPhoton const &)*arg2);
15236 }
15237 catch (const GException::out_of_range& e) {
15238 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15239 }
15240 catch (const GExceptionHandler& e) {
15241 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15242 }
15243 catch (const std::exception& e) {
15244 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15245 }
15246 }
15247 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
15248 return resultobj;
15249fail:
15250 return NULL__null;
15251}
15252
15253
15254SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialDisk_eval_gradients(PyObject *self, PyObject *args) {
15255 int argc;
15256 PyObject *argv[5];
15257 int ii;
15258
15259 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
15260 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
15261 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
15262 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
15263 }
15264 if (argc == 2) {
15265 int _v;
15266 void *vptr = 0;
15267 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialRadialDisk, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[20
], 0, 0)
;
15268 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15269 if (_v) {
15270 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GPhoton, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[40], 0, 0
)
;
15271 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15272 if (_v) {
15273 return _wrap_GModelSpatialRadialDisk_eval_gradients__SWIG_1(self, args);
15274 }
15275 }
15276 }
15277 if (argc == 4) {
15278 int _v;
15279 void *vptr = 0;
15280 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialRadialDisk, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[20
], 0, 0)
;
15281 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15282 if (_v) {
15283 {
15284 int res = SWIG_AsVal_double(argv[1], NULL__null);
15285 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15286 }
15287 if (_v) {
15288 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[3], 0, 0);
15289 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15290 if (_v) {
15291 int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GTime, 0)SWIG_Python_ConvertPtrAndOwn(argv[3], 0, swig_types[46], 0, 0
)
;
15292 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15293 if (_v) {
15294 return _wrap_GModelSpatialRadialDisk_eval_gradients__SWIG_0(self, args);
15295 }
15296 }
15297 }
15298 }
15299 }
15300
15301fail:
15302 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialRadialDisk_eval_gradients'.\n"
15303 " Possible C/C++ prototypes are:\n"
15304 " GModelSpatialRadialDisk::eval_gradients(double const &,GEnergy const &,GTime const &) const\n"
15305 " GModelSpatialRadialDisk::eval_gradients(GPhoton const &) const\n");
15306 return 0;
15307}
15308
15309
15310SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GModelSpatialRadialDisk_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15311 PyObject *obj;
15312 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
15313 SWIG_TypeNewClientData(SWIGTYPE_p_GModelSpatialRadialDiskswig_types[20], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
15314 return SWIG_Py_Void();
15315}
15316
15317SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialRadialGauss__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15318 PyObject *resultobj = 0;
15319 GModelSpatialRadialGauss *result = 0 ;
15320
15321 if (!PyArg_ParseTuple(args,(char *)":new_GModelSpatialRadialGauss")) SWIG_failgoto fail;
15322 {
15323 try {
15324 result = (GModelSpatialRadialGauss *)new GModelSpatialRadialGauss();
15325 }
15326 catch (const GException::out_of_range& e) {
15327 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15328 }
15329 catch (const GExceptionHandler& e) {
15330 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15331 }
15332 catch (const std::exception& e) {
15333 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15334 }
15335 }
15336 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialRadialGauss, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[21], (
(0x1 << 1) | 0x1) | 0)
;
15337 return resultobj;
15338fail:
15339 return NULL__null;
15340}
15341
15342
15343SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialRadialGauss__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15344 PyObject *resultobj = 0;
15345 GSkyDir *arg1 = 0 ;
15346 double *arg2 = 0 ;
15347 void *argp1 = 0 ;
15348 int res1 = 0 ;
15349 double temp2 ;
15350 double val2 ;
15351 int ecode2 = 0 ;
15352 PyObject * obj0 = 0 ;
15353 PyObject * obj1 = 0 ;
15354 GModelSpatialRadialGauss *result = 0 ;
15355
15356 if (!PyArg_ParseTuple(args,(char *)"OO:new_GModelSpatialRadialGauss",&obj0,&obj1)) SWIG_failgoto fail;
15357 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[44]
, 0 | 0, 0)
;
15358 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpatialRadialGauss" "', argument " "1"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpatialRadialGauss"
"', argument " "1"" of type '" "GSkyDir const &""'"); goto
fail; } while(0)
;
15360 }
15361 if (!argp1) {
15362 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpatialRadialGauss" "', argument " "1"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpatialRadialGauss" "', argument " "1"
" of type '" "GSkyDir const &""'"); goto fail; } while(0)
;
15363 }
15364 arg1 = reinterpret_cast< GSkyDir * >(argp1);
15365 ecode2 = SWIG_AsVal_double(obj1, &val2);
15366 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
15367 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GModelSpatialRadialGauss" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "new_GModelSpatialRadialGauss"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
15368 }
15369 temp2 = static_cast< double >(val2);
15370 arg2 = &temp2;
15371 {
15372 try {
15373 result = (GModelSpatialRadialGauss *)new GModelSpatialRadialGauss((GSkyDir const &)*arg1,(double const &)*arg2);
15374 }
15375 catch (const GException::out_of_range& e) {
15376 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15377 }
15378 catch (const GExceptionHandler& e) {
15379 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15380 }
15381 catch (const std::exception& e) {
15382 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15383 }
15384 }
15385 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialRadialGauss, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[21], (
(0x1 << 1) | 0x1) | 0)
;
15386 return resultobj;
15387fail:
15388 return NULL__null;
15389}
15390
15391
15392SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialRadialGauss__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15393 PyObject *resultobj = 0;
15394 GXmlElement *arg1 = 0 ;
15395 void *argp1 = 0 ;
15396 int res1 = 0 ;
15397 PyObject * obj0 = 0 ;
15398 GModelSpatialRadialGauss *result = 0 ;
15399
15400 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpatialRadialGauss",&obj0)) SWIG_failgoto fail;
15401 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[50]
, 0 | 0, 0)
;
15402 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpatialRadialGauss" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpatialRadialGauss"
"', argument " "1"" of type '" "GXmlElement const &""'")
; goto fail; } while(0)
;
15404 }
15405 if (!argp1) {
15406 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpatialRadialGauss" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpatialRadialGauss" "', argument " "1"
" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
15407 }
15408 arg1 = reinterpret_cast< GXmlElement * >(argp1);
15409 {
15410 try {
15411 result = (GModelSpatialRadialGauss *)new GModelSpatialRadialGauss((GXmlElement const &)*arg1);
15412 }
15413 catch (const GException::out_of_range& e) {
15414 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15415 }
15416 catch (const GExceptionHandler& e) {
15417 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15418 }
15419 catch (const std::exception& e) {
15420 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15421 }
15422 }
15423 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialRadialGauss, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[21], (
(0x1 << 1) | 0x1) | 0)
;
15424 return resultobj;
15425fail:
15426 return NULL__null;
15427}
15428
15429
15430SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialRadialGauss__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15431 PyObject *resultobj = 0;
15432 GModelSpatialRadialGauss *arg1 = 0 ;
15433 void *argp1 = 0 ;
15434 int res1 = 0 ;
15435 PyObject * obj0 = 0 ;
15436 GModelSpatialRadialGauss *result = 0 ;
15437
15438 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpatialRadialGauss",&obj0)) SWIG_failgoto fail;
15439 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GModelSpatialRadialGauss, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21]
, 0 | 0, 0)
;
15440 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpatialRadialGauss" "', argument " "1"" of type '" "GModelSpatialRadialGauss const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpatialRadialGauss"
"', argument " "1"" of type '" "GModelSpatialRadialGauss const &"
"'"); goto fail; } while(0)
;
15442 }
15443 if (!argp1) {
15444 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpatialRadialGauss" "', argument " "1"" of type '" "GModelSpatialRadialGauss const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpatialRadialGauss" "', argument " "1"
" of type '" "GModelSpatialRadialGauss const &""'"); goto
fail; } while(0)
;
15445 }
15446 arg1 = reinterpret_cast< GModelSpatialRadialGauss * >(argp1);
15447 {
15448 try {
15449 result = (GModelSpatialRadialGauss *)new GModelSpatialRadialGauss((GModelSpatialRadialGauss const &)*arg1);
15450 }
15451 catch (const GException::out_of_range& e) {
15452 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15453 }
15454 catch (const GExceptionHandler& e) {
15455 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15456 }
15457 catch (const std::exception& e) {
15458 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15459 }
15460 }
15461 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialRadialGauss, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[21], (
(0x1 << 1) | 0x1) | 0)
;
15462 return resultobj;
15463fail:
15464 return NULL__null;
15465}
15466
15467
15468SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialRadialGauss(PyObject *self, PyObject *args) {
15469 int argc;
15470 PyObject *argv[3];
15471 int ii;
15472
15473 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
15474 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
15475 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
15476 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
15477 }
15478 if (argc == 0) {
15479 return _wrap_new_GModelSpatialRadialGauss__SWIG_0(self, args);
15480 }
15481 if (argc == 1) {
15482 int _v;
15483 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GXmlElement, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[50], 0, 0
)
;
15484 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15485 if (_v) {
15486 return _wrap_new_GModelSpatialRadialGauss__SWIG_2(self, args);
15487 }
15488 }
15489 if (argc == 1) {
15490 int _v;
15491 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GModelSpatialRadialGauss, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[21], 0, 0
)
;
15492 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15493 if (_v) {
15494 return _wrap_new_GModelSpatialRadialGauss__SWIG_3(self, args);
15495 }
15496 }
15497 if (argc == 2) {
15498 int _v;
15499 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GSkyDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[44], 0, 0
)
;
15500 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15501 if (_v) {
15502 {
15503 int res = SWIG_AsVal_double(argv[1], NULL__null);
15504 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15505 }
15506 if (_v) {
15507 return _wrap_new_GModelSpatialRadialGauss__SWIG_1(self, args);
15508 }
15509 }
15510 }
15511
15512fail:
15513 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GModelSpatialRadialGauss'.\n"
15514 " Possible C/C++ prototypes are:\n"
15515 " GModelSpatialRadialGauss::GModelSpatialRadialGauss()\n"
15516 " GModelSpatialRadialGauss::GModelSpatialRadialGauss(GSkyDir const &,double const &)\n"
15517 " GModelSpatialRadialGauss::GModelSpatialRadialGauss(GXmlElement const &)\n"
15518 " GModelSpatialRadialGauss::GModelSpatialRadialGauss(GModelSpatialRadialGauss const &)\n");
15519 return 0;
15520}
15521
15522
15523SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GModelSpatialRadialGauss(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15524 PyObject *resultobj = 0;
15525 GModelSpatialRadialGauss *arg1 = (GModelSpatialRadialGauss *) 0 ;
15526 void *argp1 = 0 ;
15527 int res1 = 0 ;
15528 PyObject * obj0 = 0 ;
15529
15530 if (!PyArg_ParseTuple(args,(char *)"O:delete_GModelSpatialRadialGauss",&obj0)) SWIG_failgoto fail;
15531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialGauss, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21]
, 0x1 | 0, 0)
;
15532 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GModelSpatialRadialGauss" "', argument " "1"" of type '" "GModelSpatialRadialGauss *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GModelSpatialRadialGauss"
"', argument " "1"" of type '" "GModelSpatialRadialGauss *""'"
); goto fail; } while(0)
;
15534 }
15535 arg1 = reinterpret_cast< GModelSpatialRadialGauss * >(argp1);
15536 {
15537 try {
15538 delete arg1;
15539 }
15540 catch (const GException::out_of_range& e) {
15541 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15542 }
15543 catch (const GExceptionHandler& e) {
15544 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15545 }
15546 catch (const std::exception& e) {
15547 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15548 }
15549 }
15550 resultobj = SWIG_Py_Void();
15551 return resultobj;
15552fail:
15553 return NULL__null;
15554}
15555
15556
15557SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialGauss_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15558 PyObject *resultobj = 0;
15559 GModelSpatialRadialGauss *arg1 = (GModelSpatialRadialGauss *) 0 ;
15560 void *argp1 = 0 ;
15561 int res1 = 0 ;
15562 PyObject * obj0 = 0 ;
15563
15564 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialRadialGauss_clear",&obj0)) SWIG_failgoto fail;
15565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialGauss, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21]
, 0 | 0, 0)
;
15566 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialGauss_clear" "', argument " "1"" of type '" "GModelSpatialRadialGauss *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialGauss_clear"
"', argument " "1"" of type '" "GModelSpatialRadialGauss *""'"
); goto fail; } while(0)
;
15568 }
15569 arg1 = reinterpret_cast< GModelSpatialRadialGauss * >(argp1);
15570 {
15571 try {
15572 (arg1)->clear();
15573 }
15574 catch (const GException::out_of_range& e) {
15575 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15576 }
15577 catch (const GExceptionHandler& e) {
15578 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15579 }
15580 catch (const std::exception& e) {
15581 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15582 }
15583 }
15584 resultobj = SWIG_Py_Void();
15585 return resultobj;
15586fail:
15587 return NULL__null;
15588}
15589
15590
15591SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialGauss_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15592 PyObject *resultobj = 0;
15593 GModelSpatialRadialGauss *arg1 = (GModelSpatialRadialGauss *) 0 ;
15594 void *argp1 = 0 ;
15595 int res1 = 0 ;
15596 PyObject * obj0 = 0 ;
15597 GModelSpatialRadialGauss *result = 0 ;
15598
15599 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialRadialGauss_clone",&obj0)) SWIG_failgoto fail;
15600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialGauss, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21]
, 0 | 0, 0)
;
15601 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialGauss_clone" "', argument " "1"" of type '" "GModelSpatialRadialGauss const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialGauss_clone"
"', argument " "1"" of type '" "GModelSpatialRadialGauss const *"
"'"); goto fail; } while(0)
;
15603 }
15604 arg1 = reinterpret_cast< GModelSpatialRadialGauss * >(argp1);
15605 {
15606 try {
15607 result = (GModelSpatialRadialGauss *)((GModelSpatialRadialGauss const *)arg1)->clone();
15608 }
15609 catch (const GException::out_of_range& e) {
15610 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15611 }
15612 catch (const GExceptionHandler& e) {
15613 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15614 }
15615 catch (const std::exception& e) {
15616 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15617 }
15618 }
15619 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialRadialGauss, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[21], 0
| 0)
;
15620 return resultobj;
15621fail:
15622 return NULL__null;
15623}
15624
15625
15626SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialGauss_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15627 PyObject *resultobj = 0;
15628 GModelSpatialRadialGauss *arg1 = (GModelSpatialRadialGauss *) 0 ;
15629 void *argp1 = 0 ;
15630 int res1 = 0 ;
15631 PyObject * obj0 = 0 ;
15632 std::string result;
15633
15634 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialRadialGauss_type",&obj0)) SWIG_failgoto fail;
15635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialGauss, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21]
, 0 | 0, 0)
;
15636 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialGauss_type" "', argument " "1"" of type '" "GModelSpatialRadialGauss const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialGauss_type"
"', argument " "1"" of type '" "GModelSpatialRadialGauss const *"
"'"); goto fail; } while(0)
;
15638 }
15639 arg1 = reinterpret_cast< GModelSpatialRadialGauss * >(argp1);
15640 {
15641 try {
15642 result = ((GModelSpatialRadialGauss const *)arg1)->type();
15643 }
15644 catch (const GException::out_of_range& e) {
15645 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15646 }
15647 catch (const GExceptionHandler& e) {
15648 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15649 }
15650 catch (const std::exception& e) {
15651 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15652 }
15653 }
15654 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
15655 return resultobj;
15656fail:
15657 return NULL__null;
15658}
15659
15660
15661SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialGauss_eval__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15662 PyObject *resultobj = 0;
15663 GModelSpatialRadialGauss *arg1 = (GModelSpatialRadialGauss *) 0 ;
15664 double *arg2 = 0 ;
15665 GEnergy *arg3 = 0 ;
15666 GTime *arg4 = 0 ;
15667 void *argp1 = 0 ;
15668 int res1 = 0 ;
15669 double temp2 ;
15670 double val2 ;
15671 int ecode2 = 0 ;
15672 void *argp3 = 0 ;
15673 int res3 = 0 ;
15674 void *argp4 = 0 ;
15675 int res4 = 0 ;
15676 PyObject * obj0 = 0 ;
15677 PyObject * obj1 = 0 ;
15678 PyObject * obj2 = 0 ;
15679 PyObject * obj3 = 0 ;
15680 double result;
15681
15682 if (!PyArg_ParseTuple(args,(char *)"OOOO:GModelSpatialRadialGauss_eval",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
15683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialGauss, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21]
, 0 | 0, 0)
;
15684 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialGauss_eval" "', argument " "1"" of type '" "GModelSpatialRadialGauss const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialGauss_eval"
"', argument " "1"" of type '" "GModelSpatialRadialGauss const *"
"'"); goto fail; } while(0)
;
15686 }
15687 arg1 = reinterpret_cast< GModelSpatialRadialGauss * >(argp1);
15688 ecode2 = SWIG_AsVal_double(obj1, &val2);
15689 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
15690 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpatialRadialGauss_eval" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpatialRadialGauss_eval"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
15691 }
15692 temp2 = static_cast< double >(val2);
15693 arg2 = &temp2;
15694 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
15695 if (!SWIG_IsOK(res3)(res3 >= 0)) {
15696 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpatialRadialGauss_eval" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpatialRadialGauss_eval"
"', argument " "3"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
15697 }
15698 if (!argp3) {
15699 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadialGauss_eval" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadialGauss_eval" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
15700 }
15701 arg3 = reinterpret_cast< GEnergy * >(argp3);
15702 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[46]
, 0 | 0, 0)
;
15703 if (!SWIG_IsOK(res4)(res4 >= 0)) {
15704 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelSpatialRadialGauss_eval" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelSpatialRadialGauss_eval"
"', argument " "4"" of type '" "GTime const &""'"); goto
fail; } while(0)
;
15705 }
15706 if (!argp4) {
15707 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadialGauss_eval" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadialGauss_eval" "', argument "
"4"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
15708 }
15709 arg4 = reinterpret_cast< GTime * >(argp4);
15710 {
15711 try {
15712 result = (double)((GModelSpatialRadialGauss const *)arg1)->eval((double const &)*arg2,(GEnergy const &)*arg3,(GTime const &)*arg4);
15713 }
15714 catch (const GException::out_of_range& e) {
15715 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15716 }
15717 catch (const GExceptionHandler& e) {
15718 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15719 }
15720 catch (const std::exception& e) {
15721 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15722 }
15723 }
15724 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
15725 return resultobj;
15726fail:
15727 return NULL__null;
15728}
15729
15730
15731SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialGauss_eval_gradients__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15732 PyObject *resultobj = 0;
15733 GModelSpatialRadialGauss *arg1 = (GModelSpatialRadialGauss *) 0 ;
15734 double *arg2 = 0 ;
15735 GEnergy *arg3 = 0 ;
15736 GTime *arg4 = 0 ;
15737 void *argp1 = 0 ;
15738 int res1 = 0 ;
15739 double temp2 ;
15740 double val2 ;
15741 int ecode2 = 0 ;
15742 void *argp3 = 0 ;
15743 int res3 = 0 ;
15744 void *argp4 = 0 ;
15745 int res4 = 0 ;
15746 PyObject * obj0 = 0 ;
15747 PyObject * obj1 = 0 ;
15748 PyObject * obj2 = 0 ;
15749 PyObject * obj3 = 0 ;
15750 double result;
15751
15752 if (!PyArg_ParseTuple(args,(char *)"OOOO:GModelSpatialRadialGauss_eval_gradients",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
15753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialGauss, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21]
, 0 | 0, 0)
;
15754 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialGauss_eval_gradients" "', argument " "1"" of type '" "GModelSpatialRadialGauss const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialGauss_eval_gradients"
"', argument " "1"" of type '" "GModelSpatialRadialGauss const *"
"'"); goto fail; } while(0)
;
15756 }
15757 arg1 = reinterpret_cast< GModelSpatialRadialGauss * >(argp1);
15758 ecode2 = SWIG_AsVal_double(obj1, &val2);
15759 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
15760 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpatialRadialGauss_eval_gradients" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpatialRadialGauss_eval_gradients"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
15761 }
15762 temp2 = static_cast< double >(val2);
15763 arg2 = &temp2;
15764 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
15765 if (!SWIG_IsOK(res3)(res3 >= 0)) {
15766 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpatialRadialGauss_eval_gradients" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpatialRadialGauss_eval_gradients"
"', argument " "3"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
15767 }
15768 if (!argp3) {
15769 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadialGauss_eval_gradients" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadialGauss_eval_gradients" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
15770 }
15771 arg3 = reinterpret_cast< GEnergy * >(argp3);
15772 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[46]
, 0 | 0, 0)
;
15773 if (!SWIG_IsOK(res4)(res4 >= 0)) {
15774 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelSpatialRadialGauss_eval_gradients" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelSpatialRadialGauss_eval_gradients"
"', argument " "4"" of type '" "GTime const &""'"); goto
fail; } while(0)
;
15775 }
15776 if (!argp4) {
15777 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadialGauss_eval_gradients" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadialGauss_eval_gradients" "', argument "
"4"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
15778 }
15779 arg4 = reinterpret_cast< GTime * >(argp4);
15780 {
15781 try {
15782 result = (double)((GModelSpatialRadialGauss const *)arg1)->eval_gradients((double const &)*arg2,(GEnergy const &)*arg3,(GTime const &)*arg4);
15783 }
15784 catch (const GException::out_of_range& e) {
15785 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15786 }
15787 catch (const GExceptionHandler& e) {
15788 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15789 }
15790 catch (const std::exception& e) {
15791 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15792 }
15793 }
15794 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
15795 return resultobj;
15796fail:
15797 return NULL__null;
15798}
15799
15800
15801SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialGauss_mc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15802 PyObject *resultobj = 0;
15803 GModelSpatialRadialGauss *arg1 = (GModelSpatialRadialGauss *) 0 ;
15804 GEnergy *arg2 = 0 ;
15805 GTime *arg3 = 0 ;
15806 GRan *arg4 = 0 ;
15807 void *argp1 = 0 ;
15808 int res1 = 0 ;
15809 void *argp2 = 0 ;
15810 int res2 = 0 ;
15811 void *argp3 = 0 ;
15812 int res3 = 0 ;
15813 void *argp4 = 0 ;
15814 int res4 = 0 ;
15815 PyObject * obj0 = 0 ;
15816 PyObject * obj1 = 0 ;
15817 PyObject * obj2 = 0 ;
15818 PyObject * obj3 = 0 ;
15819 GSkyDir result;
15820
15821 if (!PyArg_ParseTuple(args,(char *)"OOOO:GModelSpatialRadialGauss_mc",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
15822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialGauss, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21]
, 0 | 0, 0)
;
15823 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialGauss_mc" "', argument " "1"" of type '" "GModelSpatialRadialGauss const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialGauss_mc"
"', argument " "1"" of type '" "GModelSpatialRadialGauss const *"
"'"); goto fail; } while(0)
;
15825 }
15826 arg1 = reinterpret_cast< GModelSpatialRadialGauss * >(argp1);
15827 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
15828 if (!SWIG_IsOK(res2)(res2 >= 0)) {
15829 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialRadialGauss_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialRadialGauss_mc"
"', argument " "2"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
15830 }
15831 if (!argp2) {
15832 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadialGauss_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadialGauss_mc" "', argument " "2"
" of type '" "GEnergy const &""'"); goto fail; } while(0)
;
15833 }
15834 arg2 = reinterpret_cast< GEnergy * >(argp2);
15835 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[46]
, 0 | 0, 0)
;
15836 if (!SWIG_IsOK(res3)(res3 >= 0)) {
15837 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpatialRadialGauss_mc" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpatialRadialGauss_mc"
"', argument " "3"" of type '" "GTime const &""'"); goto
fail; } while(0)
;
15838 }
15839 if (!argp3) {
15840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadialGauss_mc" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadialGauss_mc" "', argument " "3"
" of type '" "GTime const &""'"); goto fail; } while(0)
;
15841 }
15842 arg3 = reinterpret_cast< GTime * >(argp3);
15843 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GRan, 0 )SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[42]
, 0, 0)
;
15844 if (!SWIG_IsOK(res4)(res4 >= 0)) {
15845 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelSpatialRadialGauss_mc" "', argument " "4"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelSpatialRadialGauss_mc"
"', argument " "4"" of type '" "GRan &""'"); goto fail; }
while(0)
;
15846 }
15847 if (!argp4) {
15848 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadialGauss_mc" "', argument " "4"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadialGauss_mc" "', argument " "4"
" of type '" "GRan &""'"); goto fail; } while(0)
;
15849 }
15850 arg4 = reinterpret_cast< GRan * >(argp4);
15851 {
15852 try {
15853 result = ((GModelSpatialRadialGauss const *)arg1)->mc((GEnergy const &)*arg2,(GTime const &)*arg3,*arg4);
15854 }
15855 catch (const GException::out_of_range& e) {
15856 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15857 }
15858 catch (const GExceptionHandler& e) {
15859 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15860 }
15861 catch (const std::exception& e) {
15862 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15863 }
15864 }
15865 resultobj = SWIG_NewPointerObj((new GSkyDir(static_cast< const GSkyDir& >(result))), SWIGTYPE_p_GSkyDir, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GSkyDir(static_cast<
const GSkyDir& >(result))), swig_types[44], 0x1 | 0)
;
15866 return resultobj;
15867fail:
15868 return NULL__null;
15869}
15870
15871
15872SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialGauss_theta_max(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15873 PyObject *resultobj = 0;
15874 GModelSpatialRadialGauss *arg1 = (GModelSpatialRadialGauss *) 0 ;
15875 void *argp1 = 0 ;
15876 int res1 = 0 ;
15877 PyObject * obj0 = 0 ;
15878 double result;
15879
15880 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialRadialGauss_theta_max",&obj0)) SWIG_failgoto fail;
15881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialGauss, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21]
, 0 | 0, 0)
;
15882 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialGauss_theta_max" "', argument " "1"" of type '" "GModelSpatialRadialGauss const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialGauss_theta_max"
"', argument " "1"" of type '" "GModelSpatialRadialGauss const *"
"'"); goto fail; } while(0)
;
15884 }
15885 arg1 = reinterpret_cast< GModelSpatialRadialGauss * >(argp1);
15886 {
15887 try {
15888 result = (double)((GModelSpatialRadialGauss const *)arg1)->theta_max();
15889 }
15890 catch (const GException::out_of_range& e) {
15891 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15892 }
15893 catch (const GExceptionHandler& e) {
15894 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15895 }
15896 catch (const std::exception& e) {
15897 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15898 }
15899 }
15900 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
15901 return resultobj;
15902fail:
15903 return NULL__null;
15904}
15905
15906
15907SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialGauss_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15908 PyObject *resultobj = 0;
15909 GModelSpatialRadialGauss *arg1 = (GModelSpatialRadialGauss *) 0 ;
15910 GXmlElement *arg2 = 0 ;
15911 void *argp1 = 0 ;
15912 int res1 = 0 ;
15913 void *argp2 = 0 ;
15914 int res2 = 0 ;
15915 PyObject * obj0 = 0 ;
15916 PyObject * obj1 = 0 ;
15917
15918 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialRadialGauss_read",&obj0,&obj1)) SWIG_failgoto fail;
15919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialGauss, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21]
, 0 | 0, 0)
;
15920 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialGauss_read" "', argument " "1"" of type '" "GModelSpatialRadialGauss *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialGauss_read"
"', argument " "1"" of type '" "GModelSpatialRadialGauss *""'"
); goto fail; } while(0)
;
15922 }
15923 arg1 = reinterpret_cast< GModelSpatialRadialGauss * >(argp1);
15924 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0 | 0, 0)
;
15925 if (!SWIG_IsOK(res2)(res2 >= 0)) {
15926 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialRadialGauss_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialRadialGauss_read"
"', argument " "2"" of type '" "GXmlElement const &""'")
; goto fail; } while(0)
;
15927 }
15928 if (!argp2) {
15929 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadialGauss_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadialGauss_read" "', argument "
"2"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
15930 }
15931 arg2 = reinterpret_cast< GXmlElement * >(argp2);
15932 {
15933 try {
15934 (arg1)->read((GXmlElement const &)*arg2);
15935 }
15936 catch (const GException::out_of_range& e) {
15937 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15938 }
15939 catch (const GExceptionHandler& e) {
15940 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15941 }
15942 catch (const std::exception& e) {
15943 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15944 }
15945 }
15946 resultobj = SWIG_Py_Void();
15947 return resultobj;
15948fail:
15949 return NULL__null;
15950}
15951
15952
15953SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialGauss_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15954 PyObject *resultobj = 0;
15955 GModelSpatialRadialGauss *arg1 = (GModelSpatialRadialGauss *) 0 ;
15956 GXmlElement *arg2 = 0 ;
15957 void *argp1 = 0 ;
15958 int res1 = 0 ;
15959 void *argp2 = 0 ;
15960 int res2 = 0 ;
15961 PyObject * obj0 = 0 ;
15962 PyObject * obj1 = 0 ;
15963
15964 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialRadialGauss_write",&obj0,&obj1)) SWIG_failgoto fail;
15965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialGauss, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21]
, 0 | 0, 0)
;
15966 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialGauss_write" "', argument " "1"" of type '" "GModelSpatialRadialGauss const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialGauss_write"
"', argument " "1"" of type '" "GModelSpatialRadialGauss const *"
"'"); goto fail; } while(0)
;
15968 }
15969 arg1 = reinterpret_cast< GModelSpatialRadialGauss * >(argp1);
15970 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0, 0)
;
15971 if (!SWIG_IsOK(res2)(res2 >= 0)) {
15972 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialRadialGauss_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialRadialGauss_write"
"', argument " "2"" of type '" "GXmlElement &""'"); goto
fail; } while(0)
;
15973 }
15974 if (!argp2) {
15975 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadialGauss_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadialGauss_write" "', argument "
"2"" of type '" "GXmlElement &""'"); goto fail; } while(
0)
;
15976 }
15977 arg2 = reinterpret_cast< GXmlElement * >(argp2);
15978 {
15979 try {
15980 ((GModelSpatialRadialGauss const *)arg1)->write(*arg2);
15981 }
15982 catch (const GException::out_of_range& e) {
15983 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15984 }
15985 catch (const GExceptionHandler& e) {
15986 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15987 }
15988 catch (const std::exception& e) {
15989 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15990 }
15991 }
15992 resultobj = SWIG_Py_Void();
15993 return resultobj;
15994fail:
15995 return NULL__null;
15996}
15997
15998
15999SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialGauss_sigma__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16000 PyObject *resultobj = 0;
16001 GModelSpatialRadialGauss *arg1 = (GModelSpatialRadialGauss *) 0 ;
16002 void *argp1 = 0 ;
16003 int res1 = 0 ;
16004 PyObject * obj0 = 0 ;
16005 double result;
16006
16007 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialRadialGauss_sigma",&obj0)) SWIG_failgoto fail;
16008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialGauss, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21]
, 0 | 0, 0)
;
16009 if (!SWIG_IsOK(res1)(res1 >= 0)) {
16010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialGauss_sigma" "', argument " "1"" of type '" "GModelSpatialRadialGauss const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialGauss_sigma"
"', argument " "1"" of type '" "GModelSpatialRadialGauss const *"
"'"); goto fail; } while(0)
;
16011 }
16012 arg1 = reinterpret_cast< GModelSpatialRadialGauss * >(argp1);
16013 {
16014 try {
16015 result = (double)((GModelSpatialRadialGauss const *)arg1)->sigma();
16016 }
16017 catch (const GException::out_of_range& e) {
16018 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16019 }
16020 catch (const GExceptionHandler& e) {
16021 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16022 }
16023 catch (const std::exception& e) {
16024 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16025 }
16026 }
16027 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
16028 return resultobj;
16029fail:
16030 return NULL__null;
16031}
16032
16033
16034SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialGauss_sigma__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16035 PyObject *resultobj = 0;
16036 GModelSpatialRadialGauss *arg1 = (GModelSpatialRadialGauss *) 0 ;
16037 double *arg2 = 0 ;
16038 void *argp1 = 0 ;
16039 int res1 = 0 ;
16040 double temp2 ;
16041 double val2 ;
16042 int ecode2 = 0 ;
16043 PyObject * obj0 = 0 ;
16044 PyObject * obj1 = 0 ;
16045
16046 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialRadialGauss_sigma",&obj0,&obj1)) SWIG_failgoto fail;
16047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialGauss, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21]
, 0 | 0, 0)
;
16048 if (!SWIG_IsOK(res1)(res1 >= 0)) {
16049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialGauss_sigma" "', argument " "1"" of type '" "GModelSpatialRadialGauss *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialGauss_sigma"
"', argument " "1"" of type '" "GModelSpatialRadialGauss *""'"
); goto fail; } while(0)
;
16050 }
16051 arg1 = reinterpret_cast< GModelSpatialRadialGauss * >(argp1);
16052 ecode2 = SWIG_AsVal_double(obj1, &val2);
16053 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
16054 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpatialRadialGauss_sigma" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpatialRadialGauss_sigma"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
16055 }
16056 temp2 = static_cast< double >(val2);
16057 arg2 = &temp2;
16058 {
16059 try {
16060 (arg1)->sigma((double const &)*arg2);
16061 }
16062 catch (const GException::out_of_range& e) {
16063 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16064 }
16065 catch (const GExceptionHandler& e) {
16066 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16067 }
16068 catch (const std::exception& e) {
16069 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16070 }
16071 }
16072 resultobj = SWIG_Py_Void();
16073 return resultobj;
16074fail:
16075 return NULL__null;
16076}
16077
16078
16079SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialGauss_sigma(PyObject *self, PyObject *args) {
16080 int argc;
16081 PyObject *argv[3];
16082 int ii;
16083
16084 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
16085 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
16086 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
16087 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
16088 }
16089 if (argc == 1) {
16090 int _v;
16091 void *vptr = 0;
16092 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialRadialGauss, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[21
], 0, 0)
;
16093 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16094 if (_v) {
16095 return _wrap_GModelSpatialRadialGauss_sigma__SWIG_0(self, args);
16096 }
16097 }
16098 if (argc == 2) {
16099 int _v;
16100 void *vptr = 0;
16101 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialRadialGauss, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[21
], 0, 0)
;
16102 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16103 if (_v) {
16104 {
16105 int res = SWIG_AsVal_double(argv[1], NULL__null);
16106 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16107 }
16108 if (_v) {
16109 return _wrap_GModelSpatialRadialGauss_sigma__SWIG_1(self, args);
16110 }
16111 }
16112 }
16113
16114fail:
16115 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialRadialGauss_sigma'.\n"
16116 " Possible C/C++ prototypes are:\n"
16117 " GModelSpatialRadialGauss::sigma() const\n"
16118 " GModelSpatialRadialGauss::sigma(double const &)\n");
16119 return 0;
16120}
16121
16122
16123SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialGauss_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16124 PyObject *resultobj = 0;
16125 GModelSpatialRadialGauss *arg1 = (GModelSpatialRadialGauss *) 0 ;
16126 void *argp1 = 0 ;
16127 int res1 = 0 ;
16128 PyObject * obj0 = 0 ;
16129 GModelSpatialRadialGauss result;
16130
16131 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialRadialGauss_copy",&obj0)) SWIG_failgoto fail;
16132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialGauss, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21]
, 0 | 0, 0)
;
16133 if (!SWIG_IsOK(res1)(res1 >= 0)) {
16134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialGauss_copy" "', argument " "1"" of type '" "GModelSpatialRadialGauss *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialGauss_copy"
"', argument " "1"" of type '" "GModelSpatialRadialGauss *""'"
); goto fail; } while(0)
;
16135 }
16136 arg1 = reinterpret_cast< GModelSpatialRadialGauss * >(argp1);
16137 {
16138 try {
16139 result = GModelSpatialRadialGauss_copy(arg1);
16140 }
16141 catch (const GException::out_of_range& e) {
16142 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16143 }
16144 catch (const GExceptionHandler& e) {
16145 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16146 }
16147 catch (const std::exception& e) {
16148 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16149 }
16150 }
16151 resultobj = SWIG_NewPointerObj((new GModelSpatialRadialGauss(static_cast< const GModelSpatialRadialGauss& >(result))), SWIGTYPE_p_GModelSpatialRadialGauss, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GModelSpatialRadialGauss
(static_cast< const GModelSpatialRadialGauss& >(result
))), swig_types[21], 0x1 | 0)
;
16152 return resultobj;
16153fail:
16154 return NULL__null;
16155}
16156
16157
16158SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialGauss_eval__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16159 PyObject *resultobj = 0;
16160 GModelSpatialRadialGauss *arg1 = (GModelSpatialRadialGauss *) 0 ;
16161 GPhoton *arg2 = 0 ;
16162 void *argp1 = 0 ;
16163 int res1 = 0 ;
16164 void *argp2 = 0 ;
16165 int res2 = 0 ;
16166 PyObject * obj0 = 0 ;
16167 PyObject * obj1 = 0 ;
16168 double result;
16169
16170 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialRadialGauss_eval",&obj0,&obj1)) SWIG_failgoto fail;
16171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialGauss, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21]
, 0 | 0, 0)
;
16172 if (!SWIG_IsOK(res1)(res1 >= 0)) {
16173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialGauss_eval" "', argument " "1"" of type '" "GModelSpatialRadialGauss const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialGauss_eval"
"', argument " "1"" of type '" "GModelSpatialRadialGauss const *"
"'"); goto fail; } while(0)
;
16174 }
16175 arg1 = reinterpret_cast< GModelSpatialRadialGauss * >(argp1);
16176 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[40]
, 0 | 0, 0)
;
16177 if (!SWIG_IsOK(res2)(res2 >= 0)) {
16178 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialRadialGauss_eval" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialRadialGauss_eval"
"', argument " "2"" of type '" "GPhoton const &""'"); goto
fail; } while(0)
;
16179 }
16180 if (!argp2) {
16181 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadialGauss_eval" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadialGauss_eval" "', argument "
"2"" of type '" "GPhoton const &""'"); goto fail; } while
(0)
;
16182 }
16183 arg2 = reinterpret_cast< GPhoton * >(argp2);
16184 {
16185 try {
16186 result = (double)GModelSpatialRadialGauss_eval__SWIG_1((GModelSpatialRadialGauss const *)arg1,(GPhoton const &)*arg2);
16187 }
16188 catch (const GException::out_of_range& e) {
16189 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16190 }
16191 catch (const GExceptionHandler& e) {
16192 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16193 }
16194 catch (const std::exception& e) {
16195 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16196 }
16197 }
16198 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
16199 return resultobj;
16200fail:
16201 return NULL__null;
16202}
16203
16204
16205SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialGauss_eval(PyObject *self, PyObject *args) {
16206 int argc;
16207 PyObject *argv[5];
16208 int ii;
16209
16210 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
16211 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
16212 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
16213 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
16214 }
16215 if (argc == 2) {
16216 int _v;
16217 void *vptr = 0;
16218 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialRadialGauss, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[21
], 0, 0)
;
16219 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16220 if (_v) {
16221 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GPhoton, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[40], 0, 0
)
;
16222 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16223 if (_v) {
16224 return _wrap_GModelSpatialRadialGauss_eval__SWIG_1(self, args);
16225 }
16226 }
16227 }
16228 if (argc == 4) {
16229 int _v;
16230 void *vptr = 0;
16231 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialRadialGauss, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[21
], 0, 0)
;
16232 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16233 if (_v) {
16234 {
16235 int res = SWIG_AsVal_double(argv[1], NULL__null);
16236 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16237 }
16238 if (_v) {
16239 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[3], 0, 0);
16240 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16241 if (_v) {
16242 int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GTime, 0)SWIG_Python_ConvertPtrAndOwn(argv[3], 0, swig_types[46], 0, 0
)
;
16243 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16244 if (_v) {
16245 return _wrap_GModelSpatialRadialGauss_eval__SWIG_0(self, args);
16246 }
16247 }
16248 }
16249 }
16250 }
16251
16252fail:
16253 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialRadialGauss_eval'.\n"
16254 " Possible C/C++ prototypes are:\n"
16255 " GModelSpatialRadialGauss::eval(double const &,GEnergy const &,GTime const &) const\n"
16256 " GModelSpatialRadialGauss::eval(GPhoton const &) const\n");
16257 return 0;
16258}
16259
16260
16261SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialGauss_eval_gradients__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16262 PyObject *resultobj = 0;
16263 GModelSpatialRadialGauss *arg1 = (GModelSpatialRadialGauss *) 0 ;
16264 GPhoton *arg2 = 0 ;
16265 void *argp1 = 0 ;
16266 int res1 = 0 ;
16267 void *argp2 = 0 ;
16268 int res2 = 0 ;
16269 PyObject * obj0 = 0 ;
16270 PyObject * obj1 = 0 ;
16271 double result;
16272
16273 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialRadialGauss_eval_gradients",&obj0,&obj1)) SWIG_failgoto fail;
16274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialGauss, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21]
, 0 | 0, 0)
;
16275 if (!SWIG_IsOK(res1)(res1 >= 0)) {
16276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialGauss_eval_gradients" "', argument " "1"" of type '" "GModelSpatialRadialGauss const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialGauss_eval_gradients"
"', argument " "1"" of type '" "GModelSpatialRadialGauss const *"
"'"); goto fail; } while(0)
;
16277 }
16278 arg1 = reinterpret_cast< GModelSpatialRadialGauss * >(argp1);
16279 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[40]
, 0 | 0, 0)
;
16280 if (!SWIG_IsOK(res2)(res2 >= 0)) {
16281 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialRadialGauss_eval_gradients" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialRadialGauss_eval_gradients"
"', argument " "2"" of type '" "GPhoton const &""'"); goto
fail; } while(0)
;
16282 }
16283 if (!argp2) {
16284 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadialGauss_eval_gradients" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadialGauss_eval_gradients" "', argument "
"2"" of type '" "GPhoton const &""'"); goto fail; } while
(0)
;
16285 }
16286 arg2 = reinterpret_cast< GPhoton * >(argp2);
16287 {
16288 try {
16289 result = (double)GModelSpatialRadialGauss_eval_gradients__SWIG_1((GModelSpatialRadialGauss const *)arg1,(GPhoton const &)*arg2);
16290 }
16291 catch (const GException::out_of_range& e) {
16292 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16293 }
16294 catch (const GExceptionHandler& e) {
16295 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16296 }
16297 catch (const std::exception& e) {
16298 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16299 }
16300 }
16301 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
16302 return resultobj;
16303fail:
16304 return NULL__null;
16305}
16306
16307
16308SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialGauss_eval_gradients(PyObject *self, PyObject *args) {
16309 int argc;
16310 PyObject *argv[5];
16311 int ii;
16312
16313 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
16314 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
16315 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
16316 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
16317 }
16318 if (argc == 2) {
16319 int _v;
16320 void *vptr = 0;
16321 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialRadialGauss, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[21
], 0, 0)
;
16322 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16323 if (_v) {
16324 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GPhoton, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[40], 0, 0
)
;
16325 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16326 if (_v) {
16327 return _wrap_GModelSpatialRadialGauss_eval_gradients__SWIG_1(self, args);
16328 }
16329 }
16330 }
16331 if (argc == 4) {
16332 int _v;
16333 void *vptr = 0;
16334 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialRadialGauss, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[21
], 0, 0)
;
16335 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16336 if (_v) {
16337 {
16338 int res = SWIG_AsVal_double(argv[1], NULL__null);
16339 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16340 }
16341 if (_v) {
16342 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[3], 0, 0);
16343 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16344 if (_v) {
16345 int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GTime, 0)SWIG_Python_ConvertPtrAndOwn(argv[3], 0, swig_types[46], 0, 0
)
;
16346 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16347 if (_v) {
16348 return _wrap_GModelSpatialRadialGauss_eval_gradients__SWIG_0(self, args);
16349 }
16350 }
16351 }
16352 }
16353 }
16354
16355fail:
16356 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialRadialGauss_eval_gradients'.\n"
16357 " Possible C/C++ prototypes are:\n"
16358 " GModelSpatialRadialGauss::eval_gradients(double const &,GEnergy const &,GTime const &) const\n"
16359 " GModelSpatialRadialGauss::eval_gradients(GPhoton const &) const\n");
16360 return 0;
16361}
16362
16363
16364SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GModelSpatialRadialGauss_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16365 PyObject *obj;
16366 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
16367 SWIG_TypeNewClientData(SWIGTYPE_p_GModelSpatialRadialGaussswig_types[21], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
16368 return SWIG_Py_Void();
16369}
16370
16371SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialRadialShell__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16372 PyObject *resultobj = 0;
16373 GModelSpatialRadialShell *result = 0 ;
16374
16375 if (!PyArg_ParseTuple(args,(char *)":new_GModelSpatialRadialShell")) SWIG_failgoto fail;
16376 {
16377 try {
16378 result = (GModelSpatialRadialShell *)new GModelSpatialRadialShell();
16379 }
16380 catch (const GException::out_of_range& e) {
16381 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16382 }
16383 catch (const GExceptionHandler& e) {
16384 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16385 }
16386 catch (const std::exception& e) {
16387 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16388 }
16389 }
16390 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialRadialShell, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[22], (
(0x1 << 1) | 0x1) | 0)
;
16391 return resultobj;
16392fail:
16393 return NULL__null;
16394}
16395
16396
16397SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialRadialShell__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16398 PyObject *resultobj = 0;
16399 GSkyDir *arg1 = 0 ;
16400 double *arg2 = 0 ;
16401 double *arg3 = 0 ;
16402 bool *arg4 = 0 ;
16403 void *argp1 = 0 ;
16404 int res1 = 0 ;
16405 double temp2 ;
16406 double val2 ;
16407 int ecode2 = 0 ;
16408 double temp3 ;
16409 double val3 ;
16410 int ecode3 = 0 ;
16411 bool temp4 ;
16412 bool val4 ;
16413 int ecode4 = 0 ;
16414 PyObject * obj0 = 0 ;
16415 PyObject * obj1 = 0 ;
16416 PyObject * obj2 = 0 ;
16417 PyObject * obj3 = 0 ;
16418 GModelSpatialRadialShell *result = 0 ;
16419
16420 if (!PyArg_ParseTuple(args,(char *)"OOOO:new_GModelSpatialRadialShell",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
16421 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[44]
, 0 | 0, 0)
;
16422 if (!SWIG_IsOK(res1)(res1 >= 0)) {
16423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpatialRadialShell" "', argument " "1"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpatialRadialShell"
"', argument " "1"" of type '" "GSkyDir const &""'"); goto
fail; } while(0)
;
16424 }
16425 if (!argp1) {
16426 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpatialRadialShell" "', argument " "1"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpatialRadialShell" "', argument " "1"
" of type '" "GSkyDir const &""'"); goto fail; } while(0)
;
16427 }
16428 arg1 = reinterpret_cast< GSkyDir * >(argp1);
16429 ecode2 = SWIG_AsVal_double(obj1, &val2);
16430 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
16431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GModelSpatialRadialShell" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "new_GModelSpatialRadialShell"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
16432 }
16433 temp2 = static_cast< double >(val2);
16434 arg2 = &temp2;
16435 ecode3 = SWIG_AsVal_double(obj2, &val3);
16436 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
16437 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_GModelSpatialRadialShell" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "new_GModelSpatialRadialShell"
"', argument " "3"" of type '" "double""'"); goto fail; } while
(0)
;
16438 }
16439 temp3 = static_cast< double >(val3);
16440 arg3 = &temp3;
16441 ecode4 = SWIG_AsVal_bool(obj3, &val4);
16442 if (!SWIG_IsOK(ecode4)(ecode4 >= 0)) {
16443 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_GModelSpatialRadialShell" "', argument " "4"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 !=
(-1)) ? ecode4 : -5)), "in method '" "new_GModelSpatialRadialShell"
"', argument " "4"" of type '" "bool""'"); goto fail; } while
(0)
;
16444 }
16445 temp4 = static_cast< bool >(val4);
16446 arg4 = &temp4;
16447 {
16448 try {
16449 result = (GModelSpatialRadialShell *)new GModelSpatialRadialShell((GSkyDir const &)*arg1,(double const &)*arg2,(double const &)*arg3,(bool const &)*arg4);
16450 }
16451 catch (const GException::out_of_range& e) {
16452 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16453 }
16454 catch (const GExceptionHandler& e) {
16455 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16456 }
16457 catch (const std::exception& e) {
16458 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16459 }
16460 }
16461 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialRadialShell, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[22], (
(0x1 << 1) | 0x1) | 0)
;
16462 return resultobj;
16463fail:
16464 return NULL__null;
16465}
16466
16467
16468SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialRadialShell__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16469 PyObject *resultobj = 0;
16470 GSkyDir *arg1 = 0 ;
16471 double *arg2 = 0 ;
16472 double *arg3 = 0 ;
16473 void *argp1 = 0 ;
16474 int res1 = 0 ;
16475 double temp2 ;
16476 double val2 ;
16477 int ecode2 = 0 ;
16478 double temp3 ;
16479 double val3 ;
16480 int ecode3 = 0 ;
16481 PyObject * obj0 = 0 ;
16482 PyObject * obj1 = 0 ;
16483 PyObject * obj2 = 0 ;
16484 GModelSpatialRadialShell *result = 0 ;
16485
16486 if (!PyArg_ParseTuple(args,(char *)"OOO:new_GModelSpatialRadialShell",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
16487 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[44]
, 0 | 0, 0)
;
16488 if (!SWIG_IsOK(res1)(res1 >= 0)) {
16489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpatialRadialShell" "', argument " "1"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpatialRadialShell"
"', argument " "1"" of type '" "GSkyDir const &""'"); goto
fail; } while(0)
;
16490 }
16491 if (!argp1) {
16492 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpatialRadialShell" "', argument " "1"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpatialRadialShell" "', argument " "1"
" of type '" "GSkyDir const &""'"); goto fail; } while(0)
;
16493 }
16494 arg1 = reinterpret_cast< GSkyDir * >(argp1);
16495 ecode2 = SWIG_AsVal_double(obj1, &val2);
16496 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
16497 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GModelSpatialRadialShell" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "new_GModelSpatialRadialShell"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
16498 }
16499 temp2 = static_cast< double >(val2);
16500 arg2 = &temp2;
16501 ecode3 = SWIG_AsVal_double(obj2, &val3);
16502 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
16503 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_GModelSpatialRadialShell" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "new_GModelSpatialRadialShell"
"', argument " "3"" of type '" "double""'"); goto fail; } while
(0)
;
16504 }
16505 temp3 = static_cast< double >(val3);
16506 arg3 = &temp3;
16507 {
16508 try {
16509 result = (GModelSpatialRadialShell *)new GModelSpatialRadialShell((GSkyDir const &)*arg1,(double const &)*arg2,(double const &)*arg3);
16510 }
16511 catch (const GException::out_of_range& e) {
16512 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16513 }
16514 catch (const GExceptionHandler& e) {
16515 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16516 }
16517 catch (const std::exception& e) {
16518 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16519 }
16520 }
16521 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialRadialShell, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[22], (
(0x1 << 1) | 0x1) | 0)
;
16522 return resultobj;
16523fail:
16524 return NULL__null;
16525}
16526
16527
16528SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialRadialShell__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16529 PyObject *resultobj = 0;
16530 GXmlElement *arg1 = 0 ;
16531 void *argp1 = 0 ;
16532 int res1 = 0 ;
16533 PyObject * obj0 = 0 ;
16534 GModelSpatialRadialShell *result = 0 ;
16535
16536 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpatialRadialShell",&obj0)) SWIG_failgoto fail;
16537 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[50]
, 0 | 0, 0)
;
16538 if (!SWIG_IsOK(res1)(res1 >= 0)) {
16539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpatialRadialShell" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpatialRadialShell"
"', argument " "1"" of type '" "GXmlElement const &""'")
; goto fail; } while(0)
;
16540 }
16541 if (!argp1) {
16542 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpatialRadialShell" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpatialRadialShell" "', argument " "1"
" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
16543 }
16544 arg1 = reinterpret_cast< GXmlElement * >(argp1);
16545 {
16546 try {
16547 result = (GModelSpatialRadialShell *)new GModelSpatialRadialShell((GXmlElement const &)*arg1);
16548 }
16549 catch (const GException::out_of_range& e) {
16550 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16551 }
16552 catch (const GExceptionHandler& e) {
16553 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16554 }
16555 catch (const std::exception& e) {
16556 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16557 }
16558 }
16559 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialRadialShell, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[22], (
(0x1 << 1) | 0x1) | 0)
;
16560 return resultobj;
16561fail:
16562 return NULL__null;
16563}
16564
16565
16566SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialRadialShell__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16567 PyObject *resultobj = 0;
16568 GModelSpatialRadialShell *arg1 = 0 ;
16569 void *argp1 = 0 ;
16570 int res1 = 0 ;
16571 PyObject * obj0 = 0 ;
16572 GModelSpatialRadialShell *result = 0 ;
16573
16574 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpatialRadialShell",&obj0)) SWIG_failgoto fail;
16575 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GModelSpatialRadialShell, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
16576 if (!SWIG_IsOK(res1)(res1 >= 0)) {
16577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpatialRadialShell" "', argument " "1"" of type '" "GModelSpatialRadialShell const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpatialRadialShell"
"', argument " "1"" of type '" "GModelSpatialRadialShell const &"
"'"); goto fail; } while(0)
;
16578 }
16579 if (!argp1) {
16580 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpatialRadialShell" "', argument " "1"" of type '" "GModelSpatialRadialShell const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpatialRadialShell" "', argument " "1"
" of type '" "GModelSpatialRadialShell const &""'"); goto
fail; } while(0)
;
16581 }
16582 arg1 = reinterpret_cast< GModelSpatialRadialShell * >(argp1);
16583 {
16584 try {
16585 result = (GModelSpatialRadialShell *)new GModelSpatialRadialShell((GModelSpatialRadialShell const &)*arg1);
16586 }
16587 catch (const GException::out_of_range& e) {
16588 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16589 }
16590 catch (const GExceptionHandler& e) {
16591 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16592 }
16593 catch (const std::exception& e) {
16594 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16595 }
16596 }
16597 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialRadialShell, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[22], (
(0x1 << 1) | 0x1) | 0)
;
16598 return resultobj;
16599fail:
16600 return NULL__null;
16601}
16602
16603
16604SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialRadialShell(PyObject *self, PyObject *args) {
16605 int argc;
16606 PyObject *argv[5];
16607 int ii;
16608
16609 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
16610 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
16611 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
16612 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
16613 }
16614 if (argc == 0) {
16615 return _wrap_new_GModelSpatialRadialShell__SWIG_0(self, args);
16616 }
16617 if (argc == 1) {
16618 int _v;
16619 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GXmlElement, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[50], 0, 0
)
;
16620 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16621 if (_v) {
16622 return _wrap_new_GModelSpatialRadialShell__SWIG_3(self, args);
16623 }
16624 }
16625 if (argc == 1) {
16626 int _v;
16627 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GModelSpatialRadialShell, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[22], 0, 0
)
;
16628 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16629 if (_v) {
16630 return _wrap_new_GModelSpatialRadialShell__SWIG_4(self, args);
16631 }
16632 }
16633 if (argc == 3) {
16634 int _v;
16635 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GSkyDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[44], 0, 0
)
;
16636 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16637 if (_v) {
16638 {
16639 int res = SWIG_AsVal_double(argv[1], NULL__null);
16640 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16641 }
16642 if (_v) {
16643 {
16644 int res = SWIG_AsVal_double(argv[2], NULL__null);
16645 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16646 }
16647 if (_v) {
16648 return _wrap_new_GModelSpatialRadialShell__SWIG_2(self, args);
16649 }
16650 }
16651 }
16652 }
16653 if (argc == 4) {
16654 int _v;
16655 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GSkyDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[44], 0, 0
)
;
16656 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16657 if (_v) {
16658 {
16659 int res = SWIG_AsVal_double(argv[1], NULL__null);
16660 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16661 }
16662 if (_v) {
16663 {
16664 int res = SWIG_AsVal_double(argv[2], NULL__null);
16665 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16666 }
16667 if (_v) {
16668 {
16669 int res = SWIG_AsVal_bool(argv[3], NULL__null);
16670 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16671 }
16672 if (_v) {
16673 return _wrap_new_GModelSpatialRadialShell__SWIG_1(self, args);
16674 }
16675 }
16676 }
16677 }
16678 }
16679
16680fail:
16681 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GModelSpatialRadialShell'.\n"
16682 " Possible C/C++ prototypes are:\n"
16683 " GModelSpatialRadialShell::GModelSpatialRadialShell()\n"
16684 " GModelSpatialRadialShell::GModelSpatialRadialShell(GSkyDir const &,double const &,double const &,bool const &)\n"
16685 " GModelSpatialRadialShell::GModelSpatialRadialShell(GSkyDir const &,double const &,double const &)\n"
16686 " GModelSpatialRadialShell::GModelSpatialRadialShell(GXmlElement const &)\n"
16687 " GModelSpatialRadialShell::GModelSpatialRadialShell(GModelSpatialRadialShell const &)\n");
16688 return 0;
16689}
16690
16691
16692SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GModelSpatialRadialShell(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16693 PyObject *resultobj = 0;
16694 GModelSpatialRadialShell *arg1 = (GModelSpatialRadialShell *) 0 ;
16695 void *argp1 = 0 ;
16696 int res1 = 0 ;
16697 PyObject * obj0 = 0 ;
16698
16699 if (!PyArg_ParseTuple(args,(char *)"O:delete_GModelSpatialRadialShell",&obj0)) SWIG_failgoto fail;
16700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialShell, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0x1 | 0, 0)
;
16701 if (!SWIG_IsOK(res1)(res1 >= 0)) {
16702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GModelSpatialRadialShell" "', argument " "1"" of type '" "GModelSpatialRadialShell *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GModelSpatialRadialShell"
"', argument " "1"" of type '" "GModelSpatialRadialShell *""'"
); goto fail; } while(0)
;
16703 }
16704 arg1 = reinterpret_cast< GModelSpatialRadialShell * >(argp1);
16705 {
16706 try {
16707 delete arg1;
16708 }
16709 catch (const GException::out_of_range& e) {
16710 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16711 }
16712 catch (const GExceptionHandler& e) {
16713 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16714 }
16715 catch (const std::exception& e) {
16716 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16717 }
16718 }
16719 resultobj = SWIG_Py_Void();
16720 return resultobj;
16721fail:
16722 return NULL__null;
16723}
16724
16725
16726SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialShell_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16727 PyObject *resultobj = 0;
16728 GModelSpatialRadialShell *arg1 = (GModelSpatialRadialShell *) 0 ;
16729 void *argp1 = 0 ;
16730 int res1 = 0 ;
16731 PyObject * obj0 = 0 ;
16732
16733 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialRadialShell_clear",&obj0)) SWIG_failgoto fail;
16734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialShell, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
16735 if (!SWIG_IsOK(res1)(res1 >= 0)) {
16736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialShell_clear" "', argument " "1"" of type '" "GModelSpatialRadialShell *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialShell_clear"
"', argument " "1"" of type '" "GModelSpatialRadialShell *""'"
); goto fail; } while(0)
;
16737 }
16738 arg1 = reinterpret_cast< GModelSpatialRadialShell * >(argp1);
16739 {
16740 try {
16741 (arg1)->clear();
16742 }
16743 catch (const GException::out_of_range& e) {
16744 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16745 }
16746 catch (const GExceptionHandler& e) {
16747 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16748 }
16749 catch (const std::exception& e) {
16750 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16751 }
16752 }
16753 resultobj = SWIG_Py_Void();
16754 return resultobj;
16755fail:
16756 return NULL__null;
16757}
16758
16759
16760SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialShell_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16761 PyObject *resultobj = 0;
16762 GModelSpatialRadialShell *arg1 = (GModelSpatialRadialShell *) 0 ;
16763 void *argp1 = 0 ;
16764 int res1 = 0 ;
16765 PyObject * obj0 = 0 ;
16766 GModelSpatialRadialShell *result = 0 ;
16767
16768 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialRadialShell_clone",&obj0)) SWIG_failgoto fail;
16769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialShell, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
16770 if (!SWIG_IsOK(res1)(res1 >= 0)) {
16771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialShell_clone" "', argument " "1"" of type '" "GModelSpatialRadialShell const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialShell_clone"
"', argument " "1"" of type '" "GModelSpatialRadialShell const *"
"'"); goto fail; } while(0)
;
16772 }
16773 arg1 = reinterpret_cast< GModelSpatialRadialShell * >(argp1);
16774 {
16775 try {
16776 result = (GModelSpatialRadialShell *)((GModelSpatialRadialShell const *)arg1)->clone();
16777 }
16778 catch (const GException::out_of_range& e) {
16779 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16780 }
16781 catch (const GExceptionHandler& e) {
16782 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16783 }
16784 catch (const std::exception& e) {
16785 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16786 }
16787 }
16788 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialRadialShell, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[22], 0
| 0)
;
16789 return resultobj;
16790fail:
16791 return NULL__null;
16792}
16793
16794
16795SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialShell_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16796 PyObject *resultobj = 0;
16797 GModelSpatialRadialShell *arg1 = (GModelSpatialRadialShell *) 0 ;
16798 void *argp1 = 0 ;
16799 int res1 = 0 ;
16800 PyObject * obj0 = 0 ;
16801 std::string result;
16802
16803 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialRadialShell_type",&obj0)) SWIG_failgoto fail;
16804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialShell, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
16805 if (!SWIG_IsOK(res1)(res1 >= 0)) {
16806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialShell_type" "', argument " "1"" of type '" "GModelSpatialRadialShell const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialShell_type"
"', argument " "1"" of type '" "GModelSpatialRadialShell const *"
"'"); goto fail; } while(0)
;
16807 }
16808 arg1 = reinterpret_cast< GModelSpatialRadialShell * >(argp1);
16809 {
16810 try {
16811 result = ((GModelSpatialRadialShell const *)arg1)->type();
16812 }
16813 catch (const GException::out_of_range& e) {
16814 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16815 }
16816 catch (const GExceptionHandler& e) {
16817 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16818 }
16819 catch (const std::exception& e) {
16820 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16821 }
16822 }
16823 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
16824 return resultobj;
16825fail:
16826 return NULL__null;
16827}
16828
16829
16830SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialShell_eval__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16831 PyObject *resultobj = 0;
16832 GModelSpatialRadialShell *arg1 = (GModelSpatialRadialShell *) 0 ;
16833 double *arg2 = 0 ;
16834 GEnergy *arg3 = 0 ;
16835 GTime *arg4 = 0 ;
16836 void *argp1 = 0 ;
16837 int res1 = 0 ;
16838 double temp2 ;
16839 double val2 ;
16840 int ecode2 = 0 ;
16841 void *argp3 = 0 ;
16842 int res3 = 0 ;
16843 void *argp4 = 0 ;
16844 int res4 = 0 ;
16845 PyObject * obj0 = 0 ;
16846 PyObject * obj1 = 0 ;
16847 PyObject * obj2 = 0 ;
16848 PyObject * obj3 = 0 ;
16849 double result;
16850
16851 if (!PyArg_ParseTuple(args,(char *)"OOOO:GModelSpatialRadialShell_eval",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
16852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialShell, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
16853 if (!SWIG_IsOK(res1)(res1 >= 0)) {
16854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialShell_eval" "', argument " "1"" of type '" "GModelSpatialRadialShell const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialShell_eval"
"', argument " "1"" of type '" "GModelSpatialRadialShell const *"
"'"); goto fail; } while(0)
;
16855 }
16856 arg1 = reinterpret_cast< GModelSpatialRadialShell * >(argp1);
16857 ecode2 = SWIG_AsVal_double(obj1, &val2);
16858 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
16859 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpatialRadialShell_eval" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpatialRadialShell_eval"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
16860 }
16861 temp2 = static_cast< double >(val2);
16862 arg2 = &temp2;
16863 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
16864 if (!SWIG_IsOK(res3)(res3 >= 0)) {
16865 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpatialRadialShell_eval" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpatialRadialShell_eval"
"', argument " "3"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
16866 }
16867 if (!argp3) {
16868 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadialShell_eval" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadialShell_eval" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
16869 }
16870 arg3 = reinterpret_cast< GEnergy * >(argp3);
16871 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[46]
, 0 | 0, 0)
;
16872 if (!SWIG_IsOK(res4)(res4 >= 0)) {
16873 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelSpatialRadialShell_eval" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelSpatialRadialShell_eval"
"', argument " "4"" of type '" "GTime const &""'"); goto
fail; } while(0)
;
16874 }
16875 if (!argp4) {
16876 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadialShell_eval" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadialShell_eval" "', argument "
"4"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
16877 }
16878 arg4 = reinterpret_cast< GTime * >(argp4);
16879 {
16880 try {
16881 result = (double)((GModelSpatialRadialShell const *)arg1)->eval((double const &)*arg2,(GEnergy const &)*arg3,(GTime const &)*arg4);
16882 }
16883 catch (const GException::out_of_range& e) {
16884 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16885 }
16886 catch (const GExceptionHandler& e) {
16887 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16888 }
16889 catch (const std::exception& e) {
16890 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16891 }
16892 }
16893 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
16894 return resultobj;
16895fail:
16896 return NULL__null;
16897}
16898
16899
16900SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialShell_eval_gradients__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16901 PyObject *resultobj = 0;
16902 GModelSpatialRadialShell *arg1 = (GModelSpatialRadialShell *) 0 ;
16903 double *arg2 = 0 ;
16904 GEnergy *arg3 = 0 ;
16905 GTime *arg4 = 0 ;
16906 void *argp1 = 0 ;
16907 int res1 = 0 ;
16908 double temp2 ;
16909 double val2 ;
16910 int ecode2 = 0 ;
16911 void *argp3 = 0 ;
16912 int res3 = 0 ;
16913 void *argp4 = 0 ;
16914 int res4 = 0 ;
16915 PyObject * obj0 = 0 ;
16916 PyObject * obj1 = 0 ;
16917 PyObject * obj2 = 0 ;
16918 PyObject * obj3 = 0 ;
16919 double result;
16920
16921 if (!PyArg_ParseTuple(args,(char *)"OOOO:GModelSpatialRadialShell_eval_gradients",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
16922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialShell, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
16923 if (!SWIG_IsOK(res1)(res1 >= 0)) {
16924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialShell_eval_gradients" "', argument " "1"" of type '" "GModelSpatialRadialShell const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialShell_eval_gradients"
"', argument " "1"" of type '" "GModelSpatialRadialShell const *"
"'"); goto fail; } while(0)
;
16925 }
16926 arg1 = reinterpret_cast< GModelSpatialRadialShell * >(argp1);
16927 ecode2 = SWIG_AsVal_double(obj1, &val2);
16928 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
16929 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpatialRadialShell_eval_gradients" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpatialRadialShell_eval_gradients"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
16930 }
16931 temp2 = static_cast< double >(val2);
16932 arg2 = &temp2;
16933 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
16934 if (!SWIG_IsOK(res3)(res3 >= 0)) {
16935 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpatialRadialShell_eval_gradients" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpatialRadialShell_eval_gradients"
"', argument " "3"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
16936 }
16937 if (!argp3) {
16938 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadialShell_eval_gradients" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadialShell_eval_gradients" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
16939 }
16940 arg3 = reinterpret_cast< GEnergy * >(argp3);
16941 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[46]
, 0 | 0, 0)
;
16942 if (!SWIG_IsOK(res4)(res4 >= 0)) {
16943 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelSpatialRadialShell_eval_gradients" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelSpatialRadialShell_eval_gradients"
"', argument " "4"" of type '" "GTime const &""'"); goto
fail; } while(0)
;
16944 }
16945 if (!argp4) {
16946 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadialShell_eval_gradients" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadialShell_eval_gradients" "', argument "
"4"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
16947 }
16948 arg4 = reinterpret_cast< GTime * >(argp4);
16949 {
16950 try {
16951 result = (double)((GModelSpatialRadialShell const *)arg1)->eval_gradients((double const &)*arg2,(GEnergy const &)*arg3,(GTime const &)*arg4);
16952 }
16953 catch (const GException::out_of_range& e) {
16954 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16955 }
16956 catch (const GExceptionHandler& e) {
16957 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16958 }
16959 catch (const std::exception& e) {
16960 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16961 }
16962 }
16963 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
16964 return resultobj;
16965fail:
16966 return NULL__null;
16967}
16968
16969
16970SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialShell_mc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16971 PyObject *resultobj = 0;
16972 GModelSpatialRadialShell *arg1 = (GModelSpatialRadialShell *) 0 ;
16973 GEnergy *arg2 = 0 ;
16974 GTime *arg3 = 0 ;
16975 GRan *arg4 = 0 ;
16976 void *argp1 = 0 ;
16977 int res1 = 0 ;
16978 void *argp2 = 0 ;
16979 int res2 = 0 ;
16980 void *argp3 = 0 ;
16981 int res3 = 0 ;
16982 void *argp4 = 0 ;
16983 int res4 = 0 ;
16984 PyObject * obj0 = 0 ;
16985 PyObject * obj1 = 0 ;
16986 PyObject * obj2 = 0 ;
16987 PyObject * obj3 = 0 ;
16988 GSkyDir result;
16989
16990 if (!PyArg_ParseTuple(args,(char *)"OOOO:GModelSpatialRadialShell_mc",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
16991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialShell, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
16992 if (!SWIG_IsOK(res1)(res1 >= 0)) {
16993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialShell_mc" "', argument " "1"" of type '" "GModelSpatialRadialShell const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialShell_mc"
"', argument " "1"" of type '" "GModelSpatialRadialShell const *"
"'"); goto fail; } while(0)
;
16994 }
16995 arg1 = reinterpret_cast< GModelSpatialRadialShell * >(argp1);
16996 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
16997 if (!SWIG_IsOK(res2)(res2 >= 0)) {
16998 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialRadialShell_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialRadialShell_mc"
"', argument " "2"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
16999 }
17000 if (!argp2) {
17001 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadialShell_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadialShell_mc" "', argument " "2"
" of type '" "GEnergy const &""'"); goto fail; } while(0)
;
17002 }
17003 arg2 = reinterpret_cast< GEnergy * >(argp2);
17004 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[46]
, 0 | 0, 0)
;
17005 if (!SWIG_IsOK(res3)(res3 >= 0)) {
17006 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpatialRadialShell_mc" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpatialRadialShell_mc"
"', argument " "3"" of type '" "GTime const &""'"); goto
fail; } while(0)
;
17007 }
17008 if (!argp3) {
17009 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadialShell_mc" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadialShell_mc" "', argument " "3"
" of type '" "GTime const &""'"); goto fail; } while(0)
;
17010 }
17011 arg3 = reinterpret_cast< GTime * >(argp3);
17012 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GRan, 0 )SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[42]
, 0, 0)
;
17013 if (!SWIG_IsOK(res4)(res4 >= 0)) {
17014 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelSpatialRadialShell_mc" "', argument " "4"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelSpatialRadialShell_mc"
"', argument " "4"" of type '" "GRan &""'"); goto fail; }
while(0)
;
17015 }
17016 if (!argp4) {
17017 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadialShell_mc" "', argument " "4"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadialShell_mc" "', argument " "4"
" of type '" "GRan &""'"); goto fail; } while(0)
;
17018 }
17019 arg4 = reinterpret_cast< GRan * >(argp4);
17020 {
17021 try {
17022 result = ((GModelSpatialRadialShell const *)arg1)->mc((GEnergy const &)*arg2,(GTime const &)*arg3,*arg4);
17023 }
17024 catch (const GException::out_of_range& e) {
17025 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17026 }
17027 catch (const GExceptionHandler& e) {
17028 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17029 }
17030 catch (const std::exception& e) {
17031 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17032 }
17033 }
17034 resultobj = SWIG_NewPointerObj((new GSkyDir(static_cast< const GSkyDir& >(result))), SWIGTYPE_p_GSkyDir, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GSkyDir(static_cast<
const GSkyDir& >(result))), swig_types[44], 0x1 | 0)
;
17035 return resultobj;
17036fail:
17037 return NULL__null;
17038}
17039
17040
17041SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialShell_theta_max(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17042 PyObject *resultobj = 0;
17043 GModelSpatialRadialShell *arg1 = (GModelSpatialRadialShell *) 0 ;
17044 void *argp1 = 0 ;
17045 int res1 = 0 ;
17046 PyObject * obj0 = 0 ;
17047 double result;
17048
17049 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialRadialShell_theta_max",&obj0)) SWIG_failgoto fail;
17050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialShell, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
17051 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialShell_theta_max" "', argument " "1"" of type '" "GModelSpatialRadialShell const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialShell_theta_max"
"', argument " "1"" of type '" "GModelSpatialRadialShell const *"
"'"); goto fail; } while(0)
;
17053 }
17054 arg1 = reinterpret_cast< GModelSpatialRadialShell * >(argp1);
17055 {
17056 try {
17057 result = (double)((GModelSpatialRadialShell const *)arg1)->theta_max();
17058 }
17059 catch (const GException::out_of_range& e) {
17060 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17061 }
17062 catch (const GExceptionHandler& e) {
17063 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17064 }
17065 catch (const std::exception& e) {
17066 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17067 }
17068 }
17069 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
17070 return resultobj;
17071fail:
17072 return NULL__null;
17073}
17074
17075
17076SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialShell_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17077 PyObject *resultobj = 0;
17078 GModelSpatialRadialShell *arg1 = (GModelSpatialRadialShell *) 0 ;
17079 GXmlElement *arg2 = 0 ;
17080 void *argp1 = 0 ;
17081 int res1 = 0 ;
17082 void *argp2 = 0 ;
17083 int res2 = 0 ;
17084 PyObject * obj0 = 0 ;
17085 PyObject * obj1 = 0 ;
17086
17087 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialRadialShell_read",&obj0,&obj1)) SWIG_failgoto fail;
17088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialShell, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
17089 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialShell_read" "', argument " "1"" of type '" "GModelSpatialRadialShell *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialShell_read"
"', argument " "1"" of type '" "GModelSpatialRadialShell *""'"
); goto fail; } while(0)
;
17091 }
17092 arg1 = reinterpret_cast< GModelSpatialRadialShell * >(argp1);
17093 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0 | 0, 0)
;
17094 if (!SWIG_IsOK(res2)(res2 >= 0)) {
17095 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialRadialShell_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialRadialShell_read"
"', argument " "2"" of type '" "GXmlElement const &""'")
; goto fail; } while(0)
;
17096 }
17097 if (!argp2) {
17098 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadialShell_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadialShell_read" "', argument "
"2"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
17099 }
17100 arg2 = reinterpret_cast< GXmlElement * >(argp2);
17101 {
17102 try {
17103 (arg1)->read((GXmlElement const &)*arg2);
17104 }
17105 catch (const GException::out_of_range& e) {
17106 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17107 }
17108 catch (const GExceptionHandler& e) {
17109 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17110 }
17111 catch (const std::exception& e) {
17112 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17113 }
17114 }
17115 resultobj = SWIG_Py_Void();
17116 return resultobj;
17117fail:
17118 return NULL__null;
17119}
17120
17121
17122SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialShell_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17123 PyObject *resultobj = 0;
17124 GModelSpatialRadialShell *arg1 = (GModelSpatialRadialShell *) 0 ;
17125 GXmlElement *arg2 = 0 ;
17126 void *argp1 = 0 ;
17127 int res1 = 0 ;
17128 void *argp2 = 0 ;
17129 int res2 = 0 ;
17130 PyObject * obj0 = 0 ;
17131 PyObject * obj1 = 0 ;
17132
17133 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialRadialShell_write",&obj0,&obj1)) SWIG_failgoto fail;
17134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialShell, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
17135 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialShell_write" "', argument " "1"" of type '" "GModelSpatialRadialShell const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialShell_write"
"', argument " "1"" of type '" "GModelSpatialRadialShell const *"
"'"); goto fail; } while(0)
;
17137 }
17138 arg1 = reinterpret_cast< GModelSpatialRadialShell * >(argp1);
17139 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0, 0)
;
17140 if (!SWIG_IsOK(res2)(res2 >= 0)) {
17141 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialRadialShell_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialRadialShell_write"
"', argument " "2"" of type '" "GXmlElement &""'"); goto
fail; } while(0)
;
17142 }
17143 if (!argp2) {
17144 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadialShell_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadialShell_write" "', argument "
"2"" of type '" "GXmlElement &""'"); goto fail; } while(
0)
;
17145 }
17146 arg2 = reinterpret_cast< GXmlElement * >(argp2);
17147 {
17148 try {
17149 ((GModelSpatialRadialShell const *)arg1)->write(*arg2);
17150 }
17151 catch (const GException::out_of_range& e) {
17152 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17153 }
17154 catch (const GExceptionHandler& e) {
17155 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17156 }
17157 catch (const std::exception& e) {
17158 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17159 }
17160 }
17161 resultobj = SWIG_Py_Void();
17162 return resultobj;
17163fail:
17164 return NULL__null;
17165}
17166
17167
17168SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialShell_radius__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17169 PyObject *resultobj = 0;
17170 GModelSpatialRadialShell *arg1 = (GModelSpatialRadialShell *) 0 ;
17171 void *argp1 = 0 ;
17172 int res1 = 0 ;
17173 PyObject * obj0 = 0 ;
17174 double result;
17175
17176 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialRadialShell_radius",&obj0)) SWIG_failgoto fail;
17177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialShell, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
17178 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialShell_radius" "', argument " "1"" of type '" "GModelSpatialRadialShell const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialShell_radius"
"', argument " "1"" of type '" "GModelSpatialRadialShell const *"
"'"); goto fail; } while(0)
;
17180 }
17181 arg1 = reinterpret_cast< GModelSpatialRadialShell * >(argp1);
17182 {
17183 try {
17184 result = (double)((GModelSpatialRadialShell const *)arg1)->radius();
17185 }
17186 catch (const GException::out_of_range& e) {
17187 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17188 }
17189 catch (const GExceptionHandler& e) {
17190 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17191 }
17192 catch (const std::exception& e) {
17193 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17194 }
17195 }
17196 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
17197 return resultobj;
17198fail:
17199 return NULL__null;
17200}
17201
17202
17203SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialShell_width__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17204 PyObject *resultobj = 0;
17205 GModelSpatialRadialShell *arg1 = (GModelSpatialRadialShell *) 0 ;
17206 void *argp1 = 0 ;
17207 int res1 = 0 ;
17208 PyObject * obj0 = 0 ;
17209 double result;
17210
17211 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialRadialShell_width",&obj0)) SWIG_failgoto fail;
17212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialShell, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
17213 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialShell_width" "', argument " "1"" of type '" "GModelSpatialRadialShell const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialShell_width"
"', argument " "1"" of type '" "GModelSpatialRadialShell const *"
"'"); goto fail; } while(0)
;
17215 }
17216 arg1 = reinterpret_cast< GModelSpatialRadialShell * >(argp1);
17217 {
17218 try {
17219 result = (double)((GModelSpatialRadialShell const *)arg1)->width();
17220 }
17221 catch (const GException::out_of_range& e) {
17222 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17223 }
17224 catch (const GExceptionHandler& e) {
17225 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17226 }
17227 catch (const std::exception& e) {
17228 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17229 }
17230 }
17231 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
17232 return resultobj;
17233fail:
17234 return NULL__null;
17235}
17236
17237
17238SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialShell_small_angle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17239 PyObject *resultobj = 0;
17240 GModelSpatialRadialShell *arg1 = (GModelSpatialRadialShell *) 0 ;
17241 void *argp1 = 0 ;
17242 int res1 = 0 ;
17243 PyObject * obj0 = 0 ;
17244 bool result;
17245
17246 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialRadialShell_small_angle",&obj0)) SWIG_failgoto fail;
17247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialShell, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
17248 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialShell_small_angle" "', argument " "1"" of type '" "GModelSpatialRadialShell const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialShell_small_angle"
"', argument " "1"" of type '" "GModelSpatialRadialShell const *"
"'"); goto fail; } while(0)
;
17250 }
17251 arg1 = reinterpret_cast< GModelSpatialRadialShell * >(argp1);
17252 {
17253 try {
17254 result = (bool)((GModelSpatialRadialShell const *)arg1)->small_angle();
17255 }
17256 catch (const GException::out_of_range& e) {
17257 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17258 }
17259 catch (const GExceptionHandler& e) {
17260 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17261 }
17262 catch (const std::exception& e) {
17263 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17264 }
17265 }
17266 resultobj = SWIG_From_bool(static_cast< bool >(result));
17267 return resultobj;
17268fail:
17269 return NULL__null;
17270}
17271
17272
17273SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialShell_radius__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17274 PyObject *resultobj = 0;
17275 GModelSpatialRadialShell *arg1 = (GModelSpatialRadialShell *) 0 ;
17276 double *arg2 = 0 ;
17277 void *argp1 = 0 ;
17278 int res1 = 0 ;
17279 double temp2 ;
17280 double val2 ;
17281 int ecode2 = 0 ;
17282 PyObject * obj0 = 0 ;
17283 PyObject * obj1 = 0 ;
17284
17285 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialRadialShell_radius",&obj0,&obj1)) SWIG_failgoto fail;
17286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialShell, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
17287 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialShell_radius" "', argument " "1"" of type '" "GModelSpatialRadialShell *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialShell_radius"
"', argument " "1"" of type '" "GModelSpatialRadialShell *""'"
); goto fail; } while(0)
;
17289 }
17290 arg1 = reinterpret_cast< GModelSpatialRadialShell * >(argp1);
17291 ecode2 = SWIG_AsVal_double(obj1, &val2);
17292 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
17293 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpatialRadialShell_radius" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpatialRadialShell_radius"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
17294 }
17295 temp2 = static_cast< double >(val2);
17296 arg2 = &temp2;
17297 {
17298 try {
17299 (arg1)->radius((double const &)*arg2);
17300 }
17301 catch (const GException::out_of_range& e) {
17302 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17303 }
17304 catch (const GExceptionHandler& e) {
17305 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17306 }
17307 catch (const std::exception& e) {
17308 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17309 }
17310 }
17311 resultobj = SWIG_Py_Void();
17312 return resultobj;
17313fail:
17314 return NULL__null;
17315}
17316
17317
17318SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialShell_radius(PyObject *self, PyObject *args) {
17319 int argc;
17320 PyObject *argv[3];
17321 int ii;
17322
17323 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
17324 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
17325 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
17326 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
17327 }
17328 if (argc == 1) {
17329 int _v;
17330 void *vptr = 0;
17331 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialRadialShell, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[22
], 0, 0)
;
17332 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
17333 if (_v) {
17334 return _wrap_GModelSpatialRadialShell_radius__SWIG_0(self, args);
17335 }
17336 }
17337 if (argc == 2) {
17338 int _v;
17339 void *vptr = 0;
17340 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialRadialShell, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[22
], 0, 0)
;
17341 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
17342 if (_v) {
17343 {
17344 int res = SWIG_AsVal_double(argv[1], NULL__null);
17345 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
17346 }
17347 if (_v) {
17348 return _wrap_GModelSpatialRadialShell_radius__SWIG_1(self, args);
17349 }
17350 }
17351 }
17352
17353fail:
17354 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialRadialShell_radius'.\n"
17355 " Possible C/C++ prototypes are:\n"
17356 " GModelSpatialRadialShell::radius() const\n"
17357 " GModelSpatialRadialShell::radius(double const &)\n");
17358 return 0;
17359}
17360
17361
17362SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialShell_width__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17363 PyObject *resultobj = 0;
17364 GModelSpatialRadialShell *arg1 = (GModelSpatialRadialShell *) 0 ;
17365 double *arg2 = 0 ;
17366 void *argp1 = 0 ;
17367 int res1 = 0 ;
17368 double temp2 ;
17369 double val2 ;
17370 int ecode2 = 0 ;
17371 PyObject * obj0 = 0 ;
17372 PyObject * obj1 = 0 ;
17373
17374 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialRadialShell_width",&obj0,&obj1)) SWIG_failgoto fail;
17375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialShell, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
17376 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialShell_width" "', argument " "1"" of type '" "GModelSpatialRadialShell *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialShell_width"
"', argument " "1"" of type '" "GModelSpatialRadialShell *""'"
); goto fail; } while(0)
;
17378 }
17379 arg1 = reinterpret_cast< GModelSpatialRadialShell * >(argp1);
17380 ecode2 = SWIG_AsVal_double(obj1, &val2);
17381 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
17382 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpatialRadialShell_width" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpatialRadialShell_width"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
17383 }
17384 temp2 = static_cast< double >(val2);
17385 arg2 = &temp2;
17386 {
17387 try {
17388 (arg1)->width((double const &)*arg2);
17389 }
17390 catch (const GException::out_of_range& e) {
17391 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17392 }
17393 catch (const GExceptionHandler& e) {
17394 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17395 }
17396 catch (const std::exception& e) {
17397 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17398 }
17399 }
17400 resultobj = SWIG_Py_Void();
17401 return resultobj;
17402fail:
17403 return NULL__null;
17404}
17405
17406
17407SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialShell_width(PyObject *self, PyObject *args) {
17408 int argc;
17409 PyObject *argv[3];
17410 int ii;
17411
17412 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
17413 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
17414 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
17415 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
17416 }
17417 if (argc == 1) {
17418 int _v;
17419 void *vptr = 0;
17420 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialRadialShell, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[22
], 0, 0)
;
17421 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
17422 if (_v) {
17423 return _wrap_GModelSpatialRadialShell_width__SWIG_0(self, args);
17424 }
17425 }
17426 if (argc == 2) {
17427 int _v;
17428 void *vptr = 0;
17429 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialRadialShell, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[22
], 0, 0)
;
17430 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
17431 if (_v) {
17432 {
17433 int res = SWIG_AsVal_double(argv[1], NULL__null);
17434 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
17435 }
17436 if (_v) {
17437 return _wrap_GModelSpatialRadialShell_width__SWIG_1(self, args);
17438 }
17439 }
17440 }
17441
17442fail:
17443 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialRadialShell_width'.\n"
17444 " Possible C/C++ prototypes are:\n"
17445 " GModelSpatialRadialShell::width() const\n"
17446 " GModelSpatialRadialShell::width(double const &)\n");
17447 return 0;
17448}
17449
17450
17451SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialShell_small_angle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17452 PyObject *resultobj = 0;
17453 GModelSpatialRadialShell *arg1 = (GModelSpatialRadialShell *) 0 ;
17454 bool *arg2 = 0 ;
17455 void *argp1 = 0 ;
17456 int res1 = 0 ;
17457 bool temp2 ;
17458 bool val2 ;
17459 int ecode2 = 0 ;
17460 PyObject * obj0 = 0 ;
17461 PyObject * obj1 = 0 ;
17462
17463 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialRadialShell_small_angle",&obj0,&obj1)) SWIG_failgoto fail;
17464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialShell, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
17465 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialShell_small_angle" "', argument " "1"" of type '" "GModelSpatialRadialShell *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialShell_small_angle"
"', argument " "1"" of type '" "GModelSpatialRadialShell *""'"
); goto fail; } while(0)
;
17467 }
17468 arg1 = reinterpret_cast< GModelSpatialRadialShell * >(argp1);
17469 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17470 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
17471 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpatialRadialShell_small_angle" "', argument " "2"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpatialRadialShell_small_angle"
"', argument " "2"" of type '" "bool""'"); goto fail; } while
(0)
;
17472 }
17473 temp2 = static_cast< bool >(val2);
17474 arg2 = &temp2;
17475 {
17476 try {
17477 (arg1)->small_angle((bool const &)*arg2);
17478 }
17479 catch (const GException::out_of_range& e) {
17480 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17481 }
17482 catch (const GExceptionHandler& e) {
17483 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17484 }
17485 catch (const std::exception& e) {
17486 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17487 }
17488 }
17489 resultobj = SWIG_Py_Void();
17490 return resultobj;
17491fail:
17492 return NULL__null;
17493}
17494
17495
17496SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialShell_small_angle(PyObject *self, PyObject *args) {
17497 int argc;
17498 PyObject *argv[3];
17499 int ii;
17500
17501 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
17502 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
17503 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
17504 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
17505 }
17506 if (argc == 1) {
17507 int _v;
17508 void *vptr = 0;
17509 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialRadialShell, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[22
], 0, 0)
;
17510 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
17511 if (_v) {
17512 return _wrap_GModelSpatialRadialShell_small_angle__SWIG_0(self, args);
17513 }
17514 }
17515 if (argc == 2) {
17516 int _v;
17517 void *vptr = 0;
17518 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialRadialShell, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[22
], 0, 0)
;
17519 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
17520 if (_v) {
17521 {
17522 int res = SWIG_AsVal_bool(argv[1], NULL__null);
17523 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
17524 }
17525 if (_v) {
17526 return _wrap_GModelSpatialRadialShell_small_angle__SWIG_1(self, args);
17527 }
17528 }
17529 }
17530
17531fail:
17532 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialRadialShell_small_angle'.\n"
17533 " Possible C/C++ prototypes are:\n"
17534 " GModelSpatialRadialShell::small_angle() const\n"
17535 " GModelSpatialRadialShell::small_angle(bool const &)\n");
17536 return 0;
17537}
17538
17539
17540SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialShell_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17541 PyObject *resultobj = 0;
17542 GModelSpatialRadialShell *arg1 = (GModelSpatialRadialShell *) 0 ;
17543 void *argp1 = 0 ;
17544 int res1 = 0 ;
17545 PyObject * obj0 = 0 ;
17546 GModelSpatialRadialShell result;
17547
17548 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialRadialShell_copy",&obj0)) SWIG_failgoto fail;
17549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialShell, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
17550 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialShell_copy" "', argument " "1"" of type '" "GModelSpatialRadialShell *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialShell_copy"
"', argument " "1"" of type '" "GModelSpatialRadialShell *""'"
); goto fail; } while(0)
;
17552 }
17553 arg1 = reinterpret_cast< GModelSpatialRadialShell * >(argp1);
17554 {
17555 try {
17556 result = GModelSpatialRadialShell_copy(arg1);
17557 }
17558 catch (const GException::out_of_range& e) {
17559 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17560 }
17561 catch (const GExceptionHandler& e) {
17562 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17563 }
17564 catch (const std::exception& e) {
17565 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17566 }
17567 }
17568 resultobj = SWIG_NewPointerObj((new GModelSpatialRadialShell(static_cast< const GModelSpatialRadialShell& >(result))), SWIGTYPE_p_GModelSpatialRadialShell, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GModelSpatialRadialShell
(static_cast< const GModelSpatialRadialShell& >(result
))), swig_types[22], 0x1 | 0)
;
17569 return resultobj;
17570fail:
17571 return NULL__null;
17572}
17573
17574
17575SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialShell_eval__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17576 PyObject *resultobj = 0;
17577 GModelSpatialRadialShell *arg1 = (GModelSpatialRadialShell *) 0 ;
17578 GPhoton *arg2 = 0 ;
17579 void *argp1 = 0 ;
17580 int res1 = 0 ;
17581 void *argp2 = 0 ;
17582 int res2 = 0 ;
17583 PyObject * obj0 = 0 ;
17584 PyObject * obj1 = 0 ;
17585 double result;
17586
17587 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialRadialShell_eval",&obj0,&obj1)) SWIG_failgoto fail;
17588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialShell, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
17589 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialShell_eval" "', argument " "1"" of type '" "GModelSpatialRadialShell const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialShell_eval"
"', argument " "1"" of type '" "GModelSpatialRadialShell const *"
"'"); goto fail; } while(0)
;
17591 }
17592 arg1 = reinterpret_cast< GModelSpatialRadialShell * >(argp1);
17593 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[40]
, 0 | 0, 0)
;
17594 if (!SWIG_IsOK(res2)(res2 >= 0)) {
17595 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialRadialShell_eval" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialRadialShell_eval"
"', argument " "2"" of type '" "GPhoton const &""'"); goto
fail; } while(0)
;
17596 }
17597 if (!argp2) {
17598 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadialShell_eval" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadialShell_eval" "', argument "
"2"" of type '" "GPhoton const &""'"); goto fail; } while
(0)
;
17599 }
17600 arg2 = reinterpret_cast< GPhoton * >(argp2);
17601 {
17602 try {
17603 result = (double)GModelSpatialRadialShell_eval__SWIG_1((GModelSpatialRadialShell const *)arg1,(GPhoton const &)*arg2);
17604 }
17605 catch (const GException::out_of_range& e) {
17606 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17607 }
17608 catch (const GExceptionHandler& e) {
17609 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17610 }
17611 catch (const std::exception& e) {
17612 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17613 }
17614 }
17615 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
17616 return resultobj;
17617fail:
17618 return NULL__null;
17619}
17620
17621
17622SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialShell_eval(PyObject *self, PyObject *args) {
17623 int argc;
17624 PyObject *argv[5];
17625 int ii;
17626
17627 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
17628 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
17629 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
17630 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
17631 }
17632 if (argc == 2) {
17633 int _v;
17634 void *vptr = 0;
17635 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialRadialShell, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[22
], 0, 0)
;
17636 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
17637 if (_v) {
17638 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GPhoton, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[40], 0, 0
)
;
17639 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
17640 if (_v) {
17641 return _wrap_GModelSpatialRadialShell_eval__SWIG_1(self, args);
17642 }
17643 }
17644 }
17645 if (argc == 4) {
17646 int _v;
17647 void *vptr = 0;
17648 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialRadialShell, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[22
], 0, 0)
;
17649 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
17650 if (_v) {
17651 {
17652 int res = SWIG_AsVal_double(argv[1], NULL__null);
17653 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
17654 }
17655 if (_v) {
17656 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[3], 0, 0);
17657 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
17658 if (_v) {
17659 int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GTime, 0)SWIG_Python_ConvertPtrAndOwn(argv[3], 0, swig_types[46], 0, 0
)
;
17660 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
17661 if (_v) {
17662 return _wrap_GModelSpatialRadialShell_eval__SWIG_0(self, args);
17663 }
17664 }
17665 }
17666 }
17667 }
17668
17669fail:
17670 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialRadialShell_eval'.\n"
17671 " Possible C/C++ prototypes are:\n"
17672 " GModelSpatialRadialShell::eval(double const &,GEnergy const &,GTime const &) const\n"
17673 " GModelSpatialRadialShell::eval(GPhoton const &) const\n");
17674 return 0;
17675}
17676
17677
17678SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialShell_eval_gradients__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17679 PyObject *resultobj = 0;
17680 GModelSpatialRadialShell *arg1 = (GModelSpatialRadialShell *) 0 ;
17681 GPhoton *arg2 = 0 ;
17682 void *argp1 = 0 ;
17683 int res1 = 0 ;
17684 void *argp2 = 0 ;
17685 int res2 = 0 ;
17686 PyObject * obj0 = 0 ;
17687 PyObject * obj1 = 0 ;
17688 double result;
17689
17690 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialRadialShell_eval_gradients",&obj0,&obj1)) SWIG_failgoto fail;
17691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialRadialShell, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
17692 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialRadialShell_eval_gradients" "', argument " "1"" of type '" "GModelSpatialRadialShell const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialRadialShell_eval_gradients"
"', argument " "1"" of type '" "GModelSpatialRadialShell const *"
"'"); goto fail; } while(0)
;
17694 }
17695 arg1 = reinterpret_cast< GModelSpatialRadialShell * >(argp1);
17696 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[40]
, 0 | 0, 0)
;
17697 if (!SWIG_IsOK(res2)(res2 >= 0)) {
17698 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialRadialShell_eval_gradients" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialRadialShell_eval_gradients"
"', argument " "2"" of type '" "GPhoton const &""'"); goto
fail; } while(0)
;
17699 }
17700 if (!argp2) {
17701 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialRadialShell_eval_gradients" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialRadialShell_eval_gradients" "', argument "
"2"" of type '" "GPhoton const &""'"); goto fail; } while
(0)
;
17702 }
17703 arg2 = reinterpret_cast< GPhoton * >(argp2);
17704 {
17705 try {
17706 result = (double)GModelSpatialRadialShell_eval_gradients__SWIG_1((GModelSpatialRadialShell const *)arg1,(GPhoton const &)*arg2);
17707 }
17708 catch (const GException::out_of_range& e) {
17709 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17710 }
17711 catch (const GExceptionHandler& e) {
17712 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17713 }
17714 catch (const std::exception& e) {
17715 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17716 }
17717 }
17718 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
17719 return resultobj;
17720fail:
17721 return NULL__null;
17722}
17723
17724
17725SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialRadialShell_eval_gradients(PyObject *self, PyObject *args) {
17726 int argc;
17727 PyObject *argv[5];
17728 int ii;
17729
17730 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
17731 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
17732 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
17733 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
17734 }
17735 if (argc == 2) {
17736 int _v;
17737 void *vptr = 0;
17738 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialRadialShell, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[22
], 0, 0)
;
17739 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
17740 if (_v) {
17741 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GPhoton, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[40], 0, 0
)
;
17742 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
17743 if (_v) {
17744 return _wrap_GModelSpatialRadialShell_eval_gradients__SWIG_1(self, args);
17745 }
17746 }
17747 }
17748 if (argc == 4) {
17749 int _v;
17750 void *vptr = 0;
17751 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialRadialShell, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[22
], 0, 0)
;
17752 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
17753 if (_v) {
17754 {
17755 int res = SWIG_AsVal_double(argv[1], NULL__null);
17756 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
17757 }
17758 if (_v) {
17759 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[3], 0, 0);
17760 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
17761 if (_v) {
17762 int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GTime, 0)SWIG_Python_ConvertPtrAndOwn(argv[3], 0, swig_types[46], 0, 0
)
;
17763 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
17764 if (_v) {
17765 return _wrap_GModelSpatialRadialShell_eval_gradients__SWIG_0(self, args);
17766 }
17767 }
17768 }
17769 }
17770 }
17771
17772fail:
17773 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialRadialShell_eval_gradients'.\n"
17774 " Possible C/C++ prototypes are:\n"
17775 " GModelSpatialRadialShell::eval_gradients(double const &,GEnergy const &,GTime const &) const\n"
17776 " GModelSpatialRadialShell::eval_gradients(GPhoton const &) const\n");
17777 return 0;
17778}
17779
17780
17781SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GModelSpatialRadialShell_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17782 PyObject *obj;
17783 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
17784 SWIG_TypeNewClientData(SWIGTYPE_p_GModelSpatialRadialShellswig_types[22], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
17785 return SWIG_Py_Void();
17786}
17787
17788SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GModelSpatialElliptical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17789 PyObject *resultobj = 0;
17790 GModelSpatialElliptical *arg1 = (GModelSpatialElliptical *) 0 ;
17791 void *argp1 = 0 ;
17792 int res1 = 0 ;
17793 PyObject * obj0 = 0 ;
17794
17795 if (!PyArg_ParseTuple(args,(char *)"O:delete_GModelSpatialElliptical",&obj0)) SWIG_failgoto fail;
17796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialElliptical, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16]
, 0x1 | 0, 0)
;
17797 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GModelSpatialElliptical" "', argument " "1"" of type '" "GModelSpatialElliptical *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GModelSpatialElliptical"
"', argument " "1"" of type '" "GModelSpatialElliptical *""'"
); goto fail; } while(0)
;
17799 }
17800 arg1 = reinterpret_cast< GModelSpatialElliptical * >(argp1);
17801 {
17802 try {
17803 delete arg1;
17804 }
17805 catch (const GException::out_of_range& e) {
17806 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17807 }
17808 catch (const GExceptionHandler& e) {
17809 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17810 }
17811 catch (const std::exception& e) {
17812 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17813 }
17814 }
17815 resultobj = SWIG_Py_Void();
17816 return resultobj;
17817fail:
17818 return NULL__null;
17819}
17820
17821
17822SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialElliptical_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17823 PyObject *resultobj = 0;
17824 GModelSpatialElliptical *arg1 = (GModelSpatialElliptical *) 0 ;
17825 void *argp1 = 0 ;
17826 int res1 = 0 ;
17827 PyObject * obj0 = 0 ;
17828
17829 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialElliptical_clear",&obj0)) SWIG_failgoto fail;
17830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialElliptical, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16]
, 0 | 0, 0)
;
17831 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialElliptical_clear" "', argument " "1"" of type '" "GModelSpatialElliptical *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialElliptical_clear"
"', argument " "1"" of type '" "GModelSpatialElliptical *""'"
); goto fail; } while(0)
;
17833 }
17834 arg1 = reinterpret_cast< GModelSpatialElliptical * >(argp1);
17835 {
17836 try {
17837 (arg1)->clear();
17838 }
17839 catch (const GException::out_of_range& e) {
17840 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17841 }
17842 catch (const GExceptionHandler& e) {
17843 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17844 }
17845 catch (const std::exception& e) {
17846 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17847 }
17848 }
17849 resultobj = SWIG_Py_Void();
17850 return resultobj;
17851fail:
17852 return NULL__null;
17853}
17854
17855
17856SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialElliptical_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17857 PyObject *resultobj = 0;
17858 GModelSpatialElliptical *arg1 = (GModelSpatialElliptical *) 0 ;
17859 void *argp1 = 0 ;
17860 int res1 = 0 ;
17861 PyObject * obj0 = 0 ;
17862 GModelSpatialElliptical *result = 0 ;
17863
17864 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialElliptical_clone",&obj0)) SWIG_failgoto fail;
17865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialElliptical, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16]
, 0 | 0, 0)
;
17866 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialElliptical_clone" "', argument " "1"" of type '" "GModelSpatialElliptical const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialElliptical_clone"
"', argument " "1"" of type '" "GModelSpatialElliptical const *"
"'"); goto fail; } while(0)
;
17868 }
17869 arg1 = reinterpret_cast< GModelSpatialElliptical * >(argp1);
17870 {
17871 try {
17872 result = (GModelSpatialElliptical *)((GModelSpatialElliptical const *)arg1)->clone();
17873 }
17874 catch (const GException::out_of_range& e) {
17875 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17876 }
17877 catch (const GExceptionHandler& e) {
17878 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17879 }
17880 catch (const std::exception& e) {
17881 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17882 }
17883 }
17884 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialElliptical, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[16], 0
| 0)
;
17885 return resultobj;
17886fail:
17887 return NULL__null;
17888}
17889
17890
17891SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialElliptical_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17892 PyObject *resultobj = 0;
17893 GModelSpatialElliptical *arg1 = (GModelSpatialElliptical *) 0 ;
17894 void *argp1 = 0 ;
17895 int res1 = 0 ;
17896 PyObject * obj0 = 0 ;
17897 std::string result;
17898
17899 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialElliptical_type",&obj0)) SWIG_failgoto fail;
17900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialElliptical, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16]
, 0 | 0, 0)
;
17901 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialElliptical_type" "', argument " "1"" of type '" "GModelSpatialElliptical const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialElliptical_type"
"', argument " "1"" of type '" "GModelSpatialElliptical const *"
"'"); goto fail; } while(0)
;
17903 }
17904 arg1 = reinterpret_cast< GModelSpatialElliptical * >(argp1);
17905 {
17906 try {
17907 result = ((GModelSpatialElliptical const *)arg1)->type();
17908 }
17909 catch (const GException::out_of_range& e) {
17910 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17911 }
17912 catch (const GExceptionHandler& e) {
17913 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17914 }
17915 catch (const std::exception& e) {
17916 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17917 }
17918 }
17919 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
17920 return resultobj;
17921fail:
17922 return NULL__null;
17923}
17924
17925
17926SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialElliptical_eval__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17927 PyObject *resultobj = 0;
17928 GModelSpatialElliptical *arg1 = (GModelSpatialElliptical *) 0 ;
17929 double *arg2 = 0 ;
17930 double *arg3 = 0 ;
17931 GEnergy *arg4 = 0 ;
17932 GTime *arg5 = 0 ;
17933 void *argp1 = 0 ;
17934 int res1 = 0 ;
17935 double temp2 ;
17936 double val2 ;
17937 int ecode2 = 0 ;
17938 double temp3 ;
17939 double val3 ;
17940 int ecode3 = 0 ;
17941 void *argp4 = 0 ;
17942 int res4 = 0 ;
17943 void *argp5 = 0 ;
17944 int res5 = 0 ;
17945 PyObject * obj0 = 0 ;
17946 PyObject * obj1 = 0 ;
17947 PyObject * obj2 = 0 ;
17948 PyObject * obj3 = 0 ;
17949 PyObject * obj4 = 0 ;
17950 double result;
17951
17952 if (!PyArg_ParseTuple(args,(char *)"OOOOO:GModelSpatialElliptical_eval",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_failgoto fail;
17953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialElliptical, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16]
, 0 | 0, 0)
;
17954 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialElliptical_eval" "', argument " "1"" of type '" "GModelSpatialElliptical const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialElliptical_eval"
"', argument " "1"" of type '" "GModelSpatialElliptical const *"
"'"); goto fail; } while(0)
;
17956 }
17957 arg1 = reinterpret_cast< GModelSpatialElliptical * >(argp1);
17958 ecode2 = SWIG_AsVal_double(obj1, &val2);
17959 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
17960 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpatialElliptical_eval" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpatialElliptical_eval"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
17961 }
17962 temp2 = static_cast< double >(val2);
17963 arg2 = &temp2;
17964 ecode3 = SWIG_AsVal_double(obj2, &val3);
17965 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
17966 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GModelSpatialElliptical_eval" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GModelSpatialElliptical_eval"
"', argument " "3"" of type '" "double""'"); goto fail; } while
(0)
;
17967 }
17968 temp3 = static_cast< double >(val3);
17969 arg3 = &temp3;
17970 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[3],
0 | 0, 0)
;
17971 if (!SWIG_IsOK(res4)(res4 >= 0)) {
17972 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelSpatialElliptical_eval" "', argument " "4"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelSpatialElliptical_eval"
"', argument " "4"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
17973 }
17974 if (!argp4) {
17975 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialElliptical_eval" "', argument " "4"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialElliptical_eval" "', argument " "4"
" of type '" "GEnergy const &""'"); goto fail; } while(0)
;
17976 }
17977 arg4 = reinterpret_cast< GEnergy * >(argp4);
17978 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj4, &argp5, swig_types[46]
, 0 | 0, 0)
;
17979 if (!SWIG_IsOK(res5)(res5 >= 0)) {
17980 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GModelSpatialElliptical_eval" "', argument " "5"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res5 != (
-1)) ? res5 : -5)), "in method '" "GModelSpatialElliptical_eval"
"', argument " "5"" of type '" "GTime const &""'"); goto
fail; } while(0)
;
17981 }
17982 if (!argp5) {
17983 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialElliptical_eval" "', argument " "5"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialElliptical_eval" "', argument " "5"
" of type '" "GTime const &""'"); goto fail; } while(0)
;
17984 }
17985 arg5 = reinterpret_cast< GTime * >(argp5);
17986 {
17987 try {
17988 result = (double)((GModelSpatialElliptical const *)arg1)->eval((double const &)*arg2,(double const &)*arg3,(GEnergy const &)*arg4,(GTime const &)*arg5);
17989 }
17990 catch (const GException::out_of_range& e) {
17991 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17992 }
17993 catch (const GExceptionHandler& e) {
17994 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17995 }
17996 catch (const std::exception& e) {
17997 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17998 }
17999 }
18000 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
18001 return resultobj;
18002fail:
18003 return NULL__null;
18004}
18005
18006
18007SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialElliptical_eval_gradients__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18008 PyObject *resultobj = 0;
18009 GModelSpatialElliptical *arg1 = (GModelSpatialElliptical *) 0 ;
18010 double *arg2 = 0 ;
18011 double *arg3 = 0 ;
18012 GEnergy *arg4 = 0 ;
18013 GTime *arg5 = 0 ;
18014 void *argp1 = 0 ;
18015 int res1 = 0 ;
18016 double temp2 ;
18017 double val2 ;
18018 int ecode2 = 0 ;
18019 double temp3 ;
18020 double val3 ;
18021 int ecode3 = 0 ;
18022 void *argp4 = 0 ;
18023 int res4 = 0 ;
18024 void *argp5 = 0 ;
18025 int res5 = 0 ;
18026 PyObject * obj0 = 0 ;
18027 PyObject * obj1 = 0 ;
18028 PyObject * obj2 = 0 ;
18029 PyObject * obj3 = 0 ;
18030 PyObject * obj4 = 0 ;
18031 double result;
18032
18033 if (!PyArg_ParseTuple(args,(char *)"OOOOO:GModelSpatialElliptical_eval_gradients",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_failgoto fail;
18034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialElliptical, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16]
, 0 | 0, 0)
;
18035 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialElliptical_eval_gradients" "', argument " "1"" of type '" "GModelSpatialElliptical const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialElliptical_eval_gradients"
"', argument " "1"" of type '" "GModelSpatialElliptical const *"
"'"); goto fail; } while(0)
;
18037 }
18038 arg1 = reinterpret_cast< GModelSpatialElliptical * >(argp1);
18039 ecode2 = SWIG_AsVal_double(obj1, &val2);
18040 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
18041 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpatialElliptical_eval_gradients" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpatialElliptical_eval_gradients"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
18042 }
18043 temp2 = static_cast< double >(val2);
18044 arg2 = &temp2;
18045 ecode3 = SWIG_AsVal_double(obj2, &val3);
18046 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
18047 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GModelSpatialElliptical_eval_gradients" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GModelSpatialElliptical_eval_gradients"
"', argument " "3"" of type '" "double""'"); goto fail; } while
(0)
;
18048 }
18049 temp3 = static_cast< double >(val3);
18050 arg3 = &temp3;
18051 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[3],
0 | 0, 0)
;
18052 if (!SWIG_IsOK(res4)(res4 >= 0)) {
18053 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelSpatialElliptical_eval_gradients" "', argument " "4"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelSpatialElliptical_eval_gradients"
"', argument " "4"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
18054 }
18055 if (!argp4) {
18056 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialElliptical_eval_gradients" "', argument " "4"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialElliptical_eval_gradients" "', argument "
"4"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
18057 }
18058 arg4 = reinterpret_cast< GEnergy * >(argp4);
18059 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj4, &argp5, swig_types[46]
, 0 | 0, 0)
;
18060 if (!SWIG_IsOK(res5)(res5 >= 0)) {
18061 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GModelSpatialElliptical_eval_gradients" "', argument " "5"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res5 != (
-1)) ? res5 : -5)), "in method '" "GModelSpatialElliptical_eval_gradients"
"', argument " "5"" of type '" "GTime const &""'"); goto
fail; } while(0)
;
18062 }
18063 if (!argp5) {
18064 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialElliptical_eval_gradients" "', argument " "5"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialElliptical_eval_gradients" "', argument "
"5"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
18065 }
18066 arg5 = reinterpret_cast< GTime * >(argp5);
18067 {
18068 try {
18069 result = (double)((GModelSpatialElliptical const *)arg1)->eval_gradients((double const &)*arg2,(double const &)*arg3,(GEnergy const &)*arg4,(GTime const &)*arg5);
18070 }
18071 catch (const GException::out_of_range& e) {
18072 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18073 }
18074 catch (const GExceptionHandler& e) {
18075 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18076 }
18077 catch (const std::exception& e) {
18078 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18079 }
18080 }
18081 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
18082 return resultobj;
18083fail:
18084 return NULL__null;
18085}
18086
18087
18088SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialElliptical_mc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18089 PyObject *resultobj = 0;
18090 GModelSpatialElliptical *arg1 = (GModelSpatialElliptical *) 0 ;
18091 GEnergy *arg2 = 0 ;
18092 GTime *arg3 = 0 ;
18093 GRan *arg4 = 0 ;
18094 void *argp1 = 0 ;
18095 int res1 = 0 ;
18096 void *argp2 = 0 ;
18097 int res2 = 0 ;
18098 void *argp3 = 0 ;
18099 int res3 = 0 ;
18100 void *argp4 = 0 ;
18101 int res4 = 0 ;
18102 PyObject * obj0 = 0 ;
18103 PyObject * obj1 = 0 ;
18104 PyObject * obj2 = 0 ;
18105 PyObject * obj3 = 0 ;
18106 GSkyDir result;
18107
18108 if (!PyArg_ParseTuple(args,(char *)"OOOO:GModelSpatialElliptical_mc",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
18109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialElliptical, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16]
, 0 | 0, 0)
;
18110 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialElliptical_mc" "', argument " "1"" of type '" "GModelSpatialElliptical const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialElliptical_mc"
"', argument " "1"" of type '" "GModelSpatialElliptical const *"
"'"); goto fail; } while(0)
;
18112 }
18113 arg1 = reinterpret_cast< GModelSpatialElliptical * >(argp1);
18114 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
18115 if (!SWIG_IsOK(res2)(res2 >= 0)) {
18116 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialElliptical_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialElliptical_mc"
"', argument " "2"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
18117 }
18118 if (!argp2) {
18119 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialElliptical_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialElliptical_mc" "', argument " "2"
" of type '" "GEnergy const &""'"); goto fail; } while(0)
;
18120 }
18121 arg2 = reinterpret_cast< GEnergy * >(argp2);
18122 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[46]
, 0 | 0, 0)
;
18123 if (!SWIG_IsOK(res3)(res3 >= 0)) {
18124 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpatialElliptical_mc" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpatialElliptical_mc"
"', argument " "3"" of type '" "GTime const &""'"); goto
fail; } while(0)
;
18125 }
18126 if (!argp3) {
18127 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialElliptical_mc" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialElliptical_mc" "', argument " "3"
" of type '" "GTime const &""'"); goto fail; } while(0)
;
18128 }
18129 arg3 = reinterpret_cast< GTime * >(argp3);
18130 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GRan, 0 )SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[42]
, 0, 0)
;
18131 if (!SWIG_IsOK(res4)(res4 >= 0)) {
18132 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelSpatialElliptical_mc" "', argument " "4"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelSpatialElliptical_mc"
"', argument " "4"" of type '" "GRan &""'"); goto fail; }
while(0)
;
18133 }
18134 if (!argp4) {
18135 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialElliptical_mc" "', argument " "4"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialElliptical_mc" "', argument " "4"
" of type '" "GRan &""'"); goto fail; } while(0)
;
18136 }
18137 arg4 = reinterpret_cast< GRan * >(argp4);
18138 {
18139 try {
18140 result = ((GModelSpatialElliptical const *)arg1)->mc((GEnergy const &)*arg2,(GTime const &)*arg3,*arg4);
18141 }
18142 catch (const GException::out_of_range& e) {
18143 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18144 }
18145 catch (const GExceptionHandler& e) {
18146 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18147 }
18148 catch (const std::exception& e) {
18149 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18150 }
18151 }
18152 resultobj = SWIG_NewPointerObj((new GSkyDir(static_cast< const GSkyDir& >(result))), SWIGTYPE_p_GSkyDir, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GSkyDir(static_cast<
const GSkyDir& >(result))), swig_types[44], 0x1 | 0)
;
18153 return resultobj;
18154fail:
18155 return NULL__null;
18156}
18157
18158
18159SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialElliptical_theta_max(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18160 PyObject *resultobj = 0;
18161 GModelSpatialElliptical *arg1 = (GModelSpatialElliptical *) 0 ;
18162 void *argp1 = 0 ;
18163 int res1 = 0 ;
18164 PyObject * obj0 = 0 ;
18165 double result;
18166
18167 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialElliptical_theta_max",&obj0)) SWIG_failgoto fail;
18168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialElliptical, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16]
, 0 | 0, 0)
;
18169 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialElliptical_theta_max" "', argument " "1"" of type '" "GModelSpatialElliptical const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialElliptical_theta_max"
"', argument " "1"" of type '" "GModelSpatialElliptical const *"
"'"); goto fail; } while(0)
;
18171 }
18172 arg1 = reinterpret_cast< GModelSpatialElliptical * >(argp1);
18173 {
18174 try {
18175 result = (double)((GModelSpatialElliptical const *)arg1)->theta_max();
18176 }
18177 catch (const GException::out_of_range& e) {
18178 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18179 }
18180 catch (const GExceptionHandler& e) {
18181 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18182 }
18183 catch (const std::exception& e) {
18184 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18185 }
18186 }
18187 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
18188 return resultobj;
18189fail:
18190 return NULL__null;
18191}
18192
18193
18194SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialElliptical_eval__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18195 PyObject *resultobj = 0;
18196 GModelSpatialElliptical *arg1 = (GModelSpatialElliptical *) 0 ;
18197 GPhoton *arg2 = 0 ;
18198 void *argp1 = 0 ;
18199 int res1 = 0 ;
18200 void *argp2 = 0 ;
18201 int res2 = 0 ;
18202 PyObject * obj0 = 0 ;
18203 PyObject * obj1 = 0 ;
18204 double result;
18205
18206 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialElliptical_eval",&obj0,&obj1)) SWIG_failgoto fail;
18207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialElliptical, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16]
, 0 | 0, 0)
;
18208 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialElliptical_eval" "', argument " "1"" of type '" "GModelSpatialElliptical const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialElliptical_eval"
"', argument " "1"" of type '" "GModelSpatialElliptical const *"
"'"); goto fail; } while(0)
;
18210 }
18211 arg1 = reinterpret_cast< GModelSpatialElliptical * >(argp1);
18212 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[40]
, 0 | 0, 0)
;
18213 if (!SWIG_IsOK(res2)(res2 >= 0)) {
18214 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialElliptical_eval" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialElliptical_eval"
"', argument " "2"" of type '" "GPhoton const &""'"); goto
fail; } while(0)
;
18215 }
18216 if (!argp2) {
18217 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialElliptical_eval" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialElliptical_eval" "', argument " "2"
" of type '" "GPhoton const &""'"); goto fail; } while(0)
;
18218 }
18219 arg2 = reinterpret_cast< GPhoton * >(argp2);
18220 {
18221 try {
18222 result = (double)((GModelSpatialElliptical const *)arg1)->eval((GPhoton const &)*arg2);
18223 }
18224 catch (const GException::out_of_range& e) {
18225 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18226 }
18227 catch (const GExceptionHandler& e) {
18228 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18229 }
18230 catch (const std::exception& e) {
18231 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18232 }
18233 }
18234 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
18235 return resultobj;
18236fail:
18237 return NULL__null;
18238}
18239
18240
18241SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialElliptical_eval(PyObject *self, PyObject *args) {
18242 int argc;
18243 PyObject *argv[6];
18244 int ii;
18245
18246 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
18247 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
18248 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
18249 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
18250 }
18251 if (argc == 2) {
18252 int _v;
18253 void *vptr = 0;
18254 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialElliptical, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[16
], 0, 0)
;
18255 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
18256 if (_v) {
18257 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GPhoton, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[40], 0, 0
)
;
18258 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
18259 if (_v) {
18260 return _wrap_GModelSpatialElliptical_eval__SWIG_1(self, args);
18261 }
18262 }
18263 }
18264 if (argc == 5) {
18265 int _v;
18266 void *vptr = 0;
18267 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialElliptical, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[16
], 0, 0)
;
18268 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
18269 if (_v) {
18270 {
18271 int res = SWIG_AsVal_double(argv[1], NULL__null);
18272 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
18273 }
18274 if (_v) {
18275 {
18276 int res = SWIG_AsVal_double(argv[2], NULL__null);
18277 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
18278 }
18279 if (_v) {
18280 int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[3], 0, swig_types[3], 0, 0);
18281 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
18282 if (_v) {
18283 int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_GTime, 0)SWIG_Python_ConvertPtrAndOwn(argv[4], 0, swig_types[46], 0, 0
)
;
18284 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
18285 if (_v) {
18286 return _wrap_GModelSpatialElliptical_eval__SWIG_0(self, args);
18287 }
18288 }
18289 }
18290 }
18291 }
18292 }
18293
18294fail:
18295 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialElliptical_eval'.\n"
18296 " Possible C/C++ prototypes are:\n"
18297 " GModelSpatialElliptical::eval(double const &,double const &,GEnergy const &,GTime const &) const\n"
18298 " GModelSpatialElliptical::eval(GPhoton const &) const\n");
18299 return 0;
18300}
18301
18302
18303SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialElliptical_eval_gradients__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18304 PyObject *resultobj = 0;
18305 GModelSpatialElliptical *arg1 = (GModelSpatialElliptical *) 0 ;
18306 GPhoton *arg2 = 0 ;
18307 void *argp1 = 0 ;
18308 int res1 = 0 ;
18309 void *argp2 = 0 ;
18310 int res2 = 0 ;
18311 PyObject * obj0 = 0 ;
18312 PyObject * obj1 = 0 ;
18313 double result;
18314
18315 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialElliptical_eval_gradients",&obj0,&obj1)) SWIG_failgoto fail;
18316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialElliptical, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16]
, 0 | 0, 0)
;
18317 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialElliptical_eval_gradients" "', argument " "1"" of type '" "GModelSpatialElliptical const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialElliptical_eval_gradients"
"', argument " "1"" of type '" "GModelSpatialElliptical const *"
"'"); goto fail; } while(0)
;
18319 }
18320 arg1 = reinterpret_cast< GModelSpatialElliptical * >(argp1);
18321 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[40]
, 0 | 0, 0)
;
18322 if (!SWIG_IsOK(res2)(res2 >= 0)) {
18323 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialElliptical_eval_gradients" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialElliptical_eval_gradients"
"', argument " "2"" of type '" "GPhoton const &""'"); goto
fail; } while(0)
;
18324 }
18325 if (!argp2) {
18326 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialElliptical_eval_gradients" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialElliptical_eval_gradients" "', argument "
"2"" of type '" "GPhoton const &""'"); goto fail; } while
(0)
;
18327 }
18328 arg2 = reinterpret_cast< GPhoton * >(argp2);
18329 {
18330 try {
18331 result = (double)((GModelSpatialElliptical const *)arg1)->eval_gradients((GPhoton const &)*arg2);
18332 }
18333 catch (const GException::out_of_range& e) {
18334 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18335 }
18336 catch (const GExceptionHandler& e) {
18337 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18338 }
18339 catch (const std::exception& e) {
18340 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18341 }
18342 }
18343 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
18344 return resultobj;
18345fail:
18346 return NULL__null;
18347}
18348
18349
18350SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialElliptical_eval_gradients(PyObject *self, PyObject *args) {
18351 int argc;
18352 PyObject *argv[6];
18353 int ii;
18354
18355 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
18356 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
18357 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
18358 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
18359 }
18360 if (argc == 2) {
18361 int _v;
18362 void *vptr = 0;
18363 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialElliptical, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[16
], 0, 0)
;
18364 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
18365 if (_v) {
18366 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GPhoton, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[40], 0, 0
)
;
18367 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
18368 if (_v) {
18369 return _wrap_GModelSpatialElliptical_eval_gradients__SWIG_1(self, args);
18370 }
18371 }
18372 }
18373 if (argc == 5) {
18374 int _v;
18375 void *vptr = 0;
18376 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialElliptical, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[16
], 0, 0)
;
18377 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
18378 if (_v) {
18379 {
18380 int res = SWIG_AsVal_double(argv[1], NULL__null);
18381 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
18382 }
18383 if (_v) {
18384 {
18385 int res = SWIG_AsVal_double(argv[2], NULL__null);
18386 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
18387 }
18388 if (_v) {
18389 int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[3], 0, swig_types[3], 0, 0);
18390 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
18391 if (_v) {
18392 int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_GTime, 0)SWIG_Python_ConvertPtrAndOwn(argv[4], 0, swig_types[46], 0, 0
)
;
18393 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
18394 if (_v) {
18395 return _wrap_GModelSpatialElliptical_eval_gradients__SWIG_0(self, args);
18396 }
18397 }
18398 }
18399 }
18400 }
18401 }
18402
18403fail:
18404 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialElliptical_eval_gradients'.\n"
18405 " Possible C/C++ prototypes are:\n"
18406 " GModelSpatialElliptical::eval_gradients(double const &,double const &,GEnergy const &,GTime const &) const\n"
18407 " GModelSpatialElliptical::eval_gradients(GPhoton const &) const\n");
18408 return 0;
18409}
18410
18411
18412SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialElliptical_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18413 PyObject *resultobj = 0;
18414 GModelSpatialElliptical *arg1 = (GModelSpatialElliptical *) 0 ;
18415 GXmlElement *arg2 = 0 ;
18416 void *argp1 = 0 ;
18417 int res1 = 0 ;
18418 void *argp2 = 0 ;
18419 int res2 = 0 ;
18420 PyObject * obj0 = 0 ;
18421 PyObject * obj1 = 0 ;
18422
18423 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialElliptical_read",&obj0,&obj1)) SWIG_failgoto fail;
18424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialElliptical, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16]
, 0 | 0, 0)
;
18425 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialElliptical_read" "', argument " "1"" of type '" "GModelSpatialElliptical *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialElliptical_read"
"', argument " "1"" of type '" "GModelSpatialElliptical *""'"
); goto fail; } while(0)
;
18427 }
18428 arg1 = reinterpret_cast< GModelSpatialElliptical * >(argp1);
18429 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0 | 0, 0)
;
18430 if (!SWIG_IsOK(res2)(res2 >= 0)) {
18431 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialElliptical_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialElliptical_read"
"', argument " "2"" of type '" "GXmlElement const &""'")
; goto fail; } while(0)
;
18432 }
18433 if (!argp2) {
18434 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialElliptical_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialElliptical_read" "', argument " "2"
" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
18435 }
18436 arg2 = reinterpret_cast< GXmlElement * >(argp2);
18437 {
18438 try {
18439 (arg1)->read((GXmlElement const &)*arg2);
18440 }
18441 catch (const GException::out_of_range& e) {
18442 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18443 }
18444 catch (const GExceptionHandler& e) {
18445 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18446 }
18447 catch (const std::exception& e) {
18448 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18449 }
18450 }
18451 resultobj = SWIG_Py_Void();
18452 return resultobj;
18453fail:
18454 return NULL__null;
18455}
18456
18457
18458SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialElliptical_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18459 PyObject *resultobj = 0;
18460 GModelSpatialElliptical *arg1 = (GModelSpatialElliptical *) 0 ;
18461 GXmlElement *arg2 = 0 ;
18462 void *argp1 = 0 ;
18463 int res1 = 0 ;
18464 void *argp2 = 0 ;
18465 int res2 = 0 ;
18466 PyObject * obj0 = 0 ;
18467 PyObject * obj1 = 0 ;
18468
18469 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialElliptical_write",&obj0,&obj1)) SWIG_failgoto fail;
18470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialElliptical, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16]
, 0 | 0, 0)
;
18471 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialElliptical_write" "', argument " "1"" of type '" "GModelSpatialElliptical const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialElliptical_write"
"', argument " "1"" of type '" "GModelSpatialElliptical const *"
"'"); goto fail; } while(0)
;
18473 }
18474 arg1 = reinterpret_cast< GModelSpatialElliptical * >(argp1);
18475 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0, 0)
;
18476 if (!SWIG_IsOK(res2)(res2 >= 0)) {
18477 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialElliptical_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialElliptical_write"
"', argument " "2"" of type '" "GXmlElement &""'"); goto
fail; } while(0)
;
18478 }
18479 if (!argp2) {
18480 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialElliptical_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialElliptical_write" "', argument "
"2"" of type '" "GXmlElement &""'"); goto fail; } while(
0)
;
18481 }
18482 arg2 = reinterpret_cast< GXmlElement * >(argp2);
18483 {
18484 try {
18485 ((GModelSpatialElliptical const *)arg1)->write(*arg2);
18486 }
18487 catch (const GException::out_of_range& e) {
18488 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18489 }
18490 catch (const GExceptionHandler& e) {
18491 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18492 }
18493 catch (const std::exception& e) {
18494 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18495 }
18496 }
18497 resultobj = SWIG_Py_Void();
18498 return resultobj;
18499fail:
18500 return NULL__null;
18501}
18502
18503
18504SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialElliptical_ra__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18505 PyObject *resultobj = 0;
18506 GModelSpatialElliptical *arg1 = (GModelSpatialElliptical *) 0 ;
18507 void *argp1 = 0 ;
18508 int res1 = 0 ;
18509 PyObject * obj0 = 0 ;
18510 double result;
18511
18512 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialElliptical_ra",&obj0)) SWIG_failgoto fail;
18513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialElliptical, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16]
, 0 | 0, 0)
;
18514 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialElliptical_ra" "', argument " "1"" of type '" "GModelSpatialElliptical const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialElliptical_ra"
"', argument " "1"" of type '" "GModelSpatialElliptical const *"
"'"); goto fail; } while(0)
;
18516 }
18517 arg1 = reinterpret_cast< GModelSpatialElliptical * >(argp1);
18518 {
18519 try {
18520 result = (double)((GModelSpatialElliptical const *)arg1)->ra();
18521 }
18522 catch (const GException::out_of_range& e) {
18523 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18524 }
18525 catch (const GExceptionHandler& e) {
18526 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18527 }
18528 catch (const std::exception& e) {
18529 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18530 }
18531 }
18532 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
18533 return resultobj;
18534fail:
18535 return NULL__null;
18536}
18537
18538
18539SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialElliptical_dec__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18540 PyObject *resultobj = 0;
18541 GModelSpatialElliptical *arg1 = (GModelSpatialElliptical *) 0 ;
18542 void *argp1 = 0 ;
18543 int res1 = 0 ;
18544 PyObject * obj0 = 0 ;
18545 double result;
18546
18547 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialElliptical_dec",&obj0)) SWIG_failgoto fail;
18548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialElliptical, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16]
, 0 | 0, 0)
;
18549 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialElliptical_dec" "', argument " "1"" of type '" "GModelSpatialElliptical const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialElliptical_dec"
"', argument " "1"" of type '" "GModelSpatialElliptical const *"
"'"); goto fail; } while(0)
;
18551 }
18552 arg1 = reinterpret_cast< GModelSpatialElliptical * >(argp1);
18553 {
18554 try {
18555 result = (double)((GModelSpatialElliptical const *)arg1)->dec();
18556 }
18557 catch (const GException::out_of_range& e) {
18558 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18559 }
18560 catch (const GExceptionHandler& e) {
18561 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18562 }
18563 catch (const std::exception& e) {
18564 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18565 }
18566 }
18567 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
18568 return resultobj;
18569fail:
18570 return NULL__null;
18571}
18572
18573
18574SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialElliptical_ra__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18575 PyObject *resultobj = 0;
18576 GModelSpatialElliptical *arg1 = (GModelSpatialElliptical *) 0 ;
18577 double *arg2 = 0 ;
18578 void *argp1 = 0 ;
18579 int res1 = 0 ;
18580 double temp2 ;
18581 double val2 ;
18582 int ecode2 = 0 ;
18583 PyObject * obj0 = 0 ;
18584 PyObject * obj1 = 0 ;
18585
18586 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialElliptical_ra",&obj0,&obj1)) SWIG_failgoto fail;
18587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialElliptical, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16]
, 0 | 0, 0)
;
18588 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialElliptical_ra" "', argument " "1"" of type '" "GModelSpatialElliptical *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialElliptical_ra"
"', argument " "1"" of type '" "GModelSpatialElliptical *""'"
); goto fail; } while(0)
;
18590 }
18591 arg1 = reinterpret_cast< GModelSpatialElliptical * >(argp1);
18592 ecode2 = SWIG_AsVal_double(obj1, &val2);
18593 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
18594 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpatialElliptical_ra" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpatialElliptical_ra"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
18595 }
18596 temp2 = static_cast< double >(val2);
18597 arg2 = &temp2;
18598 {
18599 try {
18600 (arg1)->ra((double const &)*arg2);
18601 }
18602 catch (const GException::out_of_range& e) {
18603 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18604 }
18605 catch (const GExceptionHandler& e) {
18606 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18607 }
18608 catch (const std::exception& e) {
18609 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18610 }
18611 }
18612 resultobj = SWIG_Py_Void();
18613 return resultobj;
18614fail:
18615 return NULL__null;
18616}
18617
18618
18619SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialElliptical_ra(PyObject *self, PyObject *args) {
18620 int argc;
18621 PyObject *argv[3];
18622 int ii;
18623
18624 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
18625 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
18626 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
18627 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
18628 }
18629 if (argc == 1) {
18630 int _v;
18631 void *vptr = 0;
18632 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialElliptical, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[16
], 0, 0)
;
18633 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
18634 if (_v) {
18635 return _wrap_GModelSpatialElliptical_ra__SWIG_0(self, args);
18636 }
18637 }
18638 if (argc == 2) {
18639 int _v;
18640 void *vptr = 0;
18641 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialElliptical, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[16
], 0, 0)
;
18642 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
18643 if (_v) {
18644 {
18645 int res = SWIG_AsVal_double(argv[1], NULL__null);
18646 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
18647 }
18648 if (_v) {
18649 return _wrap_GModelSpatialElliptical_ra__SWIG_1(self, args);
18650 }
18651 }
18652 }
18653
18654fail:
18655 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialElliptical_ra'.\n"
18656 " Possible C/C++ prototypes are:\n"
18657 " GModelSpatialElliptical::ra() const\n"
18658 " GModelSpatialElliptical::ra(double const &)\n");
18659 return 0;
18660}
18661
18662
18663SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialElliptical_dec__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18664 PyObject *resultobj = 0;
18665 GModelSpatialElliptical *arg1 = (GModelSpatialElliptical *) 0 ;
18666 double *arg2 = 0 ;
18667 void *argp1 = 0 ;
18668 int res1 = 0 ;
18669 double temp2 ;
18670 double val2 ;
18671 int ecode2 = 0 ;
18672 PyObject * obj0 = 0 ;
18673 PyObject * obj1 = 0 ;
18674
18675 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialElliptical_dec",&obj0,&obj1)) SWIG_failgoto fail;
18676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialElliptical, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16]
, 0 | 0, 0)
;
18677 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialElliptical_dec" "', argument " "1"" of type '" "GModelSpatialElliptical *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialElliptical_dec"
"', argument " "1"" of type '" "GModelSpatialElliptical *""'"
); goto fail; } while(0)
;
18679 }
18680 arg1 = reinterpret_cast< GModelSpatialElliptical * >(argp1);
18681 ecode2 = SWIG_AsVal_double(obj1, &val2);
18682 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
18683 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpatialElliptical_dec" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpatialElliptical_dec"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
18684 }
18685 temp2 = static_cast< double >(val2);
18686 arg2 = &temp2;
18687 {
18688 try {
18689 (arg1)->dec((double const &)*arg2);
18690 }
18691 catch (const GException::out_of_range& e) {
18692 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18693 }
18694 catch (const GExceptionHandler& e) {
18695 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18696 }
18697 catch (const std::exception& e) {
18698 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18699 }
18700 }
18701 resultobj = SWIG_Py_Void();
18702 return resultobj;
18703fail:
18704 return NULL__null;
18705}
18706
18707
18708SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialElliptical_dec(PyObject *self, PyObject *args) {
18709 int argc;
18710 PyObject *argv[3];
18711 int ii;
18712
18713 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
18714 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
18715 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
18716 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
18717 }
18718 if (argc == 1) {
18719 int _v;
18720 void *vptr = 0;
18721 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialElliptical, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[16
], 0, 0)
;
18722 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
18723 if (_v) {
18724 return _wrap_GModelSpatialElliptical_dec__SWIG_0(self, args);
18725 }
18726 }
18727 if (argc == 2) {
18728 int _v;
18729 void *vptr = 0;
18730 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialElliptical, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[16
], 0, 0)
;
18731 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
18732 if (_v) {
18733 {
18734 int res = SWIG_AsVal_double(argv[1], NULL__null);
18735 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
18736 }
18737 if (_v) {
18738 return _wrap_GModelSpatialElliptical_dec__SWIG_1(self, args);
18739 }
18740 }
18741 }
18742
18743fail:
18744 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialElliptical_dec'.\n"
18745 " Possible C/C++ prototypes are:\n"
18746 " GModelSpatialElliptical::dec() const\n"
18747 " GModelSpatialElliptical::dec(double const &)\n");
18748 return 0;
18749}
18750
18751
18752SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialElliptical_posangle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18753 PyObject *resultobj = 0;
18754 GModelSpatialElliptical *arg1 = (GModelSpatialElliptical *) 0 ;
18755 void *argp1 = 0 ;
18756 int res1 = 0 ;
18757 PyObject * obj0 = 0 ;
18758 double result;
18759
18760 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialElliptical_posangle",&obj0)) SWIG_failgoto fail;
18761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialElliptical, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16]
, 0 | 0, 0)
;
18762 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialElliptical_posangle" "', argument " "1"" of type '" "GModelSpatialElliptical const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialElliptical_posangle"
"', argument " "1"" of type '" "GModelSpatialElliptical const *"
"'"); goto fail; } while(0)
;
18764 }
18765 arg1 = reinterpret_cast< GModelSpatialElliptical * >(argp1);
18766 {
18767 try {
18768 result = (double)((GModelSpatialElliptical const *)arg1)->posangle();
18769 }
18770 catch (const GException::out_of_range& e) {
18771 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18772 }
18773 catch (const GExceptionHandler& e) {
18774 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18775 }
18776 catch (const std::exception& e) {
18777 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18778 }
18779 }
18780 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
18781 return resultobj;
18782fail:
18783 return NULL__null;
18784}
18785
18786
18787SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialElliptical_posangle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18788 PyObject *resultobj = 0;
18789 GModelSpatialElliptical *arg1 = (GModelSpatialElliptical *) 0 ;
18790 double *arg2 = 0 ;
18791 void *argp1 = 0 ;
18792 int res1 = 0 ;
18793 double temp2 ;
18794 double val2 ;
18795 int ecode2 = 0 ;
18796 PyObject * obj0 = 0 ;
18797 PyObject * obj1 = 0 ;
18798
18799 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialElliptical_posangle",&obj0,&obj1)) SWIG_failgoto fail;
18800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialElliptical, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16]
, 0 | 0, 0)
;
18801 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialElliptical_posangle" "', argument " "1"" of type '" "GModelSpatialElliptical *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialElliptical_posangle"
"', argument " "1"" of type '" "GModelSpatialElliptical *""'"
); goto fail; } while(0)
;
18803 }
18804 arg1 = reinterpret_cast< GModelSpatialElliptical * >(argp1);
18805 ecode2 = SWIG_AsVal_double(obj1, &val2);
18806 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
18807 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpatialElliptical_posangle" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpatialElliptical_posangle"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
18808 }
18809 temp2 = static_cast< double >(val2);
18810 arg2 = &temp2;
18811 {
18812 try {
18813 (arg1)->posangle((double const &)*arg2);
18814 }
18815 catch (const GException::out_of_range& e) {
18816 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18817 }
18818 catch (const GExceptionHandler& e) {
18819 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18820 }
18821 catch (const std::exception& e) {
18822 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18823 }
18824 }
18825 resultobj = SWIG_Py_Void();
18826 return resultobj;
18827fail:
18828 return NULL__null;
18829}
18830
18831
18832SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialElliptical_posangle(PyObject *self, PyObject *args) {
18833 int argc;
18834 PyObject *argv[3];
18835 int ii;
18836
18837 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
18838 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
18839 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
18840 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
18841 }
18842 if (argc == 1) {
18843 int _v;
18844 void *vptr = 0;
18845 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialElliptical, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[16
], 0, 0)
;
18846 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
18847 if (_v) {
18848 return _wrap_GModelSpatialElliptical_posangle__SWIG_0(self, args);
18849 }
18850 }
18851 if (argc == 2) {
18852 int _v;
18853 void *vptr = 0;
18854 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialElliptical, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[16
], 0, 0)
;
18855 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
18856 if (_v) {
18857 {
18858 int res = SWIG_AsVal_double(argv[1], NULL__null);
18859 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
18860 }
18861 if (_v) {
18862 return _wrap_GModelSpatialElliptical_posangle__SWIG_1(self, args);
18863 }
18864 }
18865 }
18866
18867fail:
18868 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialElliptical_posangle'.\n"
18869 " Possible C/C++ prototypes are:\n"
18870 " GModelSpatialElliptical::posangle() const\n"
18871 " GModelSpatialElliptical::posangle(double const &)\n");
18872 return 0;
18873}
18874
18875
18876SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialElliptical_dir__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18877 PyObject *resultobj = 0;
18878 GModelSpatialElliptical *arg1 = (GModelSpatialElliptical *) 0 ;
18879 void *argp1 = 0 ;
18880 int res1 = 0 ;
18881 PyObject * obj0 = 0 ;
18882 GSkyDir result;
18883
18884 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialElliptical_dir",&obj0)) SWIG_failgoto fail;
18885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialElliptical, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16]
, 0 | 0, 0)
;
18886 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialElliptical_dir" "', argument " "1"" of type '" "GModelSpatialElliptical const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialElliptical_dir"
"', argument " "1"" of type '" "GModelSpatialElliptical const *"
"'"); goto fail; } while(0)
;
18888 }
18889 arg1 = reinterpret_cast< GModelSpatialElliptical * >(argp1);
18890 {
18891 try {
18892 result = ((GModelSpatialElliptical const *)arg1)->dir();
18893 }
18894 catch (const GException::out_of_range& e) {
18895 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18896 }
18897 catch (const GExceptionHandler& e) {
18898 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18899 }
18900 catch (const std::exception& e) {
18901 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18902 }
18903 }
18904 resultobj = SWIG_NewPointerObj((new GSkyDir(static_cast< const GSkyDir& >(result))), SWIGTYPE_p_GSkyDir, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GSkyDir(static_cast<
const GSkyDir& >(result))), swig_types[44], 0x1 | 0)
;
18905 return resultobj;
18906fail:
18907 return NULL__null;
18908}
18909
18910
18911SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialElliptical_dir__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18912 PyObject *resultobj = 0;
18913 GModelSpatialElliptical *arg1 = (GModelSpatialElliptical *) 0 ;
18914 GSkyDir *arg2 = 0 ;
18915 void *argp1 = 0 ;
18916 int res1 = 0 ;
18917 void *argp2 = 0 ;
18918 int res2 = 0 ;
18919 PyObject * obj0 = 0 ;
18920 PyObject * obj1 = 0 ;
18921
18922 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialElliptical_dir",&obj0,&obj1)) SWIG_failgoto fail;
18923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialElliptical, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16]
, 0 | 0, 0)
;
18924 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialElliptical_dir" "', argument " "1"" of type '" "GModelSpatialElliptical *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialElliptical_dir"
"', argument " "1"" of type '" "GModelSpatialElliptical *""'"
); goto fail; } while(0)
;
18926 }
18927 arg1 = reinterpret_cast< GModelSpatialElliptical * >(argp1);
18928 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[44]
, 0 | 0, 0)
;
18929 if (!SWIG_IsOK(res2)(res2 >= 0)) {
18930 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialElliptical_dir" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialElliptical_dir"
"', argument " "2"" of type '" "GSkyDir const &""'"); goto
fail; } while(0)
;
18931 }
18932 if (!argp2) {
18933 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialElliptical_dir" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialElliptical_dir" "', argument " "2"
" of type '" "GSkyDir const &""'"); goto fail; } while(0)
;
18934 }
18935 arg2 = reinterpret_cast< GSkyDir * >(argp2);
18936 {
18937 try {
18938 (arg1)->dir((GSkyDir const &)*arg2);
18939 }
18940 catch (const GException::out_of_range& e) {
18941 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18942 }
18943 catch (const GExceptionHandler& e) {
18944 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18945 }
18946 catch (const std::exception& e) {
18947 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18948 }
18949 }
18950 resultobj = SWIG_Py_Void();
18951 return resultobj;
18952fail:
18953 return NULL__null;
18954}
18955
18956
18957SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialElliptical_dir(PyObject *self, PyObject *args) {
18958 int argc;
18959 PyObject *argv[3];
18960 int ii;
18961
18962 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
18963 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
18964 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
18965 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
18966 }
18967 if (argc == 1) {
18968 int _v;
18969 void *vptr = 0;
18970 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialElliptical, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[16
], 0, 0)
;
18971 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
18972 if (_v) {
18973 return _wrap_GModelSpatialElliptical_dir__SWIG_0(self, args);
18974 }
18975 }
18976 if (argc == 2) {
18977 int _v;
18978 void *vptr = 0;
18979 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialElliptical, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[16
], 0, 0)
;
18980 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
18981 if (_v) {
18982 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GSkyDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[44], 0, 0
)
;
18983 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
18984 if (_v) {
18985 return _wrap_GModelSpatialElliptical_dir__SWIG_1(self, args);
18986 }
18987 }
18988 }
18989
18990fail:
18991 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialElliptical_dir'.\n"
18992 " Possible C/C++ prototypes are:\n"
18993 " GModelSpatialElliptical::dir() const\n"
18994 " GModelSpatialElliptical::dir(GSkyDir const &)\n");
18995 return 0;
18996}
18997
18998
18999SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GModelSpatialElliptical_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19000 PyObject *obj;
19001 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
19002 SWIG_TypeNewClientData(SWIGTYPE_p_GModelSpatialEllipticalswig_types[16], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
19003 return SWIG_Py_Void();
19004}
19005
19006SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialEllipticalDisk__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19007 PyObject *resultobj = 0;
19008 GModelSpatialEllipticalDisk *result = 0 ;
19009
19010 if (!PyArg_ParseTuple(args,(char *)":new_GModelSpatialEllipticalDisk")) SWIG_failgoto fail;
19011 {
19012 try {
19013 result = (GModelSpatialEllipticalDisk *)new GModelSpatialEllipticalDisk();
19014 }
19015 catch (const GException::out_of_range& e) {
19016 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
19017 }
19018 catch (const GExceptionHandler& e) {
19019 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19020 }
19021 catch (const std::exception& e) {
19022 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19023 }
19024 }
19025 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialEllipticalDisk, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[17], (
(0x1 << 1) | 0x1) | 0)
;
19026 return resultobj;
19027fail:
19028 return NULL__null;
19029}
19030
19031
19032SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialEllipticalDisk__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19033 PyObject *resultobj = 0;
19034 GSkyDir *arg1 = 0 ;
19035 double *arg2 = 0 ;
19036 double *arg3 = 0 ;
19037 double *arg4 = 0 ;
19038 void *argp1 = 0 ;
19039 int res1 = 0 ;
19040 double temp2 ;
19041 double val2 ;
19042 int ecode2 = 0 ;
19043 double temp3 ;
19044 double val3 ;
19045 int ecode3 = 0 ;
19046 double temp4 ;
19047 double val4 ;
19048 int ecode4 = 0 ;
19049 PyObject * obj0 = 0 ;
19050 PyObject * obj1 = 0 ;
19051 PyObject * obj2 = 0 ;
19052 PyObject * obj3 = 0 ;
19053 GModelSpatialEllipticalDisk *result = 0 ;
19054
19055 if (!PyArg_ParseTuple(args,(char *)"OOOO:new_GModelSpatialEllipticalDisk",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
19056 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[44]
, 0 | 0, 0)
;
19057 if (!SWIG_IsOK(res1)(res1 >= 0)) {
19058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpatialEllipticalDisk" "', argument " "1"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpatialEllipticalDisk"
"', argument " "1"" of type '" "GSkyDir const &""'"); goto
fail; } while(0)
;
19059 }
19060 if (!argp1) {
19061 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpatialEllipticalDisk" "', argument " "1"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpatialEllipticalDisk" "', argument "
"1"" of type '" "GSkyDir const &""'"); goto fail; } while
(0)
;
19062 }
19063 arg1 = reinterpret_cast< GSkyDir * >(argp1);
19064 ecode2 = SWIG_AsVal_double(obj1, &val2);
19065 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
19066 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GModelSpatialEllipticalDisk" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "new_GModelSpatialEllipticalDisk"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
19067 }
19068 temp2 = static_cast< double >(val2);
19069 arg2 = &temp2;
19070 ecode3 = SWIG_AsVal_double(obj2, &val3);
19071 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
19072 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_GModelSpatialEllipticalDisk" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "new_GModelSpatialEllipticalDisk"
"', argument " "3"" of type '" "double""'"); goto fail; } while
(0)
;
19073 }
19074 temp3 = static_cast< double >(val3);
19075 arg3 = &temp3;
19076 ecode4 = SWIG_AsVal_double(obj3, &val4);
19077 if (!SWIG_IsOK(ecode4)(ecode4 >= 0)) {
19078 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_GModelSpatialEllipticalDisk" "', argument " "4"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 !=
(-1)) ? ecode4 : -5)), "in method '" "new_GModelSpatialEllipticalDisk"
"', argument " "4"" of type '" "double""'"); goto fail; } while
(0)
;
19079 }
19080 temp4 = static_cast< double >(val4);
19081 arg4 = &temp4;
19082 {
19083 try {
19084 result = (GModelSpatialEllipticalDisk *)new GModelSpatialEllipticalDisk((GSkyDir const &)*arg1,(double const &)*arg2,(double const &)*arg3,(double const &)*arg4);
19085 }
19086 catch (const GException::out_of_range& e) {
19087 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
19088 }
19089 catch (const GExceptionHandler& e) {
19090 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19091 }
19092 catch (const std::exception& e) {
19093 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19094 }
19095 }
19096 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialEllipticalDisk, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[17], (
(0x1 << 1) | 0x1) | 0)
;
19097 return resultobj;
19098fail:
19099 return NULL__null;
19100}
19101
19102
19103SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialEllipticalDisk__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19104 PyObject *resultobj = 0;
19105 GXmlElement *arg1 = 0 ;
19106 void *argp1 = 0 ;
19107 int res1 = 0 ;
19108 PyObject * obj0 = 0 ;
19109 GModelSpatialEllipticalDisk *result = 0 ;
19110
19111 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpatialEllipticalDisk",&obj0)) SWIG_failgoto fail;
19112 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[50]
, 0 | 0, 0)
;
19113 if (!SWIG_IsOK(res1)(res1 >= 0)) {
19114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpatialEllipticalDisk" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpatialEllipticalDisk"
"', argument " "1"" of type '" "GXmlElement const &""'")
; goto fail; } while(0)
;
19115 }
19116 if (!argp1) {
19117 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpatialEllipticalDisk" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpatialEllipticalDisk" "', argument "
"1"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
19118 }
19119 arg1 = reinterpret_cast< GXmlElement * >(argp1);
19120 {
19121 try {
19122 result = (GModelSpatialEllipticalDisk *)new GModelSpatialEllipticalDisk((GXmlElement const &)*arg1);
19123 }
19124 catch (const GException::out_of_range& e) {
19125 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
19126 }
19127 catch (const GExceptionHandler& e) {
19128 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19129 }
19130 catch (const std::exception& e) {
19131 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19132 }
19133 }
19134 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialEllipticalDisk, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[17], (
(0x1 << 1) | 0x1) | 0)
;
19135 return resultobj;
19136fail:
19137 return NULL__null;
19138}
19139
19140
19141SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialEllipticalDisk__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19142 PyObject *resultobj = 0;
19143 GModelSpatialEllipticalDisk *arg1 = 0 ;
19144 void *argp1 = 0 ;
19145 int res1 = 0 ;
19146 PyObject * obj0 = 0 ;
19147 GModelSpatialEllipticalDisk *result = 0 ;
19148
19149 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpatialEllipticalDisk",&obj0)) SWIG_failgoto fail;
19150 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GModelSpatialEllipticalDisk, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17]
, 0 | 0, 0)
;
19151 if (!SWIG_IsOK(res1)(res1 >= 0)) {
19152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpatialEllipticalDisk" "', argument " "1"" of type '" "GModelSpatialEllipticalDisk const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpatialEllipticalDisk"
"', argument " "1"" of type '" "GModelSpatialEllipticalDisk const &"
"'"); goto fail; } while(0)
;
19153 }
19154 if (!argp1) {
19155 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpatialEllipticalDisk" "', argument " "1"" of type '" "GModelSpatialEllipticalDisk const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpatialEllipticalDisk" "', argument "
"1"" of type '" "GModelSpatialEllipticalDisk const &""'"
); goto fail; } while(0)
;
19156 }
19157 arg1 = reinterpret_cast< GModelSpatialEllipticalDisk * >(argp1);
19158 {
19159 try {
19160 result = (GModelSpatialEllipticalDisk *)new GModelSpatialEllipticalDisk((GModelSpatialEllipticalDisk const &)*arg1);
19161 }
19162 catch (const GException::out_of_range& e) {
19163 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
19164 }
19165 catch (const GExceptionHandler& e) {
19166 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19167 }
19168 catch (const std::exception& e) {
19169 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19170 }
19171 }
19172 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialEllipticalDisk, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[17], (
(0x1 << 1) | 0x1) | 0)
;
19173 return resultobj;
19174fail:
19175 return NULL__null;
19176}
19177
19178
19179SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialEllipticalDisk(PyObject *self, PyObject *args) {
19180 int argc;
19181 PyObject *argv[5];
19182 int ii;
19183
19184 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
19185 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
19186 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
19187 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
19188 }
19189 if (argc == 0) {
19190 return _wrap_new_GModelSpatialEllipticalDisk__SWIG_0(self, args);
19191 }
19192 if (argc == 1) {
19193 int _v;
19194 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GXmlElement, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[50], 0, 0
)
;
19195 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19196 if (_v) {
19197 return _wrap_new_GModelSpatialEllipticalDisk__SWIG_2(self, args);
19198 }
19199 }
19200 if (argc == 1) {
19201 int _v;
19202 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GModelSpatialEllipticalDisk, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[17], 0, 0
)
;
19203 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19204 if (_v) {
19205 return _wrap_new_GModelSpatialEllipticalDisk__SWIG_3(self, args);
19206 }
19207 }
19208 if (argc == 4) {
19209 int _v;
19210 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GSkyDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[44], 0, 0
)
;
19211 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19212 if (_v) {
19213 {
19214 int res = SWIG_AsVal_double(argv[1], NULL__null);
19215 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19216 }
19217 if (_v) {
19218 {
19219 int res = SWIG_AsVal_double(argv[2], NULL__null);
19220 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19221 }
19222 if (_v) {
19223 {
19224 int res = SWIG_AsVal_double(argv[3], NULL__null);
19225 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19226 }
19227 if (_v) {
19228 return _wrap_new_GModelSpatialEllipticalDisk__SWIG_1(self, args);
19229 }
19230 }
19231 }
19232 }
19233 }
19234
19235fail:
19236 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GModelSpatialEllipticalDisk'.\n"
19237 " Possible C/C++ prototypes are:\n"
19238 " GModelSpatialEllipticalDisk::GModelSpatialEllipticalDisk()\n"
19239 " GModelSpatialEllipticalDisk::GModelSpatialEllipticalDisk(GSkyDir const &,double const &,double const &,double const &)\n"
19240 " GModelSpatialEllipticalDisk::GModelSpatialEllipticalDisk(GXmlElement const &)\n"
19241 " GModelSpatialEllipticalDisk::GModelSpatialEllipticalDisk(GModelSpatialEllipticalDisk const &)\n");
19242 return 0;
19243}
19244
19245
19246SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GModelSpatialEllipticalDisk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19247 PyObject *resultobj = 0;
19248 GModelSpatialEllipticalDisk *arg1 = (GModelSpatialEllipticalDisk *) 0 ;
19249 void *argp1 = 0 ;
19250 int res1 = 0 ;
19251 PyObject * obj0 = 0 ;
19252
19253 if (!PyArg_ParseTuple(args,(char *)"O:delete_GModelSpatialEllipticalDisk",&obj0)) SWIG_failgoto fail;
19254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialEllipticalDisk, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17]
, 0x1 | 0, 0)
;
19255 if (!SWIG_IsOK(res1)(res1 >= 0)) {
19256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GModelSpatialEllipticalDisk" "', argument " "1"" of type '" "GModelSpatialEllipticalDisk *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GModelSpatialEllipticalDisk"
"', argument " "1"" of type '" "GModelSpatialEllipticalDisk *"
"'"); goto fail; } while(0)
;
19257 }
19258 arg1 = reinterpret_cast< GModelSpatialEllipticalDisk * >(argp1);
19259 {
19260 try {
19261 delete arg1;
19262 }
19263 catch (const GException::out_of_range& e) {
19264 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
19265 }
19266 catch (const GExceptionHandler& e) {
19267 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19268 }
19269 catch (const std::exception& e) {
19270 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19271 }
19272 }
19273 resultobj = SWIG_Py_Void();
19274 return resultobj;
19275fail:
19276 return NULL__null;
19277}
19278
19279
19280SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialEllipticalDisk_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19281 PyObject *resultobj = 0;
19282 GModelSpatialEllipticalDisk *arg1 = (GModelSpatialEllipticalDisk *) 0 ;
19283 void *argp1 = 0 ;
19284 int res1 = 0 ;
19285 PyObject * obj0 = 0 ;
19286
19287 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialEllipticalDisk_clear",&obj0)) SWIG_failgoto fail;
19288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialEllipticalDisk, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17]
, 0 | 0, 0)
;
19289 if (!SWIG_IsOK(res1)(res1 >= 0)) {
19290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialEllipticalDisk_clear" "', argument " "1"" of type '" "GModelSpatialEllipticalDisk *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialEllipticalDisk_clear"
"', argument " "1"" of type '" "GModelSpatialEllipticalDisk *"
"'"); goto fail; } while(0)
;
19291 }
19292 arg1 = reinterpret_cast< GModelSpatialEllipticalDisk * >(argp1);
19293 {
19294 try {
19295 (arg1)->clear();
19296 }
19297 catch (const GException::out_of_range& e) {
19298 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
19299 }
19300 catch (const GExceptionHandler& e) {
19301 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19302 }
19303 catch (const std::exception& e) {
19304 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19305 }
19306 }
19307 resultobj = SWIG_Py_Void();
19308 return resultobj;
19309fail:
19310 return NULL__null;
19311}
19312
19313
19314SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialEllipticalDisk_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19315 PyObject *resultobj = 0;
19316 GModelSpatialEllipticalDisk *arg1 = (GModelSpatialEllipticalDisk *) 0 ;
19317 void *argp1 = 0 ;
19318 int res1 = 0 ;
19319 PyObject * obj0 = 0 ;
19320 GModelSpatialEllipticalDisk *result = 0 ;
19321
19322 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialEllipticalDisk_clone",&obj0)) SWIG_failgoto fail;
19323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialEllipticalDisk, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17]
, 0 | 0, 0)
;
19324 if (!SWIG_IsOK(res1)(res1 >= 0)) {
19325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialEllipticalDisk_clone" "', argument " "1"" of type '" "GModelSpatialEllipticalDisk const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialEllipticalDisk_clone"
"', argument " "1"" of type '" "GModelSpatialEllipticalDisk const *"
"'"); goto fail; } while(0)
;
19326 }
19327 arg1 = reinterpret_cast< GModelSpatialEllipticalDisk * >(argp1);
19328 {
19329 try {
19330 result = (GModelSpatialEllipticalDisk *)((GModelSpatialEllipticalDisk const *)arg1)->clone();
19331 }
19332 catch (const GException::out_of_range& e) {
19333 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
19334 }
19335 catch (const GExceptionHandler& e) {
19336 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19337 }
19338 catch (const std::exception& e) {
19339 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19340 }
19341 }
19342 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialEllipticalDisk, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[17], 0
| 0)
;
19343 return resultobj;
19344fail:
19345 return NULL__null;
19346}
19347
19348
19349SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialEllipticalDisk_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19350 PyObject *resultobj = 0;
19351 GModelSpatialEllipticalDisk *arg1 = (GModelSpatialEllipticalDisk *) 0 ;
19352 void *argp1 = 0 ;
19353 int res1 = 0 ;
19354 PyObject * obj0 = 0 ;
19355 std::string result;
19356
19357 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialEllipticalDisk_type",&obj0)) SWIG_failgoto fail;
19358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialEllipticalDisk, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17]
, 0 | 0, 0)
;
19359 if (!SWIG_IsOK(res1)(res1 >= 0)) {
19360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialEllipticalDisk_type" "', argument " "1"" of type '" "GModelSpatialEllipticalDisk const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialEllipticalDisk_type"
"', argument " "1"" of type '" "GModelSpatialEllipticalDisk const *"
"'"); goto fail; } while(0)
;
19361 }
19362 arg1 = reinterpret_cast< GModelSpatialEllipticalDisk * >(argp1);
19363 {
19364 try {
19365 result = ((GModelSpatialEllipticalDisk const *)arg1)->type();
19366 }
19367 catch (const GException::out_of_range& e) {
19368 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
19369 }
19370 catch (const GExceptionHandler& e) {
19371 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19372 }
19373 catch (const std::exception& e) {
19374 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19375 }
19376 }
19377 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
19378 return resultobj;
19379fail:
19380 return NULL__null;
19381}
19382
19383
19384SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialEllipticalDisk_eval__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19385 PyObject *resultobj = 0;
19386 GModelSpatialEllipticalDisk *arg1 = (GModelSpatialEllipticalDisk *) 0 ;
19387 double *arg2 = 0 ;
19388 double *arg3 = 0 ;
19389 GEnergy *arg4 = 0 ;
19390 GTime *arg5 = 0 ;
19391 void *argp1 = 0 ;
19392 int res1 = 0 ;
19393 double temp2 ;
19394 double val2 ;
19395 int ecode2 = 0 ;
19396 double temp3 ;
19397 double val3 ;
19398 int ecode3 = 0 ;
19399 void *argp4 = 0 ;
19400 int res4 = 0 ;
19401 void *argp5 = 0 ;
19402 int res5 = 0 ;
19403 PyObject * obj0 = 0 ;
19404 PyObject * obj1 = 0 ;
19405 PyObject * obj2 = 0 ;
19406 PyObject * obj3 = 0 ;
19407 PyObject * obj4 = 0 ;
19408 double result;
19409
19410 if (!PyArg_ParseTuple(args,(char *)"OOOOO:GModelSpatialEllipticalDisk_eval",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_failgoto fail;
19411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialEllipticalDisk, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17]
, 0 | 0, 0)
;
19412 if (!SWIG_IsOK(res1)(res1 >= 0)) {
19413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialEllipticalDisk_eval" "', argument " "1"" of type '" "GModelSpatialEllipticalDisk const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialEllipticalDisk_eval"
"', argument " "1"" of type '" "GModelSpatialEllipticalDisk const *"
"'"); goto fail; } while(0)
;
19414 }
19415 arg1 = reinterpret_cast< GModelSpatialEllipticalDisk * >(argp1);
19416 ecode2 = SWIG_AsVal_double(obj1, &val2);
19417 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
19418 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpatialEllipticalDisk_eval" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpatialEllipticalDisk_eval"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
19419 }
19420 temp2 = static_cast< double >(val2);
19421 arg2 = &temp2;
19422 ecode3 = SWIG_AsVal_double(obj2, &val3);
19423 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
19424 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GModelSpatialEllipticalDisk_eval" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GModelSpatialEllipticalDisk_eval"
"', argument " "3"" of type '" "double""'"); goto fail; } while
(0)
;
19425 }
19426 temp3 = static_cast< double >(val3);
19427 arg3 = &temp3;
19428 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[3],
0 | 0, 0)
;
19429 if (!SWIG_IsOK(res4)(res4 >= 0)) {
19430 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelSpatialEllipticalDisk_eval" "', argument " "4"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelSpatialEllipticalDisk_eval"
"', argument " "4"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
19431 }
19432 if (!argp4) {
19433 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialEllipticalDisk_eval" "', argument " "4"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialEllipticalDisk_eval" "', argument "
"4"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
19434 }
19435 arg4 = reinterpret_cast< GEnergy * >(argp4);
19436 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj4, &argp5, swig_types[46]
, 0 | 0, 0)
;
19437 if (!SWIG_IsOK(res5)(res5 >= 0)) {
19438 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GModelSpatialEllipticalDisk_eval" "', argument " "5"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res5 != (
-1)) ? res5 : -5)), "in method '" "GModelSpatialEllipticalDisk_eval"
"', argument " "5"" of type '" "GTime const &""'"); goto
fail; } while(0)
;
19439 }
19440 if (!argp5) {
19441 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialEllipticalDisk_eval" "', argument " "5"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialEllipticalDisk_eval" "', argument "
"5"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
19442 }
19443 arg5 = reinterpret_cast< GTime * >(argp5);
19444 {
19445 try {
19446 result = (double)((GModelSpatialEllipticalDisk const *)arg1)->eval((double const &)*arg2,(double const &)*arg3,(GEnergy const &)*arg4,(GTime const &)*arg5);
19447 }
19448 catch (const GException::out_of_range& e) {
19449 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
19450 }
19451 catch (const GExceptionHandler& e) {
19452 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19453 }
19454 catch (const std::exception& e) {
19455 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19456 }
19457 }
19458 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
19459 return resultobj;
19460fail:
19461 return NULL__null;
19462}
19463
19464
19465SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialEllipticalDisk_eval_gradients__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19466 PyObject *resultobj = 0;
19467 GModelSpatialEllipticalDisk *arg1 = (GModelSpatialEllipticalDisk *) 0 ;
19468 double *arg2 = 0 ;
19469 double *arg3 = 0 ;
19470 GEnergy *arg4 = 0 ;
19471 GTime *arg5 = 0 ;
19472 void *argp1 = 0 ;
19473 int res1 = 0 ;
19474 double temp2 ;
19475 double val2 ;
19476 int ecode2 = 0 ;
19477 double temp3 ;
19478 double val3 ;
19479 int ecode3 = 0 ;
19480 void *argp4 = 0 ;
19481 int res4 = 0 ;
19482 void *argp5 = 0 ;
19483 int res5 = 0 ;
19484 PyObject * obj0 = 0 ;
19485 PyObject * obj1 = 0 ;
19486 PyObject * obj2 = 0 ;
19487 PyObject * obj3 = 0 ;
19488 PyObject * obj4 = 0 ;
19489 double result;
19490
19491 if (!PyArg_ParseTuple(args,(char *)"OOOOO:GModelSpatialEllipticalDisk_eval_gradients",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_failgoto fail;
19492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialEllipticalDisk, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17]
, 0 | 0, 0)
;
19493 if (!SWIG_IsOK(res1)(res1 >= 0)) {
19494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialEllipticalDisk_eval_gradients" "', argument " "1"" of type '" "GModelSpatialEllipticalDisk const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialEllipticalDisk_eval_gradients"
"', argument " "1"" of type '" "GModelSpatialEllipticalDisk const *"
"'"); goto fail; } while(0)
;
19495 }
19496 arg1 = reinterpret_cast< GModelSpatialEllipticalDisk * >(argp1);
19497 ecode2 = SWIG_AsVal_double(obj1, &val2);
19498 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
19499 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpatialEllipticalDisk_eval_gradients" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpatialEllipticalDisk_eval_gradients"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
19500 }
19501 temp2 = static_cast< double >(val2);
19502 arg2 = &temp2;
19503 ecode3 = SWIG_AsVal_double(obj2, &val3);
19504 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
19505 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GModelSpatialEllipticalDisk_eval_gradients" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GModelSpatialEllipticalDisk_eval_gradients"
"', argument " "3"" of type '" "double""'"); goto fail; } while
(0)
;
19506 }
19507 temp3 = static_cast< double >(val3);
19508 arg3 = &temp3;
19509 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[3],
0 | 0, 0)
;
19510 if (!SWIG_IsOK(res4)(res4 >= 0)) {
19511 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelSpatialEllipticalDisk_eval_gradients" "', argument " "4"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelSpatialEllipticalDisk_eval_gradients"
"', argument " "4"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
19512 }
19513 if (!argp4) {
19514 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialEllipticalDisk_eval_gradients" "', argument " "4"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialEllipticalDisk_eval_gradients" "', argument "
"4"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
19515 }
19516 arg4 = reinterpret_cast< GEnergy * >(argp4);
19517 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj4, &argp5, swig_types[46]
, 0 | 0, 0)
;
19518 if (!SWIG_IsOK(res5)(res5 >= 0)) {
19519 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GModelSpatialEllipticalDisk_eval_gradients" "', argument " "5"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res5 != (
-1)) ? res5 : -5)), "in method '" "GModelSpatialEllipticalDisk_eval_gradients"
"', argument " "5"" of type '" "GTime const &""'"); goto
fail; } while(0)
;
19520 }
19521 if (!argp5) {
19522 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialEllipticalDisk_eval_gradients" "', argument " "5"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialEllipticalDisk_eval_gradients" "', argument "
"5"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
19523 }
19524 arg5 = reinterpret_cast< GTime * >(argp5);
19525 {
19526 try {
19527 result = (double)((GModelSpatialEllipticalDisk const *)arg1)->eval_gradients((double const &)*arg2,(double const &)*arg3,(GEnergy const &)*arg4,(GTime const &)*arg5);
19528 }
19529 catch (const GException::out_of_range& e) {
19530 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
19531 }
19532 catch (const GExceptionHandler& e) {
19533 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19534 }
19535 catch (const std::exception& e) {
19536 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19537 }
19538 }
19539 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
19540 return resultobj;
19541fail:
19542 return NULL__null;
19543}
19544
19545
19546SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialEllipticalDisk_mc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19547 PyObject *resultobj = 0;
19548 GModelSpatialEllipticalDisk *arg1 = (GModelSpatialEllipticalDisk *) 0 ;
19549 GEnergy *arg2 = 0 ;
19550 GTime *arg3 = 0 ;
19551 GRan *arg4 = 0 ;
19552 void *argp1 = 0 ;
19553 int res1 = 0 ;
19554 void *argp2 = 0 ;
19555 int res2 = 0 ;
19556 void *argp3 = 0 ;
19557 int res3 = 0 ;
19558 void *argp4 = 0 ;
19559 int res4 = 0 ;
19560 PyObject * obj0 = 0 ;
19561 PyObject * obj1 = 0 ;
19562 PyObject * obj2 = 0 ;
19563 PyObject * obj3 = 0 ;
19564 GSkyDir result;
19565
19566 if (!PyArg_ParseTuple(args,(char *)"OOOO:GModelSpatialEllipticalDisk_mc",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
19567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialEllipticalDisk, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17]
, 0 | 0, 0)
;
19568 if (!SWIG_IsOK(res1)(res1 >= 0)) {
19569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialEllipticalDisk_mc" "', argument " "1"" of type '" "GModelSpatialEllipticalDisk const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialEllipticalDisk_mc"
"', argument " "1"" of type '" "GModelSpatialEllipticalDisk const *"
"'"); goto fail; } while(0)
;
19570 }
19571 arg1 = reinterpret_cast< GModelSpatialEllipticalDisk * >(argp1);
19572 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
19573 if (!SWIG_IsOK(res2)(res2 >= 0)) {
19574 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialEllipticalDisk_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialEllipticalDisk_mc"
"', argument " "2"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
19575 }
19576 if (!argp2) {
19577 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialEllipticalDisk_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialEllipticalDisk_mc" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
19578 }
19579 arg2 = reinterpret_cast< GEnergy * >(argp2);
19580 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[46]
, 0 | 0, 0)
;
19581 if (!SWIG_IsOK(res3)(res3 >= 0)) {
19582 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpatialEllipticalDisk_mc" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpatialEllipticalDisk_mc"
"', argument " "3"" of type '" "GTime const &""'"); goto
fail; } while(0)
;
19583 }
19584 if (!argp3) {
19585 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialEllipticalDisk_mc" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialEllipticalDisk_mc" "', argument "
"3"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
19586 }
19587 arg3 = reinterpret_cast< GTime * >(argp3);
19588 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GRan, 0 )SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[42]
, 0, 0)
;
19589 if (!SWIG_IsOK(res4)(res4 >= 0)) {
19590 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelSpatialEllipticalDisk_mc" "', argument " "4"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelSpatialEllipticalDisk_mc"
"', argument " "4"" of type '" "GRan &""'"); goto fail; }
while(0)
;
19591 }
19592 if (!argp4) {
19593 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialEllipticalDisk_mc" "', argument " "4"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialEllipticalDisk_mc" "', argument "
"4"" of type '" "GRan &""'"); goto fail; } while(0)
;
19594 }
19595 arg4 = reinterpret_cast< GRan * >(argp4);
19596 {
19597 try {
19598 result = ((GModelSpatialEllipticalDisk const *)arg1)->mc((GEnergy const &)*arg2,(GTime const &)*arg3,*arg4);
19599 }
19600 catch (const GException::out_of_range& e) {
19601 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
19602 }
19603 catch (const GExceptionHandler& e) {
19604 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19605 }
19606 catch (const std::exception& e) {
19607 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19608 }
19609 }
19610 resultobj = SWIG_NewPointerObj((new GSkyDir(static_cast< const GSkyDir& >(result))), SWIGTYPE_p_GSkyDir, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GSkyDir(static_cast<
const GSkyDir& >(result))), swig_types[44], 0x1 | 0)
;
19611 return resultobj;
19612fail:
19613 return NULL__null;
19614}
19615
19616
19617SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialEllipticalDisk_theta_max(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19618 PyObject *resultobj = 0;
19619 GModelSpatialEllipticalDisk *arg1 = (GModelSpatialEllipticalDisk *) 0 ;
19620 void *argp1 = 0 ;
19621 int res1 = 0 ;
19622 PyObject * obj0 = 0 ;
19623 double result;
19624
19625 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialEllipticalDisk_theta_max",&obj0)) SWIG_failgoto fail;
19626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialEllipticalDisk, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17]
, 0 | 0, 0)
;
19627 if (!SWIG_IsOK(res1)(res1 >= 0)) {
19628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialEllipticalDisk_theta_max" "', argument " "1"" of type '" "GModelSpatialEllipticalDisk const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialEllipticalDisk_theta_max"
"', argument " "1"" of type '" "GModelSpatialEllipticalDisk const *"
"'"); goto fail; } while(0)
;
19629 }
19630 arg1 = reinterpret_cast< GModelSpatialEllipticalDisk * >(argp1);
19631 {
19632 try {
19633 result = (double)((GModelSpatialEllipticalDisk const *)arg1)->theta_max();
19634 }
19635 catch (const GException::out_of_range& e) {
19636 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
19637 }
19638 catch (const GExceptionHandler& e) {
19639 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19640 }
19641 catch (const std::exception& e) {
19642 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19643 }
19644 }
19645 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
19646 return resultobj;
19647fail:
19648 return NULL__null;
19649}
19650
19651
19652SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialEllipticalDisk_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19653 PyObject *resultobj = 0;
19654 GModelSpatialEllipticalDisk *arg1 = (GModelSpatialEllipticalDisk *) 0 ;
19655 GXmlElement *arg2 = 0 ;
19656 void *argp1 = 0 ;
19657 int res1 = 0 ;
19658 void *argp2 = 0 ;
19659 int res2 = 0 ;
19660 PyObject * obj0 = 0 ;
19661 PyObject * obj1 = 0 ;
19662
19663 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialEllipticalDisk_read",&obj0,&obj1)) SWIG_failgoto fail;
19664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialEllipticalDisk, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17]
, 0 | 0, 0)
;
19665 if (!SWIG_IsOK(res1)(res1 >= 0)) {
19666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialEllipticalDisk_read" "', argument " "1"" of type '" "GModelSpatialEllipticalDisk *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialEllipticalDisk_read"
"', argument " "1"" of type '" "GModelSpatialEllipticalDisk *"
"'"); goto fail; } while(0)
;
19667 }
19668 arg1 = reinterpret_cast< GModelSpatialEllipticalDisk * >(argp1);
19669 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0 | 0, 0)
;
19670 if (!SWIG_IsOK(res2)(res2 >= 0)) {
19671 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialEllipticalDisk_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialEllipticalDisk_read"
"', argument " "2"" of type '" "GXmlElement const &""'")
; goto fail; } while(0)
;
19672 }
19673 if (!argp2) {
19674 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialEllipticalDisk_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialEllipticalDisk_read" "', argument "
"2"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
19675 }
19676 arg2 = reinterpret_cast< GXmlElement * >(argp2);
19677 {
19678 try {
19679 (arg1)->read((GXmlElement const &)*arg2);
19680 }
19681 catch (const GException::out_of_range& e) {
19682 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
19683 }
19684 catch (const GExceptionHandler& e) {
19685 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19686 }
19687 catch (const std::exception& e) {
19688 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19689 }
19690 }
19691 resultobj = SWIG_Py_Void();
19692 return resultobj;
19693fail:
19694 return NULL__null;
19695}
19696
19697
19698SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialEllipticalDisk_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19699 PyObject *resultobj = 0;
19700 GModelSpatialEllipticalDisk *arg1 = (GModelSpatialEllipticalDisk *) 0 ;
19701 GXmlElement *arg2 = 0 ;
19702 void *argp1 = 0 ;
19703 int res1 = 0 ;
19704 void *argp2 = 0 ;
19705 int res2 = 0 ;
19706 PyObject * obj0 = 0 ;
19707 PyObject * obj1 = 0 ;
19708
19709 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialEllipticalDisk_write",&obj0,&obj1)) SWIG_failgoto fail;
19710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialEllipticalDisk, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17]
, 0 | 0, 0)
;
19711 if (!SWIG_IsOK(res1)(res1 >= 0)) {
19712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialEllipticalDisk_write" "', argument " "1"" of type '" "GModelSpatialEllipticalDisk const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialEllipticalDisk_write"
"', argument " "1"" of type '" "GModelSpatialEllipticalDisk const *"
"'"); goto fail; } while(0)
;
19713 }
19714 arg1 = reinterpret_cast< GModelSpatialEllipticalDisk * >(argp1);
19715 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0, 0)
;
19716 if (!SWIG_IsOK(res2)(res2 >= 0)) {
19717 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialEllipticalDisk_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialEllipticalDisk_write"
"', argument " "2"" of type '" "GXmlElement &""'"); goto
fail; } while(0)
;
19718 }
19719 if (!argp2) {
19720 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialEllipticalDisk_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialEllipticalDisk_write" "', argument "
"2"" of type '" "GXmlElement &""'"); goto fail; } while(
0)
;
19721 }
19722 arg2 = reinterpret_cast< GXmlElement * >(argp2);
19723 {
19724 try {
19725 ((GModelSpatialEllipticalDisk const *)arg1)->write(*arg2);
19726 }
19727 catch (const GException::out_of_range& e) {
19728 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
19729 }
19730 catch (const GExceptionHandler& e) {
19731 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19732 }
19733 catch (const std::exception& e) {
19734 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19735 }
19736 }
19737 resultobj = SWIG_Py_Void();
19738 return resultobj;
19739fail:
19740 return NULL__null;
19741}
19742
19743
19744SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialEllipticalDisk_semiminor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19745 PyObject *resultobj = 0;
19746 GModelSpatialEllipticalDisk *arg1 = (GModelSpatialEllipticalDisk *) 0 ;
19747 void *argp1 = 0 ;
19748 int res1 = 0 ;
19749 PyObject * obj0 = 0 ;
19750 double result;
19751
19752 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialEllipticalDisk_semiminor",&obj0)) SWIG_failgoto fail;
19753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialEllipticalDisk, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17]
, 0 | 0, 0)
;
19754 if (!SWIG_IsOK(res1)(res1 >= 0)) {
19755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialEllipticalDisk_semiminor" "', argument " "1"" of type '" "GModelSpatialEllipticalDisk const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialEllipticalDisk_semiminor"
"', argument " "1"" of type '" "GModelSpatialEllipticalDisk const *"
"'"); goto fail; } while(0)
;
19756 }
19757 arg1 = reinterpret_cast< GModelSpatialEllipticalDisk * >(argp1);
19758 {
19759 try {
19760 result = (double)((GModelSpatialEllipticalDisk const *)arg1)->semiminor();
19761 }
19762 catch (const GException::out_of_range& e) {
19763 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
19764 }
19765 catch (const GExceptionHandler& e) {
19766 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19767 }
19768 catch (const std::exception& e) {
19769 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19770 }
19771 }
19772 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
19773 return resultobj;
19774fail:
19775 return NULL__null;
19776}
19777
19778
19779SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialEllipticalDisk_semimajor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19780 PyObject *resultobj = 0;
19781 GModelSpatialEllipticalDisk *arg1 = (GModelSpatialEllipticalDisk *) 0 ;
19782 void *argp1 = 0 ;
19783 int res1 = 0 ;
19784 PyObject * obj0 = 0 ;
19785 double result;
19786
19787 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialEllipticalDisk_semimajor",&obj0)) SWIG_failgoto fail;
19788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialEllipticalDisk, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17]
, 0 | 0, 0)
;
19789 if (!SWIG_IsOK(res1)(res1 >= 0)) {
19790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialEllipticalDisk_semimajor" "', argument " "1"" of type '" "GModelSpatialEllipticalDisk const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialEllipticalDisk_semimajor"
"', argument " "1"" of type '" "GModelSpatialEllipticalDisk const *"
"'"); goto fail; } while(0)
;
19791 }
19792 arg1 = reinterpret_cast< GModelSpatialEllipticalDisk * >(argp1);
19793 {
19794 try {
19795 result = (double)((GModelSpatialEllipticalDisk const *)arg1)->semimajor();
19796 }
19797 catch (const GException::out_of_range& e) {
19798 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
19799 }
19800 catch (const GExceptionHandler& e) {
19801 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19802 }
19803 catch (const std::exception& e) {
19804 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19805 }
19806 }
19807 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
19808 return resultobj;
19809fail:
19810 return NULL__null;
19811}
19812
19813
19814SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialEllipticalDisk_semiminor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19815 PyObject *resultobj = 0;
19816 GModelSpatialEllipticalDisk *arg1 = (GModelSpatialEllipticalDisk *) 0 ;
19817 double *arg2 = 0 ;
19818 void *argp1 = 0 ;
19819 int res1 = 0 ;
19820 double temp2 ;
19821 double val2 ;
19822 int ecode2 = 0 ;
19823 PyObject * obj0 = 0 ;
19824 PyObject * obj1 = 0 ;
19825
19826 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialEllipticalDisk_semiminor",&obj0,&obj1)) SWIG_failgoto fail;
19827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialEllipticalDisk, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17]
, 0 | 0, 0)
;
19828 if (!SWIG_IsOK(res1)(res1 >= 0)) {
19829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialEllipticalDisk_semiminor" "', argument " "1"" of type '" "GModelSpatialEllipticalDisk *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialEllipticalDisk_semiminor"
"', argument " "1"" of type '" "GModelSpatialEllipticalDisk *"
"'"); goto fail; } while(0)
;
19830 }
19831 arg1 = reinterpret_cast< GModelSpatialEllipticalDisk * >(argp1);
19832 ecode2 = SWIG_AsVal_double(obj1, &val2);
19833 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
19834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpatialEllipticalDisk_semiminor" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpatialEllipticalDisk_semiminor"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
19835 }
19836 temp2 = static_cast< double >(val2);
19837 arg2 = &temp2;
19838 {
19839 try {
19840 (arg1)->semiminor((double const &)*arg2);
19841 }
19842 catch (const GException::out_of_range& e) {
19843 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
19844 }
19845 catch (const GExceptionHandler& e) {
19846 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19847 }
19848 catch (const std::exception& e) {
19849 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19850 }
19851 }
19852 resultobj = SWIG_Py_Void();
19853 return resultobj;
19854fail:
19855 return NULL__null;
19856}
19857
19858
19859SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialEllipticalDisk_semiminor(PyObject *self, PyObject *args) {
19860 int argc;
19861 PyObject *argv[3];
19862 int ii;
19863
19864 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
19865 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
19866 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
19867 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
19868 }
19869 if (argc == 1) {
19870 int _v;
19871 void *vptr = 0;
19872 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialEllipticalDisk, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[17
], 0, 0)
;
19873 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19874 if (_v) {
19875 return _wrap_GModelSpatialEllipticalDisk_semiminor__SWIG_0(self, args);
19876 }
19877 }
19878 if (argc == 2) {
19879 int _v;
19880 void *vptr = 0;
19881 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialEllipticalDisk, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[17
], 0, 0)
;
19882 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19883 if (_v) {
19884 {
19885 int res = SWIG_AsVal_double(argv[1], NULL__null);
19886 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19887 }
19888 if (_v) {
19889 return _wrap_GModelSpatialEllipticalDisk_semiminor__SWIG_1(self, args);
19890 }
19891 }
19892 }
19893
19894fail:
19895 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialEllipticalDisk_semiminor'.\n"
19896 " Possible C/C++ prototypes are:\n"
19897 " GModelSpatialEllipticalDisk::semiminor() const\n"
19898 " GModelSpatialEllipticalDisk::semiminor(double const &)\n");
19899 return 0;
19900}
19901
19902
19903SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialEllipticalDisk_semimajor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19904 PyObject *resultobj = 0;
19905 GModelSpatialEllipticalDisk *arg1 = (GModelSpatialEllipticalDisk *) 0 ;
19906 double *arg2 = 0 ;
19907 void *argp1 = 0 ;
19908 int res1 = 0 ;
19909 double temp2 ;
19910 double val2 ;
19911 int ecode2 = 0 ;
19912 PyObject * obj0 = 0 ;
19913 PyObject * obj1 = 0 ;
19914
19915 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialEllipticalDisk_semimajor",&obj0,&obj1)) SWIG_failgoto fail;
19916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialEllipticalDisk, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17]
, 0 | 0, 0)
;
19917 if (!SWIG_IsOK(res1)(res1 >= 0)) {
19918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialEllipticalDisk_semimajor" "', argument " "1"" of type '" "GModelSpatialEllipticalDisk *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialEllipticalDisk_semimajor"
"', argument " "1"" of type '" "GModelSpatialEllipticalDisk *"
"'"); goto fail; } while(0)
;
19919 }
19920 arg1 = reinterpret_cast< GModelSpatialEllipticalDisk * >(argp1);
19921 ecode2 = SWIG_AsVal_double(obj1, &val2);
19922 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
19923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpatialEllipticalDisk_semimajor" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpatialEllipticalDisk_semimajor"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
19924 }
19925 temp2 = static_cast< double >(val2);
19926 arg2 = &temp2;
19927 {
19928 try {
19929 (arg1)->semimajor((double const &)*arg2);
19930 }
19931 catch (const GException::out_of_range& e) {
19932 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
19933 }
19934 catch (const GExceptionHandler& e) {
19935 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19936 }
19937 catch (const std::exception& e) {
19938 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19939 }
19940 }
19941 resultobj = SWIG_Py_Void();
19942 return resultobj;
19943fail:
19944 return NULL__null;
19945}
19946
19947
19948SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialEllipticalDisk_semimajor(PyObject *self, PyObject *args) {
19949 int argc;
19950 PyObject *argv[3];
19951 int ii;
19952
19953 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
19954 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
19955 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
19956 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
19957 }
19958 if (argc == 1) {
19959 int _v;
19960 void *vptr = 0;
19961 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialEllipticalDisk, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[17
], 0, 0)
;
19962 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19963 if (_v) {
19964 return _wrap_GModelSpatialEllipticalDisk_semimajor__SWIG_0(self, args);
19965 }
19966 }
19967 if (argc == 2) {
19968 int _v;
19969 void *vptr = 0;
19970 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialEllipticalDisk, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[17
], 0, 0)
;
19971 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19972 if (_v) {
19973 {
19974 int res = SWIG_AsVal_double(argv[1], NULL__null);
19975 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19976 }
19977 if (_v) {
19978 return _wrap_GModelSpatialEllipticalDisk_semimajor__SWIG_1(self, args);
19979 }
19980 }
19981 }
19982
19983fail:
19984 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialEllipticalDisk_semimajor'.\n"
19985 " Possible C/C++ prototypes are:\n"
19986 " GModelSpatialEllipticalDisk::semimajor() const\n"
19987 " GModelSpatialEllipticalDisk::semimajor(double const &)\n");
19988 return 0;
19989}
19990
19991
19992SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialEllipticalDisk_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19993 PyObject *resultobj = 0;
19994 GModelSpatialEllipticalDisk *arg1 = (GModelSpatialEllipticalDisk *) 0 ;
19995 void *argp1 = 0 ;
19996 int res1 = 0 ;
19997 PyObject * obj0 = 0 ;
19998 GModelSpatialEllipticalDisk result;
19999
20000 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialEllipticalDisk_copy",&obj0)) SWIG_failgoto fail;
20001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialEllipticalDisk, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17]
, 0 | 0, 0)
;
20002 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialEllipticalDisk_copy" "', argument " "1"" of type '" "GModelSpatialEllipticalDisk *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialEllipticalDisk_copy"
"', argument " "1"" of type '" "GModelSpatialEllipticalDisk *"
"'"); goto fail; } while(0)
;
20004 }
20005 arg1 = reinterpret_cast< GModelSpatialEllipticalDisk * >(argp1);
20006 {
20007 try {
20008 result = GModelSpatialEllipticalDisk_copy(arg1);
20009 }
20010 catch (const GException::out_of_range& e) {
20011 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20012 }
20013 catch (const GExceptionHandler& e) {
20014 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20015 }
20016 catch (const std::exception& e) {
20017 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20018 }
20019 }
20020 resultobj = SWIG_NewPointerObj((new GModelSpatialEllipticalDisk(static_cast< const GModelSpatialEllipticalDisk& >(result))), SWIGTYPE_p_GModelSpatialEllipticalDisk, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GModelSpatialEllipticalDisk
(static_cast< const GModelSpatialEllipticalDisk& >(
result))), swig_types[17], 0x1 | 0)
;
20021 return resultobj;
20022fail:
20023 return NULL__null;
20024}
20025
20026
20027SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialEllipticalDisk_eval__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20028 PyObject *resultobj = 0;
20029 GModelSpatialEllipticalDisk *arg1 = (GModelSpatialEllipticalDisk *) 0 ;
20030 GPhoton *arg2 = 0 ;
20031 void *argp1 = 0 ;
20032 int res1 = 0 ;
20033 void *argp2 = 0 ;
20034 int res2 = 0 ;
20035 PyObject * obj0 = 0 ;
20036 PyObject * obj1 = 0 ;
20037 double result;
20038
20039 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialEllipticalDisk_eval",&obj0,&obj1)) SWIG_failgoto fail;
20040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialEllipticalDisk, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17]
, 0 | 0, 0)
;
20041 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialEllipticalDisk_eval" "', argument " "1"" of type '" "GModelSpatialEllipticalDisk const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialEllipticalDisk_eval"
"', argument " "1"" of type '" "GModelSpatialEllipticalDisk const *"
"'"); goto fail; } while(0)
;
20043 }
20044 arg1 = reinterpret_cast< GModelSpatialEllipticalDisk * >(argp1);
20045 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[40]
, 0 | 0, 0)
;
20046 if (!SWIG_IsOK(res2)(res2 >= 0)) {
20047 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialEllipticalDisk_eval" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialEllipticalDisk_eval"
"', argument " "2"" of type '" "GPhoton const &""'"); goto
fail; } while(0)
;
20048 }
20049 if (!argp2) {
20050 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialEllipticalDisk_eval" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialEllipticalDisk_eval" "', argument "
"2"" of type '" "GPhoton const &""'"); goto fail; } while
(0)
;
20051 }
20052 arg2 = reinterpret_cast< GPhoton * >(argp2);
20053 {
20054 try {
20055 result = (double)GModelSpatialEllipticalDisk_eval__SWIG_1((GModelSpatialEllipticalDisk const *)arg1,(GPhoton const &)*arg2);
20056 }
20057 catch (const GException::out_of_range& e) {
20058 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20059 }
20060 catch (const GExceptionHandler& e) {
20061 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20062 }
20063 catch (const std::exception& e) {
20064 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20065 }
20066 }
20067 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
20068 return resultobj;
20069fail:
20070 return NULL__null;
20071}
20072
20073
20074SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialEllipticalDisk_eval(PyObject *self, PyObject *args) {
20075 int argc;
20076 PyObject *argv[6];
20077 int ii;
20078
20079 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
20080 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
20081 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
20082 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
20083 }
20084 if (argc == 2) {
20085 int _v;
20086 void *vptr = 0;
20087 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialEllipticalDisk, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[17
], 0, 0)
;
20088 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
20089 if (_v) {
20090 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GPhoton, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[40], 0, 0
)
;
20091 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
20092 if (_v) {
20093 return _wrap_GModelSpatialEllipticalDisk_eval__SWIG_1(self, args);
20094 }
20095 }
20096 }
20097 if (argc == 5) {
20098 int _v;
20099 void *vptr = 0;
20100 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialEllipticalDisk, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[17
], 0, 0)
;
20101 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
20102 if (_v) {
20103 {
20104 int res = SWIG_AsVal_double(argv[1], NULL__null);
20105 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
20106 }
20107 if (_v) {
20108 {
20109 int res = SWIG_AsVal_double(argv[2], NULL__null);
20110 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
20111 }
20112 if (_v) {
20113 int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[3], 0, swig_types[3], 0, 0);
20114 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
20115 if (_v) {
20116 int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_GTime, 0)SWIG_Python_ConvertPtrAndOwn(argv[4], 0, swig_types[46], 0, 0
)
;
20117 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
20118 if (_v) {
20119 return _wrap_GModelSpatialEllipticalDisk_eval__SWIG_0(self, args);
20120 }
20121 }
20122 }
20123 }
20124 }
20125 }
20126
20127fail:
20128 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialEllipticalDisk_eval'.\n"
20129 " Possible C/C++ prototypes are:\n"
20130 " GModelSpatialEllipticalDisk::eval(double const &,double const &,GEnergy const &,GTime const &) const\n"
20131 " GModelSpatialEllipticalDisk::eval(GPhoton const &) const\n");
20132 return 0;
20133}
20134
20135
20136SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialEllipticalDisk_eval_gradients__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20137 PyObject *resultobj = 0;
20138 GModelSpatialEllipticalDisk *arg1 = (GModelSpatialEllipticalDisk *) 0 ;
20139 GPhoton *arg2 = 0 ;
20140 void *argp1 = 0 ;
20141 int res1 = 0 ;
20142 void *argp2 = 0 ;
20143 int res2 = 0 ;
20144 PyObject * obj0 = 0 ;
20145 PyObject * obj1 = 0 ;
20146 double result;
20147
20148 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialEllipticalDisk_eval_gradients",&obj0,&obj1)) SWIG_failgoto fail;
20149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialEllipticalDisk, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17]
, 0 | 0, 0)
;
20150 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialEllipticalDisk_eval_gradients" "', argument " "1"" of type '" "GModelSpatialEllipticalDisk const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialEllipticalDisk_eval_gradients"
"', argument " "1"" of type '" "GModelSpatialEllipticalDisk const *"
"'"); goto fail; } while(0)
;
20152 }
20153 arg1 = reinterpret_cast< GModelSpatialEllipticalDisk * >(argp1);
20154 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[40]
, 0 | 0, 0)
;
20155 if (!SWIG_IsOK(res2)(res2 >= 0)) {
20156 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialEllipticalDisk_eval_gradients" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialEllipticalDisk_eval_gradients"
"', argument " "2"" of type '" "GPhoton const &""'"); goto
fail; } while(0)
;
20157 }
20158 if (!argp2) {
20159 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialEllipticalDisk_eval_gradients" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialEllipticalDisk_eval_gradients" "', argument "
"2"" of type '" "GPhoton const &""'"); goto fail; } while
(0)
;
20160 }
20161 arg2 = reinterpret_cast< GPhoton * >(argp2);
20162 {
20163 try {
20164 result = (double)GModelSpatialEllipticalDisk_eval_gradients__SWIG_1((GModelSpatialEllipticalDisk const *)arg1,(GPhoton const &)*arg2);
20165 }
20166 catch (const GException::out_of_range& e) {
20167 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20168 }
20169 catch (const GExceptionHandler& e) {
20170 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20171 }
20172 catch (const std::exception& e) {
20173 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20174 }
20175 }
20176 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
20177 return resultobj;
20178fail:
20179 return NULL__null;
20180}
20181
20182
20183SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialEllipticalDisk_eval_gradients(PyObject *self, PyObject *args) {
20184 int argc;
20185 PyObject *argv[6];
20186 int ii;
20187
20188 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
20189 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
20190 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
20191 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
20192 }
20193 if (argc == 2) {
20194 int _v;
20195 void *vptr = 0;
20196 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialEllipticalDisk, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[17
], 0, 0)
;
20197 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
20198 if (_v) {
20199 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GPhoton, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[40], 0, 0
)
;
20200 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
20201 if (_v) {
20202 return _wrap_GModelSpatialEllipticalDisk_eval_gradients__SWIG_1(self, args);
20203 }
20204 }
20205 }
20206 if (argc == 5) {
20207 int _v;
20208 void *vptr = 0;
20209 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialEllipticalDisk, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[17
], 0, 0)
;
20210 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
20211 if (_v) {
20212 {
20213 int res = SWIG_AsVal_double(argv[1], NULL__null);
20214 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
20215 }
20216 if (_v) {
20217 {
20218 int res = SWIG_AsVal_double(argv[2], NULL__null);
20219 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
20220 }
20221 if (_v) {
20222 int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[3], 0, swig_types[3], 0, 0);
20223 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
20224 if (_v) {
20225 int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_GTime, 0)SWIG_Python_ConvertPtrAndOwn(argv[4], 0, swig_types[46], 0, 0
)
;
20226 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
20227 if (_v) {
20228 return _wrap_GModelSpatialEllipticalDisk_eval_gradients__SWIG_0(self, args);
20229 }
20230 }
20231 }
20232 }
20233 }
20234 }
20235
20236fail:
20237 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialEllipticalDisk_eval_gradients'.\n"
20238 " Possible C/C++ prototypes are:\n"
20239 " GModelSpatialEllipticalDisk::eval_gradients(double const &,double const &,GEnergy const &,GTime const &) const\n"
20240 " GModelSpatialEllipticalDisk::eval_gradients(GPhoton const &) const\n");
20241 return 0;
20242}
20243
20244
20245SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GModelSpatialEllipticalDisk_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20246 PyObject *obj;
20247 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
20248 SWIG_TypeNewClientData(SWIGTYPE_p_GModelSpatialEllipticalDiskswig_types[17], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
20249 return SWIG_Py_Void();
20250}
20251
20252SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GModelSpatialDiffuse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20253 PyObject *resultobj = 0;
20254 GModelSpatialDiffuse *arg1 = (GModelSpatialDiffuse *) 0 ;
20255 void *argp1 = 0 ;
20256 int res1 = 0 ;
20257 PyObject * obj0 = 0 ;
20258
20259 if (!PyArg_ParseTuple(args,(char *)"O:delete_GModelSpatialDiffuse",&obj0)) SWIG_failgoto fail;
20260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuse, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12]
, 0x1 | 0, 0)
;
20261 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GModelSpatialDiffuse" "', argument " "1"" of type '" "GModelSpatialDiffuse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GModelSpatialDiffuse"
"', argument " "1"" of type '" "GModelSpatialDiffuse *""'");
goto fail; } while(0)
;
20263 }
20264 arg1 = reinterpret_cast< GModelSpatialDiffuse * >(argp1);
20265 {
20266 try {
20267 delete arg1;
20268 }
20269 catch (const GException::out_of_range& e) {
20270 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20271 }
20272 catch (const GExceptionHandler& e) {
20273 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20274 }
20275 catch (const std::exception& e) {
20276 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20277 }
20278 }
20279 resultobj = SWIG_Py_Void();
20280 return resultobj;
20281fail:
20282 return NULL__null;
20283}
20284
20285
20286SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuse_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20287 PyObject *resultobj = 0;
20288 GModelSpatialDiffuse *arg1 = (GModelSpatialDiffuse *) 0 ;
20289 void *argp1 = 0 ;
20290 int res1 = 0 ;
20291 PyObject * obj0 = 0 ;
20292
20293 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialDiffuse_clear",&obj0)) SWIG_failgoto fail;
20294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12]
, 0 | 0, 0)
;
20295 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuse_clear" "', argument " "1"" of type '" "GModelSpatialDiffuse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuse_clear"
"', argument " "1"" of type '" "GModelSpatialDiffuse *""'");
goto fail; } while(0)
;
20297 }
20298 arg1 = reinterpret_cast< GModelSpatialDiffuse * >(argp1);
20299 {
20300 try {
20301 (arg1)->clear();
20302 }
20303 catch (const GException::out_of_range& e) {
20304 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20305 }
20306 catch (const GExceptionHandler& e) {
20307 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20308 }
20309 catch (const std::exception& e) {
20310 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20311 }
20312 }
20313 resultobj = SWIG_Py_Void();
20314 return resultobj;
20315fail:
20316 return NULL__null;
20317}
20318
20319
20320SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuse_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20321 PyObject *resultobj = 0;
20322 GModelSpatialDiffuse *arg1 = (GModelSpatialDiffuse *) 0 ;
20323 void *argp1 = 0 ;
20324 int res1 = 0 ;
20325 PyObject * obj0 = 0 ;
20326 GModelSpatialDiffuse *result = 0 ;
20327
20328 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialDiffuse_clone",&obj0)) SWIG_failgoto fail;
20329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12]
, 0 | 0, 0)
;
20330 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuse_clone" "', argument " "1"" of type '" "GModelSpatialDiffuse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuse_clone"
"', argument " "1"" of type '" "GModelSpatialDiffuse const *"
"'"); goto fail; } while(0)
;
20332 }
20333 arg1 = reinterpret_cast< GModelSpatialDiffuse * >(argp1);
20334 {
20335 try {
20336 result = (GModelSpatialDiffuse *)((GModelSpatialDiffuse const *)arg1)->clone();
20337 }
20338 catch (const GException::out_of_range& e) {
20339 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20340 }
20341 catch (const GExceptionHandler& e) {
20342 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20343 }
20344 catch (const std::exception& e) {
20345 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20346 }
20347 }
20348 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialDiffuse, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[12], 0
| 0)
;
20349 return resultobj;
20350fail:
20351 return NULL__null;
20352}
20353
20354
20355SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuse_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20356 PyObject *resultobj = 0;
20357 GModelSpatialDiffuse *arg1 = (GModelSpatialDiffuse *) 0 ;
20358 void *argp1 = 0 ;
20359 int res1 = 0 ;
20360 PyObject * obj0 = 0 ;
20361 std::string result;
20362
20363 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialDiffuse_type",&obj0)) SWIG_failgoto fail;
20364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12]
, 0 | 0, 0)
;
20365 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuse_type" "', argument " "1"" of type '" "GModelSpatialDiffuse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuse_type"
"', argument " "1"" of type '" "GModelSpatialDiffuse const *"
"'"); goto fail; } while(0)
;
20367 }
20368 arg1 = reinterpret_cast< GModelSpatialDiffuse * >(argp1);
20369 {
20370 try {
20371 result = ((GModelSpatialDiffuse const *)arg1)->type();
20372 }
20373 catch (const GException::out_of_range& e) {
20374 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20375 }
20376 catch (const GExceptionHandler& e) {
20377 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20378 }
20379 catch (const std::exception& e) {
20380 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20381 }
20382 }
20383 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
20384 return resultobj;
20385fail:
20386 return NULL__null;
20387}
20388
20389
20390SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuse_eval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20391 PyObject *resultobj = 0;
20392 GModelSpatialDiffuse *arg1 = (GModelSpatialDiffuse *) 0 ;
20393 GPhoton *arg2 = 0 ;
20394 void *argp1 = 0 ;
20395 int res1 = 0 ;
20396 void *argp2 = 0 ;
20397 int res2 = 0 ;
20398 PyObject * obj0 = 0 ;
20399 PyObject * obj1 = 0 ;
20400 double result;
20401
20402 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialDiffuse_eval",&obj0,&obj1)) SWIG_failgoto fail;
20403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12]
, 0 | 0, 0)
;
20404 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuse_eval" "', argument " "1"" of type '" "GModelSpatialDiffuse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuse_eval"
"', argument " "1"" of type '" "GModelSpatialDiffuse const *"
"'"); goto fail; } while(0)
;
20406 }
20407 arg1 = reinterpret_cast< GModelSpatialDiffuse * >(argp1);
20408 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[40]
, 0 | 0, 0)
;
20409 if (!SWIG_IsOK(res2)(res2 >= 0)) {
20410 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialDiffuse_eval" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialDiffuse_eval"
"', argument " "2"" of type '" "GPhoton const &""'"); goto
fail; } while(0)
;
20411 }
20412 if (!argp2) {
20413 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuse_eval" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuse_eval" "', argument " "2"
" of type '" "GPhoton const &""'"); goto fail; } while(0)
;
20414 }
20415 arg2 = reinterpret_cast< GPhoton * >(argp2);
20416 {
20417 try {
20418 result = (double)((GModelSpatialDiffuse const *)arg1)->eval((GPhoton const &)*arg2);
20419 }
20420 catch (const GException::out_of_range& e) {
20421 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20422 }
20423 catch (const GExceptionHandler& e) {
20424 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20425 }
20426 catch (const std::exception& e) {
20427 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20428 }
20429 }
20430 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
20431 return resultobj;
20432fail:
20433 return NULL__null;
20434}
20435
20436
20437SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuse_eval_gradients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20438 PyObject *resultobj = 0;
20439 GModelSpatialDiffuse *arg1 = (GModelSpatialDiffuse *) 0 ;
20440 GPhoton *arg2 = 0 ;
20441 void *argp1 = 0 ;
20442 int res1 = 0 ;
20443 void *argp2 = 0 ;
20444 int res2 = 0 ;
20445 PyObject * obj0 = 0 ;
20446 PyObject * obj1 = 0 ;
20447 double result;
20448
20449 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialDiffuse_eval_gradients",&obj0,&obj1)) SWIG_failgoto fail;
20450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12]
, 0 | 0, 0)
;
20451 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuse_eval_gradients" "', argument " "1"" of type '" "GModelSpatialDiffuse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuse_eval_gradients"
"', argument " "1"" of type '" "GModelSpatialDiffuse const *"
"'"); goto fail; } while(0)
;
20453 }
20454 arg1 = reinterpret_cast< GModelSpatialDiffuse * >(argp1);
20455 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[40]
, 0 | 0, 0)
;
20456 if (!SWIG_IsOK(res2)(res2 >= 0)) {
20457 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialDiffuse_eval_gradients" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialDiffuse_eval_gradients"
"', argument " "2"" of type '" "GPhoton const &""'"); goto
fail; } while(0)
;
20458 }
20459 if (!argp2) {
20460 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuse_eval_gradients" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuse_eval_gradients" "', argument "
"2"" of type '" "GPhoton const &""'"); goto fail; } while
(0)
;
20461 }
20462 arg2 = reinterpret_cast< GPhoton * >(argp2);
20463 {
20464 try {
20465 result = (double)((GModelSpatialDiffuse const *)arg1)->eval_gradients((GPhoton const &)*arg2);
20466 }
20467 catch (const GException::out_of_range& e) {
20468 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20469 }
20470 catch (const GExceptionHandler& e) {
20471 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20472 }
20473 catch (const std::exception& e) {
20474 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20475 }
20476 }
20477 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
20478 return resultobj;
20479fail:
20480 return NULL__null;
20481}
20482
20483
20484SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuse_mc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20485 PyObject *resultobj = 0;
20486 GModelSpatialDiffuse *arg1 = (GModelSpatialDiffuse *) 0 ;
20487 GEnergy *arg2 = 0 ;
20488 GTime *arg3 = 0 ;
20489 GRan *arg4 = 0 ;
20490 void *argp1 = 0 ;
20491 int res1 = 0 ;
20492 void *argp2 = 0 ;
20493 int res2 = 0 ;
20494 void *argp3 = 0 ;
20495 int res3 = 0 ;
20496 void *argp4 = 0 ;
20497 int res4 = 0 ;
20498 PyObject * obj0 = 0 ;
20499 PyObject * obj1 = 0 ;
20500 PyObject * obj2 = 0 ;
20501 PyObject * obj3 = 0 ;
20502 GSkyDir result;
20503
20504 if (!PyArg_ParseTuple(args,(char *)"OOOO:GModelSpatialDiffuse_mc",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
20505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12]
, 0 | 0, 0)
;
20506 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuse_mc" "', argument " "1"" of type '" "GModelSpatialDiffuse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuse_mc" "', argument "
"1"" of type '" "GModelSpatialDiffuse const *""'"); goto fail
; } while(0)
;
20508 }
20509 arg1 = reinterpret_cast< GModelSpatialDiffuse * >(argp1);
20510 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
20511 if (!SWIG_IsOK(res2)(res2 >= 0)) {
20512 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialDiffuse_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialDiffuse_mc" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
20513 }
20514 if (!argp2) {
20515 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuse_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuse_mc" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
20516 }
20517 arg2 = reinterpret_cast< GEnergy * >(argp2);
20518 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[46]
, 0 | 0, 0)
;
20519 if (!SWIG_IsOK(res3)(res3 >= 0)) {
20520 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpatialDiffuse_mc" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpatialDiffuse_mc" "', argument "
"3"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
20521 }
20522 if (!argp3) {
20523 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuse_mc" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuse_mc" "', argument " "3"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
20524 }
20525 arg3 = reinterpret_cast< GTime * >(argp3);
20526 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GRan, 0 )SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[42]
, 0, 0)
;
20527 if (!SWIG_IsOK(res4)(res4 >= 0)) {
20528 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelSpatialDiffuse_mc" "', argument " "4"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelSpatialDiffuse_mc" "', argument "
"4"" of type '" "GRan &""'"); goto fail; } while(0)
;
20529 }
20530 if (!argp4) {
20531 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuse_mc" "', argument " "4"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuse_mc" "', argument " "4"" of type '"
"GRan &""'"); goto fail; } while(0)
;
20532 }
20533 arg4 = reinterpret_cast< GRan * >(argp4);
20534 {
20535 try {
20536 result = ((GModelSpatialDiffuse const *)arg1)->mc((GEnergy const &)*arg2,(GTime const &)*arg3,*arg4);
20537 }
20538 catch (const GException::out_of_range& e) {
20539 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20540 }
20541 catch (const GExceptionHandler& e) {
20542 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20543 }
20544 catch (const std::exception& e) {
20545 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20546 }
20547 }
20548 resultobj = SWIG_NewPointerObj((new GSkyDir(static_cast< const GSkyDir& >(result))), SWIGTYPE_p_GSkyDir, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GSkyDir(static_cast<
const GSkyDir& >(result))), swig_types[44], 0x1 | 0)
;
20549 return resultobj;
20550fail:
20551 return NULL__null;
20552}
20553
20554
20555SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuse_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20556 PyObject *resultobj = 0;
20557 GModelSpatialDiffuse *arg1 = (GModelSpatialDiffuse *) 0 ;
20558 GXmlElement *arg2 = 0 ;
20559 void *argp1 = 0 ;
20560 int res1 = 0 ;
20561 void *argp2 = 0 ;
20562 int res2 = 0 ;
20563 PyObject * obj0 = 0 ;
20564 PyObject * obj1 = 0 ;
20565
20566 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialDiffuse_read",&obj0,&obj1)) SWIG_failgoto fail;
20567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12]
, 0 | 0, 0)
;
20568 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuse_read" "', argument " "1"" of type '" "GModelSpatialDiffuse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuse_read"
"', argument " "1"" of type '" "GModelSpatialDiffuse *""'");
goto fail; } while(0)
;
20570 }
20571 arg1 = reinterpret_cast< GModelSpatialDiffuse * >(argp1);
20572 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0 | 0, 0)
;
20573 if (!SWIG_IsOK(res2)(res2 >= 0)) {
20574 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialDiffuse_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialDiffuse_read"
"', argument " "2"" of type '" "GXmlElement const &""'")
; goto fail; } while(0)
;
20575 }
20576 if (!argp2) {
20577 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuse_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuse_read" "', argument " "2"
" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
20578 }
20579 arg2 = reinterpret_cast< GXmlElement * >(argp2);
20580 {
20581 try {
20582 (arg1)->read((GXmlElement const &)*arg2);
20583 }
20584 catch (const GException::out_of_range& e) {
20585 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20586 }
20587 catch (const GExceptionHandler& e) {
20588 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20589 }
20590 catch (const std::exception& e) {
20591 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20592 }
20593 }
20594 resultobj = SWIG_Py_Void();
20595 return resultobj;
20596fail:
20597 return NULL__null;
20598}
20599
20600
20601SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuse_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20602 PyObject *resultobj = 0;
20603 GModelSpatialDiffuse *arg1 = (GModelSpatialDiffuse *) 0 ;
20604 GXmlElement *arg2 = 0 ;
20605 void *argp1 = 0 ;
20606 int res1 = 0 ;
20607 void *argp2 = 0 ;
20608 int res2 = 0 ;
20609 PyObject * obj0 = 0 ;
20610 PyObject * obj1 = 0 ;
20611
20612 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialDiffuse_write",&obj0,&obj1)) SWIG_failgoto fail;
20613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12]
, 0 | 0, 0)
;
20614 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuse_write" "', argument " "1"" of type '" "GModelSpatialDiffuse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuse_write"
"', argument " "1"" of type '" "GModelSpatialDiffuse const *"
"'"); goto fail; } while(0)
;
20616 }
20617 arg1 = reinterpret_cast< GModelSpatialDiffuse * >(argp1);
20618 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0, 0)
;
20619 if (!SWIG_IsOK(res2)(res2 >= 0)) {
20620 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialDiffuse_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialDiffuse_write"
"', argument " "2"" of type '" "GXmlElement &""'"); goto
fail; } while(0)
;
20621 }
20622 if (!argp2) {
20623 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuse_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuse_write" "', argument " "2"
" of type '" "GXmlElement &""'"); goto fail; } while(0)
;
20624 }
20625 arg2 = reinterpret_cast< GXmlElement * >(argp2);
20626 {
20627 try {
20628 ((GModelSpatialDiffuse const *)arg1)->write(*arg2);
20629 }
20630 catch (const GException::out_of_range& e) {
20631 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20632 }
20633 catch (const GExceptionHandler& e) {
20634 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20635 }
20636 catch (const std::exception& e) {
20637 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20638 }
20639 }
20640 resultobj = SWIG_Py_Void();
20641 return resultobj;
20642fail:
20643 return NULL__null;
20644}
20645
20646
20647SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GModelSpatialDiffuse_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20648 PyObject *obj;
20649 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
20650 SWIG_TypeNewClientData(SWIGTYPE_p_GModelSpatialDiffuseswig_types[12], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
20651 return SWIG_Py_Void();
20652}
20653
20654SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialDiffuseConst__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20655 PyObject *resultobj = 0;
20656 GModelSpatialDiffuseConst *result = 0 ;
20657
20658 if (!PyArg_ParseTuple(args,(char *)":new_GModelSpatialDiffuseConst")) SWIG_failgoto fail;
20659 {
20660 try {
20661 result = (GModelSpatialDiffuseConst *)new GModelSpatialDiffuseConst();
20662 }
20663 catch (const GException::out_of_range& e) {
20664 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20665 }
20666 catch (const GExceptionHandler& e) {
20667 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20668 }
20669 catch (const std::exception& e) {
20670 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20671 }
20672 }
20673 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialDiffuseConst, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[13], (
(0x1 << 1) | 0x1) | 0)
;
20674 return resultobj;
20675fail:
20676 return NULL__null;
20677}
20678
20679
20680SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialDiffuseConst__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20681 PyObject *resultobj = 0;
20682 GXmlElement *arg1 = 0 ;
20683 void *argp1 = 0 ;
20684 int res1 = 0 ;
20685 PyObject * obj0 = 0 ;
20686 GModelSpatialDiffuseConst *result = 0 ;
20687
20688 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpatialDiffuseConst",&obj0)) SWIG_failgoto fail;
20689 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[50]
, 0 | 0, 0)
;
20690 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpatialDiffuseConst" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpatialDiffuseConst"
"', argument " "1"" of type '" "GXmlElement const &""'")
; goto fail; } while(0)
;
20692 }
20693 if (!argp1) {
20694 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpatialDiffuseConst" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpatialDiffuseConst" "', argument "
"1"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
20695 }
20696 arg1 = reinterpret_cast< GXmlElement * >(argp1);
20697 {
20698 try {
20699 result = (GModelSpatialDiffuseConst *)new GModelSpatialDiffuseConst((GXmlElement const &)*arg1);
20700 }
20701 catch (const GException::out_of_range& e) {
20702 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20703 }
20704 catch (const GExceptionHandler& e) {
20705 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20706 }
20707 catch (const std::exception& e) {
20708 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20709 }
20710 }
20711 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialDiffuseConst, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[13], (
(0x1 << 1) | 0x1) | 0)
;
20712 return resultobj;
20713fail:
20714 return NULL__null;
20715}
20716
20717
20718SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialDiffuseConst__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20719 PyObject *resultobj = 0;
20720 double *arg1 = 0 ;
20721 double temp1 ;
20722 double val1 ;
20723 int ecode1 = 0 ;
20724 PyObject * obj0 = 0 ;
20725 GModelSpatialDiffuseConst *result = 0 ;
20726
20727 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpatialDiffuseConst",&obj0)) SWIG_failgoto fail;
20728 ecode1 = SWIG_AsVal_double(obj0, &val1);
20729 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
20730 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GModelSpatialDiffuseConst" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "new_GModelSpatialDiffuseConst"
"', argument " "1"" of type '" "double""'"); goto fail; } while
(0)
;
20731 }
20732 temp1 = static_cast< double >(val1);
20733 arg1 = &temp1;
20734 {
20735 try {
20736 result = (GModelSpatialDiffuseConst *)new GModelSpatialDiffuseConst((double const &)*arg1);
20737 }
20738 catch (const GException::out_of_range& e) {
20739 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20740 }
20741 catch (const GExceptionHandler& e) {
20742 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20743 }
20744 catch (const std::exception& e) {
20745 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20746 }
20747 }
20748 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialDiffuseConst, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[13], (
(0x1 << 1) | 0x1) | 0)
;
20749 return resultobj;
20750fail:
20751 return NULL__null;
20752}
20753
20754
20755SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialDiffuseConst__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20756 PyObject *resultobj = 0;
20757 GModelSpatialDiffuseConst *arg1 = 0 ;
20758 void *argp1 = 0 ;
20759 int res1 = 0 ;
20760 PyObject * obj0 = 0 ;
20761 GModelSpatialDiffuseConst *result = 0 ;
20762
20763 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpatialDiffuseConst",&obj0)) SWIG_failgoto fail;
20764 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GModelSpatialDiffuseConst, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13]
, 0 | 0, 0)
;
20765 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpatialDiffuseConst" "', argument " "1"" of type '" "GModelSpatialDiffuseConst const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpatialDiffuseConst"
"', argument " "1"" of type '" "GModelSpatialDiffuseConst const &"
"'"); goto fail; } while(0)
;
20767 }
20768 if (!argp1) {
20769 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpatialDiffuseConst" "', argument " "1"" of type '" "GModelSpatialDiffuseConst const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpatialDiffuseConst" "', argument "
"1"" of type '" "GModelSpatialDiffuseConst const &""'");
goto fail; } while(0)
;
20770 }
20771 arg1 = reinterpret_cast< GModelSpatialDiffuseConst * >(argp1);
20772 {
20773 try {
20774 result = (GModelSpatialDiffuseConst *)new GModelSpatialDiffuseConst((GModelSpatialDiffuseConst const &)*arg1);
20775 }
20776 catch (const GException::out_of_range& e) {
20777 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20778 }
20779 catch (const GExceptionHandler& e) {
20780 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20781 }
20782 catch (const std::exception& e) {
20783 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20784 }
20785 }
20786 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialDiffuseConst, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[13], (
(0x1 << 1) | 0x1) | 0)
;
20787 return resultobj;
20788fail:
20789 return NULL__null;
20790}
20791
20792
20793SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialDiffuseConst(PyObject *self, PyObject *args) {
20794 int argc;
20795 PyObject *argv[2];
20796 int ii;
20797
20798 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
20799 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
20800 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
20801 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
20802 }
20803 if (argc == 0) {
20804 return _wrap_new_GModelSpatialDiffuseConst__SWIG_0(self, args);
20805 }
20806 if (argc == 1) {
20807 int _v;
20808 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GXmlElement, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[50], 0, 0
)
;
20809 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
20810 if (_v) {
20811 return _wrap_new_GModelSpatialDiffuseConst__SWIG_1(self, args);
20812 }
20813 }
20814 if (argc == 1) {
20815 int _v;
20816 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GModelSpatialDiffuseConst, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[13], 0, 0
)
;
20817 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
20818 if (_v) {
20819 return _wrap_new_GModelSpatialDiffuseConst__SWIG_3(self, args);
20820 }
20821 }
20822 if (argc == 1) {
20823 int _v;
20824 {
20825 int res = SWIG_AsVal_double(argv[0], NULL__null);
20826 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
20827 }
20828 if (_v) {
20829 return _wrap_new_GModelSpatialDiffuseConst__SWIG_2(self, args);
20830 }
20831 }
20832
20833fail:
20834 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GModelSpatialDiffuseConst'.\n"
20835 " Possible C/C++ prototypes are:\n"
20836 " GModelSpatialDiffuseConst::GModelSpatialDiffuseConst()\n"
20837 " GModelSpatialDiffuseConst::GModelSpatialDiffuseConst(GXmlElement const &)\n"
20838 " GModelSpatialDiffuseConst::GModelSpatialDiffuseConst(double const &)\n"
20839 " GModelSpatialDiffuseConst::GModelSpatialDiffuseConst(GModelSpatialDiffuseConst const &)\n");
20840 return 0;
20841}
20842
20843
20844SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GModelSpatialDiffuseConst(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20845 PyObject *resultobj = 0;
20846 GModelSpatialDiffuseConst *arg1 = (GModelSpatialDiffuseConst *) 0 ;
20847 void *argp1 = 0 ;
20848 int res1 = 0 ;
20849 PyObject * obj0 = 0 ;
20850
20851 if (!PyArg_ParseTuple(args,(char *)"O:delete_GModelSpatialDiffuseConst",&obj0)) SWIG_failgoto fail;
20852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseConst, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13]
, 0x1 | 0, 0)
;
20853 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GModelSpatialDiffuseConst" "', argument " "1"" of type '" "GModelSpatialDiffuseConst *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GModelSpatialDiffuseConst"
"', argument " "1"" of type '" "GModelSpatialDiffuseConst *"
"'"); goto fail; } while(0)
;
20855 }
20856 arg1 = reinterpret_cast< GModelSpatialDiffuseConst * >(argp1);
20857 {
20858 try {
20859 delete arg1;
20860 }
20861 catch (const GException::out_of_range& e) {
20862 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20863 }
20864 catch (const GExceptionHandler& e) {
20865 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20866 }
20867 catch (const std::exception& e) {
20868 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20869 }
20870 }
20871 resultobj = SWIG_Py_Void();
20872 return resultobj;
20873fail:
20874 return NULL__null;
20875}
20876
20877
20878SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseConst_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20879 PyObject *resultobj = 0;
20880 GModelSpatialDiffuseConst *arg1 = (GModelSpatialDiffuseConst *) 0 ;
20881 void *argp1 = 0 ;
20882 int res1 = 0 ;
20883 PyObject * obj0 = 0 ;
20884
20885 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialDiffuseConst_clear",&obj0)) SWIG_failgoto fail;
20886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13]
, 0 | 0, 0)
;
20887 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseConst_clear" "', argument " "1"" of type '" "GModelSpatialDiffuseConst *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseConst_clear"
"', argument " "1"" of type '" "GModelSpatialDiffuseConst *"
"'"); goto fail; } while(0)
;
20889 }
20890 arg1 = reinterpret_cast< GModelSpatialDiffuseConst * >(argp1);
20891 {
20892 try {
20893 (arg1)->clear();
20894 }
20895 catch (const GException::out_of_range& e) {
20896 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20897 }
20898 catch (const GExceptionHandler& e) {
20899 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20900 }
20901 catch (const std::exception& e) {
20902 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20903 }
20904 }
20905 resultobj = SWIG_Py_Void();
20906 return resultobj;
20907fail:
20908 return NULL__null;
20909}
20910
20911
20912SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseConst_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20913 PyObject *resultobj = 0;
20914 GModelSpatialDiffuseConst *arg1 = (GModelSpatialDiffuseConst *) 0 ;
20915 void *argp1 = 0 ;
20916 int res1 = 0 ;
20917 PyObject * obj0 = 0 ;
20918 GModelSpatialDiffuseConst *result = 0 ;
20919
20920 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialDiffuseConst_clone",&obj0)) SWIG_failgoto fail;
20921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13]
, 0 | 0, 0)
;
20922 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseConst_clone" "', argument " "1"" of type '" "GModelSpatialDiffuseConst const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseConst_clone"
"', argument " "1"" of type '" "GModelSpatialDiffuseConst const *"
"'"); goto fail; } while(0)
;
20924 }
20925 arg1 = reinterpret_cast< GModelSpatialDiffuseConst * >(argp1);
20926 {
20927 try {
20928 result = (GModelSpatialDiffuseConst *)((GModelSpatialDiffuseConst const *)arg1)->clone();
20929 }
20930 catch (const GException::out_of_range& e) {
20931 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20932 }
20933 catch (const GExceptionHandler& e) {
20934 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20935 }
20936 catch (const std::exception& e) {
20937 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20938 }
20939 }
20940 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialDiffuseConst, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[13], 0
| 0)
;
20941 return resultobj;
20942fail:
20943 return NULL__null;
20944}
20945
20946
20947SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseConst_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20948 PyObject *resultobj = 0;
20949 GModelSpatialDiffuseConst *arg1 = (GModelSpatialDiffuseConst *) 0 ;
20950 void *argp1 = 0 ;
20951 int res1 = 0 ;
20952 PyObject * obj0 = 0 ;
20953 std::string result;
20954
20955 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialDiffuseConst_type",&obj0)) SWIG_failgoto fail;
20956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13]
, 0 | 0, 0)
;
20957 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseConst_type" "', argument " "1"" of type '" "GModelSpatialDiffuseConst const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseConst_type"
"', argument " "1"" of type '" "GModelSpatialDiffuseConst const *"
"'"); goto fail; } while(0)
;
20959 }
20960 arg1 = reinterpret_cast< GModelSpatialDiffuseConst * >(argp1);
20961 {
20962 try {
20963 result = ((GModelSpatialDiffuseConst const *)arg1)->type();
20964 }
20965 catch (const GException::out_of_range& e) {
20966 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20967 }
20968 catch (const GExceptionHandler& e) {
20969 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20970 }
20971 catch (const std::exception& e) {
20972 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20973 }
20974 }
20975 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
20976 return resultobj;
20977fail:
20978 return NULL__null;
20979}
20980
20981
20982SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseConst_eval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20983 PyObject *resultobj = 0;
20984 GModelSpatialDiffuseConst *arg1 = (GModelSpatialDiffuseConst *) 0 ;
20985 GPhoton *arg2 = 0 ;
20986 void *argp1 = 0 ;
20987 int res1 = 0 ;
20988 void *argp2 = 0 ;
20989 int res2 = 0 ;
20990 PyObject * obj0 = 0 ;
20991 PyObject * obj1 = 0 ;
20992 double result;
20993
20994 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialDiffuseConst_eval",&obj0,&obj1)) SWIG_failgoto fail;
20995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13]
, 0 | 0, 0)
;
20996 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseConst_eval" "', argument " "1"" of type '" "GModelSpatialDiffuseConst const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseConst_eval"
"', argument " "1"" of type '" "GModelSpatialDiffuseConst const *"
"'"); goto fail; } while(0)
;
20998 }
20999 arg1 = reinterpret_cast< GModelSpatialDiffuseConst * >(argp1);
21000 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[40]
, 0 | 0, 0)
;
21001 if (!SWIG_IsOK(res2)(res2 >= 0)) {
21002 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialDiffuseConst_eval" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialDiffuseConst_eval"
"', argument " "2"" of type '" "GPhoton const &""'"); goto
fail; } while(0)
;
21003 }
21004 if (!argp2) {
21005 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuseConst_eval" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuseConst_eval" "', argument "
"2"" of type '" "GPhoton const &""'"); goto fail; } while
(0)
;
21006 }
21007 arg2 = reinterpret_cast< GPhoton * >(argp2);
21008 {
21009 try {
21010 result = (double)((GModelSpatialDiffuseConst const *)arg1)->eval((GPhoton const &)*arg2);
21011 }
21012 catch (const GException::out_of_range& e) {
21013 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21014 }
21015 catch (const GExceptionHandler& e) {
21016 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21017 }
21018 catch (const std::exception& e) {
21019 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21020 }
21021 }
21022 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
21023 return resultobj;
21024fail:
21025 return NULL__null;
21026}
21027
21028
21029SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseConst_eval_gradients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21030 PyObject *resultobj = 0;
21031 GModelSpatialDiffuseConst *arg1 = (GModelSpatialDiffuseConst *) 0 ;
21032 GPhoton *arg2 = 0 ;
21033 void *argp1 = 0 ;
21034 int res1 = 0 ;
21035 void *argp2 = 0 ;
21036 int res2 = 0 ;
21037 PyObject * obj0 = 0 ;
21038 PyObject * obj1 = 0 ;
21039 double result;
21040
21041 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialDiffuseConst_eval_gradients",&obj0,&obj1)) SWIG_failgoto fail;
21042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13]
, 0 | 0, 0)
;
21043 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseConst_eval_gradients" "', argument " "1"" of type '" "GModelSpatialDiffuseConst const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseConst_eval_gradients"
"', argument " "1"" of type '" "GModelSpatialDiffuseConst const *"
"'"); goto fail; } while(0)
;
21045 }
21046 arg1 = reinterpret_cast< GModelSpatialDiffuseConst * >(argp1);
21047 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[40]
, 0 | 0, 0)
;
21048 if (!SWIG_IsOK(res2)(res2 >= 0)) {
21049 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialDiffuseConst_eval_gradients" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialDiffuseConst_eval_gradients"
"', argument " "2"" of type '" "GPhoton const &""'"); goto
fail; } while(0)
;
21050 }
21051 if (!argp2) {
21052 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuseConst_eval_gradients" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuseConst_eval_gradients" "', argument "
"2"" of type '" "GPhoton const &""'"); goto fail; } while
(0)
;
21053 }
21054 arg2 = reinterpret_cast< GPhoton * >(argp2);
21055 {
21056 try {
21057 result = (double)((GModelSpatialDiffuseConst const *)arg1)->eval_gradients((GPhoton const &)*arg2);
21058 }
21059 catch (const GException::out_of_range& e) {
21060 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21061 }
21062 catch (const GExceptionHandler& e) {
21063 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21064 }
21065 catch (const std::exception& e) {
21066 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21067 }
21068 }
21069 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
21070 return resultobj;
21071fail:
21072 return NULL__null;
21073}
21074
21075
21076SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseConst_mc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21077 PyObject *resultobj = 0;
21078 GModelSpatialDiffuseConst *arg1 = (GModelSpatialDiffuseConst *) 0 ;
21079 GEnergy *arg2 = 0 ;
21080 GTime *arg3 = 0 ;
21081 GRan *arg4 = 0 ;
21082 void *argp1 = 0 ;
21083 int res1 = 0 ;
21084 void *argp2 = 0 ;
21085 int res2 = 0 ;
21086 void *argp3 = 0 ;
21087 int res3 = 0 ;
21088 void *argp4 = 0 ;
21089 int res4 = 0 ;
21090 PyObject * obj0 = 0 ;
21091 PyObject * obj1 = 0 ;
21092 PyObject * obj2 = 0 ;
21093 PyObject * obj3 = 0 ;
21094 GSkyDir result;
21095
21096 if (!PyArg_ParseTuple(args,(char *)"OOOO:GModelSpatialDiffuseConst_mc",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
21097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13]
, 0 | 0, 0)
;
21098 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseConst_mc" "', argument " "1"" of type '" "GModelSpatialDiffuseConst const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseConst_mc"
"', argument " "1"" of type '" "GModelSpatialDiffuseConst const *"
"'"); goto fail; } while(0)
;
21100 }
21101 arg1 = reinterpret_cast< GModelSpatialDiffuseConst * >(argp1);
21102 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
21103 if (!SWIG_IsOK(res2)(res2 >= 0)) {
21104 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialDiffuseConst_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialDiffuseConst_mc"
"', argument " "2"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
21105 }
21106 if (!argp2) {
21107 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuseConst_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuseConst_mc" "', argument " "2"
" of type '" "GEnergy const &""'"); goto fail; } while(0)
;
21108 }
21109 arg2 = reinterpret_cast< GEnergy * >(argp2);
21110 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[46]
, 0 | 0, 0)
;
21111 if (!SWIG_IsOK(res3)(res3 >= 0)) {
21112 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpatialDiffuseConst_mc" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpatialDiffuseConst_mc"
"', argument " "3"" of type '" "GTime const &""'"); goto
fail; } while(0)
;
21113 }
21114 if (!argp3) {
21115 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuseConst_mc" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuseConst_mc" "', argument " "3"
" of type '" "GTime const &""'"); goto fail; } while(0)
;
21116 }
21117 arg3 = reinterpret_cast< GTime * >(argp3);
21118 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GRan, 0 )SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[42]
, 0, 0)
;
21119 if (!SWIG_IsOK(res4)(res4 >= 0)) {
21120 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelSpatialDiffuseConst_mc" "', argument " "4"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelSpatialDiffuseConst_mc"
"', argument " "4"" of type '" "GRan &""'"); goto fail; }
while(0)
;
21121 }
21122 if (!argp4) {
21123 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuseConst_mc" "', argument " "4"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuseConst_mc" "', argument " "4"
" of type '" "GRan &""'"); goto fail; } while(0)
;
21124 }
21125 arg4 = reinterpret_cast< GRan * >(argp4);
21126 {
21127 try {
21128 result = ((GModelSpatialDiffuseConst const *)arg1)->mc((GEnergy const &)*arg2,(GTime const &)*arg3,*arg4);
21129 }
21130 catch (const GException::out_of_range& e) {
21131 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21132 }
21133 catch (const GExceptionHandler& e) {
21134 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21135 }
21136 catch (const std::exception& e) {
21137 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21138 }
21139 }
21140 resultobj = SWIG_NewPointerObj((new GSkyDir(static_cast< const GSkyDir& >(result))), SWIGTYPE_p_GSkyDir, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GSkyDir(static_cast<
const GSkyDir& >(result))), swig_types[44], 0x1 | 0)
;
21141 return resultobj;
21142fail:
21143 return NULL__null;
21144}
21145
21146
21147SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseConst_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21148 PyObject *resultobj = 0;
21149 GModelSpatialDiffuseConst *arg1 = (GModelSpatialDiffuseConst *) 0 ;
21150 GXmlElement *arg2 = 0 ;
21151 void *argp1 = 0 ;
21152 int res1 = 0 ;
21153 void *argp2 = 0 ;
21154 int res2 = 0 ;
21155 PyObject * obj0 = 0 ;
21156 PyObject * obj1 = 0 ;
21157
21158 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialDiffuseConst_read",&obj0,&obj1)) SWIG_failgoto fail;
21159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13]
, 0 | 0, 0)
;
21160 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseConst_read" "', argument " "1"" of type '" "GModelSpatialDiffuseConst *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseConst_read"
"', argument " "1"" of type '" "GModelSpatialDiffuseConst *"
"'"); goto fail; } while(0)
;
21162 }
21163 arg1 = reinterpret_cast< GModelSpatialDiffuseConst * >(argp1);
21164 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0 | 0, 0)
;
21165 if (!SWIG_IsOK(res2)(res2 >= 0)) {
21166 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialDiffuseConst_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialDiffuseConst_read"
"', argument " "2"" of type '" "GXmlElement const &""'")
; goto fail; } while(0)
;
21167 }
21168 if (!argp2) {
21169 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuseConst_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuseConst_read" "', argument "
"2"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
21170 }
21171 arg2 = reinterpret_cast< GXmlElement * >(argp2);
21172 {
21173 try {
21174 (arg1)->read((GXmlElement const &)*arg2);
21175 }
21176 catch (const GException::out_of_range& e) {
21177 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21178 }
21179 catch (const GExceptionHandler& e) {
21180 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21181 }
21182 catch (const std::exception& e) {
21183 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21184 }
21185 }
21186 resultobj = SWIG_Py_Void();
21187 return resultobj;
21188fail:
21189 return NULL__null;
21190}
21191
21192
21193SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseConst_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21194 PyObject *resultobj = 0;
21195 GModelSpatialDiffuseConst *arg1 = (GModelSpatialDiffuseConst *) 0 ;
21196 GXmlElement *arg2 = 0 ;
21197 void *argp1 = 0 ;
21198 int res1 = 0 ;
21199 void *argp2 = 0 ;
21200 int res2 = 0 ;
21201 PyObject * obj0 = 0 ;
21202 PyObject * obj1 = 0 ;
21203
21204 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialDiffuseConst_write",&obj0,&obj1)) SWIG_failgoto fail;
21205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13]
, 0 | 0, 0)
;
21206 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseConst_write" "', argument " "1"" of type '" "GModelSpatialDiffuseConst const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseConst_write"
"', argument " "1"" of type '" "GModelSpatialDiffuseConst const *"
"'"); goto fail; } while(0)
;
21208 }
21209 arg1 = reinterpret_cast< GModelSpatialDiffuseConst * >(argp1);
21210 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0, 0)
;
21211 if (!SWIG_IsOK(res2)(res2 >= 0)) {
21212 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialDiffuseConst_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialDiffuseConst_write"
"', argument " "2"" of type '" "GXmlElement &""'"); goto
fail; } while(0)
;
21213 }
21214 if (!argp2) {
21215 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuseConst_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuseConst_write" "', argument "
"2"" of type '" "GXmlElement &""'"); goto fail; } while(
0)
;
21216 }
21217 arg2 = reinterpret_cast< GXmlElement * >(argp2);
21218 {
21219 try {
21220 ((GModelSpatialDiffuseConst const *)arg1)->write(*arg2);
21221 }
21222 catch (const GException::out_of_range& e) {
21223 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21224 }
21225 catch (const GExceptionHandler& e) {
21226 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21227 }
21228 catch (const std::exception& e) {
21229 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21230 }
21231 }
21232 resultobj = SWIG_Py_Void();
21233 return resultobj;
21234fail:
21235 return NULL__null;
21236}
21237
21238
21239SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseConst_value__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21240 PyObject *resultobj = 0;
21241 GModelSpatialDiffuseConst *arg1 = (GModelSpatialDiffuseConst *) 0 ;
21242 void *argp1 = 0 ;
21243 int res1 = 0 ;
21244 PyObject * obj0 = 0 ;
21245 double result;
21246
21247 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialDiffuseConst_value",&obj0)) SWIG_failgoto fail;
21248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13]
, 0 | 0, 0)
;
21249 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseConst_value" "', argument " "1"" of type '" "GModelSpatialDiffuseConst const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseConst_value"
"', argument " "1"" of type '" "GModelSpatialDiffuseConst const *"
"'"); goto fail; } while(0)
;
21251 }
21252 arg1 = reinterpret_cast< GModelSpatialDiffuseConst * >(argp1);
21253 {
21254 try {
21255 result = (double)((GModelSpatialDiffuseConst const *)arg1)->value();
21256 }
21257 catch (const GException::out_of_range& e) {
21258 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21259 }
21260 catch (const GExceptionHandler& e) {
21261 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21262 }
21263 catch (const std::exception& e) {
21264 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21265 }
21266 }
21267 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
21268 return resultobj;
21269fail:
21270 return NULL__null;
21271}
21272
21273
21274SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseConst_value__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21275 PyObject *resultobj = 0;
21276 GModelSpatialDiffuseConst *arg1 = (GModelSpatialDiffuseConst *) 0 ;
21277 double *arg2 = 0 ;
21278 void *argp1 = 0 ;
21279 int res1 = 0 ;
21280 double temp2 ;
21281 double val2 ;
21282 int ecode2 = 0 ;
21283 PyObject * obj0 = 0 ;
21284 PyObject * obj1 = 0 ;
21285
21286 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialDiffuseConst_value",&obj0,&obj1)) SWIG_failgoto fail;
21287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13]
, 0 | 0, 0)
;
21288 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseConst_value" "', argument " "1"" of type '" "GModelSpatialDiffuseConst *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseConst_value"
"', argument " "1"" of type '" "GModelSpatialDiffuseConst *"
"'"); goto fail; } while(0)
;
21290 }
21291 arg1 = reinterpret_cast< GModelSpatialDiffuseConst * >(argp1);
21292 ecode2 = SWIG_AsVal_double(obj1, &val2);
21293 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
21294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpatialDiffuseConst_value" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpatialDiffuseConst_value"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
21295 }
21296 temp2 = static_cast< double >(val2);
21297 arg2 = &temp2;
21298 {
21299 try {
21300 (arg1)->value((double const &)*arg2);
21301 }
21302 catch (const GException::out_of_range& e) {
21303 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21304 }
21305 catch (const GExceptionHandler& e) {
21306 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21307 }
21308 catch (const std::exception& e) {
21309 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21310 }
21311 }
21312 resultobj = SWIG_Py_Void();
21313 return resultobj;
21314fail:
21315 return NULL__null;
21316}
21317
21318
21319SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseConst_value(PyObject *self, PyObject *args) {
21320 int argc;
21321 PyObject *argv[3];
21322 int ii;
21323
21324 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
21325 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
21326 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
21327 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
21328 }
21329 if (argc == 1) {
21330 int _v;
21331 void *vptr = 0;
21332 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialDiffuseConst, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[13
], 0, 0)
;
21333 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
21334 if (_v) {
21335 return _wrap_GModelSpatialDiffuseConst_value__SWIG_0(self, args);
21336 }
21337 }
21338 if (argc == 2) {
21339 int _v;
21340 void *vptr = 0;
21341 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialDiffuseConst, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[13
], 0, 0)
;
21342 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
21343 if (_v) {
21344 {
21345 int res = SWIG_AsVal_double(argv[1], NULL__null);
21346 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
21347 }
21348 if (_v) {
21349 return _wrap_GModelSpatialDiffuseConst_value__SWIG_1(self, args);
21350 }
21351 }
21352 }
21353
21354fail:
21355 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialDiffuseConst_value'.\n"
21356 " Possible C/C++ prototypes are:\n"
21357 " GModelSpatialDiffuseConst::value() const\n"
21358 " GModelSpatialDiffuseConst::value(double const &)\n");
21359 return 0;
21360}
21361
21362
21363SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseConst_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21364 PyObject *resultobj = 0;
21365 GModelSpatialDiffuseConst *arg1 = (GModelSpatialDiffuseConst *) 0 ;
21366 void *argp1 = 0 ;
21367 int res1 = 0 ;
21368 PyObject * obj0 = 0 ;
21369 GModelSpatialDiffuseConst result;
21370
21371 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialDiffuseConst_copy",&obj0)) SWIG_failgoto fail;
21372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13]
, 0 | 0, 0)
;
21373 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseConst_copy" "', argument " "1"" of type '" "GModelSpatialDiffuseConst *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseConst_copy"
"', argument " "1"" of type '" "GModelSpatialDiffuseConst *"
"'"); goto fail; } while(0)
;
21375 }
21376 arg1 = reinterpret_cast< GModelSpatialDiffuseConst * >(argp1);
21377 {
21378 try {
21379 result = GModelSpatialDiffuseConst_copy(arg1);
21380 }
21381 catch (const GException::out_of_range& e) {
21382 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21383 }
21384 catch (const GExceptionHandler& e) {
21385 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21386 }
21387 catch (const std::exception& e) {
21388 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21389 }
21390 }
21391 resultobj = SWIG_NewPointerObj((new GModelSpatialDiffuseConst(static_cast< const GModelSpatialDiffuseConst& >(result))), SWIGTYPE_p_GModelSpatialDiffuseConst, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GModelSpatialDiffuseConst
(static_cast< const GModelSpatialDiffuseConst& >(result
))), swig_types[13], 0x1 | 0)
;
21392 return resultobj;
21393fail:
21394 return NULL__null;
21395}
21396
21397
21398SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GModelSpatialDiffuseConst_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21399 PyObject *obj;
21400 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
21401 SWIG_TypeNewClientData(SWIGTYPE_p_GModelSpatialDiffuseConstswig_types[13], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
21402 return SWIG_Py_Void();
21403}
21404
21405SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialDiffuseCube__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21406 PyObject *resultobj = 0;
21407 GModelSpatialDiffuseCube *result = 0 ;
21408
21409 if (!PyArg_ParseTuple(args,(char *)":new_GModelSpatialDiffuseCube")) SWIG_failgoto fail;
21410 {
21411 try {
21412 result = (GModelSpatialDiffuseCube *)new GModelSpatialDiffuseCube();
21413 }
21414 catch (const GException::out_of_range& e) {
21415 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21416 }
21417 catch (const GExceptionHandler& e) {
21418 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21419 }
21420 catch (const std::exception& e) {
21421 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21422 }
21423 }
21424 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialDiffuseCube, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[14], (
(0x1 << 1) | 0x1) | 0)
;
21425 return resultobj;
21426fail:
21427 return NULL__null;
21428}
21429
21430
21431SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialDiffuseCube__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21432 PyObject *resultobj = 0;
21433 GXmlElement *arg1 = 0 ;
21434 void *argp1 = 0 ;
21435 int res1 = 0 ;
21436 PyObject * obj0 = 0 ;
21437 GModelSpatialDiffuseCube *result = 0 ;
21438
21439 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpatialDiffuseCube",&obj0)) SWIG_failgoto fail;
21440 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[50]
, 0 | 0, 0)
;
21441 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpatialDiffuseCube" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpatialDiffuseCube"
"', argument " "1"" of type '" "GXmlElement const &""'")
; goto fail; } while(0)
;
21443 }
21444 if (!argp1) {
21445 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpatialDiffuseCube" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpatialDiffuseCube" "', argument " "1"
" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
21446 }
21447 arg1 = reinterpret_cast< GXmlElement * >(argp1);
21448 {
21449 try {
21450 result = (GModelSpatialDiffuseCube *)new GModelSpatialDiffuseCube((GXmlElement const &)*arg1);
21451 }
21452 catch (const GException::out_of_range& e) {
21453 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21454 }
21455 catch (const GExceptionHandler& e) {
21456 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21457 }
21458 catch (const std::exception& e) {
21459 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21460 }
21461 }
21462 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialDiffuseCube, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[14], (
(0x1 << 1) | 0x1) | 0)
;
21463 return resultobj;
21464fail:
21465 return NULL__null;
21466}
21467
21468
21469SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialDiffuseCube__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21470 PyObject *resultobj = 0;
21471 std::string *arg1 = 0 ;
21472 double *arg2 = 0 ;
21473 int res1 = SWIG_OLDOBJ((0)) ;
21474 double temp2 ;
21475 double val2 ;
21476 int ecode2 = 0 ;
21477 PyObject * obj0 = 0 ;
21478 PyObject * obj1 = 0 ;
21479 GModelSpatialDiffuseCube *result = 0 ;
21480
21481 if (!PyArg_ParseTuple(args,(char *)"OO:new_GModelSpatialDiffuseCube",&obj0,&obj1)) SWIG_failgoto fail;
21482 {
21483 std::string *ptr = (std::string *)0;
21484 res1 = SWIG_AsPtr_std_string(obj0, &ptr);
21485 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpatialDiffuseCube" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpatialDiffuseCube"
"', argument " "1"" of type '" "std::string const &""'")
; goto fail; } while(0)
;
21487 }
21488 if (!ptr) {
21489 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpatialDiffuseCube" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpatialDiffuseCube" "', argument " "1"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
21490 }
21491 arg1 = ptr;
21492 }
21493 ecode2 = SWIG_AsVal_double(obj1, &val2);
21494 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
21495 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GModelSpatialDiffuseCube" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "new_GModelSpatialDiffuseCube"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
21496 }
21497 temp2 = static_cast< double >(val2);
21498 arg2 = &temp2;
21499 {
21500 try {
21501 result = (GModelSpatialDiffuseCube *)new GModelSpatialDiffuseCube((std::string const &)*arg1,(double const &)*arg2);
21502 }
21503 catch (const GException::out_of_range& e) {
21504 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21505 }
21506 catch (const GExceptionHandler& e) {
21507 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21508 }
21509 catch (const std::exception& e) {
21510 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21511 }
21512 }
21513 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialDiffuseCube, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[14], (
(0x1 << 1) | 0x1) | 0)
;
21514 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
21515 return resultobj;
21516fail:
21517 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
21518 return NULL__null;
21519}
21520
21521
21522SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialDiffuseCube__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21523 PyObject *resultobj = 0;
21524 std::string *arg1 = 0 ;
21525 int res1 = SWIG_OLDOBJ((0)) ;
21526 PyObject * obj0 = 0 ;
21527 GModelSpatialDiffuseCube *result = 0 ;
21528
21529 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpatialDiffuseCube",&obj0)) SWIG_failgoto fail;
21530 {
21531 std::string *ptr = (std::string *)0;
21532 res1 = SWIG_AsPtr_std_string(obj0, &ptr);
21533 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpatialDiffuseCube" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpatialDiffuseCube"
"', argument " "1"" of type '" "std::string const &""'")
; goto fail; } while(0)
;
21535 }
21536 if (!ptr) {
21537 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpatialDiffuseCube" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpatialDiffuseCube" "', argument " "1"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
21538 }
21539 arg1 = ptr;
21540 }
21541 {
21542 try {
21543 result = (GModelSpatialDiffuseCube *)new GModelSpatialDiffuseCube((std::string const &)*arg1);
21544 }
21545 catch (const GException::out_of_range& e) {
21546 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21547 }
21548 catch (const GExceptionHandler& e) {
21549 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21550 }
21551 catch (const std::exception& e) {
21552 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21553 }
21554 }
21555 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialDiffuseCube, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[14], (
(0x1 << 1) | 0x1) | 0)
;
21556 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
21557 return resultobj;
21558fail:
21559 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
21560 return NULL__null;
21561}
21562
21563
21564SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialDiffuseCube__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21565 PyObject *resultobj = 0;
21566 GSkymap *arg1 = 0 ;
21567 GEnergies *arg2 = 0 ;
21568 double *arg3 = 0 ;
21569 void *argp1 = 0 ;
21570 int res1 = 0 ;
21571 void *argp2 = 0 ;
21572 int res2 = 0 ;
21573 double temp3 ;
21574 double val3 ;
21575 int ecode3 = 0 ;
21576 PyObject * obj0 = 0 ;
21577 PyObject * obj1 = 0 ;
21578 PyObject * obj2 = 0 ;
21579 GModelSpatialDiffuseCube *result = 0 ;
21580
21581 if (!PyArg_ParseTuple(args,(char *)"OOO:new_GModelSpatialDiffuseCube",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
21582 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GSkymap, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[45]
, 0 | 0, 0)
;
21583 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpatialDiffuseCube" "', argument " "1"" of type '" "GSkymap const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpatialDiffuseCube"
"', argument " "1"" of type '" "GSkymap const &""'"); goto
fail; } while(0)
;
21585 }
21586 if (!argp1) {
21587 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpatialDiffuseCube" "', argument " "1"" of type '" "GSkymap const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpatialDiffuseCube" "', argument " "1"
" of type '" "GSkymap const &""'"); goto fail; } while(0)
;
21588 }
21589 arg1 = reinterpret_cast< GSkymap * >(argp1);
21590 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergies, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[2],
0 | 0, 0)
;
21591 if (!SWIG_IsOK(res2)(res2 >= 0)) {
21592 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GModelSpatialDiffuseCube" "', argument " "2"" of type '" "GEnergies const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "new_GModelSpatialDiffuseCube"
"', argument " "2"" of type '" "GEnergies const &""'"); goto
fail; } while(0)
;
21593 }
21594 if (!argp2) {
21595 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpatialDiffuseCube" "', argument " "2"" of type '" "GEnergies const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpatialDiffuseCube" "', argument " "2"
" of type '" "GEnergies const &""'"); goto fail; } while(
0)
;
21596 }
21597 arg2 = reinterpret_cast< GEnergies * >(argp2);
21598 ecode3 = SWIG_AsVal_double(obj2, &val3);
21599 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
21600 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_GModelSpatialDiffuseCube" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "new_GModelSpatialDiffuseCube"
"', argument " "3"" of type '" "double""'"); goto fail; } while
(0)
;
21601 }
21602 temp3 = static_cast< double >(val3);
21603 arg3 = &temp3;
21604 {
21605 try {
21606 result = (GModelSpatialDiffuseCube *)new GModelSpatialDiffuseCube((GSkymap const &)*arg1,(GEnergies const &)*arg2,(double const &)*arg3);
21607 }
21608 catch (const GException::out_of_range& e) {
21609 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21610 }
21611 catch (const GExceptionHandler& e) {
21612 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21613 }
21614 catch (const std::exception& e) {
21615 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21616 }
21617 }
21618 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialDiffuseCube, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[14], (
(0x1 << 1) | 0x1) | 0)
;
21619 return resultobj;
21620fail:
21621 return NULL__null;
21622}
21623
21624
21625SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialDiffuseCube__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21626 PyObject *resultobj = 0;
21627 GSkymap *arg1 = 0 ;
21628 GEnergies *arg2 = 0 ;
21629 void *argp1 = 0 ;
21630 int res1 = 0 ;
21631 void *argp2 = 0 ;
21632 int res2 = 0 ;
21633 PyObject * obj0 = 0 ;
21634 PyObject * obj1 = 0 ;
21635 GModelSpatialDiffuseCube *result = 0 ;
21636
21637 if (!PyArg_ParseTuple(args,(char *)"OO:new_GModelSpatialDiffuseCube",&obj0,&obj1)) SWIG_failgoto fail;
21638 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GSkymap, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[45]
, 0 | 0, 0)
;
21639 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpatialDiffuseCube" "', argument " "1"" of type '" "GSkymap const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpatialDiffuseCube"
"', argument " "1"" of type '" "GSkymap const &""'"); goto
fail; } while(0)
;
21641 }
21642 if (!argp1) {
21643 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpatialDiffuseCube" "', argument " "1"" of type '" "GSkymap const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpatialDiffuseCube" "', argument " "1"
" of type '" "GSkymap const &""'"); goto fail; } while(0)
;
21644 }
21645 arg1 = reinterpret_cast< GSkymap * >(argp1);
21646 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergies, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[2],
0 | 0, 0)
;
21647 if (!SWIG_IsOK(res2)(res2 >= 0)) {
21648 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GModelSpatialDiffuseCube" "', argument " "2"" of type '" "GEnergies const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "new_GModelSpatialDiffuseCube"
"', argument " "2"" of type '" "GEnergies const &""'"); goto
fail; } while(0)
;
21649 }
21650 if (!argp2) {
21651 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpatialDiffuseCube" "', argument " "2"" of type '" "GEnergies const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpatialDiffuseCube" "', argument " "2"
" of type '" "GEnergies const &""'"); goto fail; } while(
0)
;
21652 }
21653 arg2 = reinterpret_cast< GEnergies * >(argp2);
21654 {
21655 try {
21656 result = (GModelSpatialDiffuseCube *)new GModelSpatialDiffuseCube((GSkymap const &)*arg1,(GEnergies const &)*arg2);
21657 }
21658 catch (const GException::out_of_range& e) {
21659 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21660 }
21661 catch (const GExceptionHandler& e) {
21662 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21663 }
21664 catch (const std::exception& e) {
21665 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21666 }
21667 }
21668 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialDiffuseCube, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[14], (
(0x1 << 1) | 0x1) | 0)
;
21669 return resultobj;
21670fail:
21671 return NULL__null;
21672}
21673
21674
21675SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialDiffuseCube__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21676 PyObject *resultobj = 0;
21677 GModelSpatialDiffuseCube *arg1 = 0 ;
21678 void *argp1 = 0 ;
21679 int res1 = 0 ;
21680 PyObject * obj0 = 0 ;
21681 GModelSpatialDiffuseCube *result = 0 ;
21682
21683 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpatialDiffuseCube",&obj0)) SWIG_failgoto fail;
21684 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GModelSpatialDiffuseCube, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14]
, 0 | 0, 0)
;
21685 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpatialDiffuseCube" "', argument " "1"" of type '" "GModelSpatialDiffuseCube const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpatialDiffuseCube"
"', argument " "1"" of type '" "GModelSpatialDiffuseCube const &"
"'"); goto fail; } while(0)
;
21687 }
21688 if (!argp1) {
21689 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpatialDiffuseCube" "', argument " "1"" of type '" "GModelSpatialDiffuseCube const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpatialDiffuseCube" "', argument " "1"
" of type '" "GModelSpatialDiffuseCube const &""'"); goto
fail; } while(0)
;
21690 }
21691 arg1 = reinterpret_cast< GModelSpatialDiffuseCube * >(argp1);
21692 {
21693 try {
21694 result = (GModelSpatialDiffuseCube *)new GModelSpatialDiffuseCube((GModelSpatialDiffuseCube const &)*arg1);
21695 }
21696 catch (const GException::out_of_range& e) {
21697 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21698 }
21699 catch (const GExceptionHandler& e) {
21700 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21701 }
21702 catch (const std::exception& e) {
21703 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21704 }
21705 }
21706 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialDiffuseCube, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[14], (
(0x1 << 1) | 0x1) | 0)
;
21707 return resultobj;
21708fail:
21709 return NULL__null;
21710}
21711
21712
21713SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialDiffuseCube(PyObject *self, PyObject *args) {
21714 int argc;
21715 PyObject *argv[4];
21716 int ii;
21717
21718 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
21719 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
21720 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
21721 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
21722 }
21723 if (argc == 0) {
21724 return _wrap_new_GModelSpatialDiffuseCube__SWIG_0(self, args);
21725 }
21726 if (argc == 1) {
21727 int _v;
21728 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GXmlElement, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[50], 0, 0
)
;
21729 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
21730 if (_v) {
21731 return _wrap_new_GModelSpatialDiffuseCube__SWIG_1(self, args);
21732 }
21733 }
21734 if (argc == 1) {
21735 int _v;
21736 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GModelSpatialDiffuseCube, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[14], 0, 0
)
;
21737 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
21738 if (_v) {
21739 return _wrap_new_GModelSpatialDiffuseCube__SWIG_6(self, args);
21740 }
21741 }
21742 if (argc == 1) {
21743 int _v;
21744 int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
21745 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
21746 if (_v) {
21747 return _wrap_new_GModelSpatialDiffuseCube__SWIG_3(self, args);
21748 }
21749 }
21750 if (argc == 2) {
21751 int _v;
21752 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GSkymap, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[45], 0, 0
)
;
21753 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
21754 if (_v) {
21755 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GEnergies, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[2], 0, 0);
21756 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
21757 if (_v) {
21758 return _wrap_new_GModelSpatialDiffuseCube__SWIG_5(self, args);
21759 }
21760 }
21761 }
21762 if (argc == 2) {
21763 int _v;
21764 int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
21765 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
21766 if (_v) {
21767 {
21768 int res = SWIG_AsVal_double(argv[1], NULL__null);
21769 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
21770 }
21771 if (_v) {
21772 return _wrap_new_GModelSpatialDiffuseCube__SWIG_2(self, args);
21773 }
21774 }
21775 }
21776 if (argc == 3) {
21777 int _v;
21778 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GSkymap, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[45], 0, 0
)
;
21779 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
21780 if (_v) {
21781 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GEnergies, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[2], 0, 0);
21782 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
21783 if (_v) {
21784 {
21785 int res = SWIG_AsVal_double(argv[2], NULL__null);
21786 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
21787 }
21788 if (_v) {
21789 return _wrap_new_GModelSpatialDiffuseCube__SWIG_4(self, args);
21790 }
21791 }
21792 }
21793 }
21794
21795fail:
21796 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GModelSpatialDiffuseCube'.\n"
21797 " Possible C/C++ prototypes are:\n"
21798 " GModelSpatialDiffuseCube::GModelSpatialDiffuseCube()\n"
21799 " GModelSpatialDiffuseCube::GModelSpatialDiffuseCube(GXmlElement const &)\n"
21800 " GModelSpatialDiffuseCube::GModelSpatialDiffuseCube(std::string const &,double const &)\n"
21801 " GModelSpatialDiffuseCube::GModelSpatialDiffuseCube(std::string const &)\n"
21802 " GModelSpatialDiffuseCube::GModelSpatialDiffuseCube(GSkymap const &,GEnergies const &,double const &)\n"
21803 " GModelSpatialDiffuseCube::GModelSpatialDiffuseCube(GSkymap const &,GEnergies const &)\n"
21804 " GModelSpatialDiffuseCube::GModelSpatialDiffuseCube(GModelSpatialDiffuseCube const &)\n");
21805 return 0;
21806}
21807
21808
21809SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GModelSpatialDiffuseCube(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21810 PyObject *resultobj = 0;
21811 GModelSpatialDiffuseCube *arg1 = (GModelSpatialDiffuseCube *) 0 ;
21812 void *argp1 = 0 ;
21813 int res1 = 0 ;
21814 PyObject * obj0 = 0 ;
21815
21816 if (!PyArg_ParseTuple(args,(char *)"O:delete_GModelSpatialDiffuseCube",&obj0)) SWIG_failgoto fail;
21817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseCube, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14]
, 0x1 | 0, 0)
;
21818 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GModelSpatialDiffuseCube" "', argument " "1"" of type '" "GModelSpatialDiffuseCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GModelSpatialDiffuseCube"
"', argument " "1"" of type '" "GModelSpatialDiffuseCube *""'"
); goto fail; } while(0)
;
21820 }
21821 arg1 = reinterpret_cast< GModelSpatialDiffuseCube * >(argp1);
21822 {
21823 try {
21824 delete arg1;
21825 }
21826 catch (const GException::out_of_range& e) {
21827 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21828 }
21829 catch (const GExceptionHandler& e) {
21830 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21831 }
21832 catch (const std::exception& e) {
21833 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21834 }
21835 }
21836 resultobj = SWIG_Py_Void();
21837 return resultobj;
21838fail:
21839 return NULL__null;
21840}
21841
21842
21843SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseCube_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21844 PyObject *resultobj = 0;
21845 GModelSpatialDiffuseCube *arg1 = (GModelSpatialDiffuseCube *) 0 ;
21846 void *argp1 = 0 ;
21847 int res1 = 0 ;
21848 PyObject * obj0 = 0 ;
21849
21850 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialDiffuseCube_clear",&obj0)) SWIG_failgoto fail;
21851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14]
, 0 | 0, 0)
;
21852 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseCube_clear" "', argument " "1"" of type '" "GModelSpatialDiffuseCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseCube_clear"
"', argument " "1"" of type '" "GModelSpatialDiffuseCube *""'"
); goto fail; } while(0)
;
21854 }
21855 arg1 = reinterpret_cast< GModelSpatialDiffuseCube * >(argp1);
21856 {
21857 try {
21858 (arg1)->clear();
21859 }
21860 catch (const GException::out_of_range& e) {
21861 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21862 }
21863 catch (const GExceptionHandler& e) {
21864 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21865 }
21866 catch (const std::exception& e) {
21867 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21868 }
21869 }
21870 resultobj = SWIG_Py_Void();
21871 return resultobj;
21872fail:
21873 return NULL__null;
21874}
21875
21876
21877SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseCube_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21878 PyObject *resultobj = 0;
21879 GModelSpatialDiffuseCube *arg1 = (GModelSpatialDiffuseCube *) 0 ;
21880 void *argp1 = 0 ;
21881 int res1 = 0 ;
21882 PyObject * obj0 = 0 ;
21883 GModelSpatialDiffuseCube *result = 0 ;
21884
21885 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialDiffuseCube_clone",&obj0)) SWIG_failgoto fail;
21886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14]
, 0 | 0, 0)
;
21887 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseCube_clone" "', argument " "1"" of type '" "GModelSpatialDiffuseCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseCube_clone"
"', argument " "1"" of type '" "GModelSpatialDiffuseCube const *"
"'"); goto fail; } while(0)
;
21889 }
21890 arg1 = reinterpret_cast< GModelSpatialDiffuseCube * >(argp1);
21891 {
21892 try {
21893 result = (GModelSpatialDiffuseCube *)((GModelSpatialDiffuseCube const *)arg1)->clone();
21894 }
21895 catch (const GException::out_of_range& e) {
21896 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21897 }
21898 catch (const GExceptionHandler& e) {
21899 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21900 }
21901 catch (const std::exception& e) {
21902 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21903 }
21904 }
21905 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialDiffuseCube, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[14], 0
| 0)
;
21906 return resultobj;
21907fail:
21908 return NULL__null;
21909}
21910
21911
21912SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseCube_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21913 PyObject *resultobj = 0;
21914 GModelSpatialDiffuseCube *arg1 = (GModelSpatialDiffuseCube *) 0 ;
21915 void *argp1 = 0 ;
21916 int res1 = 0 ;
21917 PyObject * obj0 = 0 ;
21918 std::string result;
21919
21920 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialDiffuseCube_type",&obj0)) SWIG_failgoto fail;
21921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14]
, 0 | 0, 0)
;
21922 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseCube_type" "', argument " "1"" of type '" "GModelSpatialDiffuseCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseCube_type"
"', argument " "1"" of type '" "GModelSpatialDiffuseCube const *"
"'"); goto fail; } while(0)
;
21924 }
21925 arg1 = reinterpret_cast< GModelSpatialDiffuseCube * >(argp1);
21926 {
21927 try {
21928 result = ((GModelSpatialDiffuseCube const *)arg1)->type();
21929 }
21930 catch (const GException::out_of_range& e) {
21931 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21932 }
21933 catch (const GExceptionHandler& e) {
21934 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21935 }
21936 catch (const std::exception& e) {
21937 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21938 }
21939 }
21940 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
21941 return resultobj;
21942fail:
21943 return NULL__null;
21944}
21945
21946
21947SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseCube_eval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21948 PyObject *resultobj = 0;
21949 GModelSpatialDiffuseCube *arg1 = (GModelSpatialDiffuseCube *) 0 ;
21950 GPhoton *arg2 = 0 ;
21951 void *argp1 = 0 ;
21952 int res1 = 0 ;
21953 void *argp2 = 0 ;
21954 int res2 = 0 ;
21955 PyObject * obj0 = 0 ;
21956 PyObject * obj1 = 0 ;
21957 double result;
21958
21959 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialDiffuseCube_eval",&obj0,&obj1)) SWIG_failgoto fail;
21960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14]
, 0 | 0, 0)
;
21961 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseCube_eval" "', argument " "1"" of type '" "GModelSpatialDiffuseCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseCube_eval"
"', argument " "1"" of type '" "GModelSpatialDiffuseCube const *"
"'"); goto fail; } while(0)
;
21963 }
21964 arg1 = reinterpret_cast< GModelSpatialDiffuseCube * >(argp1);
21965 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[40]
, 0 | 0, 0)
;
21966 if (!SWIG_IsOK(res2)(res2 >= 0)) {
21967 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialDiffuseCube_eval" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialDiffuseCube_eval"
"', argument " "2"" of type '" "GPhoton const &""'"); goto
fail; } while(0)
;
21968 }
21969 if (!argp2) {
21970 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuseCube_eval" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuseCube_eval" "', argument "
"2"" of type '" "GPhoton const &""'"); goto fail; } while
(0)
;
21971 }
21972 arg2 = reinterpret_cast< GPhoton * >(argp2);
21973 {
21974 try {
21975 result = (double)((GModelSpatialDiffuseCube const *)arg1)->eval((GPhoton const &)*arg2);
21976 }
21977 catch (const GException::out_of_range& e) {
21978 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21979 }
21980 catch (const GExceptionHandler& e) {
21981 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21982 }
21983 catch (const std::exception& e) {
21984 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21985 }
21986 }
21987 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
21988 return resultobj;
21989fail:
21990 return NULL__null;
21991}
21992
21993
21994SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseCube_eval_gradients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21995 PyObject *resultobj = 0;
21996 GModelSpatialDiffuseCube *arg1 = (GModelSpatialDiffuseCube *) 0 ;
21997 GPhoton *arg2 = 0 ;
21998 void *argp1 = 0 ;
21999 int res1 = 0 ;
22000 void *argp2 = 0 ;
22001 int res2 = 0 ;
22002 PyObject * obj0 = 0 ;
22003 PyObject * obj1 = 0 ;
22004 double result;
22005
22006 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialDiffuseCube_eval_gradients",&obj0,&obj1)) SWIG_failgoto fail;
22007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14]
, 0 | 0, 0)
;
22008 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseCube_eval_gradients" "', argument " "1"" of type '" "GModelSpatialDiffuseCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseCube_eval_gradients"
"', argument " "1"" of type '" "GModelSpatialDiffuseCube const *"
"'"); goto fail; } while(0)
;
22010 }
22011 arg1 = reinterpret_cast< GModelSpatialDiffuseCube * >(argp1);
22012 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[40]
, 0 | 0, 0)
;
22013 if (!SWIG_IsOK(res2)(res2 >= 0)) {
22014 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialDiffuseCube_eval_gradients" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialDiffuseCube_eval_gradients"
"', argument " "2"" of type '" "GPhoton const &""'"); goto
fail; } while(0)
;
22015 }
22016 if (!argp2) {
22017 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuseCube_eval_gradients" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuseCube_eval_gradients" "', argument "
"2"" of type '" "GPhoton const &""'"); goto fail; } while
(0)
;
22018 }
22019 arg2 = reinterpret_cast< GPhoton * >(argp2);
22020 {
22021 try {
22022 result = (double)((GModelSpatialDiffuseCube const *)arg1)->eval_gradients((GPhoton const &)*arg2);
22023 }
22024 catch (const GException::out_of_range& e) {
22025 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22026 }
22027 catch (const GExceptionHandler& e) {
22028 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22029 }
22030 catch (const std::exception& e) {
22031 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22032 }
22033 }
22034 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
22035 return resultobj;
22036fail:
22037 return NULL__null;
22038}
22039
22040
22041SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseCube_mc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22042 PyObject *resultobj = 0;
22043 GModelSpatialDiffuseCube *arg1 = (GModelSpatialDiffuseCube *) 0 ;
22044 GEnergy *arg2 = 0 ;
22045 GTime *arg3 = 0 ;
22046 GRan *arg4 = 0 ;
22047 void *argp1 = 0 ;
22048 int res1 = 0 ;
22049 void *argp2 = 0 ;
22050 int res2 = 0 ;
22051 void *argp3 = 0 ;
22052 int res3 = 0 ;
22053 void *argp4 = 0 ;
22054 int res4 = 0 ;
22055 PyObject * obj0 = 0 ;
22056 PyObject * obj1 = 0 ;
22057 PyObject * obj2 = 0 ;
22058 PyObject * obj3 = 0 ;
22059 GSkyDir result;
22060
22061 if (!PyArg_ParseTuple(args,(char *)"OOOO:GModelSpatialDiffuseCube_mc",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
22062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14]
, 0 | 0, 0)
;
22063 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseCube_mc" "', argument " "1"" of type '" "GModelSpatialDiffuseCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseCube_mc"
"', argument " "1"" of type '" "GModelSpatialDiffuseCube const *"
"'"); goto fail; } while(0)
;
22065 }
22066 arg1 = reinterpret_cast< GModelSpatialDiffuseCube * >(argp1);
22067 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
22068 if (!SWIG_IsOK(res2)(res2 >= 0)) {
22069 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialDiffuseCube_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialDiffuseCube_mc"
"', argument " "2"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
22070 }
22071 if (!argp2) {
22072 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuseCube_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuseCube_mc" "', argument " "2"
" of type '" "GEnergy const &""'"); goto fail; } while(0)
;
22073 }
22074 arg2 = reinterpret_cast< GEnergy * >(argp2);
22075 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[46]
, 0 | 0, 0)
;
22076 if (!SWIG_IsOK(res3)(res3 >= 0)) {
22077 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpatialDiffuseCube_mc" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpatialDiffuseCube_mc"
"', argument " "3"" of type '" "GTime const &""'"); goto
fail; } while(0)
;
22078 }
22079 if (!argp3) {
22080 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuseCube_mc" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuseCube_mc" "', argument " "3"
" of type '" "GTime const &""'"); goto fail; } while(0)
;
22081 }
22082 arg3 = reinterpret_cast< GTime * >(argp3);
22083 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GRan, 0 )SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[42]
, 0, 0)
;
22084 if (!SWIG_IsOK(res4)(res4 >= 0)) {
22085 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelSpatialDiffuseCube_mc" "', argument " "4"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelSpatialDiffuseCube_mc"
"', argument " "4"" of type '" "GRan &""'"); goto fail; }
while(0)
;
22086 }
22087 if (!argp4) {
22088 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuseCube_mc" "', argument " "4"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuseCube_mc" "', argument " "4"
" of type '" "GRan &""'"); goto fail; } while(0)
;
22089 }
22090 arg4 = reinterpret_cast< GRan * >(argp4);
22091 {
22092 try {
22093 result = ((GModelSpatialDiffuseCube const *)arg1)->mc((GEnergy const &)*arg2,(GTime const &)*arg3,*arg4);
22094 }
22095 catch (const GException::out_of_range& e) {
22096 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22097 }
22098 catch (const GExceptionHandler& e) {
22099 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22100 }
22101 catch (const std::exception& e) {
22102 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22103 }
22104 }
22105 resultobj = SWIG_NewPointerObj((new GSkyDir(static_cast< const GSkyDir& >(result))), SWIGTYPE_p_GSkyDir, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GSkyDir(static_cast<
const GSkyDir& >(result))), swig_types[44], 0x1 | 0)
;
22106 return resultobj;
22107fail:
22108 return NULL__null;
22109}
22110
22111
22112SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseCube_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22113 PyObject *resultobj = 0;
22114 GModelSpatialDiffuseCube *arg1 = (GModelSpatialDiffuseCube *) 0 ;
22115 GXmlElement *arg2 = 0 ;
22116 void *argp1 = 0 ;
22117 int res1 = 0 ;
22118 void *argp2 = 0 ;
22119 int res2 = 0 ;
22120 PyObject * obj0 = 0 ;
22121 PyObject * obj1 = 0 ;
22122
22123 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialDiffuseCube_read",&obj0,&obj1)) SWIG_failgoto fail;
22124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14]
, 0 | 0, 0)
;
22125 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseCube_read" "', argument " "1"" of type '" "GModelSpatialDiffuseCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseCube_read"
"', argument " "1"" of type '" "GModelSpatialDiffuseCube *""'"
); goto fail; } while(0)
;
22127 }
22128 arg1 = reinterpret_cast< GModelSpatialDiffuseCube * >(argp1);
22129 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0 | 0, 0)
;
22130 if (!SWIG_IsOK(res2)(res2 >= 0)) {
22131 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialDiffuseCube_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialDiffuseCube_read"
"', argument " "2"" of type '" "GXmlElement const &""'")
; goto fail; } while(0)
;
22132 }
22133 if (!argp2) {
22134 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuseCube_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuseCube_read" "', argument "
"2"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
22135 }
22136 arg2 = reinterpret_cast< GXmlElement * >(argp2);
22137 {
22138 try {
22139 (arg1)->read((GXmlElement const &)*arg2);
22140 }
22141 catch (const GException::out_of_range& e) {
22142 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22143 }
22144 catch (const GExceptionHandler& e) {
22145 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22146 }
22147 catch (const std::exception& e) {
22148 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22149 }
22150 }
22151 resultobj = SWIG_Py_Void();
22152 return resultobj;
22153fail:
22154 return NULL__null;
22155}
22156
22157
22158SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseCube_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22159 PyObject *resultobj = 0;
22160 GModelSpatialDiffuseCube *arg1 = (GModelSpatialDiffuseCube *) 0 ;
22161 GXmlElement *arg2 = 0 ;
22162 void *argp1 = 0 ;
22163 int res1 = 0 ;
22164 void *argp2 = 0 ;
22165 int res2 = 0 ;
22166 PyObject * obj0 = 0 ;
22167 PyObject * obj1 = 0 ;
22168
22169 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialDiffuseCube_write",&obj0,&obj1)) SWIG_failgoto fail;
22170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14]
, 0 | 0, 0)
;
22171 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseCube_write" "', argument " "1"" of type '" "GModelSpatialDiffuseCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseCube_write"
"', argument " "1"" of type '" "GModelSpatialDiffuseCube const *"
"'"); goto fail; } while(0)
;
22173 }
22174 arg1 = reinterpret_cast< GModelSpatialDiffuseCube * >(argp1);
22175 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0, 0)
;
22176 if (!SWIG_IsOK(res2)(res2 >= 0)) {
22177 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialDiffuseCube_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialDiffuseCube_write"
"', argument " "2"" of type '" "GXmlElement &""'"); goto
fail; } while(0)
;
22178 }
22179 if (!argp2) {
22180 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuseCube_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuseCube_write" "', argument "
"2"" of type '" "GXmlElement &""'"); goto fail; } while(
0)
;
22181 }
22182 arg2 = reinterpret_cast< GXmlElement * >(argp2);
22183 {
22184 try {
22185 ((GModelSpatialDiffuseCube const *)arg1)->write(*arg2);
22186 }
22187 catch (const GException::out_of_range& e) {
22188 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22189 }
22190 catch (const GExceptionHandler& e) {
22191 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22192 }
22193 catch (const std::exception& e) {
22194 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22195 }
22196 }
22197 resultobj = SWIG_Py_Void();
22198 return resultobj;
22199fail:
22200 return NULL__null;
22201}
22202
22203
22204SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseCube_maps(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22205 PyObject *resultobj = 0;
22206 GModelSpatialDiffuseCube *arg1 = (GModelSpatialDiffuseCube *) 0 ;
22207 void *argp1 = 0 ;
22208 int res1 = 0 ;
22209 PyObject * obj0 = 0 ;
22210 int result;
22211
22212 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialDiffuseCube_maps",&obj0)) SWIG_failgoto fail;
22213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14]
, 0 | 0, 0)
;
22214 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseCube_maps" "', argument " "1"" of type '" "GModelSpatialDiffuseCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseCube_maps"
"', argument " "1"" of type '" "GModelSpatialDiffuseCube const *"
"'"); goto fail; } while(0)
;
22216 }
22217 arg1 = reinterpret_cast< GModelSpatialDiffuseCube * >(argp1);
22218 {
22219 try {
22220 result = (int)((GModelSpatialDiffuseCube const *)arg1)->maps();
22221 }
22222 catch (const GException::out_of_range& e) {
22223 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22224 }
22225 catch (const GExceptionHandler& e) {
22226 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22227 }
22228 catch (const std::exception& e) {
22229 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22230 }
22231 }
22232 resultobj = SWIG_From_int(static_cast< int >(result));
22233 return resultobj;
22234fail:
22235 return NULL__null;
22236}
22237
22238
22239SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseCube_pixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22240 PyObject *resultobj = 0;
22241 GModelSpatialDiffuseCube *arg1 = (GModelSpatialDiffuseCube *) 0 ;
22242 void *argp1 = 0 ;
22243 int res1 = 0 ;
22244 PyObject * obj0 = 0 ;
22245 int result;
22246
22247 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialDiffuseCube_pixels",&obj0)) SWIG_failgoto fail;
22248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14]
, 0 | 0, 0)
;
22249 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseCube_pixels" "', argument " "1"" of type '" "GModelSpatialDiffuseCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseCube_pixels"
"', argument " "1"" of type '" "GModelSpatialDiffuseCube const *"
"'"); goto fail; } while(0)
;
22251 }
22252 arg1 = reinterpret_cast< GModelSpatialDiffuseCube * >(argp1);
22253 {
22254 try {
22255 result = (int)((GModelSpatialDiffuseCube const *)arg1)->pixels();
22256 }
22257 catch (const GException::out_of_range& e) {
22258 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22259 }
22260 catch (const GExceptionHandler& e) {
22261 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22262 }
22263 catch (const std::exception& e) {
22264 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22265 }
22266 }
22267 resultobj = SWIG_From_int(static_cast< int >(result));
22268 return resultobj;
22269fail:
22270 return NULL__null;
22271}
22272
22273
22274SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseCube_load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22275 PyObject *resultobj = 0;
22276 GModelSpatialDiffuseCube *arg1 = (GModelSpatialDiffuseCube *) 0 ;
22277 std::string *arg2 = 0 ;
22278 void *argp1 = 0 ;
22279 int res1 = 0 ;
22280 int res2 = SWIG_OLDOBJ((0)) ;
22281 PyObject * obj0 = 0 ;
22282 PyObject * obj1 = 0 ;
22283
22284 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialDiffuseCube_load",&obj0,&obj1)) SWIG_failgoto fail;
22285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14]
, 0 | 0, 0)
;
22286 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseCube_load" "', argument " "1"" of type '" "GModelSpatialDiffuseCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseCube_load"
"', argument " "1"" of type '" "GModelSpatialDiffuseCube *""'"
); goto fail; } while(0)
;
22288 }
22289 arg1 = reinterpret_cast< GModelSpatialDiffuseCube * >(argp1);
22290 {
22291 std::string *ptr = (std::string *)0;
22292 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
22293 if (!SWIG_IsOK(res2)(res2 >= 0)) {
22294 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialDiffuseCube_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialDiffuseCube_load"
"', argument " "2"" of type '" "std::string const &""'")
; goto fail; } while(0)
;
22295 }
22296 if (!ptr) {
22297 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuseCube_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuseCube_load" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
22298 }
22299 arg2 = ptr;
22300 }
22301 {
22302 try {
22303 (arg1)->load((std::string const &)*arg2);
22304 }
22305 catch (const GException::out_of_range& e) {
22306 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22307 }
22308 catch (const GExceptionHandler& e) {
22309 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22310 }
22311 catch (const std::exception& e) {
22312 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22313 }
22314 }
22315 resultobj = SWIG_Py_Void();
22316 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
22317 return resultobj;
22318fail:
22319 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
22320 return NULL__null;
22321}
22322
22323
22324SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseCube_value__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22325 PyObject *resultobj = 0;
22326 GModelSpatialDiffuseCube *arg1 = (GModelSpatialDiffuseCube *) 0 ;
22327 void *argp1 = 0 ;
22328 int res1 = 0 ;
22329 PyObject * obj0 = 0 ;
22330 double result;
22331
22332 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialDiffuseCube_value",&obj0)) SWIG_failgoto fail;
22333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14]
, 0 | 0, 0)
;
22334 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseCube_value" "', argument " "1"" of type '" "GModelSpatialDiffuseCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseCube_value"
"', argument " "1"" of type '" "GModelSpatialDiffuseCube const *"
"'"); goto fail; } while(0)
;
22336 }
22337 arg1 = reinterpret_cast< GModelSpatialDiffuseCube * >(argp1);
22338 {
22339 try {
22340 result = (double)((GModelSpatialDiffuseCube const *)arg1)->value();
22341 }
22342 catch (const GException::out_of_range& e) {
22343 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22344 }
22345 catch (const GExceptionHandler& e) {
22346 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22347 }
22348 catch (const std::exception& e) {
22349 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22350 }
22351 }
22352 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
22353 return resultobj;
22354fail:
22355 return NULL__null;
22356}
22357
22358
22359SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseCube_value__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22360 PyObject *resultobj = 0;
22361 GModelSpatialDiffuseCube *arg1 = (GModelSpatialDiffuseCube *) 0 ;
22362 double *arg2 = 0 ;
22363 void *argp1 = 0 ;
22364 int res1 = 0 ;
22365 double temp2 ;
22366 double val2 ;
22367 int ecode2 = 0 ;
22368 PyObject * obj0 = 0 ;
22369 PyObject * obj1 = 0 ;
22370
22371 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialDiffuseCube_value",&obj0,&obj1)) SWIG_failgoto fail;
22372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14]
, 0 | 0, 0)
;
22373 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseCube_value" "', argument " "1"" of type '" "GModelSpatialDiffuseCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseCube_value"
"', argument " "1"" of type '" "GModelSpatialDiffuseCube *""'"
); goto fail; } while(0)
;
22375 }
22376 arg1 = reinterpret_cast< GModelSpatialDiffuseCube * >(argp1);
22377 ecode2 = SWIG_AsVal_double(obj1, &val2);
22378 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
22379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpatialDiffuseCube_value" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpatialDiffuseCube_value"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
22380 }
22381 temp2 = static_cast< double >(val2);
22382 arg2 = &temp2;
22383 {
22384 try {
22385 (arg1)->value((double const &)*arg2);
22386 }
22387 catch (const GException::out_of_range& e) {
22388 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22389 }
22390 catch (const GExceptionHandler& e) {
22391 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22392 }
22393 catch (const std::exception& e) {
22394 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22395 }
22396 }
22397 resultobj = SWIG_Py_Void();
22398 return resultobj;
22399fail:
22400 return NULL__null;
22401}
22402
22403
22404SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseCube_value(PyObject *self, PyObject *args) {
22405 int argc;
22406 PyObject *argv[3];
22407 int ii;
22408
22409 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
22410 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
22411 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
22412 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
22413 }
22414 if (argc == 1) {
22415 int _v;
22416 void *vptr = 0;
22417 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialDiffuseCube, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[14
], 0, 0)
;
22418 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
22419 if (_v) {
22420 return _wrap_GModelSpatialDiffuseCube_value__SWIG_0(self, args);
22421 }
22422 }
22423 if (argc == 2) {
22424 int _v;
22425 void *vptr = 0;
22426 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialDiffuseCube, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[14
], 0, 0)
;
22427 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
22428 if (_v) {
22429 {
22430 int res = SWIG_AsVal_double(argv[1], NULL__null);
22431 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
22432 }
22433 if (_v) {
22434 return _wrap_GModelSpatialDiffuseCube_value__SWIG_1(self, args);
22435 }
22436 }
22437 }
22438
22439fail:
22440 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialDiffuseCube_value'.\n"
22441 " Possible C/C++ prototypes are:\n"
22442 " GModelSpatialDiffuseCube::value() const\n"
22443 " GModelSpatialDiffuseCube::value(double const &)\n");
22444 return 0;
22445}
22446
22447
22448SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseCube_filename__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22449 PyObject *resultobj = 0;
22450 GModelSpatialDiffuseCube *arg1 = (GModelSpatialDiffuseCube *) 0 ;
22451 void *argp1 = 0 ;
22452 int res1 = 0 ;
22453 PyObject * obj0 = 0 ;
22454 std::string *result = 0 ;
22455
22456 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialDiffuseCube_filename",&obj0)) SWIG_failgoto fail;
22457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14]
, 0 | 0, 0)
;
22458 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseCube_filename" "', argument " "1"" of type '" "GModelSpatialDiffuseCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseCube_filename"
"', argument " "1"" of type '" "GModelSpatialDiffuseCube const *"
"'"); goto fail; } while(0)
;
22460 }
22461 arg1 = reinterpret_cast< GModelSpatialDiffuseCube * >(argp1);
22462 {
22463 try {
22464 result = (std::string *) &((GModelSpatialDiffuseCube const *)arg1)->filename();
22465 }
22466 catch (const GException::out_of_range& e) {
22467 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22468 }
22469 catch (const GExceptionHandler& e) {
22470 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22471 }
22472 catch (const std::exception& e) {
22473 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22474 }
22475 }
22476 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
22477 return resultobj;
22478fail:
22479 return NULL__null;
22480}
22481
22482
22483SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseCube_filename__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22484 PyObject *resultobj = 0;
22485 GModelSpatialDiffuseCube *arg1 = (GModelSpatialDiffuseCube *) 0 ;
22486 std::string *arg2 = 0 ;
22487 void *argp1 = 0 ;
22488 int res1 = 0 ;
22489 int res2 = SWIG_OLDOBJ((0)) ;
22490 PyObject * obj0 = 0 ;
22491 PyObject * obj1 = 0 ;
22492
22493 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialDiffuseCube_filename",&obj0,&obj1)) SWIG_failgoto fail;
22494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14]
, 0 | 0, 0)
;
22495 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseCube_filename" "', argument " "1"" of type '" "GModelSpatialDiffuseCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseCube_filename"
"', argument " "1"" of type '" "GModelSpatialDiffuseCube *""'"
); goto fail; } while(0)
;
22497 }
22498 arg1 = reinterpret_cast< GModelSpatialDiffuseCube * >(argp1);
22499 {
22500 std::string *ptr = (std::string *)0;
22501 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
22502 if (!SWIG_IsOK(res2)(res2 >= 0)) {
22503 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialDiffuseCube_filename" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialDiffuseCube_filename"
"', argument " "2"" of type '" "std::string const &""'")
; goto fail; } while(0)
;
22504 }
22505 if (!ptr) {
22506 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuseCube_filename" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuseCube_filename" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
22507 }
22508 arg2 = ptr;
22509 }
22510 {
22511 try {
22512 (arg1)->filename((std::string const &)*arg2);
22513 }
22514 catch (const GException::out_of_range& e) {
22515 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22516 }
22517 catch (const GExceptionHandler& e) {
22518 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22519 }
22520 catch (const std::exception& e) {
22521 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22522 }
22523 }
22524 resultobj = SWIG_Py_Void();
22525 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
22526 return resultobj;
22527fail:
22528 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
22529 return NULL__null;
22530}
22531
22532
22533SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseCube_filename(PyObject *self, PyObject *args) {
22534 int argc;
22535 PyObject *argv[3];
22536 int ii;
22537
22538 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
22539 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
22540 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
22541 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
22542 }
22543 if (argc == 1) {
22544 int _v;
22545 void *vptr = 0;
22546 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialDiffuseCube, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[14
], 0, 0)
;
22547 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
22548 if (_v) {
22549 return _wrap_GModelSpatialDiffuseCube_filename__SWIG_0(self, args);
22550 }
22551 }
22552 if (argc == 2) {
22553 int _v;
22554 void *vptr = 0;
22555 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialDiffuseCube, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[14
], 0, 0)
;
22556 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
22557 if (_v) {
22558 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
22559 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
22560 if (_v) {
22561 return _wrap_GModelSpatialDiffuseCube_filename__SWIG_1(self, args);
22562 }
22563 }
22564 }
22565
22566fail:
22567 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialDiffuseCube_filename'.\n"
22568 " Possible C/C++ prototypes are:\n"
22569 " GModelSpatialDiffuseCube::filename() const\n"
22570 " GModelSpatialDiffuseCube::filename(std::string const &)\n");
22571 return 0;
22572}
22573
22574
22575SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseCube_cube__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22576 PyObject *resultobj = 0;
22577 GModelSpatialDiffuseCube *arg1 = (GModelSpatialDiffuseCube *) 0 ;
22578 void *argp1 = 0 ;
22579 int res1 = 0 ;
22580 PyObject * obj0 = 0 ;
22581 GSkymap *result = 0 ;
22582
22583 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialDiffuseCube_cube",&obj0)) SWIG_failgoto fail;
22584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14]
, 0 | 0, 0)
;
22585 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseCube_cube" "', argument " "1"" of type '" "GModelSpatialDiffuseCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseCube_cube"
"', argument " "1"" of type '" "GModelSpatialDiffuseCube const *"
"'"); goto fail; } while(0)
;
22587 }
22588 arg1 = reinterpret_cast< GModelSpatialDiffuseCube * >(argp1);
22589 {
22590 try {
22591 result = (GSkymap *) &((GModelSpatialDiffuseCube const *)arg1)->cube();
22592 }
22593 catch (const GException::out_of_range& e) {
22594 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22595 }
22596 catch (const GExceptionHandler& e) {
22597 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22598 }
22599 catch (const std::exception& e) {
22600 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22601 }
22602 }
22603 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkymap, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[45], 0
| 0)
;
22604 return resultobj;
22605fail:
22606 return NULL__null;
22607}
22608
22609
22610SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseCube_cube__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22611 PyObject *resultobj = 0;
22612 GModelSpatialDiffuseCube *arg1 = (GModelSpatialDiffuseCube *) 0 ;
22613 GSkymap *arg2 = 0 ;
22614 void *argp1 = 0 ;
22615 int res1 = 0 ;
22616 void *argp2 = 0 ;
22617 int res2 = 0 ;
22618 PyObject * obj0 = 0 ;
22619 PyObject * obj1 = 0 ;
22620
22621 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialDiffuseCube_cube",&obj0,&obj1)) SWIG_failgoto fail;
22622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14]
, 0 | 0, 0)
;
22623 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseCube_cube" "', argument " "1"" of type '" "GModelSpatialDiffuseCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseCube_cube"
"', argument " "1"" of type '" "GModelSpatialDiffuseCube *""'"
); goto fail; } while(0)
;
22625 }
22626 arg1 = reinterpret_cast< GModelSpatialDiffuseCube * >(argp1);
22627 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkymap, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[45]
, 0 | 0, 0)
;
22628 if (!SWIG_IsOK(res2)(res2 >= 0)) {
22629 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialDiffuseCube_cube" "', argument " "2"" of type '" "GSkymap const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialDiffuseCube_cube"
"', argument " "2"" of type '" "GSkymap const &""'"); goto
fail; } while(0)
;
22630 }
22631 if (!argp2) {
22632 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuseCube_cube" "', argument " "2"" of type '" "GSkymap const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuseCube_cube" "', argument "
"2"" of type '" "GSkymap const &""'"); goto fail; } while
(0)
;
22633 }
22634 arg2 = reinterpret_cast< GSkymap * >(argp2);
22635 {
22636 try {
22637 (arg1)->cube((GSkymap const &)*arg2);
22638 }
22639 catch (const GException::out_of_range& e) {
22640 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22641 }
22642 catch (const GExceptionHandler& e) {
22643 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22644 }
22645 catch (const std::exception& e) {
22646 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22647 }
22648 }
22649 resultobj = SWIG_Py_Void();
22650 return resultobj;
22651fail:
22652 return NULL__null;
22653}
22654
22655
22656SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseCube_cube(PyObject *self, PyObject *args) {
22657 int argc;
22658 PyObject *argv[3];
22659 int ii;
22660
22661 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
22662 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
22663 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
22664 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
22665 }
22666 if (argc == 1) {
22667 int _v;
22668 void *vptr = 0;
22669 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialDiffuseCube, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[14
], 0, 0)
;
22670 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
22671 if (_v) {
22672 return _wrap_GModelSpatialDiffuseCube_cube__SWIG_0(self, args);
22673 }
22674 }
22675 if (argc == 2) {
22676 int _v;
22677 void *vptr = 0;
22678 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialDiffuseCube, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[14
], 0, 0)
;
22679 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
22680 if (_v) {
22681 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GSkymap, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[45], 0, 0
)
;
22682 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
22683 if (_v) {
22684 return _wrap_GModelSpatialDiffuseCube_cube__SWIG_1(self, args);
22685 }
22686 }
22687 }
22688
22689fail:
22690 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialDiffuseCube_cube'.\n"
22691 " Possible C/C++ prototypes are:\n"
22692 " GModelSpatialDiffuseCube::cube() const\n"
22693 " GModelSpatialDiffuseCube::cube(GSkymap const &)\n");
22694 return 0;
22695}
22696
22697
22698SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseCube_energies__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22699 PyObject *resultobj = 0;
22700 GModelSpatialDiffuseCube *arg1 = (GModelSpatialDiffuseCube *) 0 ;
22701 void *argp1 = 0 ;
22702 int res1 = 0 ;
22703 PyObject * obj0 = 0 ;
22704 GEnergies result;
22705
22706 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialDiffuseCube_energies",&obj0)) SWIG_failgoto fail;
22707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14]
, 0 | 0, 0)
;
22708 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseCube_energies" "', argument " "1"" of type '" "GModelSpatialDiffuseCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseCube_energies"
"', argument " "1"" of type '" "GModelSpatialDiffuseCube *""'"
); goto fail; } while(0)
;
22710 }
22711 arg1 = reinterpret_cast< GModelSpatialDiffuseCube * >(argp1);
22712 {
22713 try {
22714 result = (arg1)->energies();
22715 }
22716 catch (const GException::out_of_range& e) {
22717 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22718 }
22719 catch (const GExceptionHandler& e) {
22720 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22721 }
22722 catch (const std::exception& e) {
22723 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22724 }
22725 }
22726 resultobj = SWIG_NewPointerObj((new GEnergies(static_cast< const GEnergies& >(result))), SWIGTYPE_p_GEnergies, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GEnergies(static_cast<
const GEnergies& >(result))), swig_types[2], 0x1 | 0)
;
22727 return resultobj;
22728fail:
22729 return NULL__null;
22730}
22731
22732
22733SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseCube_energies__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22734 PyObject *resultobj = 0;
22735 GModelSpatialDiffuseCube *arg1 = (GModelSpatialDiffuseCube *) 0 ;
22736 GEnergies *arg2 = 0 ;
22737 void *argp1 = 0 ;
22738 int res1 = 0 ;
22739 void *argp2 = 0 ;
22740 int res2 = 0 ;
22741 PyObject * obj0 = 0 ;
22742 PyObject * obj1 = 0 ;
22743
22744 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialDiffuseCube_energies",&obj0,&obj1)) SWIG_failgoto fail;
22745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14]
, 0 | 0, 0)
;
22746 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseCube_energies" "', argument " "1"" of type '" "GModelSpatialDiffuseCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseCube_energies"
"', argument " "1"" of type '" "GModelSpatialDiffuseCube *""'"
); goto fail; } while(0)
;
22748 }
22749 arg1 = reinterpret_cast< GModelSpatialDiffuseCube * >(argp1);
22750 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergies, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[2],
0 | 0, 0)
;
22751 if (!SWIG_IsOK(res2)(res2 >= 0)) {
22752 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialDiffuseCube_energies" "', argument " "2"" of type '" "GEnergies const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialDiffuseCube_energies"
"', argument " "2"" of type '" "GEnergies const &""'"); goto
fail; } while(0)
;
22753 }
22754 if (!argp2) {
22755 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuseCube_energies" "', argument " "2"" of type '" "GEnergies const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuseCube_energies" "', argument "
"2"" of type '" "GEnergies const &""'"); goto fail; } while
(0)
;
22756 }
22757 arg2 = reinterpret_cast< GEnergies * >(argp2);
22758 {
22759 try {
22760 (arg1)->energies((GEnergies const &)*arg2);
22761 }
22762 catch (const GException::out_of_range& e) {
22763 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22764 }
22765 catch (const GExceptionHandler& e) {
22766 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22767 }
22768 catch (const std::exception& e) {
22769 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22770 }
22771 }
22772 resultobj = SWIG_Py_Void();
22773 return resultobj;
22774fail:
22775 return NULL__null;
22776}
22777
22778
22779SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseCube_energies(PyObject *self, PyObject *args) {
22780 int argc;
22781 PyObject *argv[3];
22782 int ii;
22783
22784 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
22785 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
22786 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
22787 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
22788 }
22789 if (argc == 1) {
22790 int _v;
22791 void *vptr = 0;
22792 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialDiffuseCube, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[14
], 0, 0)
;
22793 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
22794 if (_v) {
22795 return _wrap_GModelSpatialDiffuseCube_energies__SWIG_0(self, args);
22796 }
22797 }
22798 if (argc == 2) {
22799 int _v;
22800 void *vptr = 0;
22801 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialDiffuseCube, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[14
], 0, 0)
;
22802 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
22803 if (_v) {
22804 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GEnergies, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[2], 0, 0);
22805 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
22806 if (_v) {
22807 return _wrap_GModelSpatialDiffuseCube_energies__SWIG_1(self, args);
22808 }
22809 }
22810 }
22811
22812fail:
22813 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialDiffuseCube_energies'.\n"
22814 " Possible C/C++ prototypes are:\n"
22815 " GModelSpatialDiffuseCube::energies()\n"
22816 " GModelSpatialDiffuseCube::energies(GEnergies const &)\n");
22817 return 0;
22818}
22819
22820
22821SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseCube_spectrum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22822 PyObject *resultobj = 0;
22823 GModelSpatialDiffuseCube *arg1 = (GModelSpatialDiffuseCube *) 0 ;
22824 void *argp1 = 0 ;
22825 int res1 = 0 ;
22826 PyObject * obj0 = 0 ;
22827 GModelSpectralNodes *result = 0 ;
22828
22829 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialDiffuseCube_spectrum",&obj0)) SWIG_failgoto fail;
22830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14]
, 0 | 0, 0)
;
22831 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseCube_spectrum" "', argument " "1"" of type '" "GModelSpatialDiffuseCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseCube_spectrum"
"', argument " "1"" of type '" "GModelSpatialDiffuseCube const *"
"'"); goto fail; } while(0)
;
22833 }
22834 arg1 = reinterpret_cast< GModelSpatialDiffuseCube * >(argp1);
22835 {
22836 try {
22837 result = (GModelSpectralNodes *) &((GModelSpatialDiffuseCube const *)arg1)->spectrum();
22838 }
22839 catch (const GException::out_of_range& e) {
22840 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22841 }
22842 catch (const GExceptionHandler& e) {
22843 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22844 }
22845 catch (const std::exception& e) {
22846 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22847 }
22848 }
22849 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralNodes, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[29], 0
| 0)
;
22850 return resultobj;
22851fail:
22852 return NULL__null;
22853}
22854
22855
22856SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseCube_set_mc_cone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22857 PyObject *resultobj = 0;
22858 GModelSpatialDiffuseCube *arg1 = (GModelSpatialDiffuseCube *) 0 ;
22859 GSkyDir *arg2 = 0 ;
22860 double *arg3 = 0 ;
22861 void *argp1 = 0 ;
22862 int res1 = 0 ;
22863 void *argp2 = 0 ;
22864 int res2 = 0 ;
22865 double temp3 ;
22866 double val3 ;
22867 int ecode3 = 0 ;
22868 PyObject * obj0 = 0 ;
22869 PyObject * obj1 = 0 ;
22870 PyObject * obj2 = 0 ;
22871
22872 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpatialDiffuseCube_set_mc_cone",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
22873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14]
, 0 | 0, 0)
;
22874 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseCube_set_mc_cone" "', argument " "1"" of type '" "GModelSpatialDiffuseCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseCube_set_mc_cone"
"', argument " "1"" of type '" "GModelSpatialDiffuseCube *""'"
); goto fail; } while(0)
;
22876 }
22877 arg1 = reinterpret_cast< GModelSpatialDiffuseCube * >(argp1);
22878 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[44]
, 0 | 0, 0)
;
22879 if (!SWIG_IsOK(res2)(res2 >= 0)) {
22880 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialDiffuseCube_set_mc_cone" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialDiffuseCube_set_mc_cone"
"', argument " "2"" of type '" "GSkyDir const &""'"); goto
fail; } while(0)
;
22881 }
22882 if (!argp2) {
22883 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuseCube_set_mc_cone" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuseCube_set_mc_cone" "', argument "
"2"" of type '" "GSkyDir const &""'"); goto fail; } while
(0)
;
22884 }
22885 arg2 = reinterpret_cast< GSkyDir * >(argp2);
22886 ecode3 = SWIG_AsVal_double(obj2, &val3);
22887 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
22888 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GModelSpatialDiffuseCube_set_mc_cone" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GModelSpatialDiffuseCube_set_mc_cone"
"', argument " "3"" of type '" "double""'"); goto fail; } while
(0)
;
22889 }
22890 temp3 = static_cast< double >(val3);
22891 arg3 = &temp3;
22892 {
22893 try {
22894 (arg1)->set_mc_cone((GSkyDir const &)*arg2,(double const &)*arg3);
22895 }
22896 catch (const GException::out_of_range& e) {
22897 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22898 }
22899 catch (const GExceptionHandler& e) {
22900 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22901 }
22902 catch (const std::exception& e) {
22903 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22904 }
22905 }
22906 resultobj = SWIG_Py_Void();
22907 return resultobj;
22908fail:
22909 return NULL__null;
22910}
22911
22912
22913SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseCube_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22914 PyObject *resultobj = 0;
22915 GModelSpatialDiffuseCube *arg1 = (GModelSpatialDiffuseCube *) 0 ;
22916 void *argp1 = 0 ;
22917 int res1 = 0 ;
22918 PyObject * obj0 = 0 ;
22919 GModelSpatialDiffuseCube result;
22920
22921 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialDiffuseCube_copy",&obj0)) SWIG_failgoto fail;
22922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14]
, 0 | 0, 0)
;
22923 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseCube_copy" "', argument " "1"" of type '" "GModelSpatialDiffuseCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseCube_copy"
"', argument " "1"" of type '" "GModelSpatialDiffuseCube *""'"
); goto fail; } while(0)
;
22925 }
22926 arg1 = reinterpret_cast< GModelSpatialDiffuseCube * >(argp1);
22927 {
22928 try {
22929 result = GModelSpatialDiffuseCube_copy(arg1);
22930 }
22931 catch (const GException::out_of_range& e) {
22932 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22933 }
22934 catch (const GExceptionHandler& e) {
22935 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22936 }
22937 catch (const std::exception& e) {
22938 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22939 }
22940 }
22941 resultobj = SWIG_NewPointerObj((new GModelSpatialDiffuseCube(static_cast< const GModelSpatialDiffuseCube& >(result))), SWIGTYPE_p_GModelSpatialDiffuseCube, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GModelSpatialDiffuseCube
(static_cast< const GModelSpatialDiffuseCube& >(result
))), swig_types[14], 0x1 | 0)
;
22942 return resultobj;
22943fail:
22944 return NULL__null;
22945}
22946
22947
22948SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GModelSpatialDiffuseCube_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22949 PyObject *obj;
22950 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
22951 SWIG_TypeNewClientData(SWIGTYPE_p_GModelSpatialDiffuseCubeswig_types[14], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
22952 return SWIG_Py_Void();
22953}
22954
22955SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialDiffuseMap__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22956 PyObject *resultobj = 0;
22957 GModelSpatialDiffuseMap *result = 0 ;
22958
22959 if (!PyArg_ParseTuple(args,(char *)":new_GModelSpatialDiffuseMap")) SWIG_failgoto fail;
22960 {
22961 try {
22962 result = (GModelSpatialDiffuseMap *)new GModelSpatialDiffuseMap();
22963 }
22964 catch (const GException::out_of_range& e) {
22965 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22966 }
22967 catch (const GExceptionHandler& e) {
22968 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22969 }
22970 catch (const std::exception& e) {
22971 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22972 }
22973 }
22974 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialDiffuseMap, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[15], (
(0x1 << 1) | 0x1) | 0)
;
22975 return resultobj;
22976fail:
22977 return NULL__null;
22978}
22979
22980
22981SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialDiffuseMap__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22982 PyObject *resultobj = 0;
22983 GXmlElement *arg1 = 0 ;
22984 void *argp1 = 0 ;
22985 int res1 = 0 ;
22986 PyObject * obj0 = 0 ;
22987 GModelSpatialDiffuseMap *result = 0 ;
22988
22989 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpatialDiffuseMap",&obj0)) SWIG_failgoto fail;
22990 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[50]
, 0 | 0, 0)
;
22991 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpatialDiffuseMap" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpatialDiffuseMap"
"', argument " "1"" of type '" "GXmlElement const &""'")
; goto fail; } while(0)
;
22993 }
22994 if (!argp1) {
22995 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpatialDiffuseMap" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpatialDiffuseMap" "', argument " "1"
" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
22996 }
22997 arg1 = reinterpret_cast< GXmlElement * >(argp1);
22998 {
22999 try {
23000 result = (GModelSpatialDiffuseMap *)new GModelSpatialDiffuseMap((GXmlElement const &)*arg1);
23001 }
23002 catch (const GException::out_of_range& e) {
23003 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23004 }
23005 catch (const GExceptionHandler& e) {
23006 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23007 }
23008 catch (const std::exception& e) {
23009 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23010 }
23011 }
23012 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialDiffuseMap, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[15], (
(0x1 << 1) | 0x1) | 0)
;
23013 return resultobj;
23014fail:
23015 return NULL__null;
23016}
23017
23018
23019SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialDiffuseMap__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23020 PyObject *resultobj = 0;
23021 std::string *arg1 = 0 ;
23022 double *arg2 = 0 ;
23023 int res1 = SWIG_OLDOBJ((0)) ;
23024 double temp2 ;
23025 double val2 ;
23026 int ecode2 = 0 ;
23027 PyObject * obj0 = 0 ;
23028 PyObject * obj1 = 0 ;
23029 GModelSpatialDiffuseMap *result = 0 ;
23030
23031 if (!PyArg_ParseTuple(args,(char *)"OO:new_GModelSpatialDiffuseMap",&obj0,&obj1)) SWIG_failgoto fail;
23032 {
23033 std::string *ptr = (std::string *)0;
23034 res1 = SWIG_AsPtr_std_string(obj0, &ptr);
23035 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpatialDiffuseMap" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpatialDiffuseMap"
"', argument " "1"" of type '" "std::string const &""'")
; goto fail; } while(0)
;
23037 }
23038 if (!ptr) {
23039 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpatialDiffuseMap" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpatialDiffuseMap" "', argument " "1"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
23040 }
23041 arg1 = ptr;
23042 }
23043 ecode2 = SWIG_AsVal_double(obj1, &val2);
23044 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
23045 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GModelSpatialDiffuseMap" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "new_GModelSpatialDiffuseMap"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
23046 }
23047 temp2 = static_cast< double >(val2);
23048 arg2 = &temp2;
23049 {
23050 try {
23051 result = (GModelSpatialDiffuseMap *)new GModelSpatialDiffuseMap((std::string const &)*arg1,(double const &)*arg2);
23052 }
23053 catch (const GException::out_of_range& e) {
23054 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23055 }
23056 catch (const GExceptionHandler& e) {
23057 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23058 }
23059 catch (const std::exception& e) {
23060 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23061 }
23062 }
23063 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialDiffuseMap, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[15], (
(0x1 << 1) | 0x1) | 0)
;
23064 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
23065 return resultobj;
23066fail:
23067 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
23068 return NULL__null;
23069}
23070
23071
23072SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialDiffuseMap__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23073 PyObject *resultobj = 0;
23074 std::string *arg1 = 0 ;
23075 int res1 = SWIG_OLDOBJ((0)) ;
23076 PyObject * obj0 = 0 ;
23077 GModelSpatialDiffuseMap *result = 0 ;
23078
23079 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpatialDiffuseMap",&obj0)) SWIG_failgoto fail;
23080 {
23081 std::string *ptr = (std::string *)0;
23082 res1 = SWIG_AsPtr_std_string(obj0, &ptr);
23083 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpatialDiffuseMap" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpatialDiffuseMap"
"', argument " "1"" of type '" "std::string const &""'")
; goto fail; } while(0)
;
23085 }
23086 if (!ptr) {
23087 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpatialDiffuseMap" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpatialDiffuseMap" "', argument " "1"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
23088 }
23089 arg1 = ptr;
23090 }
23091 {
23092 try {
23093 result = (GModelSpatialDiffuseMap *)new GModelSpatialDiffuseMap((std::string const &)*arg1);
23094 }
23095 catch (const GException::out_of_range& e) {
23096 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23097 }
23098 catch (const GExceptionHandler& e) {
23099 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23100 }
23101 catch (const std::exception& e) {
23102 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23103 }
23104 }
23105 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialDiffuseMap, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[15], (
(0x1 << 1) | 0x1) | 0)
;
23106 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
23107 return resultobj;
23108fail:
23109 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
23110 return NULL__null;
23111}
23112
23113
23114SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialDiffuseMap__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23115 PyObject *resultobj = 0;
23116 GSkymap *arg1 = 0 ;
23117 double *arg2 = 0 ;
23118 void *argp1 = 0 ;
23119 int res1 = 0 ;
23120 double temp2 ;
23121 double val2 ;
23122 int ecode2 = 0 ;
23123 PyObject * obj0 = 0 ;
23124 PyObject * obj1 = 0 ;
23125 GModelSpatialDiffuseMap *result = 0 ;
23126
23127 if (!PyArg_ParseTuple(args,(char *)"OO:new_GModelSpatialDiffuseMap",&obj0,&obj1)) SWIG_failgoto fail;
23128 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GSkymap, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[45]
, 0 | 0, 0)
;
23129 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpatialDiffuseMap" "', argument " "1"" of type '" "GSkymap const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpatialDiffuseMap"
"', argument " "1"" of type '" "GSkymap const &""'"); goto
fail; } while(0)
;
23131 }
23132 if (!argp1) {
23133 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpatialDiffuseMap" "', argument " "1"" of type '" "GSkymap const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpatialDiffuseMap" "', argument " "1"
" of type '" "GSkymap const &""'"); goto fail; } while(0)
;
23134 }
23135 arg1 = reinterpret_cast< GSkymap * >(argp1);
23136 ecode2 = SWIG_AsVal_double(obj1, &val2);
23137 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
23138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GModelSpatialDiffuseMap" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "new_GModelSpatialDiffuseMap"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
23139 }
23140 temp2 = static_cast< double >(val2);
23141 arg2 = &temp2;
23142 {
23143 try {
23144 result = (GModelSpatialDiffuseMap *)new GModelSpatialDiffuseMap((GSkymap const &)*arg1,(double const &)*arg2);
23145 }
23146 catch (const GException::out_of_range& e) {
23147 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23148 }
23149 catch (const GExceptionHandler& e) {
23150 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23151 }
23152 catch (const std::exception& e) {
23153 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23154 }
23155 }
23156 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialDiffuseMap, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[15], (
(0x1 << 1) | 0x1) | 0)
;
23157 return resultobj;
23158fail:
23159 return NULL__null;
23160}
23161
23162
23163SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialDiffuseMap__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23164 PyObject *resultobj = 0;
23165 GSkymap *arg1 = 0 ;
23166 void *argp1 = 0 ;
23167 int res1 = 0 ;
23168 PyObject * obj0 = 0 ;
23169 GModelSpatialDiffuseMap *result = 0 ;
23170
23171 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpatialDiffuseMap",&obj0)) SWIG_failgoto fail;
23172 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GSkymap, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[45]
, 0 | 0, 0)
;
23173 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpatialDiffuseMap" "', argument " "1"" of type '" "GSkymap const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpatialDiffuseMap"
"', argument " "1"" of type '" "GSkymap const &""'"); goto
fail; } while(0)
;
23175 }
23176 if (!argp1) {
23177 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpatialDiffuseMap" "', argument " "1"" of type '" "GSkymap const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpatialDiffuseMap" "', argument " "1"
" of type '" "GSkymap const &""'"); goto fail; } while(0)
;
23178 }
23179 arg1 = reinterpret_cast< GSkymap * >(argp1);
23180 {
23181 try {
23182 result = (GModelSpatialDiffuseMap *)new GModelSpatialDiffuseMap((GSkymap const &)*arg1);
23183 }
23184 catch (const GException::out_of_range& e) {
23185 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23186 }
23187 catch (const GExceptionHandler& e) {
23188 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23189 }
23190 catch (const std::exception& e) {
23191 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23192 }
23193 }
23194 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialDiffuseMap, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[15], (
(0x1 << 1) | 0x1) | 0)
;
23195 return resultobj;
23196fail:
23197 return NULL__null;
23198}
23199
23200
23201SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialDiffuseMap__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23202 PyObject *resultobj = 0;
23203 GModelSpatialDiffuseMap *arg1 = 0 ;
23204 void *argp1 = 0 ;
23205 int res1 = 0 ;
23206 PyObject * obj0 = 0 ;
23207 GModelSpatialDiffuseMap *result = 0 ;
23208
23209 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpatialDiffuseMap",&obj0)) SWIG_failgoto fail;
23210 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GModelSpatialDiffuseMap, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
23211 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpatialDiffuseMap" "', argument " "1"" of type '" "GModelSpatialDiffuseMap const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpatialDiffuseMap"
"', argument " "1"" of type '" "GModelSpatialDiffuseMap const &"
"'"); goto fail; } while(0)
;
23213 }
23214 if (!argp1) {
23215 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpatialDiffuseMap" "', argument " "1"" of type '" "GModelSpatialDiffuseMap const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpatialDiffuseMap" "', argument " "1"
" of type '" "GModelSpatialDiffuseMap const &""'"); goto fail
; } while(0)
;
23216 }
23217 arg1 = reinterpret_cast< GModelSpatialDiffuseMap * >(argp1);
23218 {
23219 try {
23220 result = (GModelSpatialDiffuseMap *)new GModelSpatialDiffuseMap((GModelSpatialDiffuseMap const &)*arg1);
23221 }
23222 catch (const GException::out_of_range& e) {
23223 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23224 }
23225 catch (const GExceptionHandler& e) {
23226 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23227 }
23228 catch (const std::exception& e) {
23229 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23230 }
23231 }
23232 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialDiffuseMap, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[15], (
(0x1 << 1) | 0x1) | 0)
;
23233 return resultobj;
23234fail:
23235 return NULL__null;
23236}
23237
23238
23239SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpatialDiffuseMap(PyObject *self, PyObject *args) {
23240 int argc;
23241 PyObject *argv[3];
23242 int ii;
23243
23244 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
23245 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
23246 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
23247 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
23248 }
23249 if (argc == 0) {
23250 return _wrap_new_GModelSpatialDiffuseMap__SWIG_0(self, args);
23251 }
23252 if (argc == 1) {
23253 int _v;
23254 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GXmlElement, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[50], 0, 0
)
;
23255 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
23256 if (_v) {
23257 return _wrap_new_GModelSpatialDiffuseMap__SWIG_1(self, args);
23258 }
23259 }
23260 if (argc == 1) {
23261 int _v;
23262 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GSkymap, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[45], 0, 0
)
;
23263 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
23264 if (_v) {
23265 return _wrap_new_GModelSpatialDiffuseMap__SWIG_5(self, args);
23266 }
23267 }
23268 if (argc == 1) {
23269 int _v;
23270 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GModelSpatialDiffuseMap, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[15], 0, 0
)
;
23271 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
23272 if (_v) {
23273 return _wrap_new_GModelSpatialDiffuseMap__SWIG_6(self, args);
23274 }
23275 }
23276 if (argc == 1) {
23277 int _v;
23278 int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
23279 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
23280 if (_v) {
23281 return _wrap_new_GModelSpatialDiffuseMap__SWIG_3(self, args);
23282 }
23283 }
23284 if (argc == 2) {
23285 int _v;
23286 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GSkymap, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[45], 0, 0
)
;
23287 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
23288 if (_v) {
23289 {
23290 int res = SWIG_AsVal_double(argv[1], NULL__null);
23291 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
23292 }
23293 if (_v) {
23294 return _wrap_new_GModelSpatialDiffuseMap__SWIG_4(self, args);
23295 }
23296 }
23297 }
23298 if (argc == 2) {
23299 int _v;
23300 int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
23301 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
23302 if (_v) {
23303 {
23304 int res = SWIG_AsVal_double(argv[1], NULL__null);
23305 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
23306 }
23307 if (_v) {
23308 return _wrap_new_GModelSpatialDiffuseMap__SWIG_2(self, args);
23309 }
23310 }
23311 }
23312
23313fail:
23314 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GModelSpatialDiffuseMap'.\n"
23315 " Possible C/C++ prototypes are:\n"
23316 " GModelSpatialDiffuseMap::GModelSpatialDiffuseMap()\n"
23317 " GModelSpatialDiffuseMap::GModelSpatialDiffuseMap(GXmlElement const &)\n"
23318 " GModelSpatialDiffuseMap::GModelSpatialDiffuseMap(std::string const &,double const &)\n"
23319 " GModelSpatialDiffuseMap::GModelSpatialDiffuseMap(std::string const &)\n"
23320 " GModelSpatialDiffuseMap::GModelSpatialDiffuseMap(GSkymap const &,double const &)\n"
23321 " GModelSpatialDiffuseMap::GModelSpatialDiffuseMap(GSkymap const &)\n"
23322 " GModelSpatialDiffuseMap::GModelSpatialDiffuseMap(GModelSpatialDiffuseMap const &)\n");
23323 return 0;
23324}
23325
23326
23327SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GModelSpatialDiffuseMap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23328 PyObject *resultobj = 0;
23329 GModelSpatialDiffuseMap *arg1 = (GModelSpatialDiffuseMap *) 0 ;
23330 void *argp1 = 0 ;
23331 int res1 = 0 ;
23332 PyObject * obj0 = 0 ;
23333
23334 if (!PyArg_ParseTuple(args,(char *)"O:delete_GModelSpatialDiffuseMap",&obj0)) SWIG_failgoto fail;
23335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseMap, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0x1 | 0, 0)
;
23336 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GModelSpatialDiffuseMap" "', argument " "1"" of type '" "GModelSpatialDiffuseMap *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GModelSpatialDiffuseMap"
"', argument " "1"" of type '" "GModelSpatialDiffuseMap *""'"
); goto fail; } while(0)
;
23338 }
23339 arg1 = reinterpret_cast< GModelSpatialDiffuseMap * >(argp1);
23340 {
23341 try {
23342 delete arg1;
23343 }
23344 catch (const GException::out_of_range& e) {
23345 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23346 }
23347 catch (const GExceptionHandler& e) {
23348 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23349 }
23350 catch (const std::exception& e) {
23351 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23352 }
23353 }
23354 resultobj = SWIG_Py_Void();
23355 return resultobj;
23356fail:
23357 return NULL__null;
23358}
23359
23360
23361SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseMap_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23362 PyObject *resultobj = 0;
23363 GModelSpatialDiffuseMap *arg1 = (GModelSpatialDiffuseMap *) 0 ;
23364 void *argp1 = 0 ;
23365 int res1 = 0 ;
23366 PyObject * obj0 = 0 ;
23367
23368 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialDiffuseMap_clear",&obj0)) SWIG_failgoto fail;
23369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseMap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
23370 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseMap_clear" "', argument " "1"" of type '" "GModelSpatialDiffuseMap *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseMap_clear"
"', argument " "1"" of type '" "GModelSpatialDiffuseMap *""'"
); goto fail; } while(0)
;
23372 }
23373 arg1 = reinterpret_cast< GModelSpatialDiffuseMap * >(argp1);
23374 {
23375 try {
23376 (arg1)->clear();
23377 }
23378 catch (const GException::out_of_range& e) {
23379 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23380 }
23381 catch (const GExceptionHandler& e) {
23382 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23383 }
23384 catch (const std::exception& e) {
23385 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23386 }
23387 }
23388 resultobj = SWIG_Py_Void();
23389 return resultobj;
23390fail:
23391 return NULL__null;
23392}
23393
23394
23395SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseMap_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23396 PyObject *resultobj = 0;
23397 GModelSpatialDiffuseMap *arg1 = (GModelSpatialDiffuseMap *) 0 ;
23398 void *argp1 = 0 ;
23399 int res1 = 0 ;
23400 PyObject * obj0 = 0 ;
23401 GModelSpatialDiffuseMap *result = 0 ;
23402
23403 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialDiffuseMap_clone",&obj0)) SWIG_failgoto fail;
23404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseMap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
23405 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseMap_clone" "', argument " "1"" of type '" "GModelSpatialDiffuseMap const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseMap_clone"
"', argument " "1"" of type '" "GModelSpatialDiffuseMap const *"
"'"); goto fail; } while(0)
;
23407 }
23408 arg1 = reinterpret_cast< GModelSpatialDiffuseMap * >(argp1);
23409 {
23410 try {
23411 result = (GModelSpatialDiffuseMap *)((GModelSpatialDiffuseMap const *)arg1)->clone();
23412 }
23413 catch (const GException::out_of_range& e) {
23414 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23415 }
23416 catch (const GExceptionHandler& e) {
23417 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23418 }
23419 catch (const std::exception& e) {
23420 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23421 }
23422 }
23423 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatialDiffuseMap, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[15], 0
| 0)
;
23424 return resultobj;
23425fail:
23426 return NULL__null;
23427}
23428
23429
23430SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseMap_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23431 PyObject *resultobj = 0;
23432 GModelSpatialDiffuseMap *arg1 = (GModelSpatialDiffuseMap *) 0 ;
23433 void *argp1 = 0 ;
23434 int res1 = 0 ;
23435 PyObject * obj0 = 0 ;
23436 std::string result;
23437
23438 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialDiffuseMap_type",&obj0)) SWIG_failgoto fail;
23439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseMap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
23440 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseMap_type" "', argument " "1"" of type '" "GModelSpatialDiffuseMap const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseMap_type"
"', argument " "1"" of type '" "GModelSpatialDiffuseMap const *"
"'"); goto fail; } while(0)
;
23442 }
23443 arg1 = reinterpret_cast< GModelSpatialDiffuseMap * >(argp1);
23444 {
23445 try {
23446 result = ((GModelSpatialDiffuseMap const *)arg1)->type();
23447 }
23448 catch (const GException::out_of_range& e) {
23449 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23450 }
23451 catch (const GExceptionHandler& e) {
23452 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23453 }
23454 catch (const std::exception& e) {
23455 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23456 }
23457 }
23458 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
23459 return resultobj;
23460fail:
23461 return NULL__null;
23462}
23463
23464
23465SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseMap_eval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23466 PyObject *resultobj = 0;
23467 GModelSpatialDiffuseMap *arg1 = (GModelSpatialDiffuseMap *) 0 ;
23468 GPhoton *arg2 = 0 ;
23469 void *argp1 = 0 ;
23470 int res1 = 0 ;
23471 void *argp2 = 0 ;
23472 int res2 = 0 ;
23473 PyObject * obj0 = 0 ;
23474 PyObject * obj1 = 0 ;
23475 double result;
23476
23477 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialDiffuseMap_eval",&obj0,&obj1)) SWIG_failgoto fail;
23478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseMap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
23479 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseMap_eval" "', argument " "1"" of type '" "GModelSpatialDiffuseMap const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseMap_eval"
"', argument " "1"" of type '" "GModelSpatialDiffuseMap const *"
"'"); goto fail; } while(0)
;
23481 }
23482 arg1 = reinterpret_cast< GModelSpatialDiffuseMap * >(argp1);
23483 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[40]
, 0 | 0, 0)
;
23484 if (!SWIG_IsOK(res2)(res2 >= 0)) {
23485 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialDiffuseMap_eval" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialDiffuseMap_eval"
"', argument " "2"" of type '" "GPhoton const &""'"); goto
fail; } while(0)
;
23486 }
23487 if (!argp2) {
23488 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuseMap_eval" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuseMap_eval" "', argument " "2"
" of type '" "GPhoton const &""'"); goto fail; } while(0)
;
23489 }
23490 arg2 = reinterpret_cast< GPhoton * >(argp2);
23491 {
23492 try {
23493 result = (double)((GModelSpatialDiffuseMap const *)arg1)->eval((GPhoton const &)*arg2);
23494 }
23495 catch (const GException::out_of_range& e) {
23496 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23497 }
23498 catch (const GExceptionHandler& e) {
23499 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23500 }
23501 catch (const std::exception& e) {
23502 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23503 }
23504 }
23505 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
23506 return resultobj;
23507fail:
23508 return NULL__null;
23509}
23510
23511
23512SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseMap_eval_gradients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23513 PyObject *resultobj = 0;
23514 GModelSpatialDiffuseMap *arg1 = (GModelSpatialDiffuseMap *) 0 ;
23515 GPhoton *arg2 = 0 ;
23516 void *argp1 = 0 ;
23517 int res1 = 0 ;
23518 void *argp2 = 0 ;
23519 int res2 = 0 ;
23520 PyObject * obj0 = 0 ;
23521 PyObject * obj1 = 0 ;
23522 double result;
23523
23524 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialDiffuseMap_eval_gradients",&obj0,&obj1)) SWIG_failgoto fail;
23525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseMap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
23526 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseMap_eval_gradients" "', argument " "1"" of type '" "GModelSpatialDiffuseMap const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseMap_eval_gradients"
"', argument " "1"" of type '" "GModelSpatialDiffuseMap const *"
"'"); goto fail; } while(0)
;
23528 }
23529 arg1 = reinterpret_cast< GModelSpatialDiffuseMap * >(argp1);
23530 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[40]
, 0 | 0, 0)
;
23531 if (!SWIG_IsOK(res2)(res2 >= 0)) {
23532 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialDiffuseMap_eval_gradients" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialDiffuseMap_eval_gradients"
"', argument " "2"" of type '" "GPhoton const &""'"); goto
fail; } while(0)
;
23533 }
23534 if (!argp2) {
23535 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuseMap_eval_gradients" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuseMap_eval_gradients" "', argument "
"2"" of type '" "GPhoton const &""'"); goto fail; } while
(0)
;
23536 }
23537 arg2 = reinterpret_cast< GPhoton * >(argp2);
23538 {
23539 try {
23540 result = (double)((GModelSpatialDiffuseMap const *)arg1)->eval_gradients((GPhoton const &)*arg2);
23541 }
23542 catch (const GException::out_of_range& e) {
23543 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23544 }
23545 catch (const GExceptionHandler& e) {
23546 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23547 }
23548 catch (const std::exception& e) {
23549 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23550 }
23551 }
23552 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
23553 return resultobj;
23554fail:
23555 return NULL__null;
23556}
23557
23558
23559SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseMap_mc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23560 PyObject *resultobj = 0;
23561 GModelSpatialDiffuseMap *arg1 = (GModelSpatialDiffuseMap *) 0 ;
23562 GEnergy *arg2 = 0 ;
23563 GTime *arg3 = 0 ;
23564 GRan *arg4 = 0 ;
23565 void *argp1 = 0 ;
23566 int res1 = 0 ;
23567 void *argp2 = 0 ;
23568 int res2 = 0 ;
23569 void *argp3 = 0 ;
23570 int res3 = 0 ;
23571 void *argp4 = 0 ;
23572 int res4 = 0 ;
23573 PyObject * obj0 = 0 ;
23574 PyObject * obj1 = 0 ;
23575 PyObject * obj2 = 0 ;
23576 PyObject * obj3 = 0 ;
23577 GSkyDir result;
23578
23579 if (!PyArg_ParseTuple(args,(char *)"OOOO:GModelSpatialDiffuseMap_mc",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
23580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseMap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
23581 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseMap_mc" "', argument " "1"" of type '" "GModelSpatialDiffuseMap const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseMap_mc"
"', argument " "1"" of type '" "GModelSpatialDiffuseMap const *"
"'"); goto fail; } while(0)
;
23583 }
23584 arg1 = reinterpret_cast< GModelSpatialDiffuseMap * >(argp1);
23585 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
23586 if (!SWIG_IsOK(res2)(res2 >= 0)) {
23587 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialDiffuseMap_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialDiffuseMap_mc"
"', argument " "2"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
23588 }
23589 if (!argp2) {
23590 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuseMap_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuseMap_mc" "', argument " "2"
" of type '" "GEnergy const &""'"); goto fail; } while(0)
;
23591 }
23592 arg2 = reinterpret_cast< GEnergy * >(argp2);
23593 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[46]
, 0 | 0, 0)
;
23594 if (!SWIG_IsOK(res3)(res3 >= 0)) {
23595 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpatialDiffuseMap_mc" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpatialDiffuseMap_mc"
"', argument " "3"" of type '" "GTime const &""'"); goto
fail; } while(0)
;
23596 }
23597 if (!argp3) {
23598 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuseMap_mc" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuseMap_mc" "', argument " "3"
" of type '" "GTime const &""'"); goto fail; } while(0)
;
23599 }
23600 arg3 = reinterpret_cast< GTime * >(argp3);
23601 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GRan, 0 )SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[42]
, 0, 0)
;
23602 if (!SWIG_IsOK(res4)(res4 >= 0)) {
23603 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelSpatialDiffuseMap_mc" "', argument " "4"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelSpatialDiffuseMap_mc"
"', argument " "4"" of type '" "GRan &""'"); goto fail; }
while(0)
;
23604 }
23605 if (!argp4) {
23606 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuseMap_mc" "', argument " "4"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuseMap_mc" "', argument " "4"
" of type '" "GRan &""'"); goto fail; } while(0)
;
23607 }
23608 arg4 = reinterpret_cast< GRan * >(argp4);
23609 {
23610 try {
23611 result = ((GModelSpatialDiffuseMap const *)arg1)->mc((GEnergy const &)*arg2,(GTime const &)*arg3,*arg4);
23612 }
23613 catch (const GException::out_of_range& e) {
23614 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23615 }
23616 catch (const GExceptionHandler& e) {
23617 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23618 }
23619 catch (const std::exception& e) {
23620 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23621 }
23622 }
23623 resultobj = SWIG_NewPointerObj((new GSkyDir(static_cast< const GSkyDir& >(result))), SWIGTYPE_p_GSkyDir, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GSkyDir(static_cast<
const GSkyDir& >(result))), swig_types[44], 0x1 | 0)
;
23624 return resultobj;
23625fail:
23626 return NULL__null;
23627}
23628
23629
23630SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseMap_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23631 PyObject *resultobj = 0;
23632 GModelSpatialDiffuseMap *arg1 = (GModelSpatialDiffuseMap *) 0 ;
23633 GXmlElement *arg2 = 0 ;
23634 void *argp1 = 0 ;
23635 int res1 = 0 ;
23636 void *argp2 = 0 ;
23637 int res2 = 0 ;
23638 PyObject * obj0 = 0 ;
23639 PyObject * obj1 = 0 ;
23640
23641 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialDiffuseMap_read",&obj0,&obj1)) SWIG_failgoto fail;
23642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseMap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
23643 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseMap_read" "', argument " "1"" of type '" "GModelSpatialDiffuseMap *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseMap_read"
"', argument " "1"" of type '" "GModelSpatialDiffuseMap *""'"
); goto fail; } while(0)
;
23645 }
23646 arg1 = reinterpret_cast< GModelSpatialDiffuseMap * >(argp1);
23647 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0 | 0, 0)
;
23648 if (!SWIG_IsOK(res2)(res2 >= 0)) {
23649 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialDiffuseMap_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialDiffuseMap_read"
"', argument " "2"" of type '" "GXmlElement const &""'")
; goto fail; } while(0)
;
23650 }
23651 if (!argp2) {
23652 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuseMap_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuseMap_read" "', argument " "2"
" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
23653 }
23654 arg2 = reinterpret_cast< GXmlElement * >(argp2);
23655 {
23656 try {
23657 (arg1)->read((GXmlElement const &)*arg2);
23658 }
23659 catch (const GException::out_of_range& e) {
23660 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23661 }
23662 catch (const GExceptionHandler& e) {
23663 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23664 }
23665 catch (const std::exception& e) {
23666 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23667 }
23668 }
23669 resultobj = SWIG_Py_Void();
23670 return resultobj;
23671fail:
23672 return NULL__null;
23673}
23674
23675
23676SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseMap_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23677 PyObject *resultobj = 0;
23678 GModelSpatialDiffuseMap *arg1 = (GModelSpatialDiffuseMap *) 0 ;
23679 GXmlElement *arg2 = 0 ;
23680 void *argp1 = 0 ;
23681 int res1 = 0 ;
23682 void *argp2 = 0 ;
23683 int res2 = 0 ;
23684 PyObject * obj0 = 0 ;
23685 PyObject * obj1 = 0 ;
23686
23687 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialDiffuseMap_write",&obj0,&obj1)) SWIG_failgoto fail;
23688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseMap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
23689 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseMap_write" "', argument " "1"" of type '" "GModelSpatialDiffuseMap const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseMap_write"
"', argument " "1"" of type '" "GModelSpatialDiffuseMap const *"
"'"); goto fail; } while(0)
;
23691 }
23692 arg1 = reinterpret_cast< GModelSpatialDiffuseMap * >(argp1);
23693 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0, 0)
;
23694 if (!SWIG_IsOK(res2)(res2 >= 0)) {
23695 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialDiffuseMap_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialDiffuseMap_write"
"', argument " "2"" of type '" "GXmlElement &""'"); goto
fail; } while(0)
;
23696 }
23697 if (!argp2) {
23698 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuseMap_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuseMap_write" "', argument "
"2"" of type '" "GXmlElement &""'"); goto fail; } while(
0)
;
23699 }
23700 arg2 = reinterpret_cast< GXmlElement * >(argp2);
23701 {
23702 try {
23703 ((GModelSpatialDiffuseMap const *)arg1)->write(*arg2);
23704 }
23705 catch (const GException::out_of_range& e) {
23706 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23707 }
23708 catch (const GExceptionHandler& e) {
23709 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23710 }
23711 catch (const std::exception& e) {
23712 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23713 }
23714 }
23715 resultobj = SWIG_Py_Void();
23716 return resultobj;
23717fail:
23718 return NULL__null;
23719}
23720
23721
23722SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseMap_value__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23723 PyObject *resultobj = 0;
23724 GModelSpatialDiffuseMap *arg1 = (GModelSpatialDiffuseMap *) 0 ;
23725 void *argp1 = 0 ;
23726 int res1 = 0 ;
23727 PyObject * obj0 = 0 ;
23728 double result;
23729
23730 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialDiffuseMap_value",&obj0)) SWIG_failgoto fail;
23731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseMap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
23732 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseMap_value" "', argument " "1"" of type '" "GModelSpatialDiffuseMap const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseMap_value"
"', argument " "1"" of type '" "GModelSpatialDiffuseMap const *"
"'"); goto fail; } while(0)
;
23734 }
23735 arg1 = reinterpret_cast< GModelSpatialDiffuseMap * >(argp1);
23736 {
23737 try {
23738 result = (double)((GModelSpatialDiffuseMap const *)arg1)->value();
23739 }
23740 catch (const GException::out_of_range& e) {
23741 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23742 }
23743 catch (const GExceptionHandler& e) {
23744 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23745 }
23746 catch (const std::exception& e) {
23747 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23748 }
23749 }
23750 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
23751 return resultobj;
23752fail:
23753 return NULL__null;
23754}
23755
23756
23757SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseMap_value__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23758 PyObject *resultobj = 0;
23759 GModelSpatialDiffuseMap *arg1 = (GModelSpatialDiffuseMap *) 0 ;
23760 double *arg2 = 0 ;
23761 void *argp1 = 0 ;
23762 int res1 = 0 ;
23763 double temp2 ;
23764 double val2 ;
23765 int ecode2 = 0 ;
23766 PyObject * obj0 = 0 ;
23767 PyObject * obj1 = 0 ;
23768
23769 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialDiffuseMap_value",&obj0,&obj1)) SWIG_failgoto fail;
23770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseMap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
23771 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseMap_value" "', argument " "1"" of type '" "GModelSpatialDiffuseMap *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseMap_value"
"', argument " "1"" of type '" "GModelSpatialDiffuseMap *""'"
); goto fail; } while(0)
;
23773 }
23774 arg1 = reinterpret_cast< GModelSpatialDiffuseMap * >(argp1);
23775 ecode2 = SWIG_AsVal_double(obj1, &val2);
23776 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
23777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpatialDiffuseMap_value" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpatialDiffuseMap_value"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
23778 }
23779 temp2 = static_cast< double >(val2);
23780 arg2 = &temp2;
23781 {
23782 try {
23783 (arg1)->value((double const &)*arg2);
23784 }
23785 catch (const GException::out_of_range& e) {
23786 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23787 }
23788 catch (const GExceptionHandler& e) {
23789 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23790 }
23791 catch (const std::exception& e) {
23792 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23793 }
23794 }
23795 resultobj = SWIG_Py_Void();
23796 return resultobj;
23797fail:
23798 return NULL__null;
23799}
23800
23801
23802SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseMap_value(PyObject *self, PyObject *args) {
23803 int argc;
23804 PyObject *argv[3];
23805 int ii;
23806
23807 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
23808 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
23809 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
23810 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
23811 }
23812 if (argc == 1) {
23813 int _v;
23814 void *vptr = 0;
23815 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialDiffuseMap, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[15
], 0, 0)
;
23816 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
23817 if (_v) {
23818 return _wrap_GModelSpatialDiffuseMap_value__SWIG_0(self, args);
23819 }
23820 }
23821 if (argc == 2) {
23822 int _v;
23823 void *vptr = 0;
23824 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialDiffuseMap, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[15
], 0, 0)
;
23825 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
23826 if (_v) {
23827 {
23828 int res = SWIG_AsVal_double(argv[1], NULL__null);
23829 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
23830 }
23831 if (_v) {
23832 return _wrap_GModelSpatialDiffuseMap_value__SWIG_1(self, args);
23833 }
23834 }
23835 }
23836
23837fail:
23838 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialDiffuseMap_value'.\n"
23839 " Possible C/C++ prototypes are:\n"
23840 " GModelSpatialDiffuseMap::value() const\n"
23841 " GModelSpatialDiffuseMap::value(double const &)\n");
23842 return 0;
23843}
23844
23845
23846SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseMap_filename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23847 PyObject *resultobj = 0;
23848 GModelSpatialDiffuseMap *arg1 = (GModelSpatialDiffuseMap *) 0 ;
23849 void *argp1 = 0 ;
23850 int res1 = 0 ;
23851 PyObject * obj0 = 0 ;
23852 std::string *result = 0 ;
23853
23854 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialDiffuseMap_filename",&obj0)) SWIG_failgoto fail;
23855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseMap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
23856 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseMap_filename" "', argument " "1"" of type '" "GModelSpatialDiffuseMap const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseMap_filename"
"', argument " "1"" of type '" "GModelSpatialDiffuseMap const *"
"'"); goto fail; } while(0)
;
23858 }
23859 arg1 = reinterpret_cast< GModelSpatialDiffuseMap * >(argp1);
23860 {
23861 try {
23862 result = (std::string *) &((GModelSpatialDiffuseMap const *)arg1)->filename();
23863 }
23864 catch (const GException::out_of_range& e) {
23865 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23866 }
23867 catch (const GExceptionHandler& e) {
23868 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23869 }
23870 catch (const std::exception& e) {
23871 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23872 }
23873 }
23874 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
23875 return resultobj;
23876fail:
23877 return NULL__null;
23878}
23879
23880
23881SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseMap_load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23882 PyObject *resultobj = 0;
23883 GModelSpatialDiffuseMap *arg1 = (GModelSpatialDiffuseMap *) 0 ;
23884 std::string *arg2 = 0 ;
23885 void *argp1 = 0 ;
23886 int res1 = 0 ;
23887 int res2 = SWIG_OLDOBJ((0)) ;
23888 PyObject * obj0 = 0 ;
23889 PyObject * obj1 = 0 ;
23890
23891 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialDiffuseMap_load",&obj0,&obj1)) SWIG_failgoto fail;
23892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseMap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
23893 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseMap_load" "', argument " "1"" of type '" "GModelSpatialDiffuseMap *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseMap_load"
"', argument " "1"" of type '" "GModelSpatialDiffuseMap *""'"
); goto fail; } while(0)
;
23895 }
23896 arg1 = reinterpret_cast< GModelSpatialDiffuseMap * >(argp1);
23897 {
23898 std::string *ptr = (std::string *)0;
23899 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
23900 if (!SWIG_IsOK(res2)(res2 >= 0)) {
23901 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialDiffuseMap_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialDiffuseMap_load"
"', argument " "2"" of type '" "std::string const &""'")
; goto fail; } while(0)
;
23902 }
23903 if (!ptr) {
23904 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuseMap_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuseMap_load" "', argument " "2"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
23905 }
23906 arg2 = ptr;
23907 }
23908 {
23909 try {
23910 (arg1)->load((std::string const &)*arg2);
23911 }
23912 catch (const GException::out_of_range& e) {
23913 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23914 }
23915 catch (const GExceptionHandler& e) {
23916 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23917 }
23918 catch (const std::exception& e) {
23919 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23920 }
23921 }
23922 resultobj = SWIG_Py_Void();
23923 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
23924 return resultobj;
23925fail:
23926 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
23927 return NULL__null;
23928}
23929
23930
23931SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseMap_map__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23932 PyObject *resultobj = 0;
23933 GModelSpatialDiffuseMap *arg1 = (GModelSpatialDiffuseMap *) 0 ;
23934 void *argp1 = 0 ;
23935 int res1 = 0 ;
23936 PyObject * obj0 = 0 ;
23937 GSkymap *result = 0 ;
23938
23939 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialDiffuseMap_map",&obj0)) SWIG_failgoto fail;
23940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseMap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
23941 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseMap_map" "', argument " "1"" of type '" "GModelSpatialDiffuseMap const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseMap_map"
"', argument " "1"" of type '" "GModelSpatialDiffuseMap const *"
"'"); goto fail; } while(0)
;
23943 }
23944 arg1 = reinterpret_cast< GModelSpatialDiffuseMap * >(argp1);
23945 {
23946 try {
23947 result = (GSkymap *) &((GModelSpatialDiffuseMap const *)arg1)->map();
23948 }
23949 catch (const GException::out_of_range& e) {
23950 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23951 }
23952 catch (const GExceptionHandler& e) {
23953 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23954 }
23955 catch (const std::exception& e) {
23956 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23957 }
23958 }
23959 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkymap, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[45], 0
| 0)
;
23960 return resultobj;
23961fail:
23962 return NULL__null;
23963}
23964
23965
23966SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseMap_map__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23967 PyObject *resultobj = 0;
23968 GModelSpatialDiffuseMap *arg1 = (GModelSpatialDiffuseMap *) 0 ;
23969 GSkymap *arg2 = 0 ;
23970 void *argp1 = 0 ;
23971 int res1 = 0 ;
23972 void *argp2 = 0 ;
23973 int res2 = 0 ;
23974 PyObject * obj0 = 0 ;
23975 PyObject * obj1 = 0 ;
23976
23977 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpatialDiffuseMap_map",&obj0,&obj1)) SWIG_failgoto fail;
23978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseMap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
23979 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseMap_map" "', argument " "1"" of type '" "GModelSpatialDiffuseMap *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseMap_map"
"', argument " "1"" of type '" "GModelSpatialDiffuseMap *""'"
); goto fail; } while(0)
;
23981 }
23982 arg1 = reinterpret_cast< GModelSpatialDiffuseMap * >(argp1);
23983 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkymap, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[45]
, 0 | 0, 0)
;
23984 if (!SWIG_IsOK(res2)(res2 >= 0)) {
23985 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpatialDiffuseMap_map" "', argument " "2"" of type '" "GSkymap const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpatialDiffuseMap_map"
"', argument " "2"" of type '" "GSkymap const &""'"); goto
fail; } while(0)
;
23986 }
23987 if (!argp2) {
23988 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpatialDiffuseMap_map" "', argument " "2"" of type '" "GSkymap const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpatialDiffuseMap_map" "', argument " "2"
" of type '" "GSkymap const &""'"); goto fail; } while(0)
;
23989 }
23990 arg2 = reinterpret_cast< GSkymap * >(argp2);
23991 {
23992 try {
23993 (arg1)->map((GSkymap const &)*arg2);
23994 }
23995 catch (const GException::out_of_range& e) {
23996 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23997 }
23998 catch (const GExceptionHandler& e) {
23999 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24000 }
24001 catch (const std::exception& e) {
24002 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24003 }
24004 }
24005 resultobj = SWIG_Py_Void();
24006 return resultobj;
24007fail:
24008 return NULL__null;
24009}
24010
24011
24012SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseMap_map(PyObject *self, PyObject *args) {
24013 int argc;
24014 PyObject *argv[3];
24015 int ii;
24016
24017 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
24018 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
24019 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
24020 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
24021 }
24022 if (argc == 1) {
24023 int _v;
24024 void *vptr = 0;
24025 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialDiffuseMap, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[15
], 0, 0)
;
24026 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
24027 if (_v) {
24028 return _wrap_GModelSpatialDiffuseMap_map__SWIG_0(self, args);
24029 }
24030 }
24031 if (argc == 2) {
24032 int _v;
24033 void *vptr = 0;
24034 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpatialDiffuseMap, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[15
], 0, 0)
;
24035 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
24036 if (_v) {
24037 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GSkymap, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[45], 0, 0
)
;
24038 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
24039 if (_v) {
24040 return _wrap_GModelSpatialDiffuseMap_map__SWIG_1(self, args);
24041 }
24042 }
24043 }
24044
24045fail:
24046 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpatialDiffuseMap_map'.\n"
24047 " Possible C/C++ prototypes are:\n"
24048 " GModelSpatialDiffuseMap::map() const\n"
24049 " GModelSpatialDiffuseMap::map(GSkymap const &)\n");
24050 return 0;
24051}
24052
24053
24054SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpatialDiffuseMap_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24055 PyObject *resultobj = 0;
24056 GModelSpatialDiffuseMap *arg1 = (GModelSpatialDiffuseMap *) 0 ;
24057 void *argp1 = 0 ;
24058 int res1 = 0 ;
24059 PyObject * obj0 = 0 ;
24060 GModelSpatialDiffuseMap result;
24061
24062 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpatialDiffuseMap_copy",&obj0)) SWIG_failgoto fail;
24063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpatialDiffuseMap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
24064 if (!SWIG_IsOK(res1)(res1 >= 0)) {
24065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpatialDiffuseMap_copy" "', argument " "1"" of type '" "GModelSpatialDiffuseMap *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpatialDiffuseMap_copy"
"', argument " "1"" of type '" "GModelSpatialDiffuseMap *""'"
); goto fail; } while(0)
;
24066 }
24067 arg1 = reinterpret_cast< GModelSpatialDiffuseMap * >(argp1);
24068 {
24069 try {
24070 result = GModelSpatialDiffuseMap_copy(arg1);
24071 }
24072 catch (const GException::out_of_range& e) {
24073 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
24074 }
24075 catch (const GExceptionHandler& e) {
24076 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24077 }
24078 catch (const std::exception& e) {
24079 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24080 }
24081 }
24082 resultobj = SWIG_NewPointerObj((new GModelSpatialDiffuseMap(static_cast< const GModelSpatialDiffuseMap& >(result))), SWIGTYPE_p_GModelSpatialDiffuseMap, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GModelSpatialDiffuseMap
(static_cast< const GModelSpatialDiffuseMap& >(result
))), swig_types[15], 0x1 | 0)
;
24083 return resultobj;
24084fail:
24085 return NULL__null;
24086}
24087
24088
24089SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GModelSpatialDiffuseMap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24090 PyObject *obj;
24091 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
24092 SWIG_TypeNewClientData(SWIGTYPE_p_GModelSpatialDiffuseMapswig_types[15], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
24093 return SWIG_Py_Void();
24094}
24095
24096SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GModelSpectral(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24097 PyObject *resultobj = 0;
24098 GModelSpectral *arg1 = (GModelSpectral *) 0 ;
24099 void *argp1 = 0 ;
24100 int res1 = 0 ;
24101 PyObject * obj0 = 0 ;
24102
24103 if (!PyArg_ParseTuple(args,(char *)"O:delete_GModelSpectral",&obj0)) SWIG_failgoto fail;
24104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectral, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[24]
, 0x1 | 0, 0)
;
24105 if (!SWIG_IsOK(res1)(res1 >= 0)) {
24106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GModelSpectral" "', argument " "1"" of type '" "GModelSpectral *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GModelSpectral" "', argument "
"1"" of type '" "GModelSpectral *""'"); goto fail; } while(0
)
;
24107 }
24108 arg1 = reinterpret_cast< GModelSpectral * >(argp1);
24109 {
24110 try {
24111 delete arg1;
24112 }
24113 catch (const GException::out_of_range& e) {
24114 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
24115 }
24116 catch (const GExceptionHandler& e) {
24117 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24118 }
24119 catch (const std::exception& e) {
24120 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24121 }
24122 }
24123 resultobj = SWIG_Py_Void();
24124 return resultobj;
24125fail:
24126 return NULL__null;
24127}
24128
24129
24130SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectral_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24131 PyObject *resultobj = 0;
24132 GModelSpectral *arg1 = (GModelSpectral *) 0 ;
24133 void *argp1 = 0 ;
24134 int res1 = 0 ;
24135 PyObject * obj0 = 0 ;
24136
24137 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectral_clear",&obj0)) SWIG_failgoto fail;
24138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectral, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[24]
, 0 | 0, 0)
;
24139 if (!SWIG_IsOK(res1)(res1 >= 0)) {
24140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectral_clear" "', argument " "1"" of type '" "GModelSpectral *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectral_clear" "', argument "
"1"" of type '" "GModelSpectral *""'"); goto fail; } while(0
)
;
24141 }
24142 arg1 = reinterpret_cast< GModelSpectral * >(argp1);
24143 {
24144 try {
24145 (arg1)->clear();
24146 }
24147 catch (const GException::out_of_range& e) {
24148 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
24149 }
24150 catch (const GExceptionHandler& e) {
24151 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24152 }
24153 catch (const std::exception& e) {
24154 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24155 }
24156 }
24157 resultobj = SWIG_Py_Void();
24158 return resultobj;
24159fail:
24160 return NULL__null;
24161}
24162
24163
24164SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectral_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24165 PyObject *resultobj = 0;
24166 GModelSpectral *arg1 = (GModelSpectral *) 0 ;
24167 void *argp1 = 0 ;
24168 int res1 = 0 ;
24169 PyObject * obj0 = 0 ;
24170 GModelSpectral *result = 0 ;
24171
24172 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectral_clone",&obj0)) SWIG_failgoto fail;
24173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectral, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[24]
, 0 | 0, 0)
;
24174 if (!SWIG_IsOK(res1)(res1 >= 0)) {
24175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectral_clone" "', argument " "1"" of type '" "GModelSpectral const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectral_clone" "', argument "
"1"" of type '" "GModelSpectral const *""'"); goto fail; } while
(0)
;
24176 }
24177 arg1 = reinterpret_cast< GModelSpectral * >(argp1);
24178 {
24179 try {
24180 result = (GModelSpectral *)((GModelSpectral const *)arg1)->clone();
24181 }
24182 catch (const GException::out_of_range& e) {
24183 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
24184 }
24185 catch (const GExceptionHandler& e) {
24186 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24187 }
24188 catch (const std::exception& e) {
24189 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24190 }
24191 }
24192 {
24193 if (dynamic_cast<GModelSpectralConst*>(result) != NULL__null) {
24194 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralConst, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[25], 0
| 0)
;
24195 }
24196 else if (dynamic_cast<GModelSpectralFunc*>(result) != NULL__null) {
24197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralFunc, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[27], 0
| 0)
;
24198 }
24199 else if (dynamic_cast<GModelSpectralNodes*>(result) != NULL__null) {
24200 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralNodes, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[29], 0
| 0)
;
24201 }
24202 else if (dynamic_cast<GModelSpectralPlaw*>(result) != NULL__null) {
24203 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralPlaw, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[30], 0
| 0)
;
24204 }
24205 else if (dynamic_cast<GModelSpectralPlaw2*>(result) != NULL__null) {
24206 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralPlaw2, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[31], 0
| 0)
;
24207 }
24208 else if (dynamic_cast<GModelSpectralLogParabola*>(result) != NULL__null) {
24209 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralLogParabola, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[28], 0
| 0)
;
24210 }
24211 else {
24212 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectral, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[24], 0
| 0)
;
24213 }
24214 }
24215 return resultobj;
24216fail:
24217 return NULL__null;
24218}
24219
24220
24221SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectral_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24222 PyObject *resultobj = 0;
24223 GModelSpectral *arg1 = (GModelSpectral *) 0 ;
24224 void *argp1 = 0 ;
24225 int res1 = 0 ;
24226 PyObject * obj0 = 0 ;
24227 std::string result;
24228
24229 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectral_type",&obj0)) SWIG_failgoto fail;
24230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectral, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[24]
, 0 | 0, 0)
;
24231 if (!SWIG_IsOK(res1)(res1 >= 0)) {
24232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectral_type" "', argument " "1"" of type '" "GModelSpectral const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectral_type" "', argument "
"1"" of type '" "GModelSpectral const *""'"); goto fail; } while
(0)
;
24233 }
24234 arg1 = reinterpret_cast< GModelSpectral * >(argp1);
24235 {
24236 try {
24237 result = ((GModelSpectral const *)arg1)->type();
24238 }
24239 catch (const GException::out_of_range& e) {
24240 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
24241 }
24242 catch (const GExceptionHandler& e) {
24243 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24244 }
24245 catch (const std::exception& e) {
24246 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24247 }
24248 }
24249 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
24250 return resultobj;
24251fail:
24252 return NULL__null;
24253}
24254
24255
24256SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectral_eval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24257 PyObject *resultobj = 0;
24258 GModelSpectral *arg1 = (GModelSpectral *) 0 ;
24259 GEnergy *arg2 = 0 ;
24260 GTime *arg3 = 0 ;
24261 void *argp1 = 0 ;
24262 int res1 = 0 ;
24263 void *argp2 = 0 ;
24264 int res2 = 0 ;
24265 void *argp3 = 0 ;
24266 int res3 = 0 ;
24267 PyObject * obj0 = 0 ;
24268 PyObject * obj1 = 0 ;
24269 PyObject * obj2 = 0 ;
24270 double result;
24271
24272 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectral_eval",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
24273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectral, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[24]
, 0 | 0, 0)
;
24274 if (!SWIG_IsOK(res1)(res1 >= 0)) {
24275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectral_eval" "', argument " "1"" of type '" "GModelSpectral const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectral_eval" "', argument "
"1"" of type '" "GModelSpectral const *""'"); goto fail; } while
(0)
;
24276 }
24277 arg1 = reinterpret_cast< GModelSpectral * >(argp1);
24278 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
24279 if (!SWIG_IsOK(res2)(res2 >= 0)) {
24280 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectral_eval" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectral_eval" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
24281 }
24282 if (!argp2) {
24283 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectral_eval" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectral_eval" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
24284 }
24285 arg2 = reinterpret_cast< GEnergy * >(argp2);
24286 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[46]
, 0 | 0, 0)
;
24287 if (!SWIG_IsOK(res3)(res3 >= 0)) {
24288 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectral_eval" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectral_eval" "', argument "
"3"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
24289 }
24290 if (!argp3) {
24291 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectral_eval" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectral_eval" "', argument " "3"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
24292 }
24293 arg3 = reinterpret_cast< GTime * >(argp3);
24294 {
24295 try {
24296 result = (double)((GModelSpectral const *)arg1)->eval((GEnergy const &)*arg2,(GTime const &)*arg3);
24297 }
24298 catch (const GException::out_of_range& e) {
24299 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
24300 }
24301 catch (const GExceptionHandler& e) {
24302 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24303 }
24304 catch (const std::exception& e) {
24305 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24306 }
24307 }
24308 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
24309 return resultobj;
24310fail:
24311 return NULL__null;
24312}
24313
24314
24315SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectral_eval_gradients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24316 PyObject *resultobj = 0;
24317 GModelSpectral *arg1 = (GModelSpectral *) 0 ;
24318 GEnergy *arg2 = 0 ;
24319 GTime *arg3 = 0 ;
24320 void *argp1 = 0 ;
24321 int res1 = 0 ;
24322 void *argp2 = 0 ;
24323 int res2 = 0 ;
24324 void *argp3 = 0 ;
24325 int res3 = 0 ;
24326 PyObject * obj0 = 0 ;
24327 PyObject * obj1 = 0 ;
24328 PyObject * obj2 = 0 ;
24329 double result;
24330
24331 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectral_eval_gradients",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
24332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectral, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[24]
, 0 | 0, 0)
;
24333 if (!SWIG_IsOK(res1)(res1 >= 0)) {
24334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectral_eval_gradients" "', argument " "1"" of type '" "GModelSpectral *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectral_eval_gradients"
"', argument " "1"" of type '" "GModelSpectral *""'"); goto fail
; } while(0)
;
24335 }
24336 arg1 = reinterpret_cast< GModelSpectral * >(argp1);
24337 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
24338 if (!SWIG_IsOK(res2)(res2 >= 0)) {
24339 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectral_eval_gradients" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectral_eval_gradients"
"', argument " "2"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
24340 }
24341 if (!argp2) {
24342 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectral_eval_gradients" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectral_eval_gradients" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
24343 }
24344 arg2 = reinterpret_cast< GEnergy * >(argp2);
24345 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[46]
, 0 | 0, 0)
;
24346 if (!SWIG_IsOK(res3)(res3 >= 0)) {
24347 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectral_eval_gradients" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectral_eval_gradients"
"', argument " "3"" of type '" "GTime const &""'"); goto
fail; } while(0)
;
24348 }
24349 if (!argp3) {
24350 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectral_eval_gradients" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectral_eval_gradients" "', argument "
"3"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
24351 }
24352 arg3 = reinterpret_cast< GTime * >(argp3);
24353 {
24354 try {
24355 result = (double)(arg1)->eval_gradients((GEnergy const &)*arg2,(GTime const &)*arg3);
24356 }
24357 catch (const GException::out_of_range& e) {
24358 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
24359 }
24360 catch (const GExceptionHandler& e) {
24361 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24362 }
24363 catch (const std::exception& e) {
24364 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24365 }
24366 }
24367 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
24368 return resultobj;
24369fail:
24370 return NULL__null;
24371}
24372
24373
24374SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectral_flux(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24375 PyObject *resultobj = 0;
24376 GModelSpectral *arg1 = (GModelSpectral *) 0 ;
24377 GEnergy *arg2 = 0 ;
24378 GEnergy *arg3 = 0 ;
24379 void *argp1 = 0 ;
24380 int res1 = 0 ;
24381 void *argp2 = 0 ;
24382 int res2 = 0 ;
24383 void *argp3 = 0 ;
24384 int res3 = 0 ;
24385 PyObject * obj0 = 0 ;
24386 PyObject * obj1 = 0 ;
24387 PyObject * obj2 = 0 ;
24388 double result;
24389
24390 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectral_flux",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
24391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectral, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[24]
, 0 | 0, 0)
;
24392 if (!SWIG_IsOK(res1)(res1 >= 0)) {
24393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectral_flux" "', argument " "1"" of type '" "GModelSpectral const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectral_flux" "', argument "
"1"" of type '" "GModelSpectral const *""'"); goto fail; } while
(0)
;
24394 }
24395 arg1 = reinterpret_cast< GModelSpectral * >(argp1);
24396 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
24397 if (!SWIG_IsOK(res2)(res2 >= 0)) {
24398 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectral_flux" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectral_flux" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
24399 }
24400 if (!argp2) {
24401 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectral_flux" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectral_flux" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
24402 }
24403 arg2 = reinterpret_cast< GEnergy * >(argp2);
24404 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
24405 if (!SWIG_IsOK(res3)(res3 >= 0)) {
24406 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectral_flux" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectral_flux" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
24407 }
24408 if (!argp3) {
24409 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectral_flux" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectral_flux" "', argument " "3"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
24410 }
24411 arg3 = reinterpret_cast< GEnergy * >(argp3);
24412 {
24413 try {
24414 result = (double)((GModelSpectral const *)arg1)->flux((GEnergy const &)*arg2,(GEnergy const &)*arg3);
24415 }
24416 catch (const GException::out_of_range& e) {
24417 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
24418 }
24419 catch (const GExceptionHandler& e) {
24420 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24421 }
24422 catch (const std::exception& e) {
24423 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24424 }
24425 }
24426 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
24427 return resultobj;
24428fail:
24429 return NULL__null;
24430}
24431
24432
24433SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectral_eflux(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24434 PyObject *resultobj = 0;
24435 GModelSpectral *arg1 = (GModelSpectral *) 0 ;
24436 GEnergy *arg2 = 0 ;
24437 GEnergy *arg3 = 0 ;
24438 void *argp1 = 0 ;
24439 int res1 = 0 ;
24440 void *argp2 = 0 ;
24441 int res2 = 0 ;
24442 void *argp3 = 0 ;
24443 int res3 = 0 ;
24444 PyObject * obj0 = 0 ;
24445 PyObject * obj1 = 0 ;
24446 PyObject * obj2 = 0 ;
24447 double result;
24448
24449 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectral_eflux",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
24450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectral, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[24]
, 0 | 0, 0)
;
24451 if (!SWIG_IsOK(res1)(res1 >= 0)) {
24452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectral_eflux" "', argument " "1"" of type '" "GModelSpectral const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectral_eflux" "', argument "
"1"" of type '" "GModelSpectral const *""'"); goto fail; } while
(0)
;
24453 }
24454 arg1 = reinterpret_cast< GModelSpectral * >(argp1);
24455 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
24456 if (!SWIG_IsOK(res2)(res2 >= 0)) {
24457 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectral_eflux" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectral_eflux" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
24458 }
24459 if (!argp2) {
24460 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectral_eflux" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectral_eflux" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
24461 }
24462 arg2 = reinterpret_cast< GEnergy * >(argp2);
24463 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
24464 if (!SWIG_IsOK(res3)(res3 >= 0)) {
24465 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectral_eflux" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectral_eflux" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
24466 }
24467 if (!argp3) {
24468 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectral_eflux" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectral_eflux" "', argument " "3"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
24469 }
24470 arg3 = reinterpret_cast< GEnergy * >(argp3);
24471 {
24472 try {
24473 result = (double)((GModelSpectral const *)arg1)->eflux((GEnergy const &)*arg2,(GEnergy const &)*arg3);
24474 }
24475 catch (const GException::out_of_range& e) {
24476 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
24477 }
24478 catch (const GExceptionHandler& e) {
24479 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24480 }
24481 catch (const std::exception& e) {
24482 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24483 }
24484 }
24485 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
24486 return resultobj;
24487fail:
24488 return NULL__null;
24489}
24490
24491
24492SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectral_mc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24493 PyObject *resultobj = 0;
24494 GModelSpectral *arg1 = (GModelSpectral *) 0 ;
24495 GEnergy *arg2 = 0 ;
24496 GEnergy *arg3 = 0 ;
24497 GTime *arg4 = 0 ;
24498 GRan *arg5 = 0 ;
24499 void *argp1 = 0 ;
24500 int res1 = 0 ;
24501 void *argp2 = 0 ;
24502 int res2 = 0 ;
24503 void *argp3 = 0 ;
24504 int res3 = 0 ;
24505 void *argp4 = 0 ;
24506 int res4 = 0 ;
24507 void *argp5 = 0 ;
24508 int res5 = 0 ;
24509 PyObject * obj0 = 0 ;
24510 PyObject * obj1 = 0 ;
24511 PyObject * obj2 = 0 ;
24512 PyObject * obj3 = 0 ;
24513 PyObject * obj4 = 0 ;
24514 GEnergy result;
24515
24516 if (!PyArg_ParseTuple(args,(char *)"OOOOO:GModelSpectral_mc",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_failgoto fail;
24517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectral, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[24]
, 0 | 0, 0)
;
24518 if (!SWIG_IsOK(res1)(res1 >= 0)) {
24519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectral_mc" "', argument " "1"" of type '" "GModelSpectral const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectral_mc" "', argument "
"1"" of type '" "GModelSpectral const *""'"); goto fail; } while
(0)
;
24520 }
24521 arg1 = reinterpret_cast< GModelSpectral * >(argp1);
24522 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
24523 if (!SWIG_IsOK(res2)(res2 >= 0)) {
24524 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectral_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectral_mc" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
24525 }
24526 if (!argp2) {
24527 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectral_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectral_mc" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
24528 }
24529 arg2 = reinterpret_cast< GEnergy * >(argp2);
24530 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
24531 if (!SWIG_IsOK(res3)(res3 >= 0)) {
24532 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectral_mc" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectral_mc" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
24533 }
24534 if (!argp3) {
24535 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectral_mc" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectral_mc" "', argument " "3"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
24536 }
24537 arg3 = reinterpret_cast< GEnergy * >(argp3);
24538 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[46]
, 0 | 0, 0)
;
24539 if (!SWIG_IsOK(res4)(res4 >= 0)) {
24540 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelSpectral_mc" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelSpectral_mc" "', argument "
"4"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
24541 }
24542 if (!argp4) {
24543 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectral_mc" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectral_mc" "', argument " "4"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
24544 }
24545 arg4 = reinterpret_cast< GTime * >(argp4);
24546 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_GRan, 0 )SWIG_Python_ConvertPtrAndOwn(obj4, &argp5, swig_types[42]
, 0, 0)
;
24547 if (!SWIG_IsOK(res5)(res5 >= 0)) {
24548 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GModelSpectral_mc" "', argument " "5"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res5 != (
-1)) ? res5 : -5)), "in method '" "GModelSpectral_mc" "', argument "
"5"" of type '" "GRan &""'"); goto fail; } while(0)
;
24549 }
24550 if (!argp5) {
24551 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectral_mc" "', argument " "5"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectral_mc" "', argument " "5"" of type '"
"GRan &""'"); goto fail; } while(0)
;
24552 }
24553 arg5 = reinterpret_cast< GRan * >(argp5);
24554 {
24555 try {
24556 result = ((GModelSpectral const *)arg1)->mc((GEnergy const &)*arg2,(GEnergy const &)*arg3,(GTime const &)*arg4,*arg5);
24557 }
24558 catch (const GException::out_of_range& e) {
24559 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
24560 }
24561 catch (const GExceptionHandler& e) {
24562 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24563 }
24564 catch (const std::exception& e) {
24565 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24566 }
24567 }
24568 resultobj = SWIG_NewPointerObj((new GEnergy(static_cast< const GEnergy& >(result))), SWIGTYPE_p_GEnergy, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GEnergy(static_cast<
const GEnergy& >(result))), swig_types[3], 0x1 | 0)
;
24569 return resultobj;
24570fail:
24571 return NULL__null;
24572}
24573
24574
24575SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectral_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24576 PyObject *resultobj = 0;
24577 GModelSpectral *arg1 = (GModelSpectral *) 0 ;
24578 GXmlElement *arg2 = 0 ;
24579 void *argp1 = 0 ;
24580 int res1 = 0 ;
24581 void *argp2 = 0 ;
24582 int res2 = 0 ;
24583 PyObject * obj0 = 0 ;
24584 PyObject * obj1 = 0 ;
24585
24586 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectral_read",&obj0,&obj1)) SWIG_failgoto fail;
24587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectral, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[24]
, 0 | 0, 0)
;
24588 if (!SWIG_IsOK(res1)(res1 >= 0)) {
24589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectral_read" "', argument " "1"" of type '" "GModelSpectral *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectral_read" "', argument "
"1"" of type '" "GModelSpectral *""'"); goto fail; } while(0
)
;
24590 }
24591 arg1 = reinterpret_cast< GModelSpectral * >(argp1);
24592 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0 | 0, 0)
;
24593 if (!SWIG_IsOK(res2)(res2 >= 0)) {
24594 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectral_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectral_read" "', argument "
"2"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
24595 }
24596 if (!argp2) {
24597 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectral_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectral_read" "', argument " "2"" of type '"
"GXmlElement const &""'"); goto fail; } while(0)
;
24598 }
24599 arg2 = reinterpret_cast< GXmlElement * >(argp2);
24600 {
24601 try {
24602 (arg1)->read((GXmlElement const &)*arg2);
24603 }
24604 catch (const GException::out_of_range& e) {
24605 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
24606 }
24607 catch (const GExceptionHandler& e) {
24608 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24609 }
24610 catch (const std::exception& e) {
24611 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24612 }
24613 }
24614 resultobj = SWIG_Py_Void();
24615 return resultobj;
24616fail:
24617 return NULL__null;
24618}
24619
24620
24621SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectral_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24622 PyObject *resultobj = 0;
24623 GModelSpectral *arg1 = (GModelSpectral *) 0 ;
24624 GXmlElement *arg2 = 0 ;
24625 void *argp1 = 0 ;
24626 int res1 = 0 ;
24627 void *argp2 = 0 ;
24628 int res2 = 0 ;
24629 PyObject * obj0 = 0 ;
24630 PyObject * obj1 = 0 ;
24631
24632 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectral_write",&obj0,&obj1)) SWIG_failgoto fail;
24633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectral, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[24]
, 0 | 0, 0)
;
24634 if (!SWIG_IsOK(res1)(res1 >= 0)) {
24635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectral_write" "', argument " "1"" of type '" "GModelSpectral const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectral_write" "', argument "
"1"" of type '" "GModelSpectral const *""'"); goto fail; } while
(0)
;
24636 }
24637 arg1 = reinterpret_cast< GModelSpectral * >(argp1);
24638 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0, 0)
;
24639 if (!SWIG_IsOK(res2)(res2 >= 0)) {
24640 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectral_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectral_write" "', argument "
"2"" of type '" "GXmlElement &""'"); goto fail; } while(
0)
;
24641 }
24642 if (!argp2) {
24643 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectral_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectral_write" "', argument " "2"" of type '"
"GXmlElement &""'"); goto fail; } while(0)
;
24644 }
24645 arg2 = reinterpret_cast< GXmlElement * >(argp2);
24646 {
24647 try {
24648 ((GModelSpectral const *)arg1)->write(*arg2);
24649 }
24650 catch (const GException::out_of_range& e) {
24651 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
24652 }
24653 catch (const GExceptionHandler& e) {
24654 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24655 }
24656 catch (const std::exception& e) {
24657 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24658 }
24659 }
24660 resultobj = SWIG_Py_Void();
24661 return resultobj;
24662fail:
24663 return NULL__null;
24664}
24665
24666
24667SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectral_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24668 PyObject *resultobj = 0;
24669 GModelSpectral *arg1 = (GModelSpectral *) 0 ;
24670 void *argp1 = 0 ;
24671 int res1 = 0 ;
24672 PyObject * obj0 = 0 ;
24673 int result;
24674
24675 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectral_size",&obj0)) SWIG_failgoto fail;
24676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectral, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[24]
, 0 | 0, 0)
;
24677 if (!SWIG_IsOK(res1)(res1 >= 0)) {
24678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectral_size" "', argument " "1"" of type '" "GModelSpectral const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectral_size" "', argument "
"1"" of type '" "GModelSpectral const *""'"); goto fail; } while
(0)
;
24679 }
24680 arg1 = reinterpret_cast< GModelSpectral * >(argp1);
24681 {
24682 try {
24683 result = (int)((GModelSpectral const *)arg1)->size();
24684 }
24685 catch (const GException::out_of_range& e) {
24686 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
24687 }
24688 catch (const GExceptionHandler& e) {
24689 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24690 }
24691 catch (const std::exception& e) {
24692 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24693 }
24694 }
24695 resultobj = SWIG_From_int(static_cast< int >(result));
24696 return resultobj;
24697fail:
24698 return NULL__null;
24699}
24700
24701
24702SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectral_autoscale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24703 PyObject *resultobj = 0;
24704 GModelSpectral *arg1 = (GModelSpectral *) 0 ;
24705 void *argp1 = 0 ;
24706 int res1 = 0 ;
24707 PyObject * obj0 = 0 ;
24708
24709 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectral_autoscale",&obj0)) SWIG_failgoto fail;
24710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectral, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[24]
, 0 | 0, 0)
;
24711 if (!SWIG_IsOK(res1)(res1 >= 0)) {
24712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectral_autoscale" "', argument " "1"" of type '" "GModelSpectral *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectral_autoscale" "', argument "
"1"" of type '" "GModelSpectral *""'"); goto fail; } while(0
)
;
24713 }
24714 arg1 = reinterpret_cast< GModelSpectral * >(argp1);
24715 {
24716 try {
24717 (arg1)->autoscale();
24718 }
24719 catch (const GException::out_of_range& e) {
24720 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
24721 }
24722 catch (const GExceptionHandler& e) {
24723 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24724 }
24725 catch (const std::exception& e) {
24726 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24727 }
24728 }
24729 resultobj = SWIG_Py_Void();
24730 return resultobj;
24731fail:
24732 return NULL__null;
24733}
24734
24735
24736SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectral___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24737 PyObject *resultobj = 0;
24738 GModelSpectral *arg1 = (GModelSpectral *) 0 ;
24739 int *arg2 = 0 ;
24740 void *argp1 = 0 ;
24741 int res1 = 0 ;
24742 int temp2 ;
24743 int val2 ;
24744 int ecode2 = 0 ;
24745 PyObject * obj0 = 0 ;
24746 PyObject * obj1 = 0 ;
24747 GModelPar *result = 0 ;
24748
24749 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectral___getitem__",&obj0,&obj1)) SWIG_failgoto fail;
24750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectral, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[24]
, 0 | 0, 0)
;
24751 if (!SWIG_IsOK(res1)(res1 >= 0)) {
24752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectral___getitem__" "', argument " "1"" of type '" "GModelSpectral *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectral___getitem__"
"', argument " "1"" of type '" "GModelSpectral *""'"); goto fail
; } while(0)
;
24753 }
24754 arg1 = reinterpret_cast< GModelSpectral * >(argp1);
24755 ecode2 = SWIG_AsVal_int(obj1, &val2);
24756 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
24757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpectral___getitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpectral___getitem__"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
24758 }
24759 temp2 = static_cast< int >(val2);
24760 arg2 = &temp2;
24761 {
24762 try {
24763 result = (GModelPar *) &GModelSpectral___getitem____SWIG_0(arg1,(int const &)*arg2);
24764 }
24765 catch (const GException::out_of_range& e) {
24766 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
24767 }
24768 catch (const GExceptionHandler& e) {
24769 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24770 }
24771 catch (const std::exception& e) {
24772 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24773 }
24774 }
24775 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelPar, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], 0 |
0)
;
24776 return resultobj;
24777fail:
24778 return NULL__null;
24779}
24780
24781
24782SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectral___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24783 PyObject *resultobj = 0;
24784 GModelSpectral *arg1 = (GModelSpectral *) 0 ;
24785 std::string *arg2 = 0 ;
24786 void *argp1 = 0 ;
24787 int res1 = 0 ;
24788 int res2 = SWIG_OLDOBJ((0)) ;
24789 PyObject * obj0 = 0 ;
24790 PyObject * obj1 = 0 ;
24791 GModelPar *result = 0 ;
24792
24793 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectral___getitem__",&obj0,&obj1)) SWIG_failgoto fail;
24794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectral, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[24]
, 0 | 0, 0)
;
24795 if (!SWIG_IsOK(res1)(res1 >= 0)) {
24796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectral___getitem__" "', argument " "1"" of type '" "GModelSpectral *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectral___getitem__"
"', argument " "1"" of type '" "GModelSpectral *""'"); goto fail
; } while(0)
;
24797 }
24798 arg1 = reinterpret_cast< GModelSpectral * >(argp1);
24799 {
24800 std::string *ptr = (std::string *)0;
24801 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
24802 if (!SWIG_IsOK(res2)(res2 >= 0)) {
24803 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectral___getitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectral___getitem__"
"', argument " "2"" of type '" "std::string const &""'")
; goto fail; } while(0)
;
24804 }
24805 if (!ptr) {
24806 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectral___getitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectral___getitem__" "', argument " "2"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
24807 }
24808 arg2 = ptr;
24809 }
24810 {
24811 try {
24812 result = (GModelPar *) &GModelSpectral___getitem____SWIG_1(arg1,(std::string const &)*arg2);
24813 }
24814 catch (const GException::out_of_range& e) {
24815 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
24816 }
24817 catch (const GExceptionHandler& e) {
24818 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24819 }
24820 catch (const std::exception& e) {
24821 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24822 }
24823 }
24824 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelPar, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], 0 |
0)
;
24825 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
24826 return resultobj;
24827fail:
24828 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
24829 return NULL__null;
24830}
24831
24832
24833SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectral___getitem__(PyObject *self, PyObject *args) {
24834 int argc;
24835 PyObject *argv[3];
24836 int ii;
24837
24838 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
24839 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
24840 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
24841 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
24842 }
24843 if (argc == 2) {
24844 int _v;
24845 void *vptr = 0;
24846 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectral, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[24
], 0, 0)
;
24847 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
24848 if (_v) {
24849 {
24850 int res = SWIG_AsVal_int(argv[1], NULL__null);
24851 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
24852 }
24853 if (_v) {
24854 return _wrap_GModelSpectral___getitem____SWIG_0(self, args);
24855 }
24856 }
24857 }
24858 if (argc == 2) {
24859 int _v;
24860 void *vptr = 0;
24861 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectral, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[24
], 0, 0)
;
24862 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
24863 if (_v) {
24864 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
24865 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
24866 if (_v) {
24867 return _wrap_GModelSpectral___getitem____SWIG_1(self, args);
24868 }
24869 }
24870 }
24871
24872fail:
24873 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpectral___getitem__'.\n"
24874 " Possible C/C++ prototypes are:\n"
24875 " GModelSpectral::__getitem__(int const &)\n"
24876 " GModelSpectral::__getitem__(std::string const &)\n");
24877 return 0;
24878}
24879
24880
24881SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectral___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24882 PyObject *resultobj = 0;
24883 GModelSpectral *arg1 = (GModelSpectral *) 0 ;
24884 int *arg2 = 0 ;
24885 GModelPar *arg3 = 0 ;
24886 void *argp1 = 0 ;
24887 int res1 = 0 ;
24888 int temp2 ;
24889 int val2 ;
24890 int ecode2 = 0 ;
24891 void *argp3 = 0 ;
24892 int res3 = 0 ;
24893 PyObject * obj0 = 0 ;
24894 PyObject * obj1 = 0 ;
24895 PyObject * obj2 = 0 ;
24896
24897 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectral___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
24898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectral, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[24]
, 0 | 0, 0)
;
24899 if (!SWIG_IsOK(res1)(res1 >= 0)) {
24900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectral___setitem__" "', argument " "1"" of type '" "GModelSpectral *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectral___setitem__"
"', argument " "1"" of type '" "GModelSpectral *""'"); goto fail
; } while(0)
;
24901 }
24902 arg1 = reinterpret_cast< GModelSpectral * >(argp1);
24903 ecode2 = SWIG_AsVal_int(obj1, &val2);
24904 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
24905 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpectral___setitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpectral___setitem__"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
24906 }
24907 temp2 = static_cast< int >(val2);
24908 arg2 = &temp2;
24909 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GModelPar, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[8],
0 | 0, 0)
;
24910 if (!SWIG_IsOK(res3)(res3 >= 0)) {
24911 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectral___setitem__" "', argument " "3"" of type '" "GModelPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectral___setitem__"
"', argument " "3"" of type '" "GModelPar const &""'"); goto
fail; } while(0)
;
24912 }
24913 if (!argp3) {
24914 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectral___setitem__" "', argument " "3"" of type '" "GModelPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectral___setitem__" "', argument " "3"
" of type '" "GModelPar const &""'"); goto fail; } while(
0)
;
24915 }
24916 arg3 = reinterpret_cast< GModelPar * >(argp3);
24917 {
24918 try {
24919 GModelSpectral___setitem____SWIG_0(arg1,(int const &)*arg2,(GModelPar const &)*arg3);
24920 }
24921 catch (const GException::out_of_range& e) {
24922 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
24923 }
24924 catch (const GExceptionHandler& e) {
24925 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24926 }
24927 catch (const std::exception& e) {
24928 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24929 }
24930 }
24931 resultobj = SWIG_Py_Void();
24932 return resultobj;
24933fail:
24934 return NULL__null;
24935}
24936
24937
24938SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectral___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24939 PyObject *resultobj = 0;
24940 GModelSpectral *arg1 = (GModelSpectral *) 0 ;
24941 std::string *arg2 = 0 ;
24942 GModelPar *arg3 = 0 ;
24943 void *argp1 = 0 ;
24944 int res1 = 0 ;
24945 int res2 = SWIG_OLDOBJ((0)) ;
24946 void *argp3 = 0 ;
24947 int res3 = 0 ;
24948 PyObject * obj0 = 0 ;
24949 PyObject * obj1 = 0 ;
24950 PyObject * obj2 = 0 ;
24951
24952 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectral___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
24953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectral, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[24]
, 0 | 0, 0)
;
24954 if (!SWIG_IsOK(res1)(res1 >= 0)) {
24955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectral___setitem__" "', argument " "1"" of type '" "GModelSpectral *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectral___setitem__"
"', argument " "1"" of type '" "GModelSpectral *""'"); goto fail
; } while(0)
;
24956 }
24957 arg1 = reinterpret_cast< GModelSpectral * >(argp1);
24958 {
24959 std::string *ptr = (std::string *)0;
24960 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
24961 if (!SWIG_IsOK(res2)(res2 >= 0)) {
24962 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectral___setitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectral___setitem__"
"', argument " "2"" of type '" "std::string const &""'")
; goto fail; } while(0)
;
24963 }
24964 if (!ptr) {
24965 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectral___setitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectral___setitem__" "', argument " "2"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
24966 }
24967 arg2 = ptr;
24968 }
24969 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GModelPar, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[8],
0 | 0, 0)
;
24970 if (!SWIG_IsOK(res3)(res3 >= 0)) {
24971 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectral___setitem__" "', argument " "3"" of type '" "GModelPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectral___setitem__"
"', argument " "3"" of type '" "GModelPar const &""'"); goto
fail; } while(0)
;
24972 }
24973 if (!argp3) {
24974 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectral___setitem__" "', argument " "3"" of type '" "GModelPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectral___setitem__" "', argument " "3"
" of type '" "GModelPar const &""'"); goto fail; } while(
0)
;
24975 }
24976 arg3 = reinterpret_cast< GModelPar * >(argp3);
24977 {
24978 try {
24979 GModelSpectral___setitem____SWIG_1(arg1,(std::string const &)*arg2,(GModelPar const &)*arg3);
24980 }
24981 catch (const GException::out_of_range& e) {
24982 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
24983 }
24984 catch (const GExceptionHandler& e) {
24985 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24986 }
24987 catch (const std::exception& e) {
24988 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24989 }
24990 }
24991 resultobj = SWIG_Py_Void();
24992 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
24993 return resultobj;
24994fail:
24995 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
24996 return NULL__null;
24997}
24998
24999
25000SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectral___setitem__(PyObject *self, PyObject *args) {
25001 int argc;
25002 PyObject *argv[4];
25003 int ii;
25004
25005 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
25006 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
25007 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
25008 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
25009 }
25010 if (argc == 3) {
25011 int _v;
25012 void *vptr = 0;
25013 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectral, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[24
], 0, 0)
;
25014 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
25015 if (_v) {
25016 {
25017 int res = SWIG_AsVal_int(argv[1], NULL__null);
25018 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
25019 }
25020 if (_v) {
25021 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GModelPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[8], 0, 0);
25022 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
25023 if (_v) {
25024 return _wrap_GModelSpectral___setitem____SWIG_0(self, args);
25025 }
25026 }
25027 }
25028 }
25029 if (argc == 3) {
25030 int _v;
25031 void *vptr = 0;
25032 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectral, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[24
], 0, 0)
;
25033 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
25034 if (_v) {
25035 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
25036 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
25037 if (_v) {
25038 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GModelPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[8], 0, 0);
25039 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
25040 if (_v) {
25041 return _wrap_GModelSpectral___setitem____SWIG_1(self, args);
25042 }
25043 }
25044 }
25045 }
25046
25047fail:
25048 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpectral___setitem__'.\n"
25049 " Possible C/C++ prototypes are:\n"
25050 " GModelSpectral::__setitem__(int const &,GModelPar const &)\n"
25051 " GModelSpectral::__setitem__(std::string const &,GModelPar const &)\n");
25052 return 0;
25053}
25054
25055
25056SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GModelSpectral_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25057 PyObject *obj;
25058 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
25059 SWIG_TypeNewClientData(SWIGTYPE_p_GModelSpectralswig_types[24], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
25060 return SWIG_Py_Void();
25061}
25062
25063SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralRegistry__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25064 PyObject *resultobj = 0;
25065 GModelSpectralRegistry *result = 0 ;
25066
25067 if (!PyArg_ParseTuple(args,(char *)":new_GModelSpectralRegistry")) SWIG_failgoto fail;
25068 {
25069 try {
25070 result = (GModelSpectralRegistry *)new GModelSpectralRegistry();
25071 }
25072 catch (const GException::out_of_range& e) {
25073 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25074 }
25075 catch (const GExceptionHandler& e) {
25076 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25077 }
25078 catch (const std::exception& e) {
25079 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25080 }
25081 }
25082 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralRegistry, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[32], (
(0x1 << 1) | 0x1) | 0)
;
25083 return resultobj;
25084fail:
25085 return NULL__null;
25086}
25087
25088
25089SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralRegistry__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25090 PyObject *resultobj = 0;
25091 GModelSpectral *arg1 = (GModelSpectral *) 0 ;
25092 void *argp1 = 0 ;
25093 int res1 = 0 ;
25094 PyObject * obj0 = 0 ;
25095 GModelSpectralRegistry *result = 0 ;
25096
25097 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpectralRegistry",&obj0)) SWIG_failgoto fail;
25098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectral, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[24]
, 0 | 0, 0)
;
25099 if (!SWIG_IsOK(res1)(res1 >= 0)) {
25100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpectralRegistry" "', argument " "1"" of type '" "GModelSpectral const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpectralRegistry"
"', argument " "1"" of type '" "GModelSpectral const *""'");
goto fail; } while(0)
;
25101 }
25102 arg1 = reinterpret_cast< GModelSpectral * >(argp1);
25103 {
25104 try {
25105 result = (GModelSpectralRegistry *)new GModelSpectralRegistry((GModelSpectral const *)arg1);
25106 }
25107 catch (const GException::out_of_range& e) {
25108 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25109 }
25110 catch (const GExceptionHandler& e) {
25111 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25112 }
25113 catch (const std::exception& e) {
25114 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25115 }
25116 }
25117 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralRegistry, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[32], (
(0x1 << 1) | 0x1) | 0)
;
25118 return resultobj;
25119fail:
25120 return NULL__null;
25121}
25122
25123
25124SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralRegistry__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25125 PyObject *resultobj = 0;
25126 GModelSpectralRegistry *arg1 = 0 ;
25127 void *argp1 = 0 ;
25128 int res1 = 0 ;
25129 PyObject * obj0 = 0 ;
25130 GModelSpectralRegistry *result = 0 ;
25131
25132 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpectralRegistry",&obj0)) SWIG_failgoto fail;
25133 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GModelSpectralRegistry, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[32]
, 0 | 0, 0)
;
25134 if (!SWIG_IsOK(res1)(res1 >= 0)) {
25135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpectralRegistry" "', argument " "1"" of type '" "GModelSpectralRegistry const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpectralRegistry"
"', argument " "1"" of type '" "GModelSpectralRegistry const &"
"'"); goto fail; } while(0)
;
25136 }
25137 if (!argp1) {
25138 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpectralRegistry" "', argument " "1"" of type '" "GModelSpectralRegistry const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpectralRegistry" "', argument " "1"
" of type '" "GModelSpectralRegistry const &""'"); goto fail
; } while(0)
;
25139 }
25140 arg1 = reinterpret_cast< GModelSpectralRegistry * >(argp1);
25141 {
25142 try {
25143 result = (GModelSpectralRegistry *)new GModelSpectralRegistry((GModelSpectralRegistry const &)*arg1);
25144 }
25145 catch (const GException::out_of_range& e) {
25146 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25147 }
25148 catch (const GExceptionHandler& e) {
25149 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25150 }
25151 catch (const std::exception& e) {
25152 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25153 }
25154 }
25155 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralRegistry, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[32], (
(0x1 << 1) | 0x1) | 0)
;
25156 return resultobj;
25157fail:
25158 return NULL__null;
25159}
25160
25161
25162SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralRegistry(PyObject *self, PyObject *args) {
25163 int argc;
25164 PyObject *argv[2];
25165 int ii;
25166
25167 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
25168 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
25169 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
25170 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
25171 }
25172 if (argc == 0) {
25173 return _wrap_new_GModelSpectralRegistry__SWIG_0(self, args);
25174 }
25175 if (argc == 1) {
25176 int _v;
25177 void *vptr = 0;
25178 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectral, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[24
], 0, 0)
;
25179 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
25180 if (_v) {
25181 return _wrap_new_GModelSpectralRegistry__SWIG_1(self, args);
25182 }
25183 }
25184 if (argc == 1) {
25185 int _v;
25186 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GModelSpectralRegistry, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[32], 0, 0
)
;
25187 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
25188 if (_v) {
25189 return _wrap_new_GModelSpectralRegistry__SWIG_2(self, args);
25190 }
25191 }
25192
25193fail:
25194 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GModelSpectralRegistry'.\n"
25195 " Possible C/C++ prototypes are:\n"
25196 " GModelSpectralRegistry::GModelSpectralRegistry()\n"
25197 " GModelSpectralRegistry::GModelSpectralRegistry(GModelSpectral const *)\n"
25198 " GModelSpectralRegistry::GModelSpectralRegistry(GModelSpectralRegistry const &)\n");
25199 return 0;
25200}
25201
25202
25203SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GModelSpectralRegistry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25204 PyObject *resultobj = 0;
25205 GModelSpectralRegistry *arg1 = (GModelSpectralRegistry *) 0 ;
25206 void *argp1 = 0 ;
25207 int res1 = 0 ;
25208 PyObject * obj0 = 0 ;
25209
25210 if (!PyArg_ParseTuple(args,(char *)"O:delete_GModelSpectralRegistry",&obj0)) SWIG_failgoto fail;
25211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralRegistry, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[32]
, 0x1 | 0, 0)
;
25212 if (!SWIG_IsOK(res1)(res1 >= 0)) {
25213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GModelSpectralRegistry" "', argument " "1"" of type '" "GModelSpectralRegistry *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GModelSpectralRegistry"
"', argument " "1"" of type '" "GModelSpectralRegistry *""'"
); goto fail; } while(0)
;
25214 }
25215 arg1 = reinterpret_cast< GModelSpectralRegistry * >(argp1);
25216 {
25217 try {
25218 delete arg1;
25219 }
25220 catch (const GException::out_of_range& e) {
25221 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25222 }
25223 catch (const GExceptionHandler& e) {
25224 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25225 }
25226 catch (const std::exception& e) {
25227 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25228 }
25229 }
25230 resultobj = SWIG_Py_Void();
25231 return resultobj;
25232fail:
25233 return NULL__null;
25234}
25235
25236
25237SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralRegistry_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25238 PyObject *resultobj = 0;
25239 GModelSpectralRegistry *arg1 = (GModelSpectralRegistry *) 0 ;
25240 void *argp1 = 0 ;
25241 int res1 = 0 ;
25242 PyObject * obj0 = 0 ;
25243 int result;
25244
25245 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralRegistry_size",&obj0)) SWIG_failgoto fail;
25246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralRegistry, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[32]
, 0 | 0, 0)
;
25247 if (!SWIG_IsOK(res1)(res1 >= 0)) {
25248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralRegistry_size" "', argument " "1"" of type '" "GModelSpectralRegistry const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralRegistry_size"
"', argument " "1"" of type '" "GModelSpectralRegistry const *"
"'"); goto fail; } while(0)
;
25249 }
25250 arg1 = reinterpret_cast< GModelSpectralRegistry * >(argp1);
25251 {
25252 try {
25253 result = (int)((GModelSpectralRegistry const *)arg1)->size();
25254 }
25255 catch (const GException::out_of_range& e) {
25256 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25257 }
25258 catch (const GExceptionHandler& e) {
25259 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25260 }
25261 catch (const std::exception& e) {
25262 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25263 }
25264 }
25265 resultobj = SWIG_From_int(static_cast< int >(result));
25266 return resultobj;
25267fail:
25268 return NULL__null;
25269}
25270
25271
25272SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralRegistry_alloc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25273 PyObject *resultobj = 0;
25274 GModelSpectralRegistry *arg1 = (GModelSpectralRegistry *) 0 ;
25275 std::string *arg2 = 0 ;
25276 void *argp1 = 0 ;
25277 int res1 = 0 ;
25278 int res2 = SWIG_OLDOBJ((0)) ;
25279 PyObject * obj0 = 0 ;
25280 PyObject * obj1 = 0 ;
25281 GModelSpectral *result = 0 ;
25282
25283 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralRegistry_alloc",&obj0,&obj1)) SWIG_failgoto fail;
25284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralRegistry, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[32]
, 0 | 0, 0)
;
25285 if (!SWIG_IsOK(res1)(res1 >= 0)) {
25286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralRegistry_alloc" "', argument " "1"" of type '" "GModelSpectralRegistry const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralRegistry_alloc"
"', argument " "1"" of type '" "GModelSpectralRegistry const *"
"'"); goto fail; } while(0)
;
25287 }
25288 arg1 = reinterpret_cast< GModelSpectralRegistry * >(argp1);
25289 {
25290 std::string *ptr = (std::string *)0;
25291 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
25292 if (!SWIG_IsOK(res2)(res2 >= 0)) {
25293 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralRegistry_alloc" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralRegistry_alloc"
"', argument " "2"" of type '" "std::string const &""'")
; goto fail; } while(0)
;
25294 }
25295 if (!ptr) {
25296 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralRegistry_alloc" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralRegistry_alloc" "', argument " "2"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
25297 }
25298 arg2 = ptr;
25299 }
25300 {
25301 try {
25302 result = (GModelSpectral *)((GModelSpectralRegistry const *)arg1)->alloc((std::string const &)*arg2);
25303 }
25304 catch (const GException::out_of_range& e) {
25305 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25306 }
25307 catch (const GExceptionHandler& e) {
25308 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25309 }
25310 catch (const std::exception& e) {
25311 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25312 }
25313 }
25314 {
25315 if (dynamic_cast<GModelSpectralConst*>(result) != NULL__null) {
25316 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralConst, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[25], 0
| 0)
;
25317 }
25318 else if (dynamic_cast<GModelSpectralFunc*>(result) != NULL__null) {
25319 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralFunc, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[27], 0
| 0)
;
25320 }
25321 else if (dynamic_cast<GModelSpectralNodes*>(result) != NULL__null) {
25322 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralNodes, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[29], 0
| 0)
;
25323 }
25324 else if (dynamic_cast<GModelSpectralPlaw*>(result) != NULL__null) {
25325 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralPlaw, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[30], 0
| 0)
;
25326 }
25327 else if (dynamic_cast<GModelSpectralPlaw2*>(result) != NULL__null) {
25328 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralPlaw2, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[31], 0
| 0)
;
25329 }
25330 else if (dynamic_cast<GModelSpectralLogParabola*>(result) != NULL__null) {
25331 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralLogParabola, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[28], 0
| 0)
;
25332 }
25333 else {
25334 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectral, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[24], 0
| 0)
;
25335 }
25336 }
25337 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
25338 return resultobj;
25339fail:
25340 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
25341 return NULL__null;
25342}
25343
25344
25345SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralRegistry_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25346 PyObject *resultobj = 0;
25347 GModelSpectralRegistry *arg1 = (GModelSpectralRegistry *) 0 ;
25348 int *arg2 = 0 ;
25349 void *argp1 = 0 ;
25350 int res1 = 0 ;
25351 int temp2 ;
25352 int val2 ;
25353 int ecode2 = 0 ;
25354 PyObject * obj0 = 0 ;
25355 PyObject * obj1 = 0 ;
25356 std::string result;
25357
25358 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralRegistry_name",&obj0,&obj1)) SWIG_failgoto fail;
25359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralRegistry, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[32]
, 0 | 0, 0)
;
25360 if (!SWIG_IsOK(res1)(res1 >= 0)) {
25361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralRegistry_name" "', argument " "1"" of type '" "GModelSpectralRegistry const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralRegistry_name"
"', argument " "1"" of type '" "GModelSpectralRegistry const *"
"'"); goto fail; } while(0)
;
25362 }
25363 arg1 = reinterpret_cast< GModelSpectralRegistry * >(argp1);
25364 ecode2 = SWIG_AsVal_int(obj1, &val2);
25365 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
25366 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpectralRegistry_name" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpectralRegistry_name"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
25367 }
25368 temp2 = static_cast< int >(val2);
25369 arg2 = &temp2;
25370 {
25371 try {
25372 result = ((GModelSpectralRegistry const *)arg1)->name((int const &)*arg2);
25373 }
25374 catch (const GException::out_of_range& e) {
25375 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25376 }
25377 catch (const GExceptionHandler& e) {
25378 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25379 }
25380 catch (const std::exception& e) {
25381 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25382 }
25383 }
25384 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
25385 return resultobj;
25386fail:
25387 return NULL__null;
25388}
25389
25390
25391SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralRegistry___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25392 PyObject *resultobj = 0;
25393 GModelSpectralRegistry *arg1 = (GModelSpectralRegistry *) 0 ;
25394 void *argp1 = 0 ;
25395 int res1 = 0 ;
25396 PyObject * obj0 = 0 ;
25397 char *result = 0 ;
25398
25399 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralRegistry___str__",&obj0)) SWIG_failgoto fail;
25400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralRegistry, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[32]
, 0 | 0, 0)
;
25401 if (!SWIG_IsOK(res1)(res1 >= 0)) {
25402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralRegistry___str__" "', argument " "1"" of type '" "GModelSpectralRegistry *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralRegistry___str__"
"', argument " "1"" of type '" "GModelSpectralRegistry *""'"
); goto fail; } while(0)
;
25403 }
25404 arg1 = reinterpret_cast< GModelSpectralRegistry * >(argp1);
25405 {
25406 try {
25407 result = (char *)GModelSpectralRegistry___str__(arg1);
25408 }
25409 catch (const GException::out_of_range& e) {
25410 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25411 }
25412 catch (const GExceptionHandler& e) {
25413 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25414 }
25415 catch (const std::exception& e) {
25416 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25417 }
25418 }
25419 resultobj = SWIG_FromCharPtr((const char *)result);
25420 return resultobj;
25421fail:
25422 return NULL__null;
25423}
25424
25425
25426SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GModelSpectralRegistry_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25427 PyObject *obj;
25428 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
25429 SWIG_TypeNewClientData(SWIGTYPE_p_GModelSpectralRegistryswig_types[32], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
25430 return SWIG_Py_Void();
25431}
25432
25433SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralConst__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25434 PyObject *resultobj = 0;
25435 GModelSpectralConst *result = 0 ;
25436
25437 if (!PyArg_ParseTuple(args,(char *)":new_GModelSpectralConst")) SWIG_failgoto fail;
25438 {
25439 try {
25440 result = (GModelSpectralConst *)new GModelSpectralConst();
25441 }
25442 catch (const GException::out_of_range& e) {
25443 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25444 }
25445 catch (const GExceptionHandler& e) {
25446 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25447 }
25448 catch (const std::exception& e) {
25449 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25450 }
25451 }
25452 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralConst, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[25], (
(0x1 << 1) | 0x1) | 0)
;
25453 return resultobj;
25454fail:
25455 return NULL__null;
25456}
25457
25458
25459SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralConst__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25460 PyObject *resultobj = 0;
25461 GXmlElement *arg1 = 0 ;
25462 void *argp1 = 0 ;
25463 int res1 = 0 ;
25464 PyObject * obj0 = 0 ;
25465 GModelSpectralConst *result = 0 ;
25466
25467 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpectralConst",&obj0)) SWIG_failgoto fail;
25468 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[50]
, 0 | 0, 0)
;
25469 if (!SWIG_IsOK(res1)(res1 >= 0)) {
25470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpectralConst" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpectralConst" "', argument "
"1"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
25471 }
25472 if (!argp1) {
25473 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpectralConst" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpectralConst" "', argument " "1"" of type '"
"GXmlElement const &""'"); goto fail; } while(0)
;
25474 }
25475 arg1 = reinterpret_cast< GXmlElement * >(argp1);
25476 {
25477 try {
25478 result = (GModelSpectralConst *)new GModelSpectralConst((GXmlElement const &)*arg1);
25479 }
25480 catch (const GException::out_of_range& e) {
25481 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25482 }
25483 catch (const GExceptionHandler& e) {
25484 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25485 }
25486 catch (const std::exception& e) {
25487 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25488 }
25489 }
25490 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralConst, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[25], (
(0x1 << 1) | 0x1) | 0)
;
25491 return resultobj;
25492fail:
25493 return NULL__null;
25494}
25495
25496
25497SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralConst__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25498 PyObject *resultobj = 0;
25499 double *arg1 = 0 ;
25500 double temp1 ;
25501 double val1 ;
25502 int ecode1 = 0 ;
25503 PyObject * obj0 = 0 ;
25504 GModelSpectralConst *result = 0 ;
25505
25506 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpectralConst",&obj0)) SWIG_failgoto fail;
25507 ecode1 = SWIG_AsVal_double(obj0, &val1);
25508 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
25509 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GModelSpectralConst" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "new_GModelSpectralConst"
"', argument " "1"" of type '" "double""'"); goto fail; } while
(0)
;
25510 }
25511 temp1 = static_cast< double >(val1);
25512 arg1 = &temp1;
25513 {
25514 try {
25515 result = (GModelSpectralConst *)new GModelSpectralConst((double const &)*arg1);
25516 }
25517 catch (const GException::out_of_range& e) {
25518 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25519 }
25520 catch (const GExceptionHandler& e) {
25521 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25522 }
25523 catch (const std::exception& e) {
25524 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25525 }
25526 }
25527 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralConst, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[25], (
(0x1 << 1) | 0x1) | 0)
;
25528 return resultobj;
25529fail:
25530 return NULL__null;
25531}
25532
25533
25534SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralConst__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25535 PyObject *resultobj = 0;
25536 GModelSpectralConst *arg1 = 0 ;
25537 void *argp1 = 0 ;
25538 int res1 = 0 ;
25539 PyObject * obj0 = 0 ;
25540 GModelSpectralConst *result = 0 ;
25541
25542 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpectralConst",&obj0)) SWIG_failgoto fail;
25543 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GModelSpectralConst, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25]
, 0 | 0, 0)
;
25544 if (!SWIG_IsOK(res1)(res1 >= 0)) {
25545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpectralConst" "', argument " "1"" of type '" "GModelSpectralConst const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpectralConst" "', argument "
"1"" of type '" "GModelSpectralConst const &""'"); goto fail
; } while(0)
;
25546 }
25547 if (!argp1) {
25548 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpectralConst" "', argument " "1"" of type '" "GModelSpectralConst const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpectralConst" "', argument " "1"" of type '"
"GModelSpectralConst const &""'"); goto fail; } while(0)
;
25549 }
25550 arg1 = reinterpret_cast< GModelSpectralConst * >(argp1);
25551 {
25552 try {
25553 result = (GModelSpectralConst *)new GModelSpectralConst((GModelSpectralConst const &)*arg1);
25554 }
25555 catch (const GException::out_of_range& e) {
25556 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25557 }
25558 catch (const GExceptionHandler& e) {
25559 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25560 }
25561 catch (const std::exception& e) {
25562 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25563 }
25564 }
25565 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralConst, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[25], (
(0x1 << 1) | 0x1) | 0)
;
25566 return resultobj;
25567fail:
25568 return NULL__null;
25569}
25570
25571
25572SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralConst(PyObject *self, PyObject *args) {
25573 int argc;
25574 PyObject *argv[2];
25575 int ii;
25576
25577 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
25578 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
25579 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
25580 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
25581 }
25582 if (argc == 0) {
25583 return _wrap_new_GModelSpectralConst__SWIG_0(self, args);
25584 }
25585 if (argc == 1) {
25586 int _v;
25587 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GXmlElement, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[50], 0, 0
)
;
25588 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
25589 if (_v) {
25590 return _wrap_new_GModelSpectralConst__SWIG_1(self, args);
25591 }
25592 }
25593 if (argc == 1) {
25594 int _v;
25595 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GModelSpectralConst, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[25], 0, 0
)
;
25596 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
25597 if (_v) {
25598 return _wrap_new_GModelSpectralConst__SWIG_3(self, args);
25599 }
25600 }
25601 if (argc == 1) {
25602 int _v;
25603 {
25604 int res = SWIG_AsVal_double(argv[0], NULL__null);
25605 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
25606 }
25607 if (_v) {
25608 return _wrap_new_GModelSpectralConst__SWIG_2(self, args);
25609 }
25610 }
25611
25612fail:
25613 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GModelSpectralConst'.\n"
25614 " Possible C/C++ prototypes are:\n"
25615 " GModelSpectralConst::GModelSpectralConst()\n"
25616 " GModelSpectralConst::GModelSpectralConst(GXmlElement const &)\n"
25617 " GModelSpectralConst::GModelSpectralConst(double const &)\n"
25618 " GModelSpectralConst::GModelSpectralConst(GModelSpectralConst const &)\n");
25619 return 0;
25620}
25621
25622
25623SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GModelSpectralConst(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25624 PyObject *resultobj = 0;
25625 GModelSpectralConst *arg1 = (GModelSpectralConst *) 0 ;
25626 void *argp1 = 0 ;
25627 int res1 = 0 ;
25628 PyObject * obj0 = 0 ;
25629
25630 if (!PyArg_ParseTuple(args,(char *)"O:delete_GModelSpectralConst",&obj0)) SWIG_failgoto fail;
25631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralConst, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25]
, 0x1 | 0, 0)
;
25632 if (!SWIG_IsOK(res1)(res1 >= 0)) {
25633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GModelSpectralConst" "', argument " "1"" of type '" "GModelSpectralConst *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GModelSpectralConst"
"', argument " "1"" of type '" "GModelSpectralConst *""'"); goto
fail; } while(0)
;
25634 }
25635 arg1 = reinterpret_cast< GModelSpectralConst * >(argp1);
25636 {
25637 try {
25638 delete arg1;
25639 }
25640 catch (const GException::out_of_range& e) {
25641 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25642 }
25643 catch (const GExceptionHandler& e) {
25644 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25645 }
25646 catch (const std::exception& e) {
25647 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25648 }
25649 }
25650 resultobj = SWIG_Py_Void();
25651 return resultobj;
25652fail:
25653 return NULL__null;
25654}
25655
25656
25657SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralConst_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25658 PyObject *resultobj = 0;
25659 GModelSpectralConst *arg1 = (GModelSpectralConst *) 0 ;
25660 void *argp1 = 0 ;
25661 int res1 = 0 ;
25662 PyObject * obj0 = 0 ;
25663
25664 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralConst_clear",&obj0)) SWIG_failgoto fail;
25665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25]
, 0 | 0, 0)
;
25666 if (!SWIG_IsOK(res1)(res1 >= 0)) {
25667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralConst_clear" "', argument " "1"" of type '" "GModelSpectralConst *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralConst_clear"
"', argument " "1"" of type '" "GModelSpectralConst *""'"); goto
fail; } while(0)
;
25668 }
25669 arg1 = reinterpret_cast< GModelSpectralConst * >(argp1);
25670 {
25671 try {
25672 (arg1)->clear();
25673 }
25674 catch (const GException::out_of_range& e) {
25675 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25676 }
25677 catch (const GExceptionHandler& e) {
25678 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25679 }
25680 catch (const std::exception& e) {
25681 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25682 }
25683 }
25684 resultobj = SWIG_Py_Void();
25685 return resultobj;
25686fail:
25687 return NULL__null;
25688}
25689
25690
25691SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralConst_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25692 PyObject *resultobj = 0;
25693 GModelSpectralConst *arg1 = (GModelSpectralConst *) 0 ;
25694 void *argp1 = 0 ;
25695 int res1 = 0 ;
25696 PyObject * obj0 = 0 ;
25697 GModelSpectralConst *result = 0 ;
25698
25699 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralConst_clone",&obj0)) SWIG_failgoto fail;
25700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25]
, 0 | 0, 0)
;
25701 if (!SWIG_IsOK(res1)(res1 >= 0)) {
25702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralConst_clone" "', argument " "1"" of type '" "GModelSpectralConst const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralConst_clone"
"', argument " "1"" of type '" "GModelSpectralConst const *"
"'"); goto fail; } while(0)
;
25703 }
25704 arg1 = reinterpret_cast< GModelSpectralConst * >(argp1);
25705 {
25706 try {
25707 result = (GModelSpectralConst *)((GModelSpectralConst const *)arg1)->clone();
25708 }
25709 catch (const GException::out_of_range& e) {
25710 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25711 }
25712 catch (const GExceptionHandler& e) {
25713 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25714 }
25715 catch (const std::exception& e) {
25716 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25717 }
25718 }
25719 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralConst, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[25], 0
| 0)
;
25720 return resultobj;
25721fail:
25722 return NULL__null;
25723}
25724
25725
25726SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralConst_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25727 PyObject *resultobj = 0;
25728 GModelSpectralConst *arg1 = (GModelSpectralConst *) 0 ;
25729 void *argp1 = 0 ;
25730 int res1 = 0 ;
25731 PyObject * obj0 = 0 ;
25732 std::string result;
25733
25734 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralConst_type",&obj0)) SWIG_failgoto fail;
25735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25]
, 0 | 0, 0)
;
25736 if (!SWIG_IsOK(res1)(res1 >= 0)) {
25737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralConst_type" "', argument " "1"" of type '" "GModelSpectralConst const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralConst_type" "', argument "
"1"" of type '" "GModelSpectralConst const *""'"); goto fail
; } while(0)
;
25738 }
25739 arg1 = reinterpret_cast< GModelSpectralConst * >(argp1);
25740 {
25741 try {
25742 result = ((GModelSpectralConst const *)arg1)->type();
25743 }
25744 catch (const GException::out_of_range& e) {
25745 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25746 }
25747 catch (const GExceptionHandler& e) {
25748 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25749 }
25750 catch (const std::exception& e) {
25751 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25752 }
25753 }
25754 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
25755 return resultobj;
25756fail:
25757 return NULL__null;
25758}
25759
25760
25761SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralConst_eval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25762 PyObject *resultobj = 0;
25763 GModelSpectralConst *arg1 = (GModelSpectralConst *) 0 ;
25764 GEnergy *arg2 = 0 ;
25765 GTime *arg3 = 0 ;
25766 void *argp1 = 0 ;
25767 int res1 = 0 ;
25768 void *argp2 = 0 ;
25769 int res2 = 0 ;
25770 void *argp3 = 0 ;
25771 int res3 = 0 ;
25772 PyObject * obj0 = 0 ;
25773 PyObject * obj1 = 0 ;
25774 PyObject * obj2 = 0 ;
25775 double result;
25776
25777 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectralConst_eval",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
25778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25]
, 0 | 0, 0)
;
25779 if (!SWIG_IsOK(res1)(res1 >= 0)) {
25780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralConst_eval" "', argument " "1"" of type '" "GModelSpectralConst const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralConst_eval" "', argument "
"1"" of type '" "GModelSpectralConst const *""'"); goto fail
; } while(0)
;
25781 }
25782 arg1 = reinterpret_cast< GModelSpectralConst * >(argp1);
25783 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
25784 if (!SWIG_IsOK(res2)(res2 >= 0)) {
25785 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralConst_eval" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralConst_eval" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
25786 }
25787 if (!argp2) {
25788 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralConst_eval" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralConst_eval" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
25789 }
25790 arg2 = reinterpret_cast< GEnergy * >(argp2);
25791 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[46]
, 0 | 0, 0)
;
25792 if (!SWIG_IsOK(res3)(res3 >= 0)) {
25793 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralConst_eval" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralConst_eval" "', argument "
"3"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
25794 }
25795 if (!argp3) {
25796 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralConst_eval" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralConst_eval" "', argument " "3"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
25797 }
25798 arg3 = reinterpret_cast< GTime * >(argp3);
25799 {
25800 try {
25801 result = (double)((GModelSpectralConst const *)arg1)->eval((GEnergy const &)*arg2,(GTime const &)*arg3);
25802 }
25803 catch (const GException::out_of_range& e) {
25804 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25805 }
25806 catch (const GExceptionHandler& e) {
25807 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25808 }
25809 catch (const std::exception& e) {
25810 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25811 }
25812 }
25813 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
25814 return resultobj;
25815fail:
25816 return NULL__null;
25817}
25818
25819
25820SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralConst_eval_gradients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25821 PyObject *resultobj = 0;
25822 GModelSpectralConst *arg1 = (GModelSpectralConst *) 0 ;
25823 GEnergy *arg2 = 0 ;
25824 GTime *arg3 = 0 ;
25825 void *argp1 = 0 ;
25826 int res1 = 0 ;
25827 void *argp2 = 0 ;
25828 int res2 = 0 ;
25829 void *argp3 = 0 ;
25830 int res3 = 0 ;
25831 PyObject * obj0 = 0 ;
25832 PyObject * obj1 = 0 ;
25833 PyObject * obj2 = 0 ;
25834 double result;
25835
25836 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectralConst_eval_gradients",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
25837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25]
, 0 | 0, 0)
;
25838 if (!SWIG_IsOK(res1)(res1 >= 0)) {
25839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralConst_eval_gradients" "', argument " "1"" of type '" "GModelSpectralConst *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralConst_eval_gradients"
"', argument " "1"" of type '" "GModelSpectralConst *""'"); goto
fail; } while(0)
;
25840 }
25841 arg1 = reinterpret_cast< GModelSpectralConst * >(argp1);
25842 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
25843 if (!SWIG_IsOK(res2)(res2 >= 0)) {
25844 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralConst_eval_gradients" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralConst_eval_gradients"
"', argument " "2"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
25845 }
25846 if (!argp2) {
25847 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralConst_eval_gradients" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralConst_eval_gradients" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
25848 }
25849 arg2 = reinterpret_cast< GEnergy * >(argp2);
25850 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[46]
, 0 | 0, 0)
;
25851 if (!SWIG_IsOK(res3)(res3 >= 0)) {
25852 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralConst_eval_gradients" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralConst_eval_gradients"
"', argument " "3"" of type '" "GTime const &""'"); goto
fail; } while(0)
;
25853 }
25854 if (!argp3) {
25855 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralConst_eval_gradients" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralConst_eval_gradients" "', argument "
"3"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
25856 }
25857 arg3 = reinterpret_cast< GTime * >(argp3);
25858 {
25859 try {
25860 result = (double)(arg1)->eval_gradients((GEnergy const &)*arg2,(GTime const &)*arg3);
25861 }
25862 catch (const GException::out_of_range& e) {
25863 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25864 }
25865 catch (const GExceptionHandler& e) {
25866 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25867 }
25868 catch (const std::exception& e) {
25869 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25870 }
25871 }
25872 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
25873 return resultobj;
25874fail:
25875 return NULL__null;
25876}
25877
25878
25879SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralConst_flux(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25880 PyObject *resultobj = 0;
25881 GModelSpectralConst *arg1 = (GModelSpectralConst *) 0 ;
25882 GEnergy *arg2 = 0 ;
25883 GEnergy *arg3 = 0 ;
25884 void *argp1 = 0 ;
25885 int res1 = 0 ;
25886 void *argp2 = 0 ;
25887 int res2 = 0 ;
25888 void *argp3 = 0 ;
25889 int res3 = 0 ;
25890 PyObject * obj0 = 0 ;
25891 PyObject * obj1 = 0 ;
25892 PyObject * obj2 = 0 ;
25893 double result;
25894
25895 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectralConst_flux",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
25896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25]
, 0 | 0, 0)
;
25897 if (!SWIG_IsOK(res1)(res1 >= 0)) {
25898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralConst_flux" "', argument " "1"" of type '" "GModelSpectralConst const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralConst_flux" "', argument "
"1"" of type '" "GModelSpectralConst const *""'"); goto fail
; } while(0)
;
25899 }
25900 arg1 = reinterpret_cast< GModelSpectralConst * >(argp1);
25901 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
25902 if (!SWIG_IsOK(res2)(res2 >= 0)) {
25903 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralConst_flux" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralConst_flux" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
25904 }
25905 if (!argp2) {
25906 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralConst_flux" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralConst_flux" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
25907 }
25908 arg2 = reinterpret_cast< GEnergy * >(argp2);
25909 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
25910 if (!SWIG_IsOK(res3)(res3 >= 0)) {
25911 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralConst_flux" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralConst_flux" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
25912 }
25913 if (!argp3) {
25914 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralConst_flux" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralConst_flux" "', argument " "3"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
25915 }
25916 arg3 = reinterpret_cast< GEnergy * >(argp3);
25917 {
25918 try {
25919 result = (double)((GModelSpectralConst const *)arg1)->flux((GEnergy const &)*arg2,(GEnergy const &)*arg3);
25920 }
25921 catch (const GException::out_of_range& e) {
25922 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25923 }
25924 catch (const GExceptionHandler& e) {
25925 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25926 }
25927 catch (const std::exception& e) {
25928 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25929 }
25930 }
25931 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
25932 return resultobj;
25933fail:
25934 return NULL__null;
25935}
25936
25937
25938SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralConst_eflux(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25939 PyObject *resultobj = 0;
25940 GModelSpectralConst *arg1 = (GModelSpectralConst *) 0 ;
25941 GEnergy *arg2 = 0 ;
25942 GEnergy *arg3 = 0 ;
25943 void *argp1 = 0 ;
25944 int res1 = 0 ;
25945 void *argp2 = 0 ;
25946 int res2 = 0 ;
25947 void *argp3 = 0 ;
25948 int res3 = 0 ;
25949 PyObject * obj0 = 0 ;
25950 PyObject * obj1 = 0 ;
25951 PyObject * obj2 = 0 ;
25952 double result;
25953
25954 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectralConst_eflux",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
25955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25]
, 0 | 0, 0)
;
25956 if (!SWIG_IsOK(res1)(res1 >= 0)) {
25957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralConst_eflux" "', argument " "1"" of type '" "GModelSpectralConst const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralConst_eflux"
"', argument " "1"" of type '" "GModelSpectralConst const *"
"'"); goto fail; } while(0)
;
25958 }
25959 arg1 = reinterpret_cast< GModelSpectralConst * >(argp1);
25960 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
25961 if (!SWIG_IsOK(res2)(res2 >= 0)) {
25962 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralConst_eflux" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralConst_eflux"
"', argument " "2"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
25963 }
25964 if (!argp2) {
25965 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralConst_eflux" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralConst_eflux" "', argument " "2"
" of type '" "GEnergy const &""'"); goto fail; } while(0)
;
25966 }
25967 arg2 = reinterpret_cast< GEnergy * >(argp2);
25968 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
25969 if (!SWIG_IsOK(res3)(res3 >= 0)) {
25970 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralConst_eflux" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralConst_eflux"
"', argument " "3"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
25971 }
25972 if (!argp3) {
25973 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralConst_eflux" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralConst_eflux" "', argument " "3"
" of type '" "GEnergy const &""'"); goto fail; } while(0)
;
25974 }
25975 arg3 = reinterpret_cast< GEnergy * >(argp3);
25976 {
25977 try {
25978 result = (double)((GModelSpectralConst const *)arg1)->eflux((GEnergy const &)*arg2,(GEnergy const &)*arg3);
25979 }
25980 catch (const GException::out_of_range& e) {
25981 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25982 }
25983 catch (const GExceptionHandler& e) {
25984 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25985 }
25986 catch (const std::exception& e) {
25987 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25988 }
25989 }
25990 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
25991 return resultobj;
25992fail:
25993 return NULL__null;
25994}
25995
25996
25997SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralConst_mc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25998 PyObject *resultobj = 0;
25999 GModelSpectralConst *arg1 = (GModelSpectralConst *) 0 ;
26000 GEnergy *arg2 = 0 ;
26001 GEnergy *arg3 = 0 ;
26002 GTime *arg4 = 0 ;
26003 GRan *arg5 = 0 ;
26004 void *argp1 = 0 ;
26005 int res1 = 0 ;
26006 void *argp2 = 0 ;
26007 int res2 = 0 ;
26008 void *argp3 = 0 ;
26009 int res3 = 0 ;
26010 void *argp4 = 0 ;
26011 int res4 = 0 ;
26012 void *argp5 = 0 ;
26013 int res5 = 0 ;
26014 PyObject * obj0 = 0 ;
26015 PyObject * obj1 = 0 ;
26016 PyObject * obj2 = 0 ;
26017 PyObject * obj3 = 0 ;
26018 PyObject * obj4 = 0 ;
26019 GEnergy result;
26020
26021 if (!PyArg_ParseTuple(args,(char *)"OOOOO:GModelSpectralConst_mc",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_failgoto fail;
26022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25]
, 0 | 0, 0)
;
26023 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralConst_mc" "', argument " "1"" of type '" "GModelSpectralConst const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralConst_mc" "', argument "
"1"" of type '" "GModelSpectralConst const *""'"); goto fail
; } while(0)
;
26025 }
26026 arg1 = reinterpret_cast< GModelSpectralConst * >(argp1);
26027 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
26028 if (!SWIG_IsOK(res2)(res2 >= 0)) {
26029 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralConst_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralConst_mc" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
26030 }
26031 if (!argp2) {
26032 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralConst_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralConst_mc" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
26033 }
26034 arg2 = reinterpret_cast< GEnergy * >(argp2);
26035 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
26036 if (!SWIG_IsOK(res3)(res3 >= 0)) {
26037 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralConst_mc" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralConst_mc" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
26038 }
26039 if (!argp3) {
26040 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralConst_mc" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralConst_mc" "', argument " "3"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
26041 }
26042 arg3 = reinterpret_cast< GEnergy * >(argp3);
26043 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[46]
, 0 | 0, 0)
;
26044 if (!SWIG_IsOK(res4)(res4 >= 0)) {
26045 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelSpectralConst_mc" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelSpectralConst_mc" "', argument "
"4"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
26046 }
26047 if (!argp4) {
26048 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralConst_mc" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralConst_mc" "', argument " "4"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
26049 }
26050 arg4 = reinterpret_cast< GTime * >(argp4);
26051 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_GRan, 0 )SWIG_Python_ConvertPtrAndOwn(obj4, &argp5, swig_types[42]
, 0, 0)
;
26052 if (!SWIG_IsOK(res5)(res5 >= 0)) {
26053 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GModelSpectralConst_mc" "', argument " "5"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res5 != (
-1)) ? res5 : -5)), "in method '" "GModelSpectralConst_mc" "', argument "
"5"" of type '" "GRan &""'"); goto fail; } while(0)
;
26054 }
26055 if (!argp5) {
26056 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralConst_mc" "', argument " "5"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralConst_mc" "', argument " "5"" of type '"
"GRan &""'"); goto fail; } while(0)
;
26057 }
26058 arg5 = reinterpret_cast< GRan * >(argp5);
26059 {
26060 try {
26061 result = ((GModelSpectralConst const *)arg1)->mc((GEnergy const &)*arg2,(GEnergy const &)*arg3,(GTime const &)*arg4,*arg5);
26062 }
26063 catch (const GException::out_of_range& e) {
26064 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26065 }
26066 catch (const GExceptionHandler& e) {
26067 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26068 }
26069 catch (const std::exception& e) {
26070 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26071 }
26072 }
26073 resultobj = SWIG_NewPointerObj((new GEnergy(static_cast< const GEnergy& >(result))), SWIGTYPE_p_GEnergy, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GEnergy(static_cast<
const GEnergy& >(result))), swig_types[3], 0x1 | 0)
;
26074 return resultobj;
26075fail:
26076 return NULL__null;
26077}
26078
26079
26080SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralConst_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26081 PyObject *resultobj = 0;
26082 GModelSpectralConst *arg1 = (GModelSpectralConst *) 0 ;
26083 GXmlElement *arg2 = 0 ;
26084 void *argp1 = 0 ;
26085 int res1 = 0 ;
26086 void *argp2 = 0 ;
26087 int res2 = 0 ;
26088 PyObject * obj0 = 0 ;
26089 PyObject * obj1 = 0 ;
26090
26091 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralConst_read",&obj0,&obj1)) SWIG_failgoto fail;
26092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25]
, 0 | 0, 0)
;
26093 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralConst_read" "', argument " "1"" of type '" "GModelSpectralConst *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralConst_read" "', argument "
"1"" of type '" "GModelSpectralConst *""'"); goto fail; } while
(0)
;
26095 }
26096 arg1 = reinterpret_cast< GModelSpectralConst * >(argp1);
26097 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0 | 0, 0)
;
26098 if (!SWIG_IsOK(res2)(res2 >= 0)) {
26099 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralConst_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralConst_read" "', argument "
"2"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
26100 }
26101 if (!argp2) {
26102 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralConst_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralConst_read" "', argument " "2"" of type '"
"GXmlElement const &""'"); goto fail; } while(0)
;
26103 }
26104 arg2 = reinterpret_cast< GXmlElement * >(argp2);
26105 {
26106 try {
26107 (arg1)->read((GXmlElement const &)*arg2);
26108 }
26109 catch (const GException::out_of_range& e) {
26110 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26111 }
26112 catch (const GExceptionHandler& e) {
26113 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26114 }
26115 catch (const std::exception& e) {
26116 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26117 }
26118 }
26119 resultobj = SWIG_Py_Void();
26120 return resultobj;
26121fail:
26122 return NULL__null;
26123}
26124
26125
26126SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralConst_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26127 PyObject *resultobj = 0;
26128 GModelSpectralConst *arg1 = (GModelSpectralConst *) 0 ;
26129 GXmlElement *arg2 = 0 ;
26130 void *argp1 = 0 ;
26131 int res1 = 0 ;
26132 void *argp2 = 0 ;
26133 int res2 = 0 ;
26134 PyObject * obj0 = 0 ;
26135 PyObject * obj1 = 0 ;
26136
26137 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralConst_write",&obj0,&obj1)) SWIG_failgoto fail;
26138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25]
, 0 | 0, 0)
;
26139 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralConst_write" "', argument " "1"" of type '" "GModelSpectralConst const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralConst_write"
"', argument " "1"" of type '" "GModelSpectralConst const *"
"'"); goto fail; } while(0)
;
26141 }
26142 arg1 = reinterpret_cast< GModelSpectralConst * >(argp1);
26143 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0, 0)
;
26144 if (!SWIG_IsOK(res2)(res2 >= 0)) {
26145 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralConst_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralConst_write"
"', argument " "2"" of type '" "GXmlElement &""'"); goto
fail; } while(0)
;
26146 }
26147 if (!argp2) {
26148 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralConst_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralConst_write" "', argument " "2"
" of type '" "GXmlElement &""'"); goto fail; } while(0)
;
26149 }
26150 arg2 = reinterpret_cast< GXmlElement * >(argp2);
26151 {
26152 try {
26153 ((GModelSpectralConst const *)arg1)->write(*arg2);
26154 }
26155 catch (const GException::out_of_range& e) {
26156 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26157 }
26158 catch (const GExceptionHandler& e) {
26159 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26160 }
26161 catch (const std::exception& e) {
26162 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26163 }
26164 }
26165 resultobj = SWIG_Py_Void();
26166 return resultobj;
26167fail:
26168 return NULL__null;
26169}
26170
26171
26172SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralConst_value__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26173 PyObject *resultobj = 0;
26174 GModelSpectralConst *arg1 = (GModelSpectralConst *) 0 ;
26175 void *argp1 = 0 ;
26176 int res1 = 0 ;
26177 PyObject * obj0 = 0 ;
26178 double result;
26179
26180 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralConst_value",&obj0)) SWIG_failgoto fail;
26181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25]
, 0 | 0, 0)
;
26182 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralConst_value" "', argument " "1"" of type '" "GModelSpectralConst const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralConst_value"
"', argument " "1"" of type '" "GModelSpectralConst const *"
"'"); goto fail; } while(0)
;
26184 }
26185 arg1 = reinterpret_cast< GModelSpectralConst * >(argp1);
26186 {
26187 try {
26188 result = (double)((GModelSpectralConst const *)arg1)->value();
26189 }
26190 catch (const GException::out_of_range& e) {
26191 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26192 }
26193 catch (const GExceptionHandler& e) {
26194 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26195 }
26196 catch (const std::exception& e) {
26197 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26198 }
26199 }
26200 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
26201 return resultobj;
26202fail:
26203 return NULL__null;
26204}
26205
26206
26207SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralConst_value__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26208 PyObject *resultobj = 0;
26209 GModelSpectralConst *arg1 = (GModelSpectralConst *) 0 ;
26210 double *arg2 = 0 ;
26211 void *argp1 = 0 ;
26212 int res1 = 0 ;
26213 double temp2 ;
26214 double val2 ;
26215 int ecode2 = 0 ;
26216 PyObject * obj0 = 0 ;
26217 PyObject * obj1 = 0 ;
26218
26219 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralConst_value",&obj0,&obj1)) SWIG_failgoto fail;
26220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25]
, 0 | 0, 0)
;
26221 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralConst_value" "', argument " "1"" of type '" "GModelSpectralConst *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralConst_value"
"', argument " "1"" of type '" "GModelSpectralConst *""'"); goto
fail; } while(0)
;
26223 }
26224 arg1 = reinterpret_cast< GModelSpectralConst * >(argp1);
26225 ecode2 = SWIG_AsVal_double(obj1, &val2);
26226 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
26227 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpectralConst_value" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpectralConst_value"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
26228 }
26229 temp2 = static_cast< double >(val2);
26230 arg2 = &temp2;
26231 {
26232 try {
26233 (arg1)->value((double const &)*arg2);
26234 }
26235 catch (const GException::out_of_range& e) {
26236 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26237 }
26238 catch (const GExceptionHandler& e) {
26239 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26240 }
26241 catch (const std::exception& e) {
26242 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26243 }
26244 }
26245 resultobj = SWIG_Py_Void();
26246 return resultobj;
26247fail:
26248 return NULL__null;
26249}
26250
26251
26252SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralConst_value(PyObject *self, PyObject *args) {
26253 int argc;
26254 PyObject *argv[3];
26255 int ii;
26256
26257 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
26258 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
26259 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
26260 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
26261 }
26262 if (argc == 1) {
26263 int _v;
26264 void *vptr = 0;
26265 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralConst, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[25
], 0, 0)
;
26266 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
26267 if (_v) {
26268 return _wrap_GModelSpectralConst_value__SWIG_0(self, args);
26269 }
26270 }
26271 if (argc == 2) {
26272 int _v;
26273 void *vptr = 0;
26274 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralConst, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[25
], 0, 0)
;
26275 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
26276 if (_v) {
26277 {
26278 int res = SWIG_AsVal_double(argv[1], NULL__null);
26279 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
26280 }
26281 if (_v) {
26282 return _wrap_GModelSpectralConst_value__SWIG_1(self, args);
26283 }
26284 }
26285 }
26286
26287fail:
26288 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpectralConst_value'.\n"
26289 " Possible C/C++ prototypes are:\n"
26290 " GModelSpectralConst::value() const\n"
26291 " GModelSpectralConst::value(double const &)\n");
26292 return 0;
26293}
26294
26295
26296SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralConst_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26297 PyObject *resultobj = 0;
26298 GModelSpectralConst *arg1 = (GModelSpectralConst *) 0 ;
26299 void *argp1 = 0 ;
26300 int res1 = 0 ;
26301 PyObject * obj0 = 0 ;
26302 GModelSpectralConst result;
26303
26304 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralConst_copy",&obj0)) SWIG_failgoto fail;
26305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25]
, 0 | 0, 0)
;
26306 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralConst_copy" "', argument " "1"" of type '" "GModelSpectralConst *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralConst_copy" "', argument "
"1"" of type '" "GModelSpectralConst *""'"); goto fail; } while
(0)
;
26308 }
26309 arg1 = reinterpret_cast< GModelSpectralConst * >(argp1);
26310 {
26311 try {
26312 result = GModelSpectralConst_copy(arg1);
26313 }
26314 catch (const GException::out_of_range& e) {
26315 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26316 }
26317 catch (const GExceptionHandler& e) {
26318 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26319 }
26320 catch (const std::exception& e) {
26321 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26322 }
26323 }
26324 resultobj = SWIG_NewPointerObj((new GModelSpectralConst(static_cast< const GModelSpectralConst& >(result))), SWIGTYPE_p_GModelSpectralConst, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GModelSpectralConst(static_cast
< const GModelSpectralConst& >(result))), swig_types
[25], 0x1 | 0)
;
26325 return resultobj;
26326fail:
26327 return NULL__null;
26328}
26329
26330
26331SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GModelSpectralConst_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26332 PyObject *obj;
26333 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
26334 SWIG_TypeNewClientData(SWIGTYPE_p_GModelSpectralConstswig_types[25], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
26335 return SWIG_Py_Void();
26336}
26337
26338SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralExpPlaw__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26339 PyObject *resultobj = 0;
26340 GModelSpectralExpPlaw *result = 0 ;
26341
26342 if (!PyArg_ParseTuple(args,(char *)":new_GModelSpectralExpPlaw")) SWIG_failgoto fail;
26343 {
26344 try {
26345 result = (GModelSpectralExpPlaw *)new GModelSpectralExpPlaw();
26346 }
26347 catch (const GException::out_of_range& e) {
26348 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26349 }
26350 catch (const GExceptionHandler& e) {
26351 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26352 }
26353 catch (const std::exception& e) {
26354 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26355 }
26356 }
26357 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralExpPlaw, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[26], (
(0x1 << 1) | 0x1) | 0)
;
26358 return resultobj;
26359fail:
26360 return NULL__null;
26361}
26362
26363
26364SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralExpPlaw__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26365 PyObject *resultobj = 0;
26366 double *arg1 = 0 ;
26367 double *arg2 = 0 ;
26368 GEnergy *arg3 = 0 ;
26369 GEnergy *arg4 = 0 ;
26370 double temp1 ;
26371 double val1 ;
26372 int ecode1 = 0 ;
26373 double temp2 ;
26374 double val2 ;
26375 int ecode2 = 0 ;
26376 void *argp3 = 0 ;
26377 int res3 = 0 ;
26378 void *argp4 = 0 ;
26379 int res4 = 0 ;
26380 PyObject * obj0 = 0 ;
26381 PyObject * obj1 = 0 ;
26382 PyObject * obj2 = 0 ;
26383 PyObject * obj3 = 0 ;
26384 GModelSpectralExpPlaw *result = 0 ;
26385
26386 if (!PyArg_ParseTuple(args,(char *)"OOOO:new_GModelSpectralExpPlaw",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
26387 ecode1 = SWIG_AsVal_double(obj0, &val1);
26388 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
26389 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GModelSpectralExpPlaw" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "new_GModelSpectralExpPlaw"
"', argument " "1"" of type '" "double""'"); goto fail; } while
(0)
;
26390 }
26391 temp1 = static_cast< double >(val1);
26392 arg1 = &temp1;
26393 ecode2 = SWIG_AsVal_double(obj1, &val2);
26394 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
26395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GModelSpectralExpPlaw" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "new_GModelSpectralExpPlaw"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
26396 }
26397 temp2 = static_cast< double >(val2);
26398 arg2 = &temp2;
26399 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
26400 if (!SWIG_IsOK(res3)(res3 >= 0)) {
26401 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_GModelSpectralExpPlaw" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "new_GModelSpectralExpPlaw"
"', argument " "3"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
26402 }
26403 if (!argp3) {
26404 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpectralExpPlaw" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpectralExpPlaw" "', argument " "3"
" of type '" "GEnergy const &""'"); goto fail; } while(0)
;
26405 }
26406 arg3 = reinterpret_cast< GEnergy * >(argp3);
26407 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[3],
0 | 0, 0)
;
26408 if (!SWIG_IsOK(res4)(res4 >= 0)) {
26409 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_GModelSpectralExpPlaw" "', argument " "4"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "new_GModelSpectralExpPlaw"
"', argument " "4"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
26410 }
26411 if (!argp4) {
26412 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpectralExpPlaw" "', argument " "4"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpectralExpPlaw" "', argument " "4"
" of type '" "GEnergy const &""'"); goto fail; } while(0)
;
26413 }
26414 arg4 = reinterpret_cast< GEnergy * >(argp4);
26415 {
26416 try {
26417 result = (GModelSpectralExpPlaw *)new GModelSpectralExpPlaw((double const &)*arg1,(double const &)*arg2,(GEnergy const &)*arg3,(GEnergy const &)*arg4);
26418 }
26419 catch (const GException::out_of_range& e) {
26420 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26421 }
26422 catch (const GExceptionHandler& e) {
26423 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26424 }
26425 catch (const std::exception& e) {
26426 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26427 }
26428 }
26429 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralExpPlaw, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[26], (
(0x1 << 1) | 0x1) | 0)
;
26430 return resultobj;
26431fail:
26432 return NULL__null;
26433}
26434
26435
26436SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralExpPlaw__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26437 PyObject *resultobj = 0;
26438 GXmlElement *arg1 = 0 ;
26439 void *argp1 = 0 ;
26440 int res1 = 0 ;
26441 PyObject * obj0 = 0 ;
26442 GModelSpectralExpPlaw *result = 0 ;
26443
26444 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpectralExpPlaw",&obj0)) SWIG_failgoto fail;
26445 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[50]
, 0 | 0, 0)
;
26446 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpectralExpPlaw" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpectralExpPlaw"
"', argument " "1"" of type '" "GXmlElement const &""'")
; goto fail; } while(0)
;
26448 }
26449 if (!argp1) {
26450 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpectralExpPlaw" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpectralExpPlaw" "', argument " "1"
" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
26451 }
26452 arg1 = reinterpret_cast< GXmlElement * >(argp1);
26453 {
26454 try {
26455 result = (GModelSpectralExpPlaw *)new GModelSpectralExpPlaw((GXmlElement const &)*arg1);
26456 }
26457 catch (const GException::out_of_range& e) {
26458 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26459 }
26460 catch (const GExceptionHandler& e) {
26461 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26462 }
26463 catch (const std::exception& e) {
26464 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26465 }
26466 }
26467 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralExpPlaw, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[26], (
(0x1 << 1) | 0x1) | 0)
;
26468 return resultobj;
26469fail:
26470 return NULL__null;
26471}
26472
26473
26474SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralExpPlaw__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26475 PyObject *resultobj = 0;
26476 GModelSpectralExpPlaw *arg1 = 0 ;
26477 void *argp1 = 0 ;
26478 int res1 = 0 ;
26479 PyObject * obj0 = 0 ;
26480 GModelSpectralExpPlaw *result = 0 ;
26481
26482 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpectralExpPlaw",&obj0)) SWIG_failgoto fail;
26483 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GModelSpectralExpPlaw, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0 | 0, 0)
;
26484 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpectralExpPlaw" "', argument " "1"" of type '" "GModelSpectralExpPlaw const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpectralExpPlaw"
"', argument " "1"" of type '" "GModelSpectralExpPlaw const &"
"'"); goto fail; } while(0)
;
26486 }
26487 if (!argp1) {
26488 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpectralExpPlaw" "', argument " "1"" of type '" "GModelSpectralExpPlaw const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpectralExpPlaw" "', argument " "1"
" of type '" "GModelSpectralExpPlaw const &""'"); goto fail
; } while(0)
;
26489 }
26490 arg1 = reinterpret_cast< GModelSpectralExpPlaw * >(argp1);
26491 {
26492 try {
26493 result = (GModelSpectralExpPlaw *)new GModelSpectralExpPlaw((GModelSpectralExpPlaw const &)*arg1);
26494 }
26495 catch (const GException::out_of_range& e) {
26496 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26497 }
26498 catch (const GExceptionHandler& e) {
26499 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26500 }
26501 catch (const std::exception& e) {
26502 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26503 }
26504 }
26505 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralExpPlaw, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[26], (
(0x1 << 1) | 0x1) | 0)
;
26506 return resultobj;
26507fail:
26508 return NULL__null;
26509}
26510
26511
26512SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralExpPlaw(PyObject *self, PyObject *args) {
26513 int argc;
26514 PyObject *argv[5];
26515 int ii;
26516
26517 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
26518 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
26519 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
26520 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
26521 }
26522 if (argc == 0) {
26523 return _wrap_new_GModelSpectralExpPlaw__SWIG_0(self, args);
26524 }
26525 if (argc == 1) {
26526 int _v;
26527 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GXmlElement, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[50], 0, 0
)
;
26528 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
26529 if (_v) {
26530 return _wrap_new_GModelSpectralExpPlaw__SWIG_2(self, args);
26531 }
26532 }
26533 if (argc == 1) {
26534 int _v;
26535 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GModelSpectralExpPlaw, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[26], 0, 0
)
;
26536 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
26537 if (_v) {
26538 return _wrap_new_GModelSpectralExpPlaw__SWIG_3(self, args);
26539 }
26540 }
26541 if (argc == 4) {
26542 int _v;
26543 {
26544 int res = SWIG_AsVal_double(argv[0], NULL__null);
26545 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
26546 }
26547 if (_v) {
26548 {
26549 int res = SWIG_AsVal_double(argv[1], NULL__null);
26550 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
26551 }
26552 if (_v) {
26553 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[3], 0, 0);
26554 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
26555 if (_v) {
26556 int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[3], 0, swig_types[3], 0, 0);
26557 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
26558 if (_v) {
26559 return _wrap_new_GModelSpectralExpPlaw__SWIG_1(self, args);
26560 }
26561 }
26562 }
26563 }
26564 }
26565
26566fail:
26567 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GModelSpectralExpPlaw'.\n"
26568 " Possible C/C++ prototypes are:\n"
26569 " GModelSpectralExpPlaw::GModelSpectralExpPlaw()\n"
26570 " GModelSpectralExpPlaw::GModelSpectralExpPlaw(double const &,double const &,GEnergy const &,GEnergy const &)\n"
26571 " GModelSpectralExpPlaw::GModelSpectralExpPlaw(GXmlElement const &)\n"
26572 " GModelSpectralExpPlaw::GModelSpectralExpPlaw(GModelSpectralExpPlaw const &)\n");
26573 return 0;
26574}
26575
26576
26577SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GModelSpectralExpPlaw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26578 PyObject *resultobj = 0;
26579 GModelSpectralExpPlaw *arg1 = (GModelSpectralExpPlaw *) 0 ;
26580 void *argp1 = 0 ;
26581 int res1 = 0 ;
26582 PyObject * obj0 = 0 ;
26583
26584 if (!PyArg_ParseTuple(args,(char *)"O:delete_GModelSpectralExpPlaw",&obj0)) SWIG_failgoto fail;
26585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralExpPlaw, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0x1 | 0, 0)
;
26586 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GModelSpectralExpPlaw" "', argument " "1"" of type '" "GModelSpectralExpPlaw *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GModelSpectralExpPlaw"
"', argument " "1"" of type '" "GModelSpectralExpPlaw *""'")
; goto fail; } while(0)
;
26588 }
26589 arg1 = reinterpret_cast< GModelSpectralExpPlaw * >(argp1);
26590 {
26591 try {
26592 delete arg1;
26593 }
26594 catch (const GException::out_of_range& e) {
26595 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26596 }
26597 catch (const GExceptionHandler& e) {
26598 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26599 }
26600 catch (const std::exception& e) {
26601 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26602 }
26603 }
26604 resultobj = SWIG_Py_Void();
26605 return resultobj;
26606fail:
26607 return NULL__null;
26608}
26609
26610
26611SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralExpPlaw_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26612 PyObject *resultobj = 0;
26613 GModelSpectralExpPlaw *arg1 = (GModelSpectralExpPlaw *) 0 ;
26614 void *argp1 = 0 ;
26615 int res1 = 0 ;
26616 PyObject * obj0 = 0 ;
26617
26618 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralExpPlaw_clear",&obj0)) SWIG_failgoto fail;
26619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralExpPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0 | 0, 0)
;
26620 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralExpPlaw_clear" "', argument " "1"" of type '" "GModelSpectralExpPlaw *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralExpPlaw_clear"
"', argument " "1"" of type '" "GModelSpectralExpPlaw *""'")
; goto fail; } while(0)
;
26622 }
26623 arg1 = reinterpret_cast< GModelSpectralExpPlaw * >(argp1);
26624 {
26625 try {
26626 (arg1)->clear();
26627 }
26628 catch (const GException::out_of_range& e) {
26629 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26630 }
26631 catch (const GExceptionHandler& e) {
26632 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26633 }
26634 catch (const std::exception& e) {
26635 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26636 }
26637 }
26638 resultobj = SWIG_Py_Void();
26639 return resultobj;
26640fail:
26641 return NULL__null;
26642}
26643
26644
26645SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralExpPlaw_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26646 PyObject *resultobj = 0;
26647 GModelSpectralExpPlaw *arg1 = (GModelSpectralExpPlaw *) 0 ;
26648 void *argp1 = 0 ;
26649 int res1 = 0 ;
26650 PyObject * obj0 = 0 ;
26651 GModelSpectralExpPlaw *result = 0 ;
26652
26653 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralExpPlaw_clone",&obj0)) SWIG_failgoto fail;
26654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralExpPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0 | 0, 0)
;
26655 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralExpPlaw_clone" "', argument " "1"" of type '" "GModelSpectralExpPlaw const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralExpPlaw_clone"
"', argument " "1"" of type '" "GModelSpectralExpPlaw const *"
"'"); goto fail; } while(0)
;
26657 }
26658 arg1 = reinterpret_cast< GModelSpectralExpPlaw * >(argp1);
26659 {
26660 try {
26661 result = (GModelSpectralExpPlaw *)((GModelSpectralExpPlaw const *)arg1)->clone();
26662 }
26663 catch (const GException::out_of_range& e) {
26664 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26665 }
26666 catch (const GExceptionHandler& e) {
26667 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26668 }
26669 catch (const std::exception& e) {
26670 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26671 }
26672 }
26673 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralExpPlaw, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[26], 0
| 0)
;
26674 return resultobj;
26675fail:
26676 return NULL__null;
26677}
26678
26679
26680SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralExpPlaw_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26681 PyObject *resultobj = 0;
26682 GModelSpectralExpPlaw *arg1 = (GModelSpectralExpPlaw *) 0 ;
26683 void *argp1 = 0 ;
26684 int res1 = 0 ;
26685 PyObject * obj0 = 0 ;
26686 std::string result;
26687
26688 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralExpPlaw_type",&obj0)) SWIG_failgoto fail;
26689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralExpPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0 | 0, 0)
;
26690 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralExpPlaw_type" "', argument " "1"" of type '" "GModelSpectralExpPlaw const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralExpPlaw_type"
"', argument " "1"" of type '" "GModelSpectralExpPlaw const *"
"'"); goto fail; } while(0)
;
26692 }
26693 arg1 = reinterpret_cast< GModelSpectralExpPlaw * >(argp1);
26694 {
26695 try {
26696 result = ((GModelSpectralExpPlaw const *)arg1)->type();
26697 }
26698 catch (const GException::out_of_range& e) {
26699 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26700 }
26701 catch (const GExceptionHandler& e) {
26702 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26703 }
26704 catch (const std::exception& e) {
26705 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26706 }
26707 }
26708 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
26709 return resultobj;
26710fail:
26711 return NULL__null;
26712}
26713
26714
26715SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralExpPlaw_eval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26716 PyObject *resultobj = 0;
26717 GModelSpectralExpPlaw *arg1 = (GModelSpectralExpPlaw *) 0 ;
26718 GEnergy *arg2 = 0 ;
26719 GTime *arg3 = 0 ;
26720 void *argp1 = 0 ;
26721 int res1 = 0 ;
26722 void *argp2 = 0 ;
26723 int res2 = 0 ;
26724 void *argp3 = 0 ;
26725 int res3 = 0 ;
26726 PyObject * obj0 = 0 ;
26727 PyObject * obj1 = 0 ;
26728 PyObject * obj2 = 0 ;
26729 double result;
26730
26731 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectralExpPlaw_eval",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
26732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralExpPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0 | 0, 0)
;
26733 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralExpPlaw_eval" "', argument " "1"" of type '" "GModelSpectralExpPlaw const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralExpPlaw_eval"
"', argument " "1"" of type '" "GModelSpectralExpPlaw const *"
"'"); goto fail; } while(0)
;
26735 }
26736 arg1 = reinterpret_cast< GModelSpectralExpPlaw * >(argp1);
26737 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
26738 if (!SWIG_IsOK(res2)(res2 >= 0)) {
26739 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralExpPlaw_eval" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralExpPlaw_eval"
"', argument " "2"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
26740 }
26741 if (!argp2) {
26742 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralExpPlaw_eval" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralExpPlaw_eval" "', argument " "2"
" of type '" "GEnergy const &""'"); goto fail; } while(0)
;
26743 }
26744 arg2 = reinterpret_cast< GEnergy * >(argp2);
26745 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[46]
, 0 | 0, 0)
;
26746 if (!SWIG_IsOK(res3)(res3 >= 0)) {
26747 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralExpPlaw_eval" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralExpPlaw_eval"
"', argument " "3"" of type '" "GTime const &""'"); goto
fail; } while(0)
;
26748 }
26749 if (!argp3) {
26750 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralExpPlaw_eval" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralExpPlaw_eval" "', argument " "3"
" of type '" "GTime const &""'"); goto fail; } while(0)
;
26751 }
26752 arg3 = reinterpret_cast< GTime * >(argp3);
26753 {
26754 try {
26755 result = (double)((GModelSpectralExpPlaw const *)arg1)->eval((GEnergy const &)*arg2,(GTime const &)*arg3);
26756 }
26757 catch (const GException::out_of_range& e) {
26758 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26759 }
26760 catch (const GExceptionHandler& e) {
26761 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26762 }
26763 catch (const std::exception& e) {
26764 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26765 }
26766 }
26767 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
26768 return resultobj;
26769fail:
26770 return NULL__null;
26771}
26772
26773
26774SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralExpPlaw_eval_gradients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26775 PyObject *resultobj = 0;
26776 GModelSpectralExpPlaw *arg1 = (GModelSpectralExpPlaw *) 0 ;
26777 GEnergy *arg2 = 0 ;
26778 GTime *arg3 = 0 ;
26779 void *argp1 = 0 ;
26780 int res1 = 0 ;
26781 void *argp2 = 0 ;
26782 int res2 = 0 ;
26783 void *argp3 = 0 ;
26784 int res3 = 0 ;
26785 PyObject * obj0 = 0 ;
26786 PyObject * obj1 = 0 ;
26787 PyObject * obj2 = 0 ;
26788 double result;
26789
26790 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectralExpPlaw_eval_gradients",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
26791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralExpPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0 | 0, 0)
;
26792 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralExpPlaw_eval_gradients" "', argument " "1"" of type '" "GModelSpectralExpPlaw *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralExpPlaw_eval_gradients"
"', argument " "1"" of type '" "GModelSpectralExpPlaw *""'")
; goto fail; } while(0)
;
26794 }
26795 arg1 = reinterpret_cast< GModelSpectralExpPlaw * >(argp1);
26796 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
26797 if (!SWIG_IsOK(res2)(res2 >= 0)) {
26798 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralExpPlaw_eval_gradients" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralExpPlaw_eval_gradients"
"', argument " "2"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
26799 }
26800 if (!argp2) {
26801 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralExpPlaw_eval_gradients" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralExpPlaw_eval_gradients" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
26802 }
26803 arg2 = reinterpret_cast< GEnergy * >(argp2);
26804 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[46]
, 0 | 0, 0)
;
26805 if (!SWIG_IsOK(res3)(res3 >= 0)) {
26806 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralExpPlaw_eval_gradients" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralExpPlaw_eval_gradients"
"', argument " "3"" of type '" "GTime const &""'"); goto
fail; } while(0)
;
26807 }
26808 if (!argp3) {
26809 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralExpPlaw_eval_gradients" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralExpPlaw_eval_gradients" "', argument "
"3"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
26810 }
26811 arg3 = reinterpret_cast< GTime * >(argp3);
26812 {
26813 try {
26814 result = (double)(arg1)->eval_gradients((GEnergy const &)*arg2,(GTime const &)*arg3);
26815 }
26816 catch (const GException::out_of_range& e) {
26817 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26818 }
26819 catch (const GExceptionHandler& e) {
26820 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26821 }
26822 catch (const std::exception& e) {
26823 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26824 }
26825 }
26826 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
26827 return resultobj;
26828fail:
26829 return NULL__null;
26830}
26831
26832
26833SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralExpPlaw_flux(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26834 PyObject *resultobj = 0;
26835 GModelSpectralExpPlaw *arg1 = (GModelSpectralExpPlaw *) 0 ;
26836 GEnergy *arg2 = 0 ;
26837 GEnergy *arg3 = 0 ;
26838 void *argp1 = 0 ;
26839 int res1 = 0 ;
26840 void *argp2 = 0 ;
26841 int res2 = 0 ;
26842 void *argp3 = 0 ;
26843 int res3 = 0 ;
26844 PyObject * obj0 = 0 ;
26845 PyObject * obj1 = 0 ;
26846 PyObject * obj2 = 0 ;
26847 double result;
26848
26849 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectralExpPlaw_flux",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
26850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralExpPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0 | 0, 0)
;
26851 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralExpPlaw_flux" "', argument " "1"" of type '" "GModelSpectralExpPlaw const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralExpPlaw_flux"
"', argument " "1"" of type '" "GModelSpectralExpPlaw const *"
"'"); goto fail; } while(0)
;
26853 }
26854 arg1 = reinterpret_cast< GModelSpectralExpPlaw * >(argp1);
26855 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
26856 if (!SWIG_IsOK(res2)(res2 >= 0)) {
26857 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralExpPlaw_flux" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralExpPlaw_flux"
"', argument " "2"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
26858 }
26859 if (!argp2) {
26860 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralExpPlaw_flux" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralExpPlaw_flux" "', argument " "2"
" of type '" "GEnergy const &""'"); goto fail; } while(0)
;
26861 }
26862 arg2 = reinterpret_cast< GEnergy * >(argp2);
26863 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
26864 if (!SWIG_IsOK(res3)(res3 >= 0)) {
26865 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralExpPlaw_flux" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralExpPlaw_flux"
"', argument " "3"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
26866 }
26867 if (!argp3) {
26868 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralExpPlaw_flux" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralExpPlaw_flux" "', argument " "3"
" of type '" "GEnergy const &""'"); goto fail; } while(0)
;
26869 }
26870 arg3 = reinterpret_cast< GEnergy * >(argp3);
26871 {
26872 try {
26873 result = (double)((GModelSpectralExpPlaw const *)arg1)->flux((GEnergy const &)*arg2,(GEnergy const &)*arg3);
26874 }
26875 catch (const GException::out_of_range& e) {
26876 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26877 }
26878 catch (const GExceptionHandler& e) {
26879 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26880 }
26881 catch (const std::exception& e) {
26882 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26883 }
26884 }
26885 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
26886 return resultobj;
26887fail:
26888 return NULL__null;
26889}
26890
26891
26892SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralExpPlaw_eflux(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26893 PyObject *resultobj = 0;
26894 GModelSpectralExpPlaw *arg1 = (GModelSpectralExpPlaw *) 0 ;
26895 GEnergy *arg2 = 0 ;
26896 GEnergy *arg3 = 0 ;
26897 void *argp1 = 0 ;
26898 int res1 = 0 ;
26899 void *argp2 = 0 ;
26900 int res2 = 0 ;
26901 void *argp3 = 0 ;
26902 int res3 = 0 ;
26903 PyObject * obj0 = 0 ;
26904 PyObject * obj1 = 0 ;
26905 PyObject * obj2 = 0 ;
26906 double result;
26907
26908 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectralExpPlaw_eflux",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
26909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralExpPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0 | 0, 0)
;
26910 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralExpPlaw_eflux" "', argument " "1"" of type '" "GModelSpectralExpPlaw const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralExpPlaw_eflux"
"', argument " "1"" of type '" "GModelSpectralExpPlaw const *"
"'"); goto fail; } while(0)
;
26912 }
26913 arg1 = reinterpret_cast< GModelSpectralExpPlaw * >(argp1);
26914 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
26915 if (!SWIG_IsOK(res2)(res2 >= 0)) {
26916 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralExpPlaw_eflux" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralExpPlaw_eflux"
"', argument " "2"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
26917 }
26918 if (!argp2) {
26919 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralExpPlaw_eflux" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralExpPlaw_eflux" "', argument " "2"
" of type '" "GEnergy const &""'"); goto fail; } while(0)
;
26920 }
26921 arg2 = reinterpret_cast< GEnergy * >(argp2);
26922 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
26923 if (!SWIG_IsOK(res3)(res3 >= 0)) {
26924 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralExpPlaw_eflux" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralExpPlaw_eflux"
"', argument " "3"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
26925 }
26926 if (!argp3) {
26927 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralExpPlaw_eflux" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralExpPlaw_eflux" "', argument " "3"
" of type '" "GEnergy const &""'"); goto fail; } while(0)
;
26928 }
26929 arg3 = reinterpret_cast< GEnergy * >(argp3);
26930 {
26931 try {
26932 result = (double)((GModelSpectralExpPlaw const *)arg1)->eflux((GEnergy const &)*arg2,(GEnergy const &)*arg3);
26933 }
26934 catch (const GException::out_of_range& e) {
26935 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26936 }
26937 catch (const GExceptionHandler& e) {
26938 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26939 }
26940 catch (const std::exception& e) {
26941 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26942 }
26943 }
26944 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
26945 return resultobj;
26946fail:
26947 return NULL__null;
26948}
26949
26950
26951SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralExpPlaw_mc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26952 PyObject *resultobj = 0;
26953 GModelSpectralExpPlaw *arg1 = (GModelSpectralExpPlaw *) 0 ;
26954 GEnergy *arg2 = 0 ;
26955 GEnergy *arg3 = 0 ;
26956 GTime *arg4 = 0 ;
26957 GRan *arg5 = 0 ;
26958 void *argp1 = 0 ;
26959 int res1 = 0 ;
26960 void *argp2 = 0 ;
26961 int res2 = 0 ;
26962 void *argp3 = 0 ;
26963 int res3 = 0 ;
26964 void *argp4 = 0 ;
26965 int res4 = 0 ;
26966 void *argp5 = 0 ;
26967 int res5 = 0 ;
26968 PyObject * obj0 = 0 ;
26969 PyObject * obj1 = 0 ;
26970 PyObject * obj2 = 0 ;
26971 PyObject * obj3 = 0 ;
26972 PyObject * obj4 = 0 ;
26973 GEnergy result;
26974
26975 if (!PyArg_ParseTuple(args,(char *)"OOOOO:GModelSpectralExpPlaw_mc",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_failgoto fail;
26976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralExpPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0 | 0, 0)
;
26977 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralExpPlaw_mc" "', argument " "1"" of type '" "GModelSpectralExpPlaw const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralExpPlaw_mc" "', argument "
"1"" of type '" "GModelSpectralExpPlaw const *""'"); goto fail
; } while(0)
;
26979 }
26980 arg1 = reinterpret_cast< GModelSpectralExpPlaw * >(argp1);
26981 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
26982 if (!SWIG_IsOK(res2)(res2 >= 0)) {
26983 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralExpPlaw_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralExpPlaw_mc" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
26984 }
26985 if (!argp2) {
26986 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralExpPlaw_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralExpPlaw_mc" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
26987 }
26988 arg2 = reinterpret_cast< GEnergy * >(argp2);
26989 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
26990 if (!SWIG_IsOK(res3)(res3 >= 0)) {
26991 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralExpPlaw_mc" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralExpPlaw_mc" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
26992 }
26993 if (!argp3) {
26994 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralExpPlaw_mc" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralExpPlaw_mc" "', argument " "3"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
26995 }
26996 arg3 = reinterpret_cast< GEnergy * >(argp3);
26997 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[46]
, 0 | 0, 0)
;
26998 if (!SWIG_IsOK(res4)(res4 >= 0)) {
26999 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelSpectralExpPlaw_mc" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelSpectralExpPlaw_mc" "', argument "
"4"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
27000 }
27001 if (!argp4) {
27002 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralExpPlaw_mc" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralExpPlaw_mc" "', argument " "4"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
27003 }
27004 arg4 = reinterpret_cast< GTime * >(argp4);
27005 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_GRan, 0 )SWIG_Python_ConvertPtrAndOwn(obj4, &argp5, swig_types[42]
, 0, 0)
;
27006 if (!SWIG_IsOK(res5)(res5 >= 0)) {
27007 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GModelSpectralExpPlaw_mc" "', argument " "5"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res5 != (
-1)) ? res5 : -5)), "in method '" "GModelSpectralExpPlaw_mc" "', argument "
"5"" of type '" "GRan &""'"); goto fail; } while(0)
;
27008 }
27009 if (!argp5) {
27010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralExpPlaw_mc" "', argument " "5"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralExpPlaw_mc" "', argument " "5"" of type '"
"GRan &""'"); goto fail; } while(0)
;
27011 }
27012 arg5 = reinterpret_cast< GRan * >(argp5);
27013 {
27014 try {
27015 result = ((GModelSpectralExpPlaw const *)arg1)->mc((GEnergy const &)*arg2,(GEnergy const &)*arg3,(GTime const &)*arg4,*arg5);
27016 }
27017 catch (const GException::out_of_range& e) {
27018 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
27019 }
27020 catch (const GExceptionHandler& e) {
27021 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27022 }
27023 catch (const std::exception& e) {
27024 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27025 }
27026 }
27027 resultobj = SWIG_NewPointerObj((new GEnergy(static_cast< const GEnergy& >(result))), SWIGTYPE_p_GEnergy, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GEnergy(static_cast<
const GEnergy& >(result))), swig_types[3], 0x1 | 0)
;
27028 return resultobj;
27029fail:
27030 return NULL__null;
27031}
27032
27033
27034SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralExpPlaw_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27035 PyObject *resultobj = 0;
27036 GModelSpectralExpPlaw *arg1 = (GModelSpectralExpPlaw *) 0 ;
27037 GXmlElement *arg2 = 0 ;
27038 void *argp1 = 0 ;
27039 int res1 = 0 ;
27040 void *argp2 = 0 ;
27041 int res2 = 0 ;
27042 PyObject * obj0 = 0 ;
27043 PyObject * obj1 = 0 ;
27044
27045 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralExpPlaw_read",&obj0,&obj1)) SWIG_failgoto fail;
27046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralExpPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0 | 0, 0)
;
27047 if (!SWIG_IsOK(res1)(res1 >= 0)) {
27048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralExpPlaw_read" "', argument " "1"" of type '" "GModelSpectralExpPlaw *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralExpPlaw_read"
"', argument " "1"" of type '" "GModelSpectralExpPlaw *""'")
; goto fail; } while(0)
;
27049 }
27050 arg1 = reinterpret_cast< GModelSpectralExpPlaw * >(argp1);
27051 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0 | 0, 0)
;
27052 if (!SWIG_IsOK(res2)(res2 >= 0)) {
27053 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralExpPlaw_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralExpPlaw_read"
"', argument " "2"" of type '" "GXmlElement const &""'")
; goto fail; } while(0)
;
27054 }
27055 if (!argp2) {
27056 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralExpPlaw_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralExpPlaw_read" "', argument " "2"
" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
27057 }
27058 arg2 = reinterpret_cast< GXmlElement * >(argp2);
27059 {
27060 try {
27061 (arg1)->read((GXmlElement const &)*arg2);
27062 }
27063 catch (const GException::out_of_range& e) {
27064 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
27065 }
27066 catch (const GExceptionHandler& e) {
27067 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27068 }
27069 catch (const std::exception& e) {
27070 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27071 }
27072 }
27073 resultobj = SWIG_Py_Void();
27074 return resultobj;
27075fail:
27076 return NULL__null;
27077}
27078
27079
27080SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralExpPlaw_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27081 PyObject *resultobj = 0;
27082 GModelSpectralExpPlaw *arg1 = (GModelSpectralExpPlaw *) 0 ;
27083 GXmlElement *arg2 = 0 ;
27084 void *argp1 = 0 ;
27085 int res1 = 0 ;
27086 void *argp2 = 0 ;
27087 int res2 = 0 ;
27088 PyObject * obj0 = 0 ;
27089 PyObject * obj1 = 0 ;
27090
27091 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralExpPlaw_write",&obj0,&obj1)) SWIG_failgoto fail;
27092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralExpPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0 | 0, 0)
;
27093 if (!SWIG_IsOK(res1)(res1 >= 0)) {
27094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralExpPlaw_write" "', argument " "1"" of type '" "GModelSpectralExpPlaw const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralExpPlaw_write"
"', argument " "1"" of type '" "GModelSpectralExpPlaw const *"
"'"); goto fail; } while(0)
;
27095 }
27096 arg1 = reinterpret_cast< GModelSpectralExpPlaw * >(argp1);
27097 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0, 0)
;
27098 if (!SWIG_IsOK(res2)(res2 >= 0)) {
27099 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralExpPlaw_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralExpPlaw_write"
"', argument " "2"" of type '" "GXmlElement &""'"); goto
fail; } while(0)
;
27100 }
27101 if (!argp2) {
27102 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralExpPlaw_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralExpPlaw_write" "', argument " "2"
" of type '" "GXmlElement &""'"); goto fail; } while(0)
;
27103 }
27104 arg2 = reinterpret_cast< GXmlElement * >(argp2);
27105 {
27106 try {
27107 ((GModelSpectralExpPlaw const *)arg1)->write(*arg2);
27108 }
27109 catch (const GException::out_of_range& e) {
27110 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
27111 }
27112 catch (const GExceptionHandler& e) {
27113 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27114 }
27115 catch (const std::exception& e) {
27116 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27117 }
27118 }
27119 resultobj = SWIG_Py_Void();
27120 return resultobj;
27121fail:
27122 return NULL__null;
27123}
27124
27125
27126SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralExpPlaw_prefactor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27127 PyObject *resultobj = 0;
27128 GModelSpectralExpPlaw *arg1 = (GModelSpectralExpPlaw *) 0 ;
27129 void *argp1 = 0 ;
27130 int res1 = 0 ;
27131 PyObject * obj0 = 0 ;
27132 double result;
27133
27134 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralExpPlaw_prefactor",&obj0)) SWIG_failgoto fail;
27135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralExpPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0 | 0, 0)
;
27136 if (!SWIG_IsOK(res1)(res1 >= 0)) {
27137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralExpPlaw_prefactor" "', argument " "1"" of type '" "GModelSpectralExpPlaw const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralExpPlaw_prefactor"
"', argument " "1"" of type '" "GModelSpectralExpPlaw const *"
"'"); goto fail; } while(0)
;
27138 }
27139 arg1 = reinterpret_cast< GModelSpectralExpPlaw * >(argp1);
27140 {
27141 try {
27142 result = (double)((GModelSpectralExpPlaw const *)arg1)->prefactor();
27143 }
27144 catch (const GException::out_of_range& e) {
27145 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
27146 }
27147 catch (const GExceptionHandler& e) {
27148 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27149 }
27150 catch (const std::exception& e) {
27151 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27152 }
27153 }
27154 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
27155 return resultobj;
27156fail:
27157 return NULL__null;
27158}
27159
27160
27161SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralExpPlaw_prefactor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27162 PyObject *resultobj = 0;
27163 GModelSpectralExpPlaw *arg1 = (GModelSpectralExpPlaw *) 0 ;
27164 double *arg2 = 0 ;
27165 void *argp1 = 0 ;
27166 int res1 = 0 ;
27167 double temp2 ;
27168 double val2 ;
27169 int ecode2 = 0 ;
27170 PyObject * obj0 = 0 ;
27171 PyObject * obj1 = 0 ;
27172
27173 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralExpPlaw_prefactor",&obj0,&obj1)) SWIG_failgoto fail;
27174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralExpPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0 | 0, 0)
;
27175 if (!SWIG_IsOK(res1)(res1 >= 0)) {
27176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralExpPlaw_prefactor" "', argument " "1"" of type '" "GModelSpectralExpPlaw *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralExpPlaw_prefactor"
"', argument " "1"" of type '" "GModelSpectralExpPlaw *""'")
; goto fail; } while(0)
;
27177 }
27178 arg1 = reinterpret_cast< GModelSpectralExpPlaw * >(argp1);
27179 ecode2 = SWIG_AsVal_double(obj1, &val2);
27180 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
27181 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpectralExpPlaw_prefactor" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpectralExpPlaw_prefactor"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
27182 }
27183 temp2 = static_cast< double >(val2);
27184 arg2 = &temp2;
27185 {
27186 try {
27187 (arg1)->prefactor((double const &)*arg2);
27188 }
27189 catch (const GException::out_of_range& e) {
27190 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
27191 }
27192 catch (const GExceptionHandler& e) {
27193 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27194 }
27195 catch (const std::exception& e) {
27196 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27197 }
27198 }
27199 resultobj = SWIG_Py_Void();
27200 return resultobj;
27201fail:
27202 return NULL__null;
27203}
27204
27205
27206SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralExpPlaw_prefactor(PyObject *self, PyObject *args) {
27207 int argc;
27208 PyObject *argv[3];
27209 int ii;
27210
27211 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
27212 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
27213 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
27214 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
27215 }
27216 if (argc == 1) {
27217 int _v;
27218 void *vptr = 0;
27219 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralExpPlaw, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[26
], 0, 0)
;
27220 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
27221 if (_v) {
27222 return _wrap_GModelSpectralExpPlaw_prefactor__SWIG_0(self, args);
27223 }
27224 }
27225 if (argc == 2) {
27226 int _v;
27227 void *vptr = 0;
27228 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralExpPlaw, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[26
], 0, 0)
;
27229 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
27230 if (_v) {
27231 {
27232 int res = SWIG_AsVal_double(argv[1], NULL__null);
27233 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
27234 }
27235 if (_v) {
27236 return _wrap_GModelSpectralExpPlaw_prefactor__SWIG_1(self, args);
27237 }
27238 }
27239 }
27240
27241fail:
27242 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpectralExpPlaw_prefactor'.\n"
27243 " Possible C/C++ prototypes are:\n"
27244 " GModelSpectralExpPlaw::prefactor() const\n"
27245 " GModelSpectralExpPlaw::prefactor(double const &)\n");
27246 return 0;
27247}
27248
27249
27250SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralExpPlaw_index__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27251 PyObject *resultobj = 0;
27252 GModelSpectralExpPlaw *arg1 = (GModelSpectralExpPlaw *) 0 ;
27253 void *argp1 = 0 ;
27254 int res1 = 0 ;
27255 PyObject * obj0 = 0 ;
27256 double result;
27257
27258 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralExpPlaw_index",&obj0)) SWIG_failgoto fail;
27259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralExpPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0 | 0, 0)
;
27260 if (!SWIG_IsOK(res1)(res1 >= 0)) {
27261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralExpPlaw_index" "', argument " "1"" of type '" "GModelSpectralExpPlaw const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralExpPlaw_index"
"', argument " "1"" of type '" "GModelSpectralExpPlaw const *"
"'"); goto fail; } while(0)
;
27262 }
27263 arg1 = reinterpret_cast< GModelSpectralExpPlaw * >(argp1);
27264 {
27265 try {
27266 result = (double)((GModelSpectralExpPlaw const *)arg1)->index();
27267 }
27268 catch (const GException::out_of_range& e) {
27269 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
27270 }
27271 catch (const GExceptionHandler& e) {
27272 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27273 }
27274 catch (const std::exception& e) {
27275 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27276 }
27277 }
27278 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
27279 return resultobj;
27280fail:
27281 return NULL__null;
27282}
27283
27284
27285SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralExpPlaw_index__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27286 PyObject *resultobj = 0;
27287 GModelSpectralExpPlaw *arg1 = (GModelSpectralExpPlaw *) 0 ;
27288 double *arg2 = 0 ;
27289 void *argp1 = 0 ;
27290 int res1 = 0 ;
27291 double temp2 ;
27292 double val2 ;
27293 int ecode2 = 0 ;
27294 PyObject * obj0 = 0 ;
27295 PyObject * obj1 = 0 ;
27296
27297 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralExpPlaw_index",&obj0,&obj1)) SWIG_failgoto fail;
27298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralExpPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0 | 0, 0)
;
27299 if (!SWIG_IsOK(res1)(res1 >= 0)) {
27300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralExpPlaw_index" "', argument " "1"" of type '" "GModelSpectralExpPlaw *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralExpPlaw_index"
"', argument " "1"" of type '" "GModelSpectralExpPlaw *""'")
; goto fail; } while(0)
;
27301 }
27302 arg1 = reinterpret_cast< GModelSpectralExpPlaw * >(argp1);
27303 ecode2 = SWIG_AsVal_double(obj1, &val2);
27304 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
27305 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpectralExpPlaw_index" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpectralExpPlaw_index"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
27306 }
27307 temp2 = static_cast< double >(val2);
27308 arg2 = &temp2;
27309 {
27310 try {
27311 (arg1)->index((double const &)*arg2);
27312 }
27313 catch (const GException::out_of_range& e) {
27314 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
27315 }
27316 catch (const GExceptionHandler& e) {
27317 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27318 }
27319 catch (const std::exception& e) {
27320 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27321 }
27322 }
27323 resultobj = SWIG_Py_Void();
27324 return resultobj;
27325fail:
27326 return NULL__null;
27327}
27328
27329
27330SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralExpPlaw_index(PyObject *self, PyObject *args) {
27331 int argc;
27332 PyObject *argv[3];
27333 int ii;
27334
27335 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
27336 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
27337 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
27338 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
27339 }
27340 if (argc == 1) {
27341 int _v;
27342 void *vptr = 0;
27343 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralExpPlaw, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[26
], 0, 0)
;
27344 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
27345 if (_v) {
27346 return _wrap_GModelSpectralExpPlaw_index__SWIG_0(self, args);
27347 }
27348 }
27349 if (argc == 2) {
27350 int _v;
27351 void *vptr = 0;
27352 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralExpPlaw, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[26
], 0, 0)
;
27353 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
27354 if (_v) {
27355 {
27356 int res = SWIG_AsVal_double(argv[1], NULL__null);
27357 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
27358 }
27359 if (_v) {
27360 return _wrap_GModelSpectralExpPlaw_index__SWIG_1(self, args);
27361 }
27362 }
27363 }
27364
27365fail:
27366 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpectralExpPlaw_index'.\n"
27367 " Possible C/C++ prototypes are:\n"
27368 " GModelSpectralExpPlaw::index() const\n"
27369 " GModelSpectralExpPlaw::index(double const &)\n");
27370 return 0;
27371}
27372
27373
27374SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralExpPlaw_pivot__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27375 PyObject *resultobj = 0;
27376 GModelSpectralExpPlaw *arg1 = (GModelSpectralExpPlaw *) 0 ;
27377 void *argp1 = 0 ;
27378 int res1 = 0 ;
27379 PyObject * obj0 = 0 ;
27380 GEnergy result;
27381
27382 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralExpPlaw_pivot",&obj0)) SWIG_failgoto fail;
27383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralExpPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0 | 0, 0)
;
27384 if (!SWIG_IsOK(res1)(res1 >= 0)) {
27385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralExpPlaw_pivot" "', argument " "1"" of type '" "GModelSpectralExpPlaw const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralExpPlaw_pivot"
"', argument " "1"" of type '" "GModelSpectralExpPlaw const *"
"'"); goto fail; } while(0)
;
27386 }
27387 arg1 = reinterpret_cast< GModelSpectralExpPlaw * >(argp1);
27388 {
27389 try {
27390 result = ((GModelSpectralExpPlaw const *)arg1)->pivot();
27391 }
27392 catch (const GException::out_of_range& e) {
27393 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
27394 }
27395 catch (const GExceptionHandler& e) {
27396 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27397 }
27398 catch (const std::exception& e) {
27399 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27400 }
27401 }
27402 resultobj = SWIG_NewPointerObj((new GEnergy(static_cast< const GEnergy& >(result))), SWIGTYPE_p_GEnergy, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GEnergy(static_cast<
const GEnergy& >(result))), swig_types[3], 0x1 | 0)
;
27403 return resultobj;
27404fail:
27405 return NULL__null;
27406}
27407
27408
27409SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralExpPlaw_pivot__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27410 PyObject *resultobj = 0;
27411 GModelSpectralExpPlaw *arg1 = (GModelSpectralExpPlaw *) 0 ;
27412 GEnergy *arg2 = 0 ;
27413 void *argp1 = 0 ;
27414 int res1 = 0 ;
27415 void *argp2 = 0 ;
27416 int res2 = 0 ;
27417 PyObject * obj0 = 0 ;
27418 PyObject * obj1 = 0 ;
27419
27420 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralExpPlaw_pivot",&obj0,&obj1)) SWIG_failgoto fail;
27421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralExpPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0 | 0, 0)
;
27422 if (!SWIG_IsOK(res1)(res1 >= 0)) {
27423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralExpPlaw_pivot" "', argument " "1"" of type '" "GModelSpectralExpPlaw *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralExpPlaw_pivot"
"', argument " "1"" of type '" "GModelSpectralExpPlaw *""'")
; goto fail; } while(0)
;
27424 }
27425 arg1 = reinterpret_cast< GModelSpectralExpPlaw * >(argp1);
27426 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
27427 if (!SWIG_IsOK(res2)(res2 >= 0)) {
27428 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralExpPlaw_pivot" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralExpPlaw_pivot"
"', argument " "2"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
27429 }
27430 if (!argp2) {
27431 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralExpPlaw_pivot" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralExpPlaw_pivot" "', argument " "2"
" of type '" "GEnergy const &""'"); goto fail; } while(0)
;
27432 }
27433 arg2 = reinterpret_cast< GEnergy * >(argp2);
27434 {
27435 try {
27436 (arg1)->pivot((GEnergy const &)*arg2);
27437 }
27438 catch (const GException::out_of_range& e) {
27439 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
27440 }
27441 catch (const GExceptionHandler& e) {
27442 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27443 }
27444 catch (const std::exception& e) {
27445 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27446 }
27447 }
27448 resultobj = SWIG_Py_Void();
27449 return resultobj;
27450fail:
27451 return NULL__null;
27452}
27453
27454
27455SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralExpPlaw_pivot(PyObject *self, PyObject *args) {
27456 int argc;
27457 PyObject *argv[3];
27458 int ii;
27459
27460 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
27461 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
27462 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
27463 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
27464 }
27465 if (argc == 1) {
27466 int _v;
27467 void *vptr = 0;
27468 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralExpPlaw, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[26
], 0, 0)
;
27469 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
27470 if (_v) {
27471 return _wrap_GModelSpectralExpPlaw_pivot__SWIG_0(self, args);
27472 }
27473 }
27474 if (argc == 2) {
27475 int _v;
27476 void *vptr = 0;
27477 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralExpPlaw, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[26
], 0, 0)
;
27478 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
27479 if (_v) {
27480 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[3], 0, 0);
27481 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
27482 if (_v) {
27483 return _wrap_GModelSpectralExpPlaw_pivot__SWIG_1(self, args);
27484 }
27485 }
27486 }
27487
27488fail:
27489 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpectralExpPlaw_pivot'.\n"
27490 " Possible C/C++ prototypes are:\n"
27491 " GModelSpectralExpPlaw::pivot() const\n"
27492 " GModelSpectralExpPlaw::pivot(GEnergy const &)\n");
27493 return 0;
27494}
27495
27496
27497SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralExpPlaw_cutoff__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27498 PyObject *resultobj = 0;
27499 GModelSpectralExpPlaw *arg1 = (GModelSpectralExpPlaw *) 0 ;
27500 void *argp1 = 0 ;
27501 int res1 = 0 ;
27502 PyObject * obj0 = 0 ;
27503 GEnergy result;
27504
27505 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralExpPlaw_cutoff",&obj0)) SWIG_failgoto fail;
27506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralExpPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0 | 0, 0)
;
27507 if (!SWIG_IsOK(res1)(res1 >= 0)) {
27508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralExpPlaw_cutoff" "', argument " "1"" of type '" "GModelSpectralExpPlaw const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralExpPlaw_cutoff"
"', argument " "1"" of type '" "GModelSpectralExpPlaw const *"
"'"); goto fail; } while(0)
;
27509 }
27510 arg1 = reinterpret_cast< GModelSpectralExpPlaw * >(argp1);
27511 {
27512 try {
27513 result = ((GModelSpectralExpPlaw const *)arg1)->cutoff();
27514 }
27515 catch (const GException::out_of_range& e) {
27516 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
27517 }
27518 catch (const GExceptionHandler& e) {
27519 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27520 }
27521 catch (const std::exception& e) {
27522 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27523 }
27524 }
27525 resultobj = SWIG_NewPointerObj((new GEnergy(static_cast< const GEnergy& >(result))), SWIGTYPE_p_GEnergy, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GEnergy(static_cast<
const GEnergy& >(result))), swig_types[3], 0x1 | 0)
;
27526 return resultobj;
27527fail:
27528 return NULL__null;
27529}
27530
27531
27532SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralExpPlaw_cutoff__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27533 PyObject *resultobj = 0;
27534 GModelSpectralExpPlaw *arg1 = (GModelSpectralExpPlaw *) 0 ;
27535 GEnergy *arg2 = 0 ;
27536 void *argp1 = 0 ;
27537 int res1 = 0 ;
27538 void *argp2 = 0 ;
27539 int res2 = 0 ;
27540 PyObject * obj0 = 0 ;
27541 PyObject * obj1 = 0 ;
27542
27543 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralExpPlaw_cutoff",&obj0,&obj1)) SWIG_failgoto fail;
27544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralExpPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0 | 0, 0)
;
27545 if (!SWIG_IsOK(res1)(res1 >= 0)) {
27546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralExpPlaw_cutoff" "', argument " "1"" of type '" "GModelSpectralExpPlaw *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralExpPlaw_cutoff"
"', argument " "1"" of type '" "GModelSpectralExpPlaw *""'")
; goto fail; } while(0)
;
27547 }
27548 arg1 = reinterpret_cast< GModelSpectralExpPlaw * >(argp1);
27549 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
27550 if (!SWIG_IsOK(res2)(res2 >= 0)) {
27551 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralExpPlaw_cutoff" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralExpPlaw_cutoff"
"', argument " "2"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
27552 }
27553 if (!argp2) {
27554 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralExpPlaw_cutoff" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralExpPlaw_cutoff" "', argument " "2"
" of type '" "GEnergy const &""'"); goto fail; } while(0)
;
27555 }
27556 arg2 = reinterpret_cast< GEnergy * >(argp2);
27557 {
27558 try {
27559 (arg1)->cutoff((GEnergy const &)*arg2);
27560 }
27561 catch (const GException::out_of_range& e) {
27562 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
27563 }
27564 catch (const GExceptionHandler& e) {
27565 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27566 }
27567 catch (const std::exception& e) {
27568 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27569 }
27570 }
27571 resultobj = SWIG_Py_Void();
27572 return resultobj;
27573fail:
27574 return NULL__null;
27575}
27576
27577
27578SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralExpPlaw_cutoff(PyObject *self, PyObject *args) {
27579 int argc;
27580 PyObject *argv[3];
27581 int ii;
27582
27583 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
27584 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
27585 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
27586 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
27587 }
27588 if (argc == 1) {
27589 int _v;
27590 void *vptr = 0;
27591 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralExpPlaw, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[26
], 0, 0)
;
27592 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
27593 if (_v) {
27594 return _wrap_GModelSpectralExpPlaw_cutoff__SWIG_0(self, args);
27595 }
27596 }
27597 if (argc == 2) {
27598 int _v;
27599 void *vptr = 0;
27600 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralExpPlaw, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[26
], 0, 0)
;
27601 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
27602 if (_v) {
27603 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[3], 0, 0);
27604 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
27605 if (_v) {
27606 return _wrap_GModelSpectralExpPlaw_cutoff__SWIG_1(self, args);
27607 }
27608 }
27609 }
27610
27611fail:
27612 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpectralExpPlaw_cutoff'.\n"
27613 " Possible C/C++ prototypes are:\n"
27614 " GModelSpectralExpPlaw::cutoff() const\n"
27615 " GModelSpectralExpPlaw::cutoff(GEnergy const &)\n");
27616 return 0;
27617}
27618
27619
27620SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralExpPlaw_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27621 PyObject *resultobj = 0;
27622 GModelSpectralExpPlaw *arg1 = (GModelSpectralExpPlaw *) 0 ;
27623 void *argp1 = 0 ;
27624 int res1 = 0 ;
27625 PyObject * obj0 = 0 ;
27626 GModelSpectralExpPlaw result;
27627
27628 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralExpPlaw_copy",&obj0)) SWIG_failgoto fail;
27629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralExpPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0 | 0, 0)
;
27630 if (!SWIG_IsOK(res1)(res1 >= 0)) {
27631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralExpPlaw_copy" "', argument " "1"" of type '" "GModelSpectralExpPlaw *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralExpPlaw_copy"
"', argument " "1"" of type '" "GModelSpectralExpPlaw *""'")
; goto fail; } while(0)
;
27632 }
27633 arg1 = reinterpret_cast< GModelSpectralExpPlaw * >(argp1);
27634 {
27635 try {
27636 result = GModelSpectralExpPlaw_copy(arg1);
27637 }
27638 catch (const GException::out_of_range& e) {
27639 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
27640 }
27641 catch (const GExceptionHandler& e) {
27642 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27643 }
27644 catch (const std::exception& e) {
27645 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27646 }
27647 }
27648 resultobj = SWIG_NewPointerObj((new GModelSpectralExpPlaw(static_cast< const GModelSpectralExpPlaw& >(result))), SWIGTYPE_p_GModelSpectralExpPlaw, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GModelSpectralExpPlaw(
static_cast< const GModelSpectralExpPlaw& >(result)
)), swig_types[26], 0x1 | 0)
;
27649 return resultobj;
27650fail:
27651 return NULL__null;
27652}
27653
27654
27655SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GModelSpectralExpPlaw_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27656 PyObject *obj;
27657 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
27658 SWIG_TypeNewClientData(SWIGTYPE_p_GModelSpectralExpPlawswig_types[26], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
27659 return SWIG_Py_Void();
27660}
27661
27662SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralFunc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27663 PyObject *resultobj = 0;
27664 GModelSpectralFunc *result = 0 ;
27665
27666 if (!PyArg_ParseTuple(args,(char *)":new_GModelSpectralFunc")) SWIG_failgoto fail;
27667 {
27668 try {
27669 result = (GModelSpectralFunc *)new GModelSpectralFunc();
27670 }
27671 catch (const GException::out_of_range& e) {
27672 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
27673 }
27674 catch (const GExceptionHandler& e) {
27675 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27676 }
27677 catch (const std::exception& e) {
27678 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27679 }
27680 }
27681 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralFunc, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[27], (
(0x1 << 1) | 0x1) | 0)
;
27682 return resultobj;
27683fail:
27684 return NULL__null;
27685}
27686
27687
27688SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralFunc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27689 PyObject *resultobj = 0;
27690 std::string *arg1 = 0 ;
27691 double *arg2 = 0 ;
27692 int res1 = SWIG_OLDOBJ((0)) ;
27693 double temp2 ;
27694 double val2 ;
27695 int ecode2 = 0 ;
27696 PyObject * obj0 = 0 ;
27697 PyObject * obj1 = 0 ;
27698 GModelSpectralFunc *result = 0 ;
27699
27700 if (!PyArg_ParseTuple(args,(char *)"OO:new_GModelSpectralFunc",&obj0,&obj1)) SWIG_failgoto fail;
27701 {
27702 std::string *ptr = (std::string *)0;
27703 res1 = SWIG_AsPtr_std_string(obj0, &ptr);
27704 if (!SWIG_IsOK(res1)(res1 >= 0)) {
27705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpectralFunc" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpectralFunc" "', argument "
"1"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
27706 }
27707 if (!ptr) {
27708 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpectralFunc" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpectralFunc" "', argument " "1"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
27709 }
27710 arg1 = ptr;
27711 }
27712 ecode2 = SWIG_AsVal_double(obj1, &val2);
27713 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
27714 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GModelSpectralFunc" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "new_GModelSpectralFunc"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
27715 }
27716 temp2 = static_cast< double >(val2);
27717 arg2 = &temp2;
27718 {
27719 try {
27720 result = (GModelSpectralFunc *)new GModelSpectralFunc((std::string const &)*arg1,(double const &)*arg2);
27721 }
27722 catch (const GException::out_of_range& e) {
27723 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
27724 }
27725 catch (const GExceptionHandler& e) {
27726 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27727 }
27728 catch (const std::exception& e) {
27729 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27730 }
27731 }
27732 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralFunc, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[27], (
(0x1 << 1) | 0x1) | 0)
;
27733 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
27734 return resultobj;
27735fail:
27736 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
27737 return NULL__null;
27738}
27739
27740
27741SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralFunc__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27742 PyObject *resultobj = 0;
27743 GXmlElement *arg1 = 0 ;
27744 void *argp1 = 0 ;
27745 int res1 = 0 ;
27746 PyObject * obj0 = 0 ;
27747 GModelSpectralFunc *result = 0 ;
27748
27749 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpectralFunc",&obj0)) SWIG_failgoto fail;
27750 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[50]
, 0 | 0, 0)
;
27751 if (!SWIG_IsOK(res1)(res1 >= 0)) {
27752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpectralFunc" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpectralFunc" "', argument "
"1"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
27753 }
27754 if (!argp1) {
27755 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpectralFunc" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpectralFunc" "', argument " "1"" of type '"
"GXmlElement const &""'"); goto fail; } while(0)
;
27756 }
27757 arg1 = reinterpret_cast< GXmlElement * >(argp1);
27758 {
27759 try {
27760 result = (GModelSpectralFunc *)new GModelSpectralFunc((GXmlElement const &)*arg1);
27761 }
27762 catch (const GException::out_of_range& e) {
27763 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
27764 }
27765 catch (const GExceptionHandler& e) {
27766 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27767 }
27768 catch (const std::exception& e) {
27769 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27770 }
27771 }
27772 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralFunc, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[27], (
(0x1 << 1) | 0x1) | 0)
;
27773 return resultobj;
27774fail:
27775 return NULL__null;
27776}
27777
27778
27779SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralFunc__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27780 PyObject *resultobj = 0;
27781 GModelSpectralFunc *arg1 = 0 ;
27782 void *argp1 = 0 ;
27783 int res1 = 0 ;
27784 PyObject * obj0 = 0 ;
27785 GModelSpectralFunc *result = 0 ;
27786
27787 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpectralFunc",&obj0)) SWIG_failgoto fail;
27788 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GModelSpectralFunc, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[27]
, 0 | 0, 0)
;
27789 if (!SWIG_IsOK(res1)(res1 >= 0)) {
27790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpectralFunc" "', argument " "1"" of type '" "GModelSpectralFunc const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpectralFunc" "', argument "
"1"" of type '" "GModelSpectralFunc const &""'"); goto fail
; } while(0)
;
27791 }
27792 if (!argp1) {
27793 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpectralFunc" "', argument " "1"" of type '" "GModelSpectralFunc const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpectralFunc" "', argument " "1"" of type '"
"GModelSpectralFunc const &""'"); goto fail; } while(0)
;
27794 }
27795 arg1 = reinterpret_cast< GModelSpectralFunc * >(argp1);
27796 {
27797 try {
27798 result = (GModelSpectralFunc *)new GModelSpectralFunc((GModelSpectralFunc const &)*arg1);
27799 }
27800 catch (const GException::out_of_range& e) {
27801 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
27802 }
27803 catch (const GExceptionHandler& e) {
27804 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27805 }
27806 catch (const std::exception& e) {
27807 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27808 }
27809 }
27810 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralFunc, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[27], (
(0x1 << 1) | 0x1) | 0)
;
27811 return resultobj;
27812fail:
27813 return NULL__null;
27814}
27815
27816
27817SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralFunc(PyObject *self, PyObject *args) {
27818 int argc;
27819 PyObject *argv[3];
27820 int ii;
27821
27822 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
27823 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
27824 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
27825 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
27826 }
27827 if (argc == 0) {
27828 return _wrap_new_GModelSpectralFunc__SWIG_0(self, args);
27829 }
27830 if (argc == 1) {
27831 int _v;
27832 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GXmlElement, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[50], 0, 0
)
;
27833 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
27834 if (_v) {
27835 return _wrap_new_GModelSpectralFunc__SWIG_2(self, args);
27836 }
27837 }
27838 if (argc == 1) {
27839 int _v;
27840 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GModelSpectralFunc, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[27], 0, 0
)
;
27841 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
27842 if (_v) {
27843 return _wrap_new_GModelSpectralFunc__SWIG_3(self, args);
27844 }
27845 }
27846 if (argc == 2) {
27847 int _v;
27848 int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
27849 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
27850 if (_v) {
27851 {
27852 int res = SWIG_AsVal_double(argv[1], NULL__null);
27853 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
27854 }
27855 if (_v) {
27856 return _wrap_new_GModelSpectralFunc__SWIG_1(self, args);
27857 }
27858 }
27859 }
27860
27861fail:
27862 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GModelSpectralFunc'.\n"
27863 " Possible C/C++ prototypes are:\n"
27864 " GModelSpectralFunc::GModelSpectralFunc()\n"
27865 " GModelSpectralFunc::GModelSpectralFunc(std::string const &,double const &)\n"
27866 " GModelSpectralFunc::GModelSpectralFunc(GXmlElement const &)\n"
27867 " GModelSpectralFunc::GModelSpectralFunc(GModelSpectralFunc const &)\n");
27868 return 0;
27869}
27870
27871
27872SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GModelSpectralFunc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27873 PyObject *resultobj = 0;
27874 GModelSpectralFunc *arg1 = (GModelSpectralFunc *) 0 ;
27875 void *argp1 = 0 ;
27876 int res1 = 0 ;
27877 PyObject * obj0 = 0 ;
27878
27879 if (!PyArg_ParseTuple(args,(char *)"O:delete_GModelSpectralFunc",&obj0)) SWIG_failgoto fail;
27880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralFunc, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[27]
, 0x1 | 0, 0)
;
27881 if (!SWIG_IsOK(res1)(res1 >= 0)) {
27882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GModelSpectralFunc" "', argument " "1"" of type '" "GModelSpectralFunc *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GModelSpectralFunc"
"', argument " "1"" of type '" "GModelSpectralFunc *""'"); goto
fail; } while(0)
;
27883 }
27884 arg1 = reinterpret_cast< GModelSpectralFunc * >(argp1);
27885 {
27886 try {
27887 delete arg1;
27888 }
27889 catch (const GException::out_of_range& e) {
27890 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
27891 }
27892 catch (const GExceptionHandler& e) {
27893 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27894 }
27895 catch (const std::exception& e) {
27896 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27897 }
27898 }
27899 resultobj = SWIG_Py_Void();
27900 return resultobj;
27901fail:
27902 return NULL__null;
27903}
27904
27905
27906SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralFunc_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27907 PyObject *resultobj = 0;
27908 GModelSpectralFunc *arg1 = (GModelSpectralFunc *) 0 ;
27909 void *argp1 = 0 ;
27910 int res1 = 0 ;
27911 PyObject * obj0 = 0 ;
27912
27913 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralFunc_clear",&obj0)) SWIG_failgoto fail;
27914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralFunc, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[27]
, 0 | 0, 0)
;
27915 if (!SWIG_IsOK(res1)(res1 >= 0)) {
27916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralFunc_clear" "', argument " "1"" of type '" "GModelSpectralFunc *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralFunc_clear" "', argument "
"1"" of type '" "GModelSpectralFunc *""'"); goto fail; } while
(0)
;
27917 }
27918 arg1 = reinterpret_cast< GModelSpectralFunc * >(argp1);
27919 {
27920 try {
27921 (arg1)->clear();
27922 }
27923 catch (const GException::out_of_range& e) {
27924 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
27925 }
27926 catch (const GExceptionHandler& e) {
27927 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27928 }
27929 catch (const std::exception& e) {
27930 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27931 }
27932 }
27933 resultobj = SWIG_Py_Void();
27934 return resultobj;
27935fail:
27936 return NULL__null;
27937}
27938
27939
27940SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralFunc_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27941 PyObject *resultobj = 0;
27942 GModelSpectralFunc *arg1 = (GModelSpectralFunc *) 0 ;
27943 void *argp1 = 0 ;
27944 int res1 = 0 ;
27945 PyObject * obj0 = 0 ;
27946 GModelSpectralFunc *result = 0 ;
27947
27948 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralFunc_clone",&obj0)) SWIG_failgoto fail;
27949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralFunc, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[27]
, 0 | 0, 0)
;
27950 if (!SWIG_IsOK(res1)(res1 >= 0)) {
27951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralFunc_clone" "', argument " "1"" of type '" "GModelSpectralFunc const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralFunc_clone" "', argument "
"1"" of type '" "GModelSpectralFunc const *""'"); goto fail;
} while(0)
;
27952 }
27953 arg1 = reinterpret_cast< GModelSpectralFunc * >(argp1);
27954 {
27955 try {
27956 result = (GModelSpectralFunc *)((GModelSpectralFunc const *)arg1)->clone();
27957 }
27958 catch (const GException::out_of_range& e) {
27959 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
27960 }
27961 catch (const GExceptionHandler& e) {
27962 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27963 }
27964 catch (const std::exception& e) {
27965 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27966 }
27967 }
27968 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralFunc, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[27], 0
| 0)
;
27969 return resultobj;
27970fail:
27971 return NULL__null;
27972}
27973
27974
27975SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralFunc_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27976 PyObject *resultobj = 0;
27977 GModelSpectralFunc *arg1 = (GModelSpectralFunc *) 0 ;
27978 void *argp1 = 0 ;
27979 int res1 = 0 ;
27980 PyObject * obj0 = 0 ;
27981 std::string result;
27982
27983 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralFunc_type",&obj0)) SWIG_failgoto fail;
27984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralFunc, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[27]
, 0 | 0, 0)
;
27985 if (!SWIG_IsOK(res1)(res1 >= 0)) {
27986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralFunc_type" "', argument " "1"" of type '" "GModelSpectralFunc const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralFunc_type" "', argument "
"1"" of type '" "GModelSpectralFunc const *""'"); goto fail;
} while(0)
;
27987 }
27988 arg1 = reinterpret_cast< GModelSpectralFunc * >(argp1);
27989 {
27990 try {
27991 result = ((GModelSpectralFunc const *)arg1)->type();
27992 }
27993 catch (const GException::out_of_range& e) {
27994 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
27995 }
27996 catch (const GExceptionHandler& e) {
27997 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27998 }
27999 catch (const std::exception& e) {
28000 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28001 }
28002 }
28003 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
28004 return resultobj;
28005fail:
28006 return NULL__null;
28007}
28008
28009
28010SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralFunc_eval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28011 PyObject *resultobj = 0;
28012 GModelSpectralFunc *arg1 = (GModelSpectralFunc *) 0 ;
28013 GEnergy *arg2 = 0 ;
28014 GTime *arg3 = 0 ;
28015 void *argp1 = 0 ;
28016 int res1 = 0 ;
28017 void *argp2 = 0 ;
28018 int res2 = 0 ;
28019 void *argp3 = 0 ;
28020 int res3 = 0 ;
28021 PyObject * obj0 = 0 ;
28022 PyObject * obj1 = 0 ;
28023 PyObject * obj2 = 0 ;
28024 double result;
28025
28026 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectralFunc_eval",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
28027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralFunc, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[27]
, 0 | 0, 0)
;
28028 if (!SWIG_IsOK(res1)(res1 >= 0)) {
28029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralFunc_eval" "', argument " "1"" of type '" "GModelSpectralFunc const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralFunc_eval" "', argument "
"1"" of type '" "GModelSpectralFunc const *""'"); goto fail;
} while(0)
;
28030 }
28031 arg1 = reinterpret_cast< GModelSpectralFunc * >(argp1);
28032 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
28033 if (!SWIG_IsOK(res2)(res2 >= 0)) {
28034 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralFunc_eval" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralFunc_eval" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
28035 }
28036 if (!argp2) {
28037 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralFunc_eval" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralFunc_eval" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
28038 }
28039 arg2 = reinterpret_cast< GEnergy * >(argp2);
28040 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[46]
, 0 | 0, 0)
;
28041 if (!SWIG_IsOK(res3)(res3 >= 0)) {
28042 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralFunc_eval" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralFunc_eval" "', argument "
"3"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
28043 }
28044 if (!argp3) {
28045 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralFunc_eval" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralFunc_eval" "', argument " "3"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
28046 }
28047 arg3 = reinterpret_cast< GTime * >(argp3);
28048 {
28049 try {
28050 result = (double)((GModelSpectralFunc const *)arg1)->eval((GEnergy const &)*arg2,(GTime const &)*arg3);
28051 }
28052 catch (const GException::out_of_range& e) {
28053 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
28054 }
28055 catch (const GExceptionHandler& e) {
28056 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28057 }
28058 catch (const std::exception& e) {
28059 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28060 }
28061 }
28062 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
28063 return resultobj;
28064fail:
28065 return NULL__null;
28066}
28067
28068
28069SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralFunc_eval_gradients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28070 PyObject *resultobj = 0;
28071 GModelSpectralFunc *arg1 = (GModelSpectralFunc *) 0 ;
28072 GEnergy *arg2 = 0 ;
28073 GTime *arg3 = 0 ;
28074 void *argp1 = 0 ;
28075 int res1 = 0 ;
28076 void *argp2 = 0 ;
28077 int res2 = 0 ;
28078 void *argp3 = 0 ;
28079 int res3 = 0 ;
28080 PyObject * obj0 = 0 ;
28081 PyObject * obj1 = 0 ;
28082 PyObject * obj2 = 0 ;
28083 double result;
28084
28085 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectralFunc_eval_gradients",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
28086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralFunc, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[27]
, 0 | 0, 0)
;
28087 if (!SWIG_IsOK(res1)(res1 >= 0)) {
28088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralFunc_eval_gradients" "', argument " "1"" of type '" "GModelSpectralFunc *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralFunc_eval_gradients"
"', argument " "1"" of type '" "GModelSpectralFunc *""'"); goto
fail; } while(0)
;
28089 }
28090 arg1 = reinterpret_cast< GModelSpectralFunc * >(argp1);
28091 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
28092 if (!SWIG_IsOK(res2)(res2 >= 0)) {
28093 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralFunc_eval_gradients" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralFunc_eval_gradients"
"', argument " "2"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
28094 }
28095 if (!argp2) {
28096 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralFunc_eval_gradients" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralFunc_eval_gradients" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
28097 }
28098 arg2 = reinterpret_cast< GEnergy * >(argp2);
28099 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[46]
, 0 | 0, 0)
;
28100 if (!SWIG_IsOK(res3)(res3 >= 0)) {
28101 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralFunc_eval_gradients" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralFunc_eval_gradients"
"', argument " "3"" of type '" "GTime const &""'"); goto
fail; } while(0)
;
28102 }
28103 if (!argp3) {
28104 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralFunc_eval_gradients" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralFunc_eval_gradients" "', argument "
"3"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
28105 }
28106 arg3 = reinterpret_cast< GTime * >(argp3);
28107 {
28108 try {
28109 result = (double)(arg1)->eval_gradients((GEnergy const &)*arg2,(GTime const &)*arg3);
28110 }
28111 catch (const GException::out_of_range& e) {
28112 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
28113 }
28114 catch (const GExceptionHandler& e) {
28115 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28116 }
28117 catch (const std::exception& e) {
28118 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28119 }
28120 }
28121 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
28122 return resultobj;
28123fail:
28124 return NULL__null;
28125}
28126
28127
28128SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralFunc_flux(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28129 PyObject *resultobj = 0;
28130 GModelSpectralFunc *arg1 = (GModelSpectralFunc *) 0 ;
28131 GEnergy *arg2 = 0 ;
28132 GEnergy *arg3 = 0 ;
28133 void *argp1 = 0 ;
28134 int res1 = 0 ;
28135 void *argp2 = 0 ;
28136 int res2 = 0 ;
28137 void *argp3 = 0 ;
28138 int res3 = 0 ;
28139 PyObject * obj0 = 0 ;
28140 PyObject * obj1 = 0 ;
28141 PyObject * obj2 = 0 ;
28142 double result;
28143
28144 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectralFunc_flux",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
28145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralFunc, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[27]
, 0 | 0, 0)
;
28146 if (!SWIG_IsOK(res1)(res1 >= 0)) {
28147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralFunc_flux" "', argument " "1"" of type '" "GModelSpectralFunc const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralFunc_flux" "', argument "
"1"" of type '" "GModelSpectralFunc const *""'"); goto fail;
} while(0)
;
28148 }
28149 arg1 = reinterpret_cast< GModelSpectralFunc * >(argp1);
28150 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
28151 if (!SWIG_IsOK(res2)(res2 >= 0)) {
28152 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralFunc_flux" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralFunc_flux" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
28153 }
28154 if (!argp2) {
28155 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralFunc_flux" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralFunc_flux" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
28156 }
28157 arg2 = reinterpret_cast< GEnergy * >(argp2);
28158 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
28159 if (!SWIG_IsOK(res3)(res3 >= 0)) {
28160 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralFunc_flux" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralFunc_flux" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
28161 }
28162 if (!argp3) {
28163 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralFunc_flux" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralFunc_flux" "', argument " "3"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
28164 }
28165 arg3 = reinterpret_cast< GEnergy * >(argp3);
28166 {
28167 try {
28168 result = (double)((GModelSpectralFunc const *)arg1)->flux((GEnergy const &)*arg2,(GEnergy const &)*arg3);
28169 }
28170 catch (const GException::out_of_range& e) {
28171 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
28172 }
28173 catch (const GExceptionHandler& e) {
28174 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28175 }
28176 catch (const std::exception& e) {
28177 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28178 }
28179 }
28180 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
28181 return resultobj;
28182fail:
28183 return NULL__null;
28184}
28185
28186
28187SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralFunc_eflux(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28188 PyObject *resultobj = 0;
28189 GModelSpectralFunc *arg1 = (GModelSpectralFunc *) 0 ;
28190 GEnergy *arg2 = 0 ;
28191 GEnergy *arg3 = 0 ;
28192 void *argp1 = 0 ;
28193 int res1 = 0 ;
28194 void *argp2 = 0 ;
28195 int res2 = 0 ;
28196 void *argp3 = 0 ;
28197 int res3 = 0 ;
28198 PyObject * obj0 = 0 ;
28199 PyObject * obj1 = 0 ;
28200 PyObject * obj2 = 0 ;
28201 double result;
28202
28203 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectralFunc_eflux",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
28204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralFunc, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[27]
, 0 | 0, 0)
;
28205 if (!SWIG_IsOK(res1)(res1 >= 0)) {
28206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralFunc_eflux" "', argument " "1"" of type '" "GModelSpectralFunc const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralFunc_eflux" "', argument "
"1"" of type '" "GModelSpectralFunc const *""'"); goto fail;
} while(0)
;
28207 }
28208 arg1 = reinterpret_cast< GModelSpectralFunc * >(argp1);
28209 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
28210 if (!SWIG_IsOK(res2)(res2 >= 0)) {
28211 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralFunc_eflux" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralFunc_eflux" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
28212 }
28213 if (!argp2) {
28214 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralFunc_eflux" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralFunc_eflux" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
28215 }
28216 arg2 = reinterpret_cast< GEnergy * >(argp2);
28217 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
28218 if (!SWIG_IsOK(res3)(res3 >= 0)) {
28219 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralFunc_eflux" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralFunc_eflux" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
28220 }
28221 if (!argp3) {
28222 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralFunc_eflux" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralFunc_eflux" "', argument " "3"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
28223 }
28224 arg3 = reinterpret_cast< GEnergy * >(argp3);
28225 {
28226 try {
28227 result = (double)((GModelSpectralFunc const *)arg1)->eflux((GEnergy const &)*arg2,(GEnergy const &)*arg3);
28228 }
28229 catch (const GException::out_of_range& e) {
28230 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
28231 }
28232 catch (const GExceptionHandler& e) {
28233 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28234 }
28235 catch (const std::exception& e) {
28236 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28237 }
28238 }
28239 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
28240 return resultobj;
28241fail:
28242 return NULL__null;
28243}
28244
28245
28246SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralFunc_mc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28247 PyObject *resultobj = 0;
28248 GModelSpectralFunc *arg1 = (GModelSpectralFunc *) 0 ;
28249 GEnergy *arg2 = 0 ;
28250 GEnergy *arg3 = 0 ;
28251 GTime *arg4 = 0 ;
28252 GRan *arg5 = 0 ;
28253 void *argp1 = 0 ;
28254 int res1 = 0 ;
28255 void *argp2 = 0 ;
28256 int res2 = 0 ;
28257 void *argp3 = 0 ;
28258 int res3 = 0 ;
28259 void *argp4 = 0 ;
28260 int res4 = 0 ;
28261 void *argp5 = 0 ;
28262 int res5 = 0 ;
28263 PyObject * obj0 = 0 ;
28264 PyObject * obj1 = 0 ;
28265 PyObject * obj2 = 0 ;
28266 PyObject * obj3 = 0 ;
28267 PyObject * obj4 = 0 ;
28268 GEnergy result;
28269
28270 if (!PyArg_ParseTuple(args,(char *)"OOOOO:GModelSpectralFunc_mc",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_failgoto fail;
28271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralFunc, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[27]
, 0 | 0, 0)
;
28272 if (!SWIG_IsOK(res1)(res1 >= 0)) {
28273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralFunc_mc" "', argument " "1"" of type '" "GModelSpectralFunc const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralFunc_mc" "', argument "
"1"" of type '" "GModelSpectralFunc const *""'"); goto fail;
} while(0)
;
28274 }
28275 arg1 = reinterpret_cast< GModelSpectralFunc * >(argp1);
28276 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
28277 if (!SWIG_IsOK(res2)(res2 >= 0)) {
28278 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralFunc_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralFunc_mc" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
28279 }
28280 if (!argp2) {
28281 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralFunc_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralFunc_mc" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
28282 }
28283 arg2 = reinterpret_cast< GEnergy * >(argp2);
28284 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
28285 if (!SWIG_IsOK(res3)(res3 >= 0)) {
28286 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralFunc_mc" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralFunc_mc" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
28287 }
28288 if (!argp3) {
28289 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralFunc_mc" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralFunc_mc" "', argument " "3"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
28290 }
28291 arg3 = reinterpret_cast< GEnergy * >(argp3);
28292 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[46]
, 0 | 0, 0)
;
28293 if (!SWIG_IsOK(res4)(res4 >= 0)) {
28294 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelSpectralFunc_mc" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelSpectralFunc_mc" "', argument "
"4"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
28295 }
28296 if (!argp4) {
28297 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralFunc_mc" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralFunc_mc" "', argument " "4"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
28298 }
28299 arg4 = reinterpret_cast< GTime * >(argp4);
28300 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_GRan, 0 )SWIG_Python_ConvertPtrAndOwn(obj4, &argp5, swig_types[42]
, 0, 0)
;
28301 if (!SWIG_IsOK(res5)(res5 >= 0)) {
28302 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GModelSpectralFunc_mc" "', argument " "5"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res5 != (
-1)) ? res5 : -5)), "in method '" "GModelSpectralFunc_mc" "', argument "
"5"" of type '" "GRan &""'"); goto fail; } while(0)
;
28303 }
28304 if (!argp5) {
28305 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralFunc_mc" "', argument " "5"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralFunc_mc" "', argument " "5"" of type '"
"GRan &""'"); goto fail; } while(0)
;
28306 }
28307 arg5 = reinterpret_cast< GRan * >(argp5);
28308 {
28309 try {
28310 result = ((GModelSpectralFunc const *)arg1)->mc((GEnergy const &)*arg2,(GEnergy const &)*arg3,(GTime const &)*arg4,*arg5);
28311 }
28312 catch (const GException::out_of_range& e) {
28313 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
28314 }
28315 catch (const GExceptionHandler& e) {
28316 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28317 }
28318 catch (const std::exception& e) {
28319 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28320 }
28321 }
28322 resultobj = SWIG_NewPointerObj((new GEnergy(static_cast< const GEnergy& >(result))), SWIGTYPE_p_GEnergy, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GEnergy(static_cast<
const GEnergy& >(result))), swig_types[3], 0x1 | 0)
;
28323 return resultobj;
28324fail:
28325 return NULL__null;
28326}
28327
28328
28329SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralFunc_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28330 PyObject *resultobj = 0;
28331 GModelSpectralFunc *arg1 = (GModelSpectralFunc *) 0 ;
28332 GXmlElement *arg2 = 0 ;
28333 void *argp1 = 0 ;
28334 int res1 = 0 ;
28335 void *argp2 = 0 ;
28336 int res2 = 0 ;
28337 PyObject * obj0 = 0 ;
28338 PyObject * obj1 = 0 ;
28339
28340 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralFunc_read",&obj0,&obj1)) SWIG_failgoto fail;
28341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralFunc, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[27]
, 0 | 0, 0)
;
28342 if (!SWIG_IsOK(res1)(res1 >= 0)) {
28343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralFunc_read" "', argument " "1"" of type '" "GModelSpectralFunc *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralFunc_read" "', argument "
"1"" of type '" "GModelSpectralFunc *""'"); goto fail; } while
(0)
;
28344 }
28345 arg1 = reinterpret_cast< GModelSpectralFunc * >(argp1);
28346 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0 | 0, 0)
;
28347 if (!SWIG_IsOK(res2)(res2 >= 0)) {
28348 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralFunc_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralFunc_read" "', argument "
"2"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
28349 }
28350 if (!argp2) {
28351 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralFunc_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralFunc_read" "', argument " "2"" of type '"
"GXmlElement const &""'"); goto fail; } while(0)
;
28352 }
28353 arg2 = reinterpret_cast< GXmlElement * >(argp2);
28354 {
28355 try {
28356 (arg1)->read((GXmlElement const &)*arg2);
28357 }
28358 catch (const GException::out_of_range& e) {
28359 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
28360 }
28361 catch (const GExceptionHandler& e) {
28362 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28363 }
28364 catch (const std::exception& e) {
28365 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28366 }
28367 }
28368 resultobj = SWIG_Py_Void();
28369 return resultobj;
28370fail:
28371 return NULL__null;
28372}
28373
28374
28375SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralFunc_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28376 PyObject *resultobj = 0;
28377 GModelSpectralFunc *arg1 = (GModelSpectralFunc *) 0 ;
28378 GXmlElement *arg2 = 0 ;
28379 void *argp1 = 0 ;
28380 int res1 = 0 ;
28381 void *argp2 = 0 ;
28382 int res2 = 0 ;
28383 PyObject * obj0 = 0 ;
28384 PyObject * obj1 = 0 ;
28385
28386 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralFunc_write",&obj0,&obj1)) SWIG_failgoto fail;
28387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralFunc, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[27]
, 0 | 0, 0)
;
28388 if (!SWIG_IsOK(res1)(res1 >= 0)) {
28389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralFunc_write" "', argument " "1"" of type '" "GModelSpectralFunc const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralFunc_write" "', argument "
"1"" of type '" "GModelSpectralFunc const *""'"); goto fail;
} while(0)
;
28390 }
28391 arg1 = reinterpret_cast< GModelSpectralFunc * >(argp1);
28392 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0, 0)
;
28393 if (!SWIG_IsOK(res2)(res2 >= 0)) {
28394 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralFunc_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralFunc_write" "', argument "
"2"" of type '" "GXmlElement &""'"); goto fail; } while(
0)
;
28395 }
28396 if (!argp2) {
28397 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralFunc_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralFunc_write" "', argument " "2"" of type '"
"GXmlElement &""'"); goto fail; } while(0)
;
28398 }
28399 arg2 = reinterpret_cast< GXmlElement * >(argp2);
28400 {
28401 try {
28402 ((GModelSpectralFunc const *)arg1)->write(*arg2);
28403 }
28404 catch (const GException::out_of_range& e) {
28405 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
28406 }
28407 catch (const GExceptionHandler& e) {
28408 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28409 }
28410 catch (const std::exception& e) {
28411 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28412 }
28413 }
28414 resultobj = SWIG_Py_Void();
28415 return resultobj;
28416fail:
28417 return NULL__null;
28418}
28419
28420
28421SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralFunc_filename__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28422 PyObject *resultobj = 0;
28423 GModelSpectralFunc *arg1 = (GModelSpectralFunc *) 0 ;
28424 void *argp1 = 0 ;
28425 int res1 = 0 ;
28426 PyObject * obj0 = 0 ;
28427 std::string *result = 0 ;
28428
28429 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralFunc_filename",&obj0)) SWIG_failgoto fail;
28430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralFunc, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[27]
, 0 | 0, 0)
;
28431 if (!SWIG_IsOK(res1)(res1 >= 0)) {
28432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralFunc_filename" "', argument " "1"" of type '" "GModelSpectralFunc const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralFunc_filename"
"', argument " "1"" of type '" "GModelSpectralFunc const *""'"
); goto fail; } while(0)
;
28433 }
28434 arg1 = reinterpret_cast< GModelSpectralFunc * >(argp1);
28435 {
28436 try {
28437 result = (std::string *) &((GModelSpectralFunc const *)arg1)->filename();
28438 }
28439 catch (const GException::out_of_range& e) {
28440 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
28441 }
28442 catch (const GExceptionHandler& e) {
28443 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28444 }
28445 catch (const std::exception& e) {
28446 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28447 }
28448 }
28449 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
28450 return resultobj;
28451fail:
28452 return NULL__null;
28453}
28454
28455
28456SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralFunc_filename__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28457 PyObject *resultobj = 0;
28458 GModelSpectralFunc *arg1 = (GModelSpectralFunc *) 0 ;
28459 std::string *arg2 = 0 ;
28460 void *argp1 = 0 ;
28461 int res1 = 0 ;
28462 int res2 = SWIG_OLDOBJ((0)) ;
28463 PyObject * obj0 = 0 ;
28464 PyObject * obj1 = 0 ;
28465
28466 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralFunc_filename",&obj0,&obj1)) SWIG_failgoto fail;
28467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralFunc, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[27]
, 0 | 0, 0)
;
28468 if (!SWIG_IsOK(res1)(res1 >= 0)) {
28469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralFunc_filename" "', argument " "1"" of type '" "GModelSpectralFunc *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralFunc_filename"
"', argument " "1"" of type '" "GModelSpectralFunc *""'"); goto
fail; } while(0)
;
28470 }
28471 arg1 = reinterpret_cast< GModelSpectralFunc * >(argp1);
28472 {
28473 std::string *ptr = (std::string *)0;
28474 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
28475 if (!SWIG_IsOK(res2)(res2 >= 0)) {
28476 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralFunc_filename" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralFunc_filename"
"', argument " "2"" of type '" "std::string const &""'")
; goto fail; } while(0)
;
28477 }
28478 if (!ptr) {
28479 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralFunc_filename" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralFunc_filename" "', argument " "2"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
28480 }
28481 arg2 = ptr;
28482 }
28483 {
28484 try {
28485 (arg1)->filename((std::string const &)*arg2);
28486 }
28487 catch (const GException::out_of_range& e) {
28488 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
28489 }
28490 catch (const GExceptionHandler& e) {
28491 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28492 }
28493 catch (const std::exception& e) {
28494 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28495 }
28496 }
28497 resultobj = SWIG_Py_Void();
28498 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
28499 return resultobj;
28500fail:
28501 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
28502 return NULL__null;
28503}
28504
28505
28506SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralFunc_filename(PyObject *self, PyObject *args) {
28507 int argc;
28508 PyObject *argv[3];
28509 int ii;
28510
28511 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
28512 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
28513 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
28514 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
28515 }
28516 if (argc == 1) {
28517 int _v;
28518 void *vptr = 0;
28519 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralFunc, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[27
], 0, 0)
;
28520 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
28521 if (_v) {
28522 return _wrap_GModelSpectralFunc_filename__SWIG_0(self, args);
28523 }
28524 }
28525 if (argc == 2) {
28526 int _v;
28527 void *vptr = 0;
28528 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralFunc, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[27
], 0, 0)
;
28529 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
28530 if (_v) {
28531 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
28532 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
28533 if (_v) {
28534 return _wrap_GModelSpectralFunc_filename__SWIG_1(self, args);
28535 }
28536 }
28537 }
28538
28539fail:
28540 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpectralFunc_filename'.\n"
28541 " Possible C/C++ prototypes are:\n"
28542 " GModelSpectralFunc::filename() const\n"
28543 " GModelSpectralFunc::filename(std::string const &)\n");
28544 return 0;
28545}
28546
28547
28548SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralFunc_norm__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28549 PyObject *resultobj = 0;
28550 GModelSpectralFunc *arg1 = (GModelSpectralFunc *) 0 ;
28551 void *argp1 = 0 ;
28552 int res1 = 0 ;
28553 PyObject * obj0 = 0 ;
28554 double result;
28555
28556 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralFunc_norm",&obj0)) SWIG_failgoto fail;
28557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralFunc, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[27]
, 0 | 0, 0)
;
28558 if (!SWIG_IsOK(res1)(res1 >= 0)) {
28559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralFunc_norm" "', argument " "1"" of type '" "GModelSpectralFunc const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralFunc_norm" "', argument "
"1"" of type '" "GModelSpectralFunc const *""'"); goto fail;
} while(0)
;
28560 }
28561 arg1 = reinterpret_cast< GModelSpectralFunc * >(argp1);
28562 {
28563 try {
28564 result = (double)((GModelSpectralFunc const *)arg1)->norm();
28565 }
28566 catch (const GException::out_of_range& e) {
28567 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
28568 }
28569 catch (const GExceptionHandler& e) {
28570 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28571 }
28572 catch (const std::exception& e) {
28573 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28574 }
28575 }
28576 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
28577 return resultobj;
28578fail:
28579 return NULL__null;
28580}
28581
28582
28583SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralFunc_norm__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28584 PyObject *resultobj = 0;
28585 GModelSpectralFunc *arg1 = (GModelSpectralFunc *) 0 ;
28586 double *arg2 = 0 ;
28587 void *argp1 = 0 ;
28588 int res1 = 0 ;
28589 double temp2 ;
28590 double val2 ;
28591 int ecode2 = 0 ;
28592 PyObject * obj0 = 0 ;
28593 PyObject * obj1 = 0 ;
28594
28595 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralFunc_norm",&obj0,&obj1)) SWIG_failgoto fail;
28596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralFunc, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[27]
, 0 | 0, 0)
;
28597 if (!SWIG_IsOK(res1)(res1 >= 0)) {
28598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralFunc_norm" "', argument " "1"" of type '" "GModelSpectralFunc *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralFunc_norm" "', argument "
"1"" of type '" "GModelSpectralFunc *""'"); goto fail; } while
(0)
;
28599 }
28600 arg1 = reinterpret_cast< GModelSpectralFunc * >(argp1);
28601 ecode2 = SWIG_AsVal_double(obj1, &val2);
28602 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
28603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpectralFunc_norm" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpectralFunc_norm"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
28604 }
28605 temp2 = static_cast< double >(val2);
28606 arg2 = &temp2;
28607 {
28608 try {
28609 (arg1)->norm((double const &)*arg2);
28610 }
28611 catch (const GException::out_of_range& e) {
28612 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
28613 }
28614 catch (const GExceptionHandler& e) {
28615 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28616 }
28617 catch (const std::exception& e) {
28618 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28619 }
28620 }
28621 resultobj = SWIG_Py_Void();
28622 return resultobj;
28623fail:
28624 return NULL__null;
28625}
28626
28627
28628SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralFunc_norm(PyObject *self, PyObject *args) {
28629 int argc;
28630 PyObject *argv[3];
28631 int ii;
28632
28633 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
28634 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
28635 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
28636 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
28637 }
28638 if (argc == 1) {
28639 int _v;
28640 void *vptr = 0;
28641 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralFunc, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[27
], 0, 0)
;
28642 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
28643 if (_v) {
28644 return _wrap_GModelSpectralFunc_norm__SWIG_0(self, args);
28645 }
28646 }
28647 if (argc == 2) {
28648 int _v;
28649 void *vptr = 0;
28650 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralFunc, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[27
], 0, 0)
;
28651 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
28652 if (_v) {
28653 {
28654 int res = SWIG_AsVal_double(argv[1], NULL__null);
28655 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
28656 }
28657 if (_v) {
28658 return _wrap_GModelSpectralFunc_norm__SWIG_1(self, args);
28659 }
28660 }
28661 }
28662
28663fail:
28664 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpectralFunc_norm'.\n"
28665 " Possible C/C++ prototypes are:\n"
28666 " GModelSpectralFunc::norm() const\n"
28667 " GModelSpectralFunc::norm(double const &)\n");
28668 return 0;
28669}
28670
28671
28672SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralFunc_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28673 PyObject *resultobj = 0;
28674 GModelSpectralFunc *arg1 = (GModelSpectralFunc *) 0 ;
28675 void *argp1 = 0 ;
28676 int res1 = 0 ;
28677 PyObject * obj0 = 0 ;
28678 GModelSpectralFunc result;
28679
28680 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralFunc_copy",&obj0)) SWIG_failgoto fail;
28681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralFunc, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[27]
, 0 | 0, 0)
;
28682 if (!SWIG_IsOK(res1)(res1 >= 0)) {
28683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralFunc_copy" "', argument " "1"" of type '" "GModelSpectralFunc *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralFunc_copy" "', argument "
"1"" of type '" "GModelSpectralFunc *""'"); goto fail; } while
(0)
;
28684 }
28685 arg1 = reinterpret_cast< GModelSpectralFunc * >(argp1);
28686 {
28687 try {
28688 result = GModelSpectralFunc_copy(arg1);
28689 }
28690 catch (const GException::out_of_range& e) {
28691 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
28692 }
28693 catch (const GExceptionHandler& e) {
28694 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28695 }
28696 catch (const std::exception& e) {
28697 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28698 }
28699 }
28700 resultobj = SWIG_NewPointerObj((new GModelSpectralFunc(static_cast< const GModelSpectralFunc& >(result))), SWIGTYPE_p_GModelSpectralFunc, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GModelSpectralFunc(static_cast
< const GModelSpectralFunc& >(result))), swig_types
[27], 0x1 | 0)
;
28701 return resultobj;
28702fail:
28703 return NULL__null;
28704}
28705
28706
28707SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GModelSpectralFunc_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28708 PyObject *obj;
28709 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
28710 SWIG_TypeNewClientData(SWIGTYPE_p_GModelSpectralFuncswig_types[27], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
28711 return SWIG_Py_Void();
28712}
28713
28714SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralNodes__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28715 PyObject *resultobj = 0;
28716 GModelSpectralNodes *result = 0 ;
28717
28718 if (!PyArg_ParseTuple(args,(char *)":new_GModelSpectralNodes")) SWIG_failgoto fail;
28719 {
28720 try {
28721 result = (GModelSpectralNodes *)new GModelSpectralNodes();
28722 }
28723 catch (const GException::out_of_range& e) {
28724 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
28725 }
28726 catch (const GExceptionHandler& e) {
28727 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28728 }
28729 catch (const std::exception& e) {
28730 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28731 }
28732 }
28733 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralNodes, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[29], (
(0x1 << 1) | 0x1) | 0)
;
28734 return resultobj;
28735fail:
28736 return NULL__null;
28737}
28738
28739
28740SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralNodes__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28741 PyObject *resultobj = 0;
28742 GXmlElement *arg1 = 0 ;
28743 void *argp1 = 0 ;
28744 int res1 = 0 ;
28745 PyObject * obj0 = 0 ;
28746 GModelSpectralNodes *result = 0 ;
28747
28748 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpectralNodes",&obj0)) SWIG_failgoto fail;
28749 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[50]
, 0 | 0, 0)
;
28750 if (!SWIG_IsOK(res1)(res1 >= 0)) {
28751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpectralNodes" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpectralNodes" "', argument "
"1"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
28752 }
28753 if (!argp1) {
28754 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpectralNodes" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpectralNodes" "', argument " "1"" of type '"
"GXmlElement const &""'"); goto fail; } while(0)
;
28755 }
28756 arg1 = reinterpret_cast< GXmlElement * >(argp1);
28757 {
28758 try {
28759 result = (GModelSpectralNodes *)new GModelSpectralNodes((GXmlElement const &)*arg1);
28760 }
28761 catch (const GException::out_of_range& e) {
28762 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
28763 }
28764 catch (const GExceptionHandler& e) {
28765 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28766 }
28767 catch (const std::exception& e) {
28768 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28769 }
28770 }
28771 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralNodes, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[29], (
(0x1 << 1) | 0x1) | 0)
;
28772 return resultobj;
28773fail:
28774 return NULL__null;
28775}
28776
28777
28778SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralNodes__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28779 PyObject *resultobj = 0;
28780 GModelSpectralNodes *arg1 = 0 ;
28781 void *argp1 = 0 ;
28782 int res1 = 0 ;
28783 PyObject * obj0 = 0 ;
28784 GModelSpectralNodes *result = 0 ;
28785
28786 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpectralNodes",&obj0)) SWIG_failgoto fail;
28787 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GModelSpectralNodes, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29]
, 0 | 0, 0)
;
28788 if (!SWIG_IsOK(res1)(res1 >= 0)) {
28789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpectralNodes" "', argument " "1"" of type '" "GModelSpectralNodes const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpectralNodes" "', argument "
"1"" of type '" "GModelSpectralNodes const &""'"); goto fail
; } while(0)
;
28790 }
28791 if (!argp1) {
28792 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpectralNodes" "', argument " "1"" of type '" "GModelSpectralNodes const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpectralNodes" "', argument " "1"" of type '"
"GModelSpectralNodes const &""'"); goto fail; } while(0)
;
28793 }
28794 arg1 = reinterpret_cast< GModelSpectralNodes * >(argp1);
28795 {
28796 try {
28797 result = (GModelSpectralNodes *)new GModelSpectralNodes((GModelSpectralNodes const &)*arg1);
28798 }
28799 catch (const GException::out_of_range& e) {
28800 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
28801 }
28802 catch (const GExceptionHandler& e) {
28803 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28804 }
28805 catch (const std::exception& e) {
28806 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28807 }
28808 }
28809 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralNodes, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[29], (
(0x1 << 1) | 0x1) | 0)
;
28810 return resultobj;
28811fail:
28812 return NULL__null;
28813}
28814
28815
28816SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralNodes(PyObject *self, PyObject *args) {
28817 int argc;
28818 PyObject *argv[2];
28819 int ii;
28820
28821 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
28822 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
28823 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
28824 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
28825 }
28826 if (argc == 0) {
28827 return _wrap_new_GModelSpectralNodes__SWIG_0(self, args);
28828 }
28829 if (argc == 1) {
28830 int _v;
28831 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GXmlElement, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[50], 0, 0
)
;
28832 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
28833 if (_v) {
28834 return _wrap_new_GModelSpectralNodes__SWIG_1(self, args);
28835 }
28836 }
28837 if (argc == 1) {
28838 int _v;
28839 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GModelSpectralNodes, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[29], 0, 0
)
;
28840 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
28841 if (_v) {
28842 return _wrap_new_GModelSpectralNodes__SWIG_2(self, args);
28843 }
28844 }
28845
28846fail:
28847 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GModelSpectralNodes'.\n"
28848 " Possible C/C++ prototypes are:\n"
28849 " GModelSpectralNodes::GModelSpectralNodes()\n"
28850 " GModelSpectralNodes::GModelSpectralNodes(GXmlElement const &)\n"
28851 " GModelSpectralNodes::GModelSpectralNodes(GModelSpectralNodes const &)\n");
28852 return 0;
28853}
28854
28855
28856SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GModelSpectralNodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28857 PyObject *resultobj = 0;
28858 GModelSpectralNodes *arg1 = (GModelSpectralNodes *) 0 ;
28859 void *argp1 = 0 ;
28860 int res1 = 0 ;
28861 PyObject * obj0 = 0 ;
28862
28863 if (!PyArg_ParseTuple(args,(char *)"O:delete_GModelSpectralNodes",&obj0)) SWIG_failgoto fail;
28864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralNodes, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29]
, 0x1 | 0, 0)
;
28865 if (!SWIG_IsOK(res1)(res1 >= 0)) {
28866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GModelSpectralNodes" "', argument " "1"" of type '" "GModelSpectralNodes *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GModelSpectralNodes"
"', argument " "1"" of type '" "GModelSpectralNodes *""'"); goto
fail; } while(0)
;
28867 }
28868 arg1 = reinterpret_cast< GModelSpectralNodes * >(argp1);
28869 {
28870 try {
28871 delete arg1;
28872 }
28873 catch (const GException::out_of_range& e) {
28874 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
28875 }
28876 catch (const GExceptionHandler& e) {
28877 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28878 }
28879 catch (const std::exception& e) {
28880 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28881 }
28882 }
28883 resultobj = SWIG_Py_Void();
28884 return resultobj;
28885fail:
28886 return NULL__null;
28887}
28888
28889
28890SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralNodes_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28891 PyObject *resultobj = 0;
28892 GModelSpectralNodes *arg1 = (GModelSpectralNodes *) 0 ;
28893 void *argp1 = 0 ;
28894 int res1 = 0 ;
28895 PyObject * obj0 = 0 ;
28896
28897 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralNodes_clear",&obj0)) SWIG_failgoto fail;
28898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralNodes, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29]
, 0 | 0, 0)
;
28899 if (!SWIG_IsOK(res1)(res1 >= 0)) {
28900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralNodes_clear" "', argument " "1"" of type '" "GModelSpectralNodes *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralNodes_clear"
"', argument " "1"" of type '" "GModelSpectralNodes *""'"); goto
fail; } while(0)
;
28901 }
28902 arg1 = reinterpret_cast< GModelSpectralNodes * >(argp1);
28903 {
28904 try {
28905 (arg1)->clear();
28906 }
28907 catch (const GException::out_of_range& e) {
28908 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
28909 }
28910 catch (const GExceptionHandler& e) {
28911 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28912 }
28913 catch (const std::exception& e) {
28914 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28915 }
28916 }
28917 resultobj = SWIG_Py_Void();
28918 return resultobj;
28919fail:
28920 return NULL__null;
28921}
28922
28923
28924SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralNodes_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28925 PyObject *resultobj = 0;
28926 GModelSpectralNodes *arg1 = (GModelSpectralNodes *) 0 ;
28927 void *argp1 = 0 ;
28928 int res1 = 0 ;
28929 PyObject * obj0 = 0 ;
28930 GModelSpectralNodes *result = 0 ;
28931
28932 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralNodes_clone",&obj0)) SWIG_failgoto fail;
28933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralNodes, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29]
, 0 | 0, 0)
;
28934 if (!SWIG_IsOK(res1)(res1 >= 0)) {
28935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralNodes_clone" "', argument " "1"" of type '" "GModelSpectralNodes const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralNodes_clone"
"', argument " "1"" of type '" "GModelSpectralNodes const *"
"'"); goto fail; } while(0)
;
28936 }
28937 arg1 = reinterpret_cast< GModelSpectralNodes * >(argp1);
28938 {
28939 try {
28940 result = (GModelSpectralNodes *)((GModelSpectralNodes const *)arg1)->clone();
28941 }
28942 catch (const GException::out_of_range& e) {
28943 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
28944 }
28945 catch (const GExceptionHandler& e) {
28946 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28947 }
28948 catch (const std::exception& e) {
28949 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28950 }
28951 }
28952 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralNodes, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[29], 0
| 0)
;
28953 return resultobj;
28954fail:
28955 return NULL__null;
28956}
28957
28958
28959SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralNodes_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28960 PyObject *resultobj = 0;
28961 GModelSpectralNodes *arg1 = (GModelSpectralNodes *) 0 ;
28962 void *argp1 = 0 ;
28963 int res1 = 0 ;
28964 PyObject * obj0 = 0 ;
28965 std::string result;
28966
28967 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralNodes_type",&obj0)) SWIG_failgoto fail;
28968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralNodes, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29]
, 0 | 0, 0)
;
28969 if (!SWIG_IsOK(res1)(res1 >= 0)) {
28970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralNodes_type" "', argument " "1"" of type '" "GModelSpectralNodes const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralNodes_type" "', argument "
"1"" of type '" "GModelSpectralNodes const *""'"); goto fail
; } while(0)
;
28971 }
28972 arg1 = reinterpret_cast< GModelSpectralNodes * >(argp1);
28973 {
28974 try {
28975 result = ((GModelSpectralNodes const *)arg1)->type();
28976 }
28977 catch (const GException::out_of_range& e) {
28978 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
28979 }
28980 catch (const GExceptionHandler& e) {
28981 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28982 }
28983 catch (const std::exception& e) {
28984 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
28985 }
28986 }
28987 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
28988 return resultobj;
28989fail:
28990 return NULL__null;
28991}
28992
28993
28994SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralNodes_eval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28995 PyObject *resultobj = 0;
28996 GModelSpectralNodes *arg1 = (GModelSpectralNodes *) 0 ;
28997 GEnergy *arg2 = 0 ;
28998 GTime *arg3 = 0 ;
28999 void *argp1 = 0 ;
29000 int res1 = 0 ;
29001 void *argp2 = 0 ;
29002 int res2 = 0 ;
29003 void *argp3 = 0 ;
29004 int res3 = 0 ;
29005 PyObject * obj0 = 0 ;
29006 PyObject * obj1 = 0 ;
29007 PyObject * obj2 = 0 ;
29008 double result;
29009
29010 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectralNodes_eval",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
29011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralNodes, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29]
, 0 | 0, 0)
;
29012 if (!SWIG_IsOK(res1)(res1 >= 0)) {
29013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralNodes_eval" "', argument " "1"" of type '" "GModelSpectralNodes const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralNodes_eval" "', argument "
"1"" of type '" "GModelSpectralNodes const *""'"); goto fail
; } while(0)
;
29014 }
29015 arg1 = reinterpret_cast< GModelSpectralNodes * >(argp1);
29016 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
29017 if (!SWIG_IsOK(res2)(res2 >= 0)) {
29018 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralNodes_eval" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralNodes_eval" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
29019 }
29020 if (!argp2) {
29021 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralNodes_eval" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralNodes_eval" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
29022 }
29023 arg2 = reinterpret_cast< GEnergy * >(argp2);
29024 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[46]
, 0 | 0, 0)
;
29025 if (!SWIG_IsOK(res3)(res3 >= 0)) {
29026 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralNodes_eval" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralNodes_eval" "', argument "
"3"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
29027 }
29028 if (!argp3) {
29029 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralNodes_eval" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralNodes_eval" "', argument " "3"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
29030 }
29031 arg3 = reinterpret_cast< GTime * >(argp3);
29032 {
29033 try {
29034 result = (double)((GModelSpectralNodes const *)arg1)->eval((GEnergy const &)*arg2,(GTime const &)*arg3);
29035 }
29036 catch (const GException::out_of_range& e) {
29037 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
29038 }
29039 catch (const GExceptionHandler& e) {
29040 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
29041 }
29042 catch (const std::exception& e) {
29043 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
29044 }
29045 }
29046 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
29047 return resultobj;
29048fail:
29049 return NULL__null;
29050}
29051
29052
29053SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralNodes_eval_gradients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29054 PyObject *resultobj = 0;
29055 GModelSpectralNodes *arg1 = (GModelSpectralNodes *) 0 ;
29056 GEnergy *arg2 = 0 ;
29057 GTime *arg3 = 0 ;
29058 void *argp1 = 0 ;
29059 int res1 = 0 ;
29060 void *argp2 = 0 ;
29061 int res2 = 0 ;
29062 void *argp3 = 0 ;
29063 int res3 = 0 ;
29064 PyObject * obj0 = 0 ;
29065 PyObject * obj1 = 0 ;
29066 PyObject * obj2 = 0 ;
29067 double result;
29068
29069 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectralNodes_eval_gradients",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
29070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralNodes, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29]
, 0 | 0, 0)
;
29071 if (!SWIG_IsOK(res1)(res1 >= 0)) {
29072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralNodes_eval_gradients" "', argument " "1"" of type '" "GModelSpectralNodes *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralNodes_eval_gradients"
"', argument " "1"" of type '" "GModelSpectralNodes *""'"); goto
fail; } while(0)
;
29073 }
29074 arg1 = reinterpret_cast< GModelSpectralNodes * >(argp1);
29075 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
29076 if (!SWIG_IsOK(res2)(res2 >= 0)) {
29077 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralNodes_eval_gradients" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralNodes_eval_gradients"
"', argument " "2"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
29078 }
29079 if (!argp2) {
29080 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralNodes_eval_gradients" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralNodes_eval_gradients" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
29081 }
29082 arg2 = reinterpret_cast< GEnergy * >(argp2);
29083 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[46]
, 0 | 0, 0)
;
29084 if (!SWIG_IsOK(res3)(res3 >= 0)) {
29085 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralNodes_eval_gradients" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralNodes_eval_gradients"
"', argument " "3"" of type '" "GTime const &""'"); goto
fail; } while(0)
;
29086 }
29087 if (!argp3) {
29088 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralNodes_eval_gradients" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralNodes_eval_gradients" "', argument "
"3"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
29089 }
29090 arg3 = reinterpret_cast< GTime * >(argp3);
29091 {
29092 try {
29093 result = (double)(arg1)->eval_gradients((GEnergy const &)*arg2,(GTime const &)*arg3);
29094 }
29095 catch (const GException::out_of_range& e) {
29096 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
29097 }
29098 catch (const GExceptionHandler& e) {
29099 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
29100 }
29101 catch (const std::exception& e) {
29102 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
29103 }
29104 }
29105 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
29106 return resultobj;
29107fail:
29108 return NULL__null;
29109}
29110
29111
29112SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralNodes_flux(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29113 PyObject *resultobj = 0;
29114 GModelSpectralNodes *arg1 = (GModelSpectralNodes *) 0 ;
29115 GEnergy *arg2 = 0 ;
29116 GEnergy *arg3 = 0 ;
29117 void *argp1 = 0 ;
29118 int res1 = 0 ;
29119 void *argp2 = 0 ;
29120 int res2 = 0 ;
29121 void *argp3 = 0 ;
29122 int res3 = 0 ;
29123 PyObject * obj0 = 0 ;
29124 PyObject * obj1 = 0 ;
29125 PyObject * obj2 = 0 ;
29126 double result;
29127
29128 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectralNodes_flux",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
29129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralNodes, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29]
, 0 | 0, 0)
;
29130 if (!SWIG_IsOK(res1)(res1 >= 0)) {
29131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralNodes_flux" "', argument " "1"" of type '" "GModelSpectralNodes const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralNodes_flux" "', argument "
"1"" of type '" "GModelSpectralNodes const *""'"); goto fail
; } while(0)
;
29132 }
29133 arg1 = reinterpret_cast< GModelSpectralNodes * >(argp1);
29134 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
29135 if (!SWIG_IsOK(res2)(res2 >= 0)) {
29136 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralNodes_flux" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralNodes_flux" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
29137 }
29138 if (!argp2) {
29139 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralNodes_flux" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralNodes_flux" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
29140 }
29141 arg2 = reinterpret_cast< GEnergy * >(argp2);
29142 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
29143 if (!SWIG_IsOK(res3)(res3 >= 0)) {
29144 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralNodes_flux" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralNodes_flux" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
29145 }
29146 if (!argp3) {
29147 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralNodes_flux" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralNodes_flux" "', argument " "3"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
29148 }
29149 arg3 = reinterpret_cast< GEnergy * >(argp3);
29150 {
29151 try {
29152 result = (double)((GModelSpectralNodes const *)arg1)->flux((GEnergy const &)*arg2,(GEnergy const &)*arg3);
29153 }
29154 catch (const GException::out_of_range& e) {
29155 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
29156 }
29157 catch (const GExceptionHandler& e) {
29158 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
29159 }
29160 catch (const std::exception& e) {
29161 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
29162 }
29163 }
29164 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
29165 return resultobj;
29166fail:
29167 return NULL__null;
29168}
29169
29170
29171SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralNodes_eflux(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29172 PyObject *resultobj = 0;
29173 GModelSpectralNodes *arg1 = (GModelSpectralNodes *) 0 ;
29174 GEnergy *arg2 = 0 ;
29175 GEnergy *arg3 = 0 ;
29176 void *argp1 = 0 ;
29177 int res1 = 0 ;
29178 void *argp2 = 0 ;
29179 int res2 = 0 ;
29180 void *argp3 = 0 ;
29181 int res3 = 0 ;
29182 PyObject * obj0 = 0 ;
29183 PyObject * obj1 = 0 ;
29184 PyObject * obj2 = 0 ;
29185 double result;
29186
29187 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectralNodes_eflux",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
29188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralNodes, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29]
, 0 | 0, 0)
;
29189 if (!SWIG_IsOK(res1)(res1 >= 0)) {
29190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralNodes_eflux" "', argument " "1"" of type '" "GModelSpectralNodes const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralNodes_eflux"
"', argument " "1"" of type '" "GModelSpectralNodes const *"
"'"); goto fail; } while(0)
;
29191 }
29192 arg1 = reinterpret_cast< GModelSpectralNodes * >(argp1);
29193 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
29194 if (!SWIG_IsOK(res2)(res2 >= 0)) {
29195 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralNodes_eflux" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralNodes_eflux"
"', argument " "2"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
29196 }
29197 if (!argp2) {
29198 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralNodes_eflux" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralNodes_eflux" "', argument " "2"
" of type '" "GEnergy const &""'"); goto fail; } while(0)
;
29199 }
29200 arg2 = reinterpret_cast< GEnergy * >(argp2);
29201 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
29202 if (!SWIG_IsOK(res3)(res3 >= 0)) {
29203 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralNodes_eflux" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralNodes_eflux"
"', argument " "3"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
29204 }
29205 if (!argp3) {
29206 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralNodes_eflux" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralNodes_eflux" "', argument " "3"
" of type '" "GEnergy const &""'"); goto fail; } while(0)
;
29207 }
29208 arg3 = reinterpret_cast< GEnergy * >(argp3);
29209 {
29210 try {
29211 result = (double)((GModelSpectralNodes const *)arg1)->eflux((GEnergy const &)*arg2,(GEnergy const &)*arg3);
29212 }
29213 catch (const GException::out_of_range& e) {
29214 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
29215 }
29216 catch (const GExceptionHandler& e) {
29217 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
29218 }
29219 catch (const std::exception& e) {
29220 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
29221 }
29222 }
29223 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
29224 return resultobj;
29225fail:
29226 return NULL__null;
29227}
29228
29229
29230SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralNodes_mc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29231 PyObject *resultobj = 0;
29232 GModelSpectralNodes *arg1 = (GModelSpectralNodes *) 0 ;
29233 GEnergy *arg2 = 0 ;
29234 GEnergy *arg3 = 0 ;
29235 GTime *arg4 = 0 ;
29236 GRan *arg5 = 0 ;
29237 void *argp1 = 0 ;
29238 int res1 = 0 ;
29239 void *argp2 = 0 ;
29240 int res2 = 0 ;
29241 void *argp3 = 0 ;
29242 int res3 = 0 ;
29243 void *argp4 = 0 ;
29244 int res4 = 0 ;
29245 void *argp5 = 0 ;
29246 int res5 = 0 ;
29247 PyObject * obj0 = 0 ;
29248 PyObject * obj1 = 0 ;
29249 PyObject * obj2 = 0 ;
29250 PyObject * obj3 = 0 ;
29251 PyObject * obj4 = 0 ;
29252 GEnergy result;
29253
29254 if (!PyArg_ParseTuple(args,(char *)"OOOOO:GModelSpectralNodes_mc",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_failgoto fail;
29255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralNodes, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29]
, 0 | 0, 0)
;
29256 if (!SWIG_IsOK(res1)(res1 >= 0)) {
29257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralNodes_mc" "', argument " "1"" of type '" "GModelSpectralNodes const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralNodes_mc" "', argument "
"1"" of type '" "GModelSpectralNodes const *""'"); goto fail
; } while(0)
;
29258 }
29259 arg1 = reinterpret_cast< GModelSpectralNodes * >(argp1);
29260 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
29261 if (!SWIG_IsOK(res2)(res2 >= 0)) {
29262 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralNodes_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralNodes_mc" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
29263 }
29264 if (!argp2) {
29265 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralNodes_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralNodes_mc" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
29266 }
29267 arg2 = reinterpret_cast< GEnergy * >(argp2);
29268 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
29269 if (!SWIG_IsOK(res3)(res3 >= 0)) {
29270 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralNodes_mc" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralNodes_mc" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
29271 }
29272 if (!argp3) {
29273 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralNodes_mc" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralNodes_mc" "', argument " "3"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
29274 }
29275 arg3 = reinterpret_cast< GEnergy * >(argp3);
29276 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[46]
, 0 | 0, 0)
;
29277 if (!SWIG_IsOK(res4)(res4 >= 0)) {
29278 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelSpectralNodes_mc" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelSpectralNodes_mc" "', argument "
"4"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
29279 }
29280 if (!argp4) {
29281 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralNodes_mc" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralNodes_mc" "', argument " "4"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
29282 }
29283 arg4 = reinterpret_cast< GTime * >(argp4);
29284 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_GRan, 0 )SWIG_Python_ConvertPtrAndOwn(obj4, &argp5, swig_types[42]
, 0, 0)
;
29285 if (!SWIG_IsOK(res5)(res5 >= 0)) {
29286 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GModelSpectralNodes_mc" "', argument " "5"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res5 != (
-1)) ? res5 : -5)), "in method '" "GModelSpectralNodes_mc" "', argument "
"5"" of type '" "GRan &""'"); goto fail; } while(0)
;
29287 }
29288 if (!argp5) {
29289 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralNodes_mc" "', argument " "5"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralNodes_mc" "', argument " "5"" of type '"
"GRan &""'"); goto fail; } while(0)
;
29290 }
29291 arg5 = reinterpret_cast< GRan * >(argp5);
29292 {
29293 try {
29294 result = ((GModelSpectralNodes const *)arg1)->mc((GEnergy const &)*arg2,(GEnergy const &)*arg3,(GTime const &)*arg4,*arg5);
29295 }
29296 catch (const GException::out_of_range& e) {
29297 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
29298 }
29299 catch (const GExceptionHandler& e) {
29300 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
29301 }
29302 catch (const std::exception& e) {
29303 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
29304 }
29305 }
29306 resultobj = SWIG_NewPointerObj((new GEnergy(static_cast< const GEnergy& >(result))), SWIGTYPE_p_GEnergy, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GEnergy(static_cast<
const GEnergy& >(result))), swig_types[3], 0x1 | 0)
;
29307 return resultobj;
29308fail:
29309 return NULL__null;
29310}
29311
29312
29313SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralNodes_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29314 PyObject *resultobj = 0;
29315 GModelSpectralNodes *arg1 = (GModelSpectralNodes *) 0 ;
29316 GXmlElement *arg2 = 0 ;
29317 void *argp1 = 0 ;
29318 int res1 = 0 ;
29319 void *argp2 = 0 ;
29320 int res2 = 0 ;
29321 PyObject * obj0 = 0 ;
29322 PyObject * obj1 = 0 ;
29323
29324 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralNodes_read",&obj0,&obj1)) SWIG_failgoto fail;
29325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralNodes, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29]
, 0 | 0, 0)
;
29326 if (!SWIG_IsOK(res1)(res1 >= 0)) {
29327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralNodes_read" "', argument " "1"" of type '" "GModelSpectralNodes *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralNodes_read" "', argument "
"1"" of type '" "GModelSpectralNodes *""'"); goto fail; } while
(0)
;
29328 }
29329 arg1 = reinterpret_cast< GModelSpectralNodes * >(argp1);
29330 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0 | 0, 0)
;
29331 if (!SWIG_IsOK(res2)(res2 >= 0)) {
29332 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralNodes_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralNodes_read" "', argument "
"2"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
29333 }
29334 if (!argp2) {
29335 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralNodes_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralNodes_read" "', argument " "2"" of type '"
"GXmlElement const &""'"); goto fail; } while(0)
;
29336 }
29337 arg2 = reinterpret_cast< GXmlElement * >(argp2);
29338 {
29339 try {
29340 (arg1)->read((GXmlElement const &)*arg2);
29341 }
29342 catch (const GException::out_of_range& e) {
29343 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
29344 }
29345 catch (const GExceptionHandler& e) {
29346 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
29347 }
29348 catch (const std::exception& e) {
29349 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
29350 }
29351 }
29352 resultobj = SWIG_Py_Void();
29353 return resultobj;
29354fail:
29355 return NULL__null;
29356}
29357
29358
29359SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralNodes_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29360 PyObject *resultobj = 0;
29361 GModelSpectralNodes *arg1 = (GModelSpectralNodes *) 0 ;
29362 GXmlElement *arg2 = 0 ;
29363 void *argp1 = 0 ;
29364 int res1 = 0 ;
29365 void *argp2 = 0 ;
29366 int res2 = 0 ;
29367 PyObject * obj0 = 0 ;
29368 PyObject * obj1 = 0 ;
29369
29370 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralNodes_write",&obj0,&obj1)) SWIG_failgoto fail;
29371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralNodes, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29]
, 0 | 0, 0)
;
29372 if (!SWIG_IsOK(res1)(res1 >= 0)) {
29373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralNodes_write" "', argument " "1"" of type '" "GModelSpectralNodes const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralNodes_write"
"', argument " "1"" of type '" "GModelSpectralNodes const *"
"'"); goto fail; } while(0)
;
29374 }
29375 arg1 = reinterpret_cast< GModelSpectralNodes * >(argp1);
29376 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0, 0)
;
29377 if (!SWIG_IsOK(res2)(res2 >= 0)) {
29378 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralNodes_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralNodes_write"
"', argument " "2"" of type '" "GXmlElement &""'"); goto
fail; } while(0)
;
29379 }
29380 if (!argp2) {
29381 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralNodes_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralNodes_write" "', argument " "2"
" of type '" "GXmlElement &""'"); goto fail; } while(0)
;
29382 }
29383 arg2 = reinterpret_cast< GXmlElement * >(argp2);
29384 {
29385 try {
29386 ((GModelSpectralNodes const *)arg1)->write(*arg2);
29387 }
29388 catch (const GException::out_of_range& e) {
29389 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
29390 }
29391 catch (const GExceptionHandler& e) {
29392 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
29393 }
29394 catch (const std::exception& e) {
29395 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
29396 }
29397 }
29398 resultobj = SWIG_Py_Void();
29399 return resultobj;
29400fail:
29401 return NULL__null;
29402}
29403
29404
29405SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralNodes_nodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29406 PyObject *resultobj = 0;
29407 GModelSpectralNodes *arg1 = (GModelSpectralNodes *) 0 ;
29408 void *argp1 = 0 ;
29409 int res1 = 0 ;
29410 PyObject * obj0 = 0 ;
29411 int result;
29412
29413 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralNodes_nodes",&obj0)) SWIG_failgoto fail;
29414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralNodes, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29]
, 0 | 0, 0)
;
29415 if (!SWIG_IsOK(res1)(res1 >= 0)) {
29416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralNodes_nodes" "', argument " "1"" of type '" "GModelSpectralNodes const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralNodes_nodes"
"', argument " "1"" of type '" "GModelSpectralNodes const *"
"'"); goto fail; } while(0)
;
29417 }
29418 arg1 = reinterpret_cast< GModelSpectralNodes * >(argp1);
29419 {
29420 try {
29421 result = (int)((GModelSpectralNodes const *)arg1)->nodes();
29422 }
29423 catch (const GException::out_of_range& e) {
29424 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
29425 }
29426 catch (const GExceptionHandler& e) {
29427 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
29428 }
29429 catch (const std::exception& e) {
29430 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
29431 }
29432 }
29433 resultobj = SWIG_From_int(static_cast< int >(result));
29434 return resultobj;
29435fail:
29436 return NULL__null;
29437}
29438
29439
29440SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralNodes_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29441 PyObject *resultobj = 0;
29442 GModelSpectralNodes *arg1 = (GModelSpectralNodes *) 0 ;
29443 GEnergy *arg2 = 0 ;
29444 double *arg3 = 0 ;
29445 void *argp1 = 0 ;
29446 int res1 = 0 ;
29447 void *argp2 = 0 ;
29448 int res2 = 0 ;
29449 double temp3 ;
29450 double val3 ;
29451 int ecode3 = 0 ;
29452 PyObject * obj0 = 0 ;
29453 PyObject * obj1 = 0 ;
29454 PyObject * obj2 = 0 ;
29455
29456 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectralNodes_append",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
29457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralNodes, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29]
, 0 | 0, 0)
;
29458 if (!SWIG_IsOK(res1)(res1 >= 0)) {
29459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralNodes_append" "', argument " "1"" of type '" "GModelSpectralNodes *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralNodes_append"
"', argument " "1"" of type '" "GModelSpectralNodes *""'"); goto
fail; } while(0)
;
29460 }
29461 arg1 = reinterpret_cast< GModelSpectralNodes * >(argp1);
29462 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
29463 if (!SWIG_IsOK(res2)(res2 >= 0)) {
29464 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralNodes_append" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralNodes_append"
"', argument " "2"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
29465 }
29466 if (!argp2) {
29467 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralNodes_append" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralNodes_append" "', argument " "2"
" of type '" "GEnergy const &""'"); goto fail; } while(0)
;
29468 }
29469 arg2 = reinterpret_cast< GEnergy * >(argp2);
29470 ecode3 = SWIG_AsVal_double(obj2, &val3);
29471 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
29472 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GModelSpectralNodes_append" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GModelSpectralNodes_append"
"', argument " "3"" of type '" "double""'"); goto fail; } while
(0)
;
29473 }
29474 temp3 = static_cast< double >(val3);
29475 arg3 = &temp3;
29476 {
29477 try {
29478 (arg1)->append((GEnergy const &)*arg2,(double const &)*arg3);
29479 }
29480 catch (const GException::out_of_range& e) {
29481 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
29482 }
29483 catch (const GExceptionHandler& e) {
29484 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
29485 }
29486 catch (const std::exception& e) {
29487 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
29488 }
29489 }
29490 resultobj = SWIG_Py_Void();
29491 return resultobj;
29492fail:
29493 return NULL__null;
29494}
29495
29496
29497SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralNodes_insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29498 PyObject *resultobj = 0;
29499 GModelSpectralNodes *arg1 = (GModelSpectralNodes *) 0 ;
29500 int *arg2 = 0 ;
29501 GEnergy *arg3 = 0 ;
29502 double *arg4 = 0 ;
29503 void *argp1 = 0 ;
29504 int res1 = 0 ;
29505 int temp2 ;
29506 int val2 ;
29507 int ecode2 = 0 ;
29508 void *argp3 = 0 ;
29509 int res3 = 0 ;
29510 double temp4 ;
29511 double val4 ;
29512 int ecode4 = 0 ;
29513 PyObject * obj0 = 0 ;
29514 PyObject * obj1 = 0 ;
29515 PyObject * obj2 = 0 ;
29516 PyObject * obj3 = 0 ;
29517
29518 if (!PyArg_ParseTuple(args,(char *)"OOOO:GModelSpectralNodes_insert",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
29519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralNodes, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29]
, 0 | 0, 0)
;
29520 if (!SWIG_IsOK(res1)(res1 >= 0)) {
29521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralNodes_insert" "', argument " "1"" of type '" "GModelSpectralNodes *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralNodes_insert"
"', argument " "1"" of type '" "GModelSpectralNodes *""'"); goto
fail; } while(0)
;
29522 }
29523 arg1 = reinterpret_cast< GModelSpectralNodes * >(argp1);
29524 ecode2 = SWIG_AsVal_int(obj1, &val2);
29525 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
29526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpectralNodes_insert" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpectralNodes_insert"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
29527 }
29528 temp2 = static_cast< int >(val2);
29529 arg2 = &temp2;
29530 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
29531 if (!SWIG_IsOK(res3)(res3 >= 0)) {
29532 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralNodes_insert" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralNodes_insert"
"', argument " "3"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
29533 }
29534 if (!argp3) {
29535 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralNodes_insert" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralNodes_insert" "', argument " "3"
" of type '" "GEnergy const &""'"); goto fail; } while(0)
;
29536 }
29537 arg3 = reinterpret_cast< GEnergy * >(argp3);
29538 ecode4 = SWIG_AsVal_double(obj3, &val4);
29539 if (!SWIG_IsOK(ecode4)(ecode4 >= 0)) {
29540 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GModelSpectralNodes_insert" "', argument " "4"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 !=
(-1)) ? ecode4 : -5)), "in method '" "GModelSpectralNodes_insert"
"', argument " "4"" of type '" "double""'"); goto fail; } while
(0)
;
29541 }
29542 temp4 = static_cast< double >(val4);
29543 arg4 = &temp4;
29544 {
29545 try {
29546 (arg1)->insert((int const &)*arg2,(GEnergy const &)*arg3,(double const &)*arg4);
29547 }
29548 catch (const GException::out_of_range& e) {
29549 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
29550 }
29551 catch (const GExceptionHandler& e) {
29552 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
29553 }
29554 catch (const std::exception& e) {
29555 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
29556 }
29557 }
29558 resultobj = SWIG_Py_Void();
29559 return resultobj;
29560fail:
29561 return NULL__null;
29562}
29563
29564
29565SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralNodes_remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29566 PyObject *resultobj = 0;
29567 GModelSpectralNodes *arg1 = (GModelSpectralNodes *) 0 ;
29568 int *arg2 = 0 ;
29569 void *argp1 = 0 ;
29570 int res1 = 0 ;
29571 int temp2 ;
29572 int val2 ;
29573 int ecode2 = 0 ;
29574 PyObject * obj0 = 0 ;
29575 PyObject * obj1 = 0 ;
29576
29577 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralNodes_remove",&obj0,&obj1)) SWIG_failgoto fail;
29578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralNodes, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29]
, 0 | 0, 0)
;
29579 if (!SWIG_IsOK(res1)(res1 >= 0)) {
29580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralNodes_remove" "', argument " "1"" of type '" "GModelSpectralNodes *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralNodes_remove"
"', argument " "1"" of type '" "GModelSpectralNodes *""'"); goto
fail; } while(0)
;
29581 }
29582 arg1 = reinterpret_cast< GModelSpectralNodes * >(argp1);
29583 ecode2 = SWIG_AsVal_int(obj1, &val2);
29584 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
29585 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpectralNodes_remove" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpectralNodes_remove"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
29586 }
29587 temp2 = static_cast< int >(val2);
29588 arg2 = &temp2;
29589 {
29590 try {
29591 (arg1)->remove((int const &)*arg2);
29592 }
29593 catch (const GException::out_of_range& e) {
29594 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
29595 }
29596 catch (const GExceptionHandler& e) {
29597 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
29598 }
29599 catch (const std::exception& e) {
29600 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
29601 }
29602 }
29603 resultobj = SWIG_Py_Void();
29604 return resultobj;
29605fail:
29606 return NULL__null;
29607}
29608
29609
29610SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralNodes_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29611 PyObject *resultobj = 0;
29612 GModelSpectralNodes *arg1 = (GModelSpectralNodes *) 0 ;
29613 int *arg2 = 0 ;
29614 void *argp1 = 0 ;
29615 int res1 = 0 ;
29616 int temp2 ;
29617 int val2 ;
29618 int ecode2 = 0 ;
29619 PyObject * obj0 = 0 ;
29620 PyObject * obj1 = 0 ;
29621
29622 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralNodes_reserve",&obj0,&obj1)) SWIG_failgoto fail;
29623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralNodes, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29]
, 0 | 0, 0)
;
29624 if (!SWIG_IsOK(res1)(res1 >= 0)) {
29625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralNodes_reserve" "', argument " "1"" of type '" "GModelSpectralNodes *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralNodes_reserve"
"', argument " "1"" of type '" "GModelSpectralNodes *""'"); goto
fail; } while(0)
;
29626 }
29627 arg1 = reinterpret_cast< GModelSpectralNodes * >(argp1);
29628 ecode2 = SWIG_AsVal_int(obj1, &val2);
29629 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
29630 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpectralNodes_reserve" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpectralNodes_reserve"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
29631 }
29632 temp2 = static_cast< int >(val2);
29633 arg2 = &temp2;
29634 {
29635 try {
29636 (arg1)->reserve((int const &)*arg2);
29637 }
29638 catch (const GException::out_of_range& e) {
29639 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
29640 }
29641 catch (const GExceptionHandler& e) {
29642 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
29643 }
29644 catch (const std::exception& e) {
29645 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
29646 }
29647 }
29648 resultobj = SWIG_Py_Void();
29649 return resultobj;
29650fail:
29651 return NULL__null;
29652}
29653
29654
29655SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralNodes_extend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29656 PyObject *resultobj = 0;
29657 GModelSpectralNodes *arg1 = (GModelSpectralNodes *) 0 ;
29658 GModelSpectralNodes *arg2 = 0 ;
29659 void *argp1 = 0 ;
29660 int res1 = 0 ;
29661 void *argp2 = 0 ;
29662 int res2 = 0 ;
29663 PyObject * obj0 = 0 ;
29664 PyObject * obj1 = 0 ;
29665
29666 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralNodes_extend",&obj0,&obj1)) SWIG_failgoto fail;
29667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralNodes, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29]
, 0 | 0, 0)
;
29668 if (!SWIG_IsOK(res1)(res1 >= 0)) {
29669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralNodes_extend" "', argument " "1"" of type '" "GModelSpectralNodes *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralNodes_extend"
"', argument " "1"" of type '" "GModelSpectralNodes *""'"); goto
fail; } while(0)
;
29670 }
29671 arg1 = reinterpret_cast< GModelSpectralNodes * >(argp1);
29672 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GModelSpectralNodes, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[29]
, 0 | 0, 0)
;
29673 if (!SWIG_IsOK(res2)(res2 >= 0)) {
29674 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralNodes_extend" "', argument " "2"" of type '" "GModelSpectralNodes const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralNodes_extend"
"', argument " "2"" of type '" "GModelSpectralNodes const &"
"'"); goto fail; } while(0)
;
29675 }
29676 if (!argp2) {
29677 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralNodes_extend" "', argument " "2"" of type '" "GModelSpectralNodes const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralNodes_extend" "', argument " "2"
" of type '" "GModelSpectralNodes const &""'"); goto fail
; } while(0)
;
29678 }
29679 arg2 = reinterpret_cast< GModelSpectralNodes * >(argp2);
29680 {
29681 try {
29682 (arg1)->extend((GModelSpectralNodes const &)*arg2);
29683 }
29684 catch (const GException::out_of_range& e) {
29685 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
29686 }
29687 catch (const GExceptionHandler& e) {
29688 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
29689 }
29690 catch (const std::exception& e) {
29691 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
29692 }
29693 }
29694 resultobj = SWIG_Py_Void();
29695 return resultobj;
29696fail:
29697 return NULL__null;
29698}
29699
29700
29701SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralNodes_energy__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29702 PyObject *resultobj = 0;
29703 GModelSpectralNodes *arg1 = (GModelSpectralNodes *) 0 ;
29704 int *arg2 = 0 ;
29705 void *argp1 = 0 ;
29706 int res1 = 0 ;
29707 int temp2 ;
29708 int val2 ;
29709 int ecode2 = 0 ;
29710 PyObject * obj0 = 0 ;
29711 PyObject * obj1 = 0 ;
29712 GEnergy result;
29713
29714 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralNodes_energy",&obj0,&obj1)) SWIG_failgoto fail;
29715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralNodes, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29]
, 0 | 0, 0)
;
29716 if (!SWIG_IsOK(res1)(res1 >= 0)) {
29717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralNodes_energy" "', argument " "1"" of type '" "GModelSpectralNodes const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralNodes_energy"
"', argument " "1"" of type '" "GModelSpectralNodes const *"
"'"); goto fail; } while(0)
;
29718 }
29719 arg1 = reinterpret_cast< GModelSpectralNodes * >(argp1);
29720 ecode2 = SWIG_AsVal_int(obj1, &val2);
29721 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
29722 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpectralNodes_energy" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpectralNodes_energy"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
29723 }
29724 temp2 = static_cast< int >(val2);
29725 arg2 = &temp2;
29726 {
29727 try {
29728 result = ((GModelSpectralNodes const *)arg1)->energy((int const &)*arg2);
29729 }
29730 catch (const GException::out_of_range& e) {
29731 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
29732 }
29733 catch (const GExceptionHandler& e) {
29734 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
29735 }
29736 catch (const std::exception& e) {
29737 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
29738 }
29739 }
29740 resultobj = SWIG_NewPointerObj((new GEnergy(static_cast< const GEnergy& >(result))), SWIGTYPE_p_GEnergy, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GEnergy(static_cast<
const GEnergy& >(result))), swig_types[3], 0x1 | 0)
;
29741 return resultobj;
29742fail:
29743 return NULL__null;
29744}
29745
29746
29747SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralNodes_energy__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29748 PyObject *resultobj = 0;
29749 GModelSpectralNodes *arg1 = (GModelSpectralNodes *) 0 ;
29750 int *arg2 = 0 ;
29751 GEnergy *arg3 = 0 ;
29752 void *argp1 = 0 ;
29753 int res1 = 0 ;
29754 int temp2 ;
29755 int val2 ;
29756 int ecode2 = 0 ;
29757 void *argp3 = 0 ;
29758 int res3 = 0 ;
29759 PyObject * obj0 = 0 ;
29760 PyObject * obj1 = 0 ;
29761 PyObject * obj2 = 0 ;
29762
29763 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectralNodes_energy",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
29764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralNodes, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29]
, 0 | 0, 0)
;
29765 if (!SWIG_IsOK(res1)(res1 >= 0)) {
29766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralNodes_energy" "', argument " "1"" of type '" "GModelSpectralNodes *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralNodes_energy"
"', argument " "1"" of type '" "GModelSpectralNodes *""'"); goto
fail; } while(0)
;
29767 }
29768 arg1 = reinterpret_cast< GModelSpectralNodes * >(argp1);
29769 ecode2 = SWIG_AsVal_int(obj1, &val2);
29770 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
29771 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpectralNodes_energy" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpectralNodes_energy"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
29772 }
29773 temp2 = static_cast< int >(val2);
29774 arg2 = &temp2;
29775 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
29776 if (!SWIG_IsOK(res3)(res3 >= 0)) {
29777 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralNodes_energy" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralNodes_energy"
"', argument " "3"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
29778 }
29779 if (!argp3) {
29780 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralNodes_energy" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralNodes_energy" "', argument " "3"
" of type '" "GEnergy const &""'"); goto fail; } while(0)
;
29781 }
29782 arg3 = reinterpret_cast< GEnergy * >(argp3);
29783 {
29784 try {
29785 (arg1)->energy((int const &)*arg2,(GEnergy const &)*arg3);
29786 }
29787 catch (const GException::out_of_range& e) {
29788 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
29789 }
29790 catch (const GExceptionHandler& e) {
29791 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
29792 }
29793 catch (const std::exception& e) {
29794 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
29795 }
29796 }
29797 resultobj = SWIG_Py_Void();
29798 return resultobj;
29799fail:
29800 return NULL__null;
29801}
29802
29803
29804SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralNodes_energy(PyObject *self, PyObject *args) {
29805 int argc;
29806 PyObject *argv[4];
29807 int ii;
29808
29809 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
29810 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
29811 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
29812 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
29813 }
29814 if (argc == 2) {
29815 int _v;
29816 void *vptr = 0;
29817 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralNodes, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[29
], 0, 0)
;
29818 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
29819 if (_v) {
29820 {
29821 int res = SWIG_AsVal_int(argv[1], NULL__null);
29822 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
29823 }
29824 if (_v) {
29825 return _wrap_GModelSpectralNodes_energy__SWIG_0(self, args);
29826 }
29827 }
29828 }
29829 if (argc == 3) {
29830 int _v;
29831 void *vptr = 0;
29832 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralNodes, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[29
], 0, 0)
;
29833 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
29834 if (_v) {
29835 {
29836 int res = SWIG_AsVal_int(argv[1], NULL__null);
29837 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
29838 }
29839 if (_v) {
29840 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[3], 0, 0);
29841 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
29842 if (_v) {
29843 return _wrap_GModelSpectralNodes_energy__SWIG_1(self, args);
29844 }
29845 }
29846 }
29847 }
29848
29849fail:
29850 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpectralNodes_energy'.\n"
29851 " Possible C/C++ prototypes are:\n"
29852 " GModelSpectralNodes::energy(int const &) const\n"
29853 " GModelSpectralNodes::energy(int const &,GEnergy const &)\n");
29854 return 0;
29855}
29856
29857
29858SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralNodes_intensity__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29859 PyObject *resultobj = 0;
29860 GModelSpectralNodes *arg1 = (GModelSpectralNodes *) 0 ;
29861 int *arg2 = 0 ;
29862 void *argp1 = 0 ;
29863 int res1 = 0 ;
29864 int temp2 ;
29865 int val2 ;
29866 int ecode2 = 0 ;
29867 PyObject * obj0 = 0 ;
29868 PyObject * obj1 = 0 ;
29869 double result;
29870
29871 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralNodes_intensity",&obj0,&obj1)) SWIG_failgoto fail;
29872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralNodes, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29]
, 0 | 0, 0)
;
29873 if (!SWIG_IsOK(res1)(res1 >= 0)) {
29874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralNodes_intensity" "', argument " "1"" of type '" "GModelSpectralNodes const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralNodes_intensity"
"', argument " "1"" of type '" "GModelSpectralNodes const *"
"'"); goto fail; } while(0)
;
29875 }
29876 arg1 = reinterpret_cast< GModelSpectralNodes * >(argp1);
29877 ecode2 = SWIG_AsVal_int(obj1, &val2);
29878 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
29879 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpectralNodes_intensity" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpectralNodes_intensity"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
29880 }
29881 temp2 = static_cast< int >(val2);
29882 arg2 = &temp2;
29883 {
29884 try {
29885 result = (double)((GModelSpectralNodes const *)arg1)->intensity((int const &)*arg2);
29886 }
29887 catch (const GException::out_of_range& e) {
29888 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
29889 }
29890 catch (const GExceptionHandler& e) {
29891 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
29892 }
29893 catch (const std::exception& e) {
29894 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
29895 }
29896 }
29897 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
29898 return resultobj;
29899fail:
29900 return NULL__null;
29901}
29902
29903
29904SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralNodes_intensity__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29905 PyObject *resultobj = 0;
29906 GModelSpectralNodes *arg1 = (GModelSpectralNodes *) 0 ;
29907 int *arg2 = 0 ;
29908 double *arg3 = 0 ;
29909 void *argp1 = 0 ;
29910 int res1 = 0 ;
29911 int temp2 ;
29912 int val2 ;
29913 int ecode2 = 0 ;
29914 double temp3 ;
29915 double val3 ;
29916 int ecode3 = 0 ;
29917 PyObject * obj0 = 0 ;
29918 PyObject * obj1 = 0 ;
29919 PyObject * obj2 = 0 ;
29920
29921 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectralNodes_intensity",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
29922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralNodes, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29]
, 0 | 0, 0)
;
29923 if (!SWIG_IsOK(res1)(res1 >= 0)) {
29924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralNodes_intensity" "', argument " "1"" of type '" "GModelSpectralNodes *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralNodes_intensity"
"', argument " "1"" of type '" "GModelSpectralNodes *""'"); goto
fail; } while(0)
;
29925 }
29926 arg1 = reinterpret_cast< GModelSpectralNodes * >(argp1);
29927 ecode2 = SWIG_AsVal_int(obj1, &val2);
29928 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
29929 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpectralNodes_intensity" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpectralNodes_intensity"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
29930 }
29931 temp2 = static_cast< int >(val2);
29932 arg2 = &temp2;
29933 ecode3 = SWIG_AsVal_double(obj2, &val3);
29934 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
29935 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GModelSpectralNodes_intensity" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GModelSpectralNodes_intensity"
"', argument " "3"" of type '" "double""'"); goto fail; } while
(0)
;
29936 }
29937 temp3 = static_cast< double >(val3);
29938 arg3 = &temp3;
29939 {
29940 try {
29941 (arg1)->intensity((int const &)*arg2,(double const &)*arg3);
29942 }
29943 catch (const GException::out_of_range& e) {
29944 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
29945 }
29946 catch (const GExceptionHandler& e) {
29947 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
29948 }
29949 catch (const std::exception& e) {
29950 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
29951 }
29952 }
29953 resultobj = SWIG_Py_Void();
29954 return resultobj;
29955fail:
29956 return NULL__null;
29957}
29958
29959
29960SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralNodes_intensity(PyObject *self, PyObject *args) {
29961 int argc;
29962 PyObject *argv[4];
29963 int ii;
29964
29965 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
29966 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
29967 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
29968 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
29969 }
29970 if (argc == 2) {
29971 int _v;
29972 void *vptr = 0;
29973 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralNodes, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[29
], 0, 0)
;
29974 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
29975 if (_v) {
29976 {
29977 int res = SWIG_AsVal_int(argv[1], NULL__null);
29978 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
29979 }
29980 if (_v) {
29981 return _wrap_GModelSpectralNodes_intensity__SWIG_0(self, args);
29982 }
29983 }
29984 }
29985 if (argc == 3) {
29986 int _v;
29987 void *vptr = 0;
29988 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralNodes, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[29
], 0, 0)
;
29989 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
29990 if (_v) {
29991 {
29992 int res = SWIG_AsVal_int(argv[1], NULL__null);
29993 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
29994 }
29995 if (_v) {
29996 {
29997 int res = SWIG_AsVal_double(argv[2], NULL__null);
29998 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
29999 }
30000 if (_v) {
30001 return _wrap_GModelSpectralNodes_intensity__SWIG_1(self, args);
30002 }
30003 }
30004 }
30005 }
30006
30007fail:
30008 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpectralNodes_intensity'.\n"
30009 " Possible C/C++ prototypes are:\n"
30010 " GModelSpectralNodes::intensity(int const &) const\n"
30011 " GModelSpectralNodes::intensity(int const &,double const &)\n");
30012 return 0;
30013}
30014
30015
30016SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralNodes_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30017 PyObject *resultobj = 0;
30018 GModelSpectralNodes *arg1 = (GModelSpectralNodes *) 0 ;
30019 void *argp1 = 0 ;
30020 int res1 = 0 ;
30021 PyObject * obj0 = 0 ;
30022 GModelSpectralNodes result;
30023
30024 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralNodes_copy",&obj0)) SWIG_failgoto fail;
30025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralNodes, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29]
, 0 | 0, 0)
;
30026 if (!SWIG_IsOK(res1)(res1 >= 0)) {
30027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralNodes_copy" "', argument " "1"" of type '" "GModelSpectralNodes *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralNodes_copy" "', argument "
"1"" of type '" "GModelSpectralNodes *""'"); goto fail; } while
(0)
;
30028 }
30029 arg1 = reinterpret_cast< GModelSpectralNodes * >(argp1);
30030 {
30031 try {
30032 result = GModelSpectralNodes_copy(arg1);
30033 }
30034 catch (const GException::out_of_range& e) {
30035 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
30036 }
30037 catch (const GExceptionHandler& e) {
30038 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30039 }
30040 catch (const std::exception& e) {
30041 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30042 }
30043 }
30044 resultobj = SWIG_NewPointerObj((new GModelSpectralNodes(static_cast< const GModelSpectralNodes& >(result))), SWIGTYPE_p_GModelSpectralNodes, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GModelSpectralNodes(static_cast
< const GModelSpectralNodes& >(result))), swig_types
[29], 0x1 | 0)
;
30045 return resultobj;
30046fail:
30047 return NULL__null;
30048}
30049
30050
30051SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GModelSpectralNodes_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30052 PyObject *obj;
30053 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
30054 SWIG_TypeNewClientData(SWIGTYPE_p_GModelSpectralNodesswig_types[29], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
30055 return SWIG_Py_Void();
30056}
30057
30058SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralPlaw__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30059 PyObject *resultobj = 0;
30060 GModelSpectralPlaw *result = 0 ;
30061
30062 if (!PyArg_ParseTuple(args,(char *)":new_GModelSpectralPlaw")) SWIG_failgoto fail;
30063 {
30064 try {
30065 result = (GModelSpectralPlaw *)new GModelSpectralPlaw();
30066 }
30067 catch (const GException::out_of_range& e) {
30068 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
30069 }
30070 catch (const GExceptionHandler& e) {
30071 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30072 }
30073 catch (const std::exception& e) {
30074 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30075 }
30076 }
30077 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralPlaw, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[30], (
(0x1 << 1) | 0x1) | 0)
;
30078 return resultobj;
30079fail:
30080 return NULL__null;
30081}
30082
30083
30084SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralPlaw__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30085 PyObject *resultobj = 0;
30086 double *arg1 = 0 ;
30087 double *arg2 = 0 ;
30088 GEnergy *arg3 = 0 ;
30089 double temp1 ;
30090 double val1 ;
30091 int ecode1 = 0 ;
30092 double temp2 ;
30093 double val2 ;
30094 int ecode2 = 0 ;
30095 void *argp3 = 0 ;
30096 int res3 = 0 ;
30097 PyObject * obj0 = 0 ;
30098 PyObject * obj1 = 0 ;
30099 PyObject * obj2 = 0 ;
30100 GModelSpectralPlaw *result = 0 ;
30101
30102 if (!PyArg_ParseTuple(args,(char *)"OOO:new_GModelSpectralPlaw",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
30103 ecode1 = SWIG_AsVal_double(obj0, &val1);
30104 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
30105 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GModelSpectralPlaw" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "new_GModelSpectralPlaw"
"', argument " "1"" of type '" "double""'"); goto fail; } while
(0)
;
30106 }
30107 temp1 = static_cast< double >(val1);
30108 arg1 = &temp1;
30109 ecode2 = SWIG_AsVal_double(obj1, &val2);
30110 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
30111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GModelSpectralPlaw" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "new_GModelSpectralPlaw"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
30112 }
30113 temp2 = static_cast< double >(val2);
30114 arg2 = &temp2;
30115 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
30116 if (!SWIG_IsOK(res3)(res3 >= 0)) {
30117 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_GModelSpectralPlaw" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "new_GModelSpectralPlaw" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
30118 }
30119 if (!argp3) {
30120 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpectralPlaw" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpectralPlaw" "', argument " "3"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
30121 }
30122 arg3 = reinterpret_cast< GEnergy * >(argp3);
30123 {
30124 try {
30125 result = (GModelSpectralPlaw *)new GModelSpectralPlaw((double const &)*arg1,(double const &)*arg2,(GEnergy const &)*arg3);
30126 }
30127 catch (const GException::out_of_range& e) {
30128 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
30129 }
30130 catch (const GExceptionHandler& e) {
30131 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30132 }
30133 catch (const std::exception& e) {
30134 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30135 }
30136 }
30137 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralPlaw, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[30], (
(0x1 << 1) | 0x1) | 0)
;
30138 return resultobj;
30139fail:
30140 return NULL__null;
30141}
30142
30143
30144SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralPlaw__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30145 PyObject *resultobj = 0;
30146 GXmlElement *arg1 = 0 ;
30147 void *argp1 = 0 ;
30148 int res1 = 0 ;
30149 PyObject * obj0 = 0 ;
30150 GModelSpectralPlaw *result = 0 ;
30151
30152 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpectralPlaw",&obj0)) SWIG_failgoto fail;
30153 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[50]
, 0 | 0, 0)
;
30154 if (!SWIG_IsOK(res1)(res1 >= 0)) {
30155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpectralPlaw" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpectralPlaw" "', argument "
"1"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
30156 }
30157 if (!argp1) {
30158 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpectralPlaw" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpectralPlaw" "', argument " "1"" of type '"
"GXmlElement const &""'"); goto fail; } while(0)
;
30159 }
30160 arg1 = reinterpret_cast< GXmlElement * >(argp1);
30161 {
30162 try {
30163 result = (GModelSpectralPlaw *)new GModelSpectralPlaw((GXmlElement const &)*arg1);
30164 }
30165 catch (const GException::out_of_range& e) {
30166 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
30167 }
30168 catch (const GExceptionHandler& e) {
30169 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30170 }
30171 catch (const std::exception& e) {
30172 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30173 }
30174 }
30175 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralPlaw, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[30], (
(0x1 << 1) | 0x1) | 0)
;
30176 return resultobj;
30177fail:
30178 return NULL__null;
30179}
30180
30181
30182SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralPlaw__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30183 PyObject *resultobj = 0;
30184 GModelSpectralPlaw *arg1 = 0 ;
30185 void *argp1 = 0 ;
30186 int res1 = 0 ;
30187 PyObject * obj0 = 0 ;
30188 GModelSpectralPlaw *result = 0 ;
30189
30190 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpectralPlaw",&obj0)) SWIG_failgoto fail;
30191 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GModelSpectralPlaw, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[30]
, 0 | 0, 0)
;
30192 if (!SWIG_IsOK(res1)(res1 >= 0)) {
30193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpectralPlaw" "', argument " "1"" of type '" "GModelSpectralPlaw const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpectralPlaw" "', argument "
"1"" of type '" "GModelSpectralPlaw const &""'"); goto fail
; } while(0)
;
30194 }
30195 if (!argp1) {
30196 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpectralPlaw" "', argument " "1"" of type '" "GModelSpectralPlaw const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpectralPlaw" "', argument " "1"" of type '"
"GModelSpectralPlaw const &""'"); goto fail; } while(0)
;
30197 }
30198 arg1 = reinterpret_cast< GModelSpectralPlaw * >(argp1);
30199 {
30200 try {
30201 result = (GModelSpectralPlaw *)new GModelSpectralPlaw((GModelSpectralPlaw const &)*arg1);
30202 }
30203 catch (const GException::out_of_range& e) {
30204 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
30205 }
30206 catch (const GExceptionHandler& e) {
30207 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30208 }
30209 catch (const std::exception& e) {
30210 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30211 }
30212 }
30213 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralPlaw, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[30], (
(0x1 << 1) | 0x1) | 0)
;
30214 return resultobj;
30215fail:
30216 return NULL__null;
30217}
30218
30219
30220SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralPlaw(PyObject *self, PyObject *args) {
30221 int argc;
30222 PyObject *argv[4];
30223 int ii;
30224
30225 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
30226 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
30227 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
30228 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
30229 }
30230 if (argc == 0) {
30231 return _wrap_new_GModelSpectralPlaw__SWIG_0(self, args);
30232 }
30233 if (argc == 1) {
30234 int _v;
30235 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GXmlElement, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[50], 0, 0
)
;
30236 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
30237 if (_v) {
30238 return _wrap_new_GModelSpectralPlaw__SWIG_2(self, args);
30239 }
30240 }
30241 if (argc == 1) {
30242 int _v;
30243 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GModelSpectralPlaw, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[30], 0, 0
)
;
30244 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
30245 if (_v) {
30246 return _wrap_new_GModelSpectralPlaw__SWIG_3(self, args);
30247 }
30248 }
30249 if (argc == 3) {
30250 int _v;
30251 {
30252 int res = SWIG_AsVal_double(argv[0], NULL__null);
30253 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
30254 }
30255 if (_v) {
30256 {
30257 int res = SWIG_AsVal_double(argv[1], NULL__null);
30258 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
30259 }
30260 if (_v) {
30261 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[3], 0, 0);
30262 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
30263 if (_v) {
30264 return _wrap_new_GModelSpectralPlaw__SWIG_1(self, args);
30265 }
30266 }
30267 }
30268 }
30269
30270fail:
30271 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GModelSpectralPlaw'.\n"
30272 " Possible C/C++ prototypes are:\n"
30273 " GModelSpectralPlaw::GModelSpectralPlaw()\n"
30274 " GModelSpectralPlaw::GModelSpectralPlaw(double const &,double const &,GEnergy const &)\n"
30275 " GModelSpectralPlaw::GModelSpectralPlaw(GXmlElement const &)\n"
30276 " GModelSpectralPlaw::GModelSpectralPlaw(GModelSpectralPlaw const &)\n");
30277 return 0;
30278}
30279
30280
30281SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GModelSpectralPlaw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30282 PyObject *resultobj = 0;
30283 GModelSpectralPlaw *arg1 = (GModelSpectralPlaw *) 0 ;
30284 void *argp1 = 0 ;
30285 int res1 = 0 ;
30286 PyObject * obj0 = 0 ;
30287
30288 if (!PyArg_ParseTuple(args,(char *)"O:delete_GModelSpectralPlaw",&obj0)) SWIG_failgoto fail;
30289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[30]
, 0x1 | 0, 0)
;
30290 if (!SWIG_IsOK(res1)(res1 >= 0)) {
30291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GModelSpectralPlaw" "', argument " "1"" of type '" "GModelSpectralPlaw *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GModelSpectralPlaw"
"', argument " "1"" of type '" "GModelSpectralPlaw *""'"); goto
fail; } while(0)
;
30292 }
30293 arg1 = reinterpret_cast< GModelSpectralPlaw * >(argp1);
30294 {
30295 try {
30296 delete arg1;
30297 }
30298 catch (const GException::out_of_range& e) {
30299 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
30300 }
30301 catch (const GExceptionHandler& e) {
30302 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30303 }
30304 catch (const std::exception& e) {
30305 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30306 }
30307 }
30308 resultobj = SWIG_Py_Void();
30309 return resultobj;
30310fail:
30311 return NULL__null;
30312}
30313
30314
30315SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30316 PyObject *resultobj = 0;
30317 GModelSpectralPlaw *arg1 = (GModelSpectralPlaw *) 0 ;
30318 void *argp1 = 0 ;
30319 int res1 = 0 ;
30320 PyObject * obj0 = 0 ;
30321
30322 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralPlaw_clear",&obj0)) SWIG_failgoto fail;
30323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[30]
, 0 | 0, 0)
;
30324 if (!SWIG_IsOK(res1)(res1 >= 0)) {
30325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw_clear" "', argument " "1"" of type '" "GModelSpectralPlaw *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw_clear" "', argument "
"1"" of type '" "GModelSpectralPlaw *""'"); goto fail; } while
(0)
;
30326 }
30327 arg1 = reinterpret_cast< GModelSpectralPlaw * >(argp1);
30328 {
30329 try {
30330 (arg1)->clear();
30331 }
30332 catch (const GException::out_of_range& e) {
30333 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
30334 }
30335 catch (const GExceptionHandler& e) {
30336 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30337 }
30338 catch (const std::exception& e) {
30339 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30340 }
30341 }
30342 resultobj = SWIG_Py_Void();
30343 return resultobj;
30344fail:
30345 return NULL__null;
30346}
30347
30348
30349SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30350 PyObject *resultobj = 0;
30351 GModelSpectralPlaw *arg1 = (GModelSpectralPlaw *) 0 ;
30352 void *argp1 = 0 ;
30353 int res1 = 0 ;
30354 PyObject * obj0 = 0 ;
30355 GModelSpectralPlaw *result = 0 ;
30356
30357 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralPlaw_clone",&obj0)) SWIG_failgoto fail;
30358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[30]
, 0 | 0, 0)
;
30359 if (!SWIG_IsOK(res1)(res1 >= 0)) {
30360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw_clone" "', argument " "1"" of type '" "GModelSpectralPlaw const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw_clone" "', argument "
"1"" of type '" "GModelSpectralPlaw const *""'"); goto fail;
} while(0)
;
30361 }
30362 arg1 = reinterpret_cast< GModelSpectralPlaw * >(argp1);
30363 {
30364 try {
30365 result = (GModelSpectralPlaw *)((GModelSpectralPlaw const *)arg1)->clone();
30366 }
30367 catch (const GException::out_of_range& e) {
30368 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
30369 }
30370 catch (const GExceptionHandler& e) {
30371 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30372 }
30373 catch (const std::exception& e) {
30374 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30375 }
30376 }
30377 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralPlaw, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[30], 0
| 0)
;
30378 return resultobj;
30379fail:
30380 return NULL__null;
30381}
30382
30383
30384SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30385 PyObject *resultobj = 0;
30386 GModelSpectralPlaw *arg1 = (GModelSpectralPlaw *) 0 ;
30387 void *argp1 = 0 ;
30388 int res1 = 0 ;
30389 PyObject * obj0 = 0 ;
30390 std::string result;
30391
30392 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralPlaw_type",&obj0)) SWIG_failgoto fail;
30393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[30]
, 0 | 0, 0)
;
30394 if (!SWIG_IsOK(res1)(res1 >= 0)) {
30395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw_type" "', argument " "1"" of type '" "GModelSpectralPlaw const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw_type" "', argument "
"1"" of type '" "GModelSpectralPlaw const *""'"); goto fail;
} while(0)
;
30396 }
30397 arg1 = reinterpret_cast< GModelSpectralPlaw * >(argp1);
30398 {
30399 try {
30400 result = ((GModelSpectralPlaw const *)arg1)->type();
30401 }
30402 catch (const GException::out_of_range& e) {
30403 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
30404 }
30405 catch (const GExceptionHandler& e) {
30406 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30407 }
30408 catch (const std::exception& e) {
30409 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30410 }
30411 }
30412 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
30413 return resultobj;
30414fail:
30415 return NULL__null;
30416}
30417
30418
30419SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw_eval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30420 PyObject *resultobj = 0;
30421 GModelSpectralPlaw *arg1 = (GModelSpectralPlaw *) 0 ;
30422 GEnergy *arg2 = 0 ;
30423 GTime *arg3 = 0 ;
30424 void *argp1 = 0 ;
30425 int res1 = 0 ;
30426 void *argp2 = 0 ;
30427 int res2 = 0 ;
30428 void *argp3 = 0 ;
30429 int res3 = 0 ;
30430 PyObject * obj0 = 0 ;
30431 PyObject * obj1 = 0 ;
30432 PyObject * obj2 = 0 ;
30433 double result;
30434
30435 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectralPlaw_eval",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
30436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[30]
, 0 | 0, 0)
;
30437 if (!SWIG_IsOK(res1)(res1 >= 0)) {
30438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw_eval" "', argument " "1"" of type '" "GModelSpectralPlaw const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw_eval" "', argument "
"1"" of type '" "GModelSpectralPlaw const *""'"); goto fail;
} while(0)
;
30439 }
30440 arg1 = reinterpret_cast< GModelSpectralPlaw * >(argp1);
30441 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
30442 if (!SWIG_IsOK(res2)(res2 >= 0)) {
30443 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralPlaw_eval" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralPlaw_eval" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
30444 }
30445 if (!argp2) {
30446 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralPlaw_eval" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralPlaw_eval" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
30447 }
30448 arg2 = reinterpret_cast< GEnergy * >(argp2);
30449 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[46]
, 0 | 0, 0)
;
30450 if (!SWIG_IsOK(res3)(res3 >= 0)) {
30451 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralPlaw_eval" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralPlaw_eval" "', argument "
"3"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
30452 }
30453 if (!argp3) {
30454 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralPlaw_eval" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralPlaw_eval" "', argument " "3"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
30455 }
30456 arg3 = reinterpret_cast< GTime * >(argp3);
30457 {
30458 try {
30459 result = (double)((GModelSpectralPlaw const *)arg1)->eval((GEnergy const &)*arg2,(GTime const &)*arg3);
30460 }
30461 catch (const GException::out_of_range& e) {
30462 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
30463 }
30464 catch (const GExceptionHandler& e) {
30465 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30466 }
30467 catch (const std::exception& e) {
30468 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30469 }
30470 }
30471 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
30472 return resultobj;
30473fail:
30474 return NULL__null;
30475}
30476
30477
30478SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw_eval_gradients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30479 PyObject *resultobj = 0;
30480 GModelSpectralPlaw *arg1 = (GModelSpectralPlaw *) 0 ;
30481 GEnergy *arg2 = 0 ;
30482 GTime *arg3 = 0 ;
30483 void *argp1 = 0 ;
30484 int res1 = 0 ;
30485 void *argp2 = 0 ;
30486 int res2 = 0 ;
30487 void *argp3 = 0 ;
30488 int res3 = 0 ;
30489 PyObject * obj0 = 0 ;
30490 PyObject * obj1 = 0 ;
30491 PyObject * obj2 = 0 ;
30492 double result;
30493
30494 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectralPlaw_eval_gradients",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
30495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[30]
, 0 | 0, 0)
;
30496 if (!SWIG_IsOK(res1)(res1 >= 0)) {
30497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw_eval_gradients" "', argument " "1"" of type '" "GModelSpectralPlaw *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw_eval_gradients"
"', argument " "1"" of type '" "GModelSpectralPlaw *""'"); goto
fail; } while(0)
;
30498 }
30499 arg1 = reinterpret_cast< GModelSpectralPlaw * >(argp1);
30500 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
30501 if (!SWIG_IsOK(res2)(res2 >= 0)) {
30502 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralPlaw_eval_gradients" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralPlaw_eval_gradients"
"', argument " "2"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
30503 }
30504 if (!argp2) {
30505 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralPlaw_eval_gradients" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralPlaw_eval_gradients" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
30506 }
30507 arg2 = reinterpret_cast< GEnergy * >(argp2);
30508 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[46]
, 0 | 0, 0)
;
30509 if (!SWIG_IsOK(res3)(res3 >= 0)) {
30510 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralPlaw_eval_gradients" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralPlaw_eval_gradients"
"', argument " "3"" of type '" "GTime const &""'"); goto
fail; } while(0)
;
30511 }
30512 if (!argp3) {
30513 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralPlaw_eval_gradients" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralPlaw_eval_gradients" "', argument "
"3"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
30514 }
30515 arg3 = reinterpret_cast< GTime * >(argp3);
30516 {
30517 try {
30518 result = (double)(arg1)->eval_gradients((GEnergy const &)*arg2,(GTime const &)*arg3);
30519 }
30520 catch (const GException::out_of_range& e) {
30521 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
30522 }
30523 catch (const GExceptionHandler& e) {
30524 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30525 }
30526 catch (const std::exception& e) {
30527 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30528 }
30529 }
30530 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
30531 return resultobj;
30532fail:
30533 return NULL__null;
30534}
30535
30536
30537SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw_flux(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30538 PyObject *resultobj = 0;
30539 GModelSpectralPlaw *arg1 = (GModelSpectralPlaw *) 0 ;
30540 GEnergy *arg2 = 0 ;
30541 GEnergy *arg3 = 0 ;
30542 void *argp1 = 0 ;
30543 int res1 = 0 ;
30544 void *argp2 = 0 ;
30545 int res2 = 0 ;
30546 void *argp3 = 0 ;
30547 int res3 = 0 ;
30548 PyObject * obj0 = 0 ;
30549 PyObject * obj1 = 0 ;
30550 PyObject * obj2 = 0 ;
30551 double result;
30552
30553 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectralPlaw_flux",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
30554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[30]
, 0 | 0, 0)
;
30555 if (!SWIG_IsOK(res1)(res1 >= 0)) {
30556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw_flux" "', argument " "1"" of type '" "GModelSpectralPlaw const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw_flux" "', argument "
"1"" of type '" "GModelSpectralPlaw const *""'"); goto fail;
} while(0)
;
30557 }
30558 arg1 = reinterpret_cast< GModelSpectralPlaw * >(argp1);
30559 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
30560 if (!SWIG_IsOK(res2)(res2 >= 0)) {
30561 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralPlaw_flux" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralPlaw_flux" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
30562 }
30563 if (!argp2) {
30564 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralPlaw_flux" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralPlaw_flux" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
30565 }
30566 arg2 = reinterpret_cast< GEnergy * >(argp2);
30567 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
30568 if (!SWIG_IsOK(res3)(res3 >= 0)) {
30569 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralPlaw_flux" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralPlaw_flux" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
30570 }
30571 if (!argp3) {
30572 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralPlaw_flux" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralPlaw_flux" "', argument " "3"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
30573 }
30574 arg3 = reinterpret_cast< GEnergy * >(argp3);
30575 {
30576 try {
30577 result = (double)((GModelSpectralPlaw const *)arg1)->flux((GEnergy const &)*arg2,(GEnergy const &)*arg3);
30578 }
30579 catch (const GException::out_of_range& e) {
30580 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
30581 }
30582 catch (const GExceptionHandler& e) {
30583 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30584 }
30585 catch (const std::exception& e) {
30586 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30587 }
30588 }
30589 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
30590 return resultobj;
30591fail:
30592 return NULL__null;
30593}
30594
30595
30596SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw_eflux(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30597 PyObject *resultobj = 0;
30598 GModelSpectralPlaw *arg1 = (GModelSpectralPlaw *) 0 ;
30599 GEnergy *arg2 = 0 ;
30600 GEnergy *arg3 = 0 ;
30601 void *argp1 = 0 ;
30602 int res1 = 0 ;
30603 void *argp2 = 0 ;
30604 int res2 = 0 ;
30605 void *argp3 = 0 ;
30606 int res3 = 0 ;
30607 PyObject * obj0 = 0 ;
30608 PyObject * obj1 = 0 ;
30609 PyObject * obj2 = 0 ;
30610 double result;
30611
30612 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectralPlaw_eflux",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
30613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[30]
, 0 | 0, 0)
;
30614 if (!SWIG_IsOK(res1)(res1 >= 0)) {
30615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw_eflux" "', argument " "1"" of type '" "GModelSpectralPlaw const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw_eflux" "', argument "
"1"" of type '" "GModelSpectralPlaw const *""'"); goto fail;
} while(0)
;
30616 }
30617 arg1 = reinterpret_cast< GModelSpectralPlaw * >(argp1);
30618 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
30619 if (!SWIG_IsOK(res2)(res2 >= 0)) {
30620 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralPlaw_eflux" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralPlaw_eflux" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
30621 }
30622 if (!argp2) {
30623 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralPlaw_eflux" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralPlaw_eflux" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
30624 }
30625 arg2 = reinterpret_cast< GEnergy * >(argp2);
30626 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
30627 if (!SWIG_IsOK(res3)(res3 >= 0)) {
30628 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralPlaw_eflux" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralPlaw_eflux" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
30629 }
30630 if (!argp3) {
30631 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralPlaw_eflux" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralPlaw_eflux" "', argument " "3"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
30632 }
30633 arg3 = reinterpret_cast< GEnergy * >(argp3);
30634 {
30635 try {
30636 result = (double)((GModelSpectralPlaw const *)arg1)->eflux((GEnergy const &)*arg2,(GEnergy const &)*arg3);
30637 }
30638 catch (const GException::out_of_range& e) {
30639 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
30640 }
30641 catch (const GExceptionHandler& e) {
30642 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30643 }
30644 catch (const std::exception& e) {
30645 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30646 }
30647 }
30648 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
30649 return resultobj;
30650fail:
30651 return NULL__null;
30652}
30653
30654
30655SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw_mc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30656 PyObject *resultobj = 0;
30657 GModelSpectralPlaw *arg1 = (GModelSpectralPlaw *) 0 ;
30658 GEnergy *arg2 = 0 ;
30659 GEnergy *arg3 = 0 ;
30660 GTime *arg4 = 0 ;
30661 GRan *arg5 = 0 ;
30662 void *argp1 = 0 ;
30663 int res1 = 0 ;
30664 void *argp2 = 0 ;
30665 int res2 = 0 ;
30666 void *argp3 = 0 ;
30667 int res3 = 0 ;
30668 void *argp4 = 0 ;
30669 int res4 = 0 ;
30670 void *argp5 = 0 ;
30671 int res5 = 0 ;
30672 PyObject * obj0 = 0 ;
30673 PyObject * obj1 = 0 ;
30674 PyObject * obj2 = 0 ;
30675 PyObject * obj3 = 0 ;
30676 PyObject * obj4 = 0 ;
30677 GEnergy result;
30678
30679 if (!PyArg_ParseTuple(args,(char *)"OOOOO:GModelSpectralPlaw_mc",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_failgoto fail;
30680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[30]
, 0 | 0, 0)
;
30681 if (!SWIG_IsOK(res1)(res1 >= 0)) {
30682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw_mc" "', argument " "1"" of type '" "GModelSpectralPlaw const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw_mc" "', argument "
"1"" of type '" "GModelSpectralPlaw const *""'"); goto fail;
} while(0)
;
30683 }
30684 arg1 = reinterpret_cast< GModelSpectralPlaw * >(argp1);
30685 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
30686 if (!SWIG_IsOK(res2)(res2 >= 0)) {
30687 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralPlaw_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralPlaw_mc" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
30688 }
30689 if (!argp2) {
30690 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralPlaw_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralPlaw_mc" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
30691 }
30692 arg2 = reinterpret_cast< GEnergy * >(argp2);
30693 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
30694 if (!SWIG_IsOK(res3)(res3 >= 0)) {
30695 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralPlaw_mc" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralPlaw_mc" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
30696 }
30697 if (!argp3) {
30698 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralPlaw_mc" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralPlaw_mc" "', argument " "3"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
30699 }
30700 arg3 = reinterpret_cast< GEnergy * >(argp3);
30701 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[46]
, 0 | 0, 0)
;
30702 if (!SWIG_IsOK(res4)(res4 >= 0)) {
30703 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelSpectralPlaw_mc" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelSpectralPlaw_mc" "', argument "
"4"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
30704 }
30705 if (!argp4) {
30706 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralPlaw_mc" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralPlaw_mc" "', argument " "4"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
30707 }
30708 arg4 = reinterpret_cast< GTime * >(argp4);
30709 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_GRan, 0 )SWIG_Python_ConvertPtrAndOwn(obj4, &argp5, swig_types[42]
, 0, 0)
;
30710 if (!SWIG_IsOK(res5)(res5 >= 0)) {
30711 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GModelSpectralPlaw_mc" "', argument " "5"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res5 != (
-1)) ? res5 : -5)), "in method '" "GModelSpectralPlaw_mc" "', argument "
"5"" of type '" "GRan &""'"); goto fail; } while(0)
;
30712 }
30713 if (!argp5) {
30714 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralPlaw_mc" "', argument " "5"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralPlaw_mc" "', argument " "5"" of type '"
"GRan &""'"); goto fail; } while(0)
;
30715 }
30716 arg5 = reinterpret_cast< GRan * >(argp5);
30717 {
30718 try {
30719 result = ((GModelSpectralPlaw const *)arg1)->mc((GEnergy const &)*arg2,(GEnergy const &)*arg3,(GTime const &)*arg4,*arg5);
30720 }
30721 catch (const GException::out_of_range& e) {
30722 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
30723 }
30724 catch (const GExceptionHandler& e) {
30725 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30726 }
30727 catch (const std::exception& e) {
30728 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30729 }
30730 }
30731 resultobj = SWIG_NewPointerObj((new GEnergy(static_cast< const GEnergy& >(result))), SWIGTYPE_p_GEnergy, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GEnergy(static_cast<
const GEnergy& >(result))), swig_types[3], 0x1 | 0)
;
30732 return resultobj;
30733fail:
30734 return NULL__null;
30735}
30736
30737
30738SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30739 PyObject *resultobj = 0;
30740 GModelSpectralPlaw *arg1 = (GModelSpectralPlaw *) 0 ;
30741 GXmlElement *arg2 = 0 ;
30742 void *argp1 = 0 ;
30743 int res1 = 0 ;
30744 void *argp2 = 0 ;
30745 int res2 = 0 ;
30746 PyObject * obj0 = 0 ;
30747 PyObject * obj1 = 0 ;
30748
30749 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralPlaw_read",&obj0,&obj1)) SWIG_failgoto fail;
30750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[30]
, 0 | 0, 0)
;
30751 if (!SWIG_IsOK(res1)(res1 >= 0)) {
30752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw_read" "', argument " "1"" of type '" "GModelSpectralPlaw *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw_read" "', argument "
"1"" of type '" "GModelSpectralPlaw *""'"); goto fail; } while
(0)
;
30753 }
30754 arg1 = reinterpret_cast< GModelSpectralPlaw * >(argp1);
30755 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0 | 0, 0)
;
30756 if (!SWIG_IsOK(res2)(res2 >= 0)) {
30757 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralPlaw_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralPlaw_read" "', argument "
"2"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
30758 }
30759 if (!argp2) {
30760 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralPlaw_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralPlaw_read" "', argument " "2"" of type '"
"GXmlElement const &""'"); goto fail; } while(0)
;
30761 }
30762 arg2 = reinterpret_cast< GXmlElement * >(argp2);
30763 {
30764 try {
30765 (arg1)->read((GXmlElement const &)*arg2);
30766 }
30767 catch (const GException::out_of_range& e) {
30768 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
30769 }
30770 catch (const GExceptionHandler& e) {
30771 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30772 }
30773 catch (const std::exception& e) {
30774 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30775 }
30776 }
30777 resultobj = SWIG_Py_Void();
30778 return resultobj;
30779fail:
30780 return NULL__null;
30781}
30782
30783
30784SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30785 PyObject *resultobj = 0;
30786 GModelSpectralPlaw *arg1 = (GModelSpectralPlaw *) 0 ;
30787 GXmlElement *arg2 = 0 ;
30788 void *argp1 = 0 ;
30789 int res1 = 0 ;
30790 void *argp2 = 0 ;
30791 int res2 = 0 ;
30792 PyObject * obj0 = 0 ;
30793 PyObject * obj1 = 0 ;
30794
30795 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralPlaw_write",&obj0,&obj1)) SWIG_failgoto fail;
30796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[30]
, 0 | 0, 0)
;
30797 if (!SWIG_IsOK(res1)(res1 >= 0)) {
30798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw_write" "', argument " "1"" of type '" "GModelSpectralPlaw const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw_write" "', argument "
"1"" of type '" "GModelSpectralPlaw const *""'"); goto fail;
} while(0)
;
30799 }
30800 arg1 = reinterpret_cast< GModelSpectralPlaw * >(argp1);
30801 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0, 0)
;
30802 if (!SWIG_IsOK(res2)(res2 >= 0)) {
30803 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralPlaw_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralPlaw_write" "', argument "
"2"" of type '" "GXmlElement &""'"); goto fail; } while(
0)
;
30804 }
30805 if (!argp2) {
30806 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralPlaw_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralPlaw_write" "', argument " "2"" of type '"
"GXmlElement &""'"); goto fail; } while(0)
;
30807 }
30808 arg2 = reinterpret_cast< GXmlElement * >(argp2);
30809 {
30810 try {
30811 ((GModelSpectralPlaw const *)arg1)->write(*arg2);
30812 }
30813 catch (const GException::out_of_range& e) {
30814 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
30815 }
30816 catch (const GExceptionHandler& e) {
30817 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30818 }
30819 catch (const std::exception& e) {
30820 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30821 }
30822 }
30823 resultobj = SWIG_Py_Void();
30824 return resultobj;
30825fail:
30826 return NULL__null;
30827}
30828
30829
30830SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw_prefactor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30831 PyObject *resultobj = 0;
30832 GModelSpectralPlaw *arg1 = (GModelSpectralPlaw *) 0 ;
30833 void *argp1 = 0 ;
30834 int res1 = 0 ;
30835 PyObject * obj0 = 0 ;
30836 double result;
30837
30838 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralPlaw_prefactor",&obj0)) SWIG_failgoto fail;
30839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[30]
, 0 | 0, 0)
;
30840 if (!SWIG_IsOK(res1)(res1 >= 0)) {
30841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw_prefactor" "', argument " "1"" of type '" "GModelSpectralPlaw const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw_prefactor"
"', argument " "1"" of type '" "GModelSpectralPlaw const *""'"
); goto fail; } while(0)
;
30842 }
30843 arg1 = reinterpret_cast< GModelSpectralPlaw * >(argp1);
30844 {
30845 try {
30846 result = (double)((GModelSpectralPlaw const *)arg1)->prefactor();
30847 }
30848 catch (const GException::out_of_range& e) {
30849 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
30850 }
30851 catch (const GExceptionHandler& e) {
30852 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30853 }
30854 catch (const std::exception& e) {
30855 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30856 }
30857 }
30858 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
30859 return resultobj;
30860fail:
30861 return NULL__null;
30862}
30863
30864
30865SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw_index__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30866 PyObject *resultobj = 0;
30867 GModelSpectralPlaw *arg1 = (GModelSpectralPlaw *) 0 ;
30868 void *argp1 = 0 ;
30869 int res1 = 0 ;
30870 PyObject * obj0 = 0 ;
30871 double result;
30872
30873 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralPlaw_index",&obj0)) SWIG_failgoto fail;
30874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[30]
, 0 | 0, 0)
;
30875 if (!SWIG_IsOK(res1)(res1 >= 0)) {
30876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw_index" "', argument " "1"" of type '" "GModelSpectralPlaw const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw_index" "', argument "
"1"" of type '" "GModelSpectralPlaw const *""'"); goto fail;
} while(0)
;
30877 }
30878 arg1 = reinterpret_cast< GModelSpectralPlaw * >(argp1);
30879 {
30880 try {
30881 result = (double)((GModelSpectralPlaw const *)arg1)->index();
30882 }
30883 catch (const GException::out_of_range& e) {
30884 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
30885 }
30886 catch (const GExceptionHandler& e) {
30887 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30888 }
30889 catch (const std::exception& e) {
30890 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30891 }
30892 }
30893 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
30894 return resultobj;
30895fail:
30896 return NULL__null;
30897}
30898
30899
30900SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw_pivot__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30901 PyObject *resultobj = 0;
30902 GModelSpectralPlaw *arg1 = (GModelSpectralPlaw *) 0 ;
30903 void *argp1 = 0 ;
30904 int res1 = 0 ;
30905 PyObject * obj0 = 0 ;
30906 GEnergy result;
30907
30908 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralPlaw_pivot",&obj0)) SWIG_failgoto fail;
30909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[30]
, 0 | 0, 0)
;
30910 if (!SWIG_IsOK(res1)(res1 >= 0)) {
30911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw_pivot" "', argument " "1"" of type '" "GModelSpectralPlaw const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw_pivot" "', argument "
"1"" of type '" "GModelSpectralPlaw const *""'"); goto fail;
} while(0)
;
30912 }
30913 arg1 = reinterpret_cast< GModelSpectralPlaw * >(argp1);
30914 {
30915 try {
30916 result = ((GModelSpectralPlaw const *)arg1)->pivot();
30917 }
30918 catch (const GException::out_of_range& e) {
30919 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
30920 }
30921 catch (const GExceptionHandler& e) {
30922 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30923 }
30924 catch (const std::exception& e) {
30925 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30926 }
30927 }
30928 resultobj = SWIG_NewPointerObj((new GEnergy(static_cast< const GEnergy& >(result))), SWIGTYPE_p_GEnergy, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GEnergy(static_cast<
const GEnergy& >(result))), swig_types[3], 0x1 | 0)
;
30929 return resultobj;
30930fail:
30931 return NULL__null;
30932}
30933
30934
30935SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw_prefactor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30936 PyObject *resultobj = 0;
30937 GModelSpectralPlaw *arg1 = (GModelSpectralPlaw *) 0 ;
30938 double *arg2 = 0 ;
30939 void *argp1 = 0 ;
30940 int res1 = 0 ;
30941 double temp2 ;
30942 double val2 ;
30943 int ecode2 = 0 ;
30944 PyObject * obj0 = 0 ;
30945 PyObject * obj1 = 0 ;
30946
30947 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralPlaw_prefactor",&obj0,&obj1)) SWIG_failgoto fail;
30948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[30]
, 0 | 0, 0)
;
30949 if (!SWIG_IsOK(res1)(res1 >= 0)) {
30950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw_prefactor" "', argument " "1"" of type '" "GModelSpectralPlaw *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw_prefactor"
"', argument " "1"" of type '" "GModelSpectralPlaw *""'"); goto
fail; } while(0)
;
30951 }
30952 arg1 = reinterpret_cast< GModelSpectralPlaw * >(argp1);
30953 ecode2 = SWIG_AsVal_double(obj1, &val2);
30954 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
30955 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpectralPlaw_prefactor" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpectralPlaw_prefactor"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
30956 }
30957 temp2 = static_cast< double >(val2);
30958 arg2 = &temp2;
30959 {
30960 try {
30961 (arg1)->prefactor((double const &)*arg2);
30962 }
30963 catch (const GException::out_of_range& e) {
30964 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
30965 }
30966 catch (const GExceptionHandler& e) {
30967 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30968 }
30969 catch (const std::exception& e) {
30970 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
30971 }
30972 }
30973 resultobj = SWIG_Py_Void();
30974 return resultobj;
30975fail:
30976 return NULL__null;
30977}
30978
30979
30980SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw_prefactor(PyObject *self, PyObject *args) {
30981 int argc;
30982 PyObject *argv[3];
30983 int ii;
30984
30985 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
30986 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
30987 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
30988 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
30989 }
30990 if (argc == 1) {
30991 int _v;
30992 void *vptr = 0;
30993 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralPlaw, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[30
], 0, 0)
;
30994 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
30995 if (_v) {
30996 return _wrap_GModelSpectralPlaw_prefactor__SWIG_0(self, args);
30997 }
30998 }
30999 if (argc == 2) {
31000 int _v;
31001 void *vptr = 0;
31002 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralPlaw, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[30
], 0, 0)
;
31003 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
31004 if (_v) {
31005 {
31006 int res = SWIG_AsVal_double(argv[1], NULL__null);
31007 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
31008 }
31009 if (_v) {
31010 return _wrap_GModelSpectralPlaw_prefactor__SWIG_1(self, args);
31011 }
31012 }
31013 }
31014
31015fail:
31016 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpectralPlaw_prefactor'.\n"
31017 " Possible C/C++ prototypes are:\n"
31018 " GModelSpectralPlaw::prefactor() const\n"
31019 " GModelSpectralPlaw::prefactor(double const &)\n");
31020 return 0;
31021}
31022
31023
31024SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw_index__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31025 PyObject *resultobj = 0;
31026 GModelSpectralPlaw *arg1 = (GModelSpectralPlaw *) 0 ;
31027 double *arg2 = 0 ;
31028 void *argp1 = 0 ;
31029 int res1 = 0 ;
31030 double temp2 ;
31031 double val2 ;
31032 int ecode2 = 0 ;
31033 PyObject * obj0 = 0 ;
31034 PyObject * obj1 = 0 ;
31035
31036 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralPlaw_index",&obj0,&obj1)) SWIG_failgoto fail;
31037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[30]
, 0 | 0, 0)
;
31038 if (!SWIG_IsOK(res1)(res1 >= 0)) {
31039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw_index" "', argument " "1"" of type '" "GModelSpectralPlaw *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw_index" "', argument "
"1"" of type '" "GModelSpectralPlaw *""'"); goto fail; } while
(0)
;
31040 }
31041 arg1 = reinterpret_cast< GModelSpectralPlaw * >(argp1);
31042 ecode2 = SWIG_AsVal_double(obj1, &val2);
31043 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
31044 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpectralPlaw_index" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpectralPlaw_index"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
31045 }
31046 temp2 = static_cast< double >(val2);
31047 arg2 = &temp2;
31048 {
31049 try {
31050 (arg1)->index((double const &)*arg2);
31051 }
31052 catch (const GException::out_of_range& e) {
31053 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
31054 }
31055 catch (const GExceptionHandler& e) {
31056 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
31057 }
31058 catch (const std::exception& e) {
31059 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
31060 }
31061 }
31062 resultobj = SWIG_Py_Void();
31063 return resultobj;
31064fail:
31065 return NULL__null;
31066}
31067
31068
31069SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw_index(PyObject *self, PyObject *args) {
31070 int argc;
31071 PyObject *argv[3];
31072 int ii;
31073
31074 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
31075 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
31076 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
31077 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
31078 }
31079 if (argc == 1) {
31080 int _v;
31081 void *vptr = 0;
31082 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralPlaw, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[30
], 0, 0)
;
31083 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
31084 if (_v) {
31085 return _wrap_GModelSpectralPlaw_index__SWIG_0(self, args);
31086 }
31087 }
31088 if (argc == 2) {
31089 int _v;
31090 void *vptr = 0;
31091 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralPlaw, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[30
], 0, 0)
;
31092 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
31093 if (_v) {
31094 {
31095 int res = SWIG_AsVal_double(argv[1], NULL__null);
31096 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
31097 }
31098 if (_v) {
31099 return _wrap_GModelSpectralPlaw_index__SWIG_1(self, args);
31100 }
31101 }
31102 }
31103
31104fail:
31105 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpectralPlaw_index'.\n"
31106 " Possible C/C++ prototypes are:\n"
31107 " GModelSpectralPlaw::index() const\n"
31108 " GModelSpectralPlaw::index(double const &)\n");
31109 return 0;
31110}
31111
31112
31113SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw_pivot__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31114 PyObject *resultobj = 0;
31115 GModelSpectralPlaw *arg1 = (GModelSpectralPlaw *) 0 ;
31116 GEnergy *arg2 = 0 ;
31117 void *argp1 = 0 ;
31118 int res1 = 0 ;
31119 void *argp2 = 0 ;
31120 int res2 = 0 ;
31121 PyObject * obj0 = 0 ;
31122 PyObject * obj1 = 0 ;
31123
31124 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralPlaw_pivot",&obj0,&obj1)) SWIG_failgoto fail;
31125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[30]
, 0 | 0, 0)
;
31126 if (!SWIG_IsOK(res1)(res1 >= 0)) {
31127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw_pivot" "', argument " "1"" of type '" "GModelSpectralPlaw *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw_pivot" "', argument "
"1"" of type '" "GModelSpectralPlaw *""'"); goto fail; } while
(0)
;
31128 }
31129 arg1 = reinterpret_cast< GModelSpectralPlaw * >(argp1);
31130 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
31131 if (!SWIG_IsOK(res2)(res2 >= 0)) {
31132 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralPlaw_pivot" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralPlaw_pivot" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
31133 }
31134 if (!argp2) {
31135 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralPlaw_pivot" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralPlaw_pivot" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
31136 }
31137 arg2 = reinterpret_cast< GEnergy * >(argp2);
31138 {
31139 try {
31140 (arg1)->pivot((GEnergy const &)*arg2);
31141 }
31142 catch (const GException::out_of_range& e) {
31143 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
31144 }
31145 catch (const GExceptionHandler& e) {
31146 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
31147 }
31148 catch (const std::exception& e) {
31149 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
31150 }
31151 }
31152 resultobj = SWIG_Py_Void();
31153 return resultobj;
31154fail:
31155 return NULL__null;
31156}
31157
31158
31159SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw_pivot(PyObject *self, PyObject *args) {
31160 int argc;
31161 PyObject *argv[3];
31162 int ii;
31163
31164 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
31165 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
31166 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
31167 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
31168 }
31169 if (argc == 1) {
31170 int _v;
31171 void *vptr = 0;
31172 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralPlaw, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[30
], 0, 0)
;
31173 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
31174 if (_v) {
31175 return _wrap_GModelSpectralPlaw_pivot__SWIG_0(self, args);
31176 }
31177 }
31178 if (argc == 2) {
31179 int _v;
31180 void *vptr = 0;
31181 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralPlaw, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[30
], 0, 0)
;
31182 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
31183 if (_v) {
31184 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[3], 0, 0);
31185 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
31186 if (_v) {
31187 return _wrap_GModelSpectralPlaw_pivot__SWIG_1(self, args);
31188 }
31189 }
31190 }
31191
31192fail:
31193 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpectralPlaw_pivot'.\n"
31194 " Possible C/C++ prototypes are:\n"
31195 " GModelSpectralPlaw::pivot() const\n"
31196 " GModelSpectralPlaw::pivot(GEnergy const &)\n");
31197 return 0;
31198}
31199
31200
31201SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31202 PyObject *resultobj = 0;
31203 GModelSpectralPlaw *arg1 = (GModelSpectralPlaw *) 0 ;
31204 void *argp1 = 0 ;
31205 int res1 = 0 ;
31206 PyObject * obj0 = 0 ;
31207 GModelSpectralPlaw result;
31208
31209 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralPlaw_copy",&obj0)) SWIG_failgoto fail;
31210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[30]
, 0 | 0, 0)
;
31211 if (!SWIG_IsOK(res1)(res1 >= 0)) {
31212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw_copy" "', argument " "1"" of type '" "GModelSpectralPlaw *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw_copy" "', argument "
"1"" of type '" "GModelSpectralPlaw *""'"); goto fail; } while
(0)
;
31213 }
31214 arg1 = reinterpret_cast< GModelSpectralPlaw * >(argp1);
31215 {
31216 try {
31217 result = GModelSpectralPlaw_copy(arg1);
31218 }
31219 catch (const GException::out_of_range& e) {
31220 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
31221 }
31222 catch (const GExceptionHandler& e) {
31223 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
31224 }
31225 catch (const std::exception& e) {
31226 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
31227 }
31228 }
31229 resultobj = SWIG_NewPointerObj((new GModelSpectralPlaw(static_cast< const GModelSpectralPlaw& >(result))), SWIGTYPE_p_GModelSpectralPlaw, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GModelSpectralPlaw(static_cast
< const GModelSpectralPlaw& >(result))), swig_types
[30], 0x1 | 0)
;
31230 return resultobj;
31231fail:
31232 return NULL__null;
31233}
31234
31235
31236SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GModelSpectralPlaw_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31237 PyObject *obj;
31238 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
31239 SWIG_TypeNewClientData(SWIGTYPE_p_GModelSpectralPlawswig_types[30], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
31240 return SWIG_Py_Void();
31241}
31242
31243SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralPlaw2__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31244 PyObject *resultobj = 0;
31245 GModelSpectralPlaw2 *result = 0 ;
31246
31247 if (!PyArg_ParseTuple(args,(char *)":new_GModelSpectralPlaw2")) SWIG_failgoto fail;
31248 {
31249 try {
31250 result = (GModelSpectralPlaw2 *)new GModelSpectralPlaw2();
31251 }
31252 catch (const GException::out_of_range& e) {
31253 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
31254 }
31255 catch (const GExceptionHandler& e) {
31256 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
31257 }
31258 catch (const std::exception& e) {
31259 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
31260 }
31261 }
31262 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralPlaw2, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[31], (
(0x1 << 1) | 0x1) | 0)
;
31263 return resultobj;
31264fail:
31265 return NULL__null;
31266}
31267
31268
31269SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralPlaw2__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31270 PyObject *resultobj = 0;
31271 double *arg1 = 0 ;
31272 double *arg2 = 0 ;
31273 GEnergy *arg3 = 0 ;
31274 GEnergy *arg4 = 0 ;
31275 double temp1 ;
31276 double val1 ;
31277 int ecode1 = 0 ;
31278 double temp2 ;
31279 double val2 ;
31280 int ecode2 = 0 ;
31281 void *argp3 = 0 ;
31282 int res3 = 0 ;
31283 void *argp4 = 0 ;
31284 int res4 = 0 ;
31285 PyObject * obj0 = 0 ;
31286 PyObject * obj1 = 0 ;
31287 PyObject * obj2 = 0 ;
31288 PyObject * obj3 = 0 ;
31289 GModelSpectralPlaw2 *result = 0 ;
31290
31291 if (!PyArg_ParseTuple(args,(char *)"OOOO:new_GModelSpectralPlaw2",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
31292 ecode1 = SWIG_AsVal_double(obj0, &val1);
31293 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
31294 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GModelSpectralPlaw2" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "new_GModelSpectralPlaw2"
"', argument " "1"" of type '" "double""'"); goto fail; } while
(0)
;
31295 }
31296 temp1 = static_cast< double >(val1);
31297 arg1 = &temp1;
31298 ecode2 = SWIG_AsVal_double(obj1, &val2);
31299 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
31300 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GModelSpectralPlaw2" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "new_GModelSpectralPlaw2"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
31301 }
31302 temp2 = static_cast< double >(val2);
31303 arg2 = &temp2;
31304 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
31305 if (!SWIG_IsOK(res3)(res3 >= 0)) {
31306 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_GModelSpectralPlaw2" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "new_GModelSpectralPlaw2" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
31307 }
31308 if (!argp3) {
31309 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpectralPlaw2" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpectralPlaw2" "', argument " "3"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
31310 }
31311 arg3 = reinterpret_cast< GEnergy * >(argp3);
31312 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[3],
0 | 0, 0)
;
31313 if (!SWIG_IsOK(res4)(res4 >= 0)) {
31314 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_GModelSpectralPlaw2" "', argument " "4"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "new_GModelSpectralPlaw2" "', argument "
"4"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
31315 }
31316 if (!argp4) {
31317 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpectralPlaw2" "', argument " "4"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpectralPlaw2" "', argument " "4"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
31318 }
31319 arg4 = reinterpret_cast< GEnergy * >(argp4);
31320 {
31321 try {
31322 result = (GModelSpectralPlaw2 *)new GModelSpectralPlaw2((double const &)*arg1,(double const &)*arg2,(GEnergy const &)*arg3,(GEnergy const &)*arg4);
31323 }
31324 catch (const GException::out_of_range& e) {
31325 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
31326 }
31327 catch (const GExceptionHandler& e) {
31328 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
31329 }
31330 catch (const std::exception& e) {
31331 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
31332 }
31333 }
31334 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralPlaw2, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[31], (
(0x1 << 1) | 0x1) | 0)
;
31335 return resultobj;
31336fail:
31337 return NULL__null;
31338}
31339
31340
31341SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralPlaw2__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31342 PyObject *resultobj = 0;
31343 GXmlElement *arg1 = 0 ;
31344 void *argp1 = 0 ;
31345 int res1 = 0 ;
31346 PyObject * obj0 = 0 ;
31347 GModelSpectralPlaw2 *result = 0 ;
31348
31349 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpectralPlaw2",&obj0)) SWIG_failgoto fail;
31350 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[50]
, 0 | 0, 0)
;
31351 if (!SWIG_IsOK(res1)(res1 >= 0)) {
31352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpectralPlaw2" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpectralPlaw2" "', argument "
"1"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
31353 }
31354 if (!argp1) {
31355 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpectralPlaw2" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpectralPlaw2" "', argument " "1"" of type '"
"GXmlElement const &""'"); goto fail; } while(0)
;
31356 }
31357 arg1 = reinterpret_cast< GXmlElement * >(argp1);
31358 {
31359 try {
31360 result = (GModelSpectralPlaw2 *)new GModelSpectralPlaw2((GXmlElement const &)*arg1);
31361 }
31362 catch (const GException::out_of_range& e) {
31363 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
31364 }
31365 catch (const GExceptionHandler& e) {
31366 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
31367 }
31368 catch (const std::exception& e) {
31369 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
31370 }
31371 }
31372 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralPlaw2, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[31], (
(0x1 << 1) | 0x1) | 0)
;
31373 return resultobj;
31374fail:
31375 return NULL__null;
31376}
31377
31378
31379SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralPlaw2__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31380 PyObject *resultobj = 0;
31381 GModelSpectralPlaw2 *arg1 = 0 ;
31382 void *argp1 = 0 ;
31383 int res1 = 0 ;
31384 PyObject * obj0 = 0 ;
31385 GModelSpectralPlaw2 *result = 0 ;
31386
31387 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpectralPlaw2",&obj0)) SWIG_failgoto fail;
31388 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GModelSpectralPlaw2, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[31]
, 0 | 0, 0)
;
31389 if (!SWIG_IsOK(res1)(res1 >= 0)) {
31390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpectralPlaw2" "', argument " "1"" of type '" "GModelSpectralPlaw2 const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpectralPlaw2" "', argument "
"1"" of type '" "GModelSpectralPlaw2 const &""'"); goto fail
; } while(0)
;
31391 }
31392 if (!argp1) {
31393 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpectralPlaw2" "', argument " "1"" of type '" "GModelSpectralPlaw2 const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpectralPlaw2" "', argument " "1"" of type '"
"GModelSpectralPlaw2 const &""'"); goto fail; } while(0)
;
31394 }
31395 arg1 = reinterpret_cast< GModelSpectralPlaw2 * >(argp1);
31396 {
31397 try {
31398 result = (GModelSpectralPlaw2 *)new GModelSpectralPlaw2((GModelSpectralPlaw2 const &)*arg1);
31399 }
31400 catch (const GException::out_of_range& e) {
31401 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
31402 }
31403 catch (const GExceptionHandler& e) {
31404 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
31405 }
31406 catch (const std::exception& e) {
31407 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
31408 }
31409 }
31410 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralPlaw2, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[31], (
(0x1 << 1) | 0x1) | 0)
;
31411 return resultobj;
31412fail:
31413 return NULL__null;
31414}
31415
31416
31417SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralPlaw2(PyObject *self, PyObject *args) {
31418 int argc;
31419 PyObject *argv[5];
31420 int ii;
31421
31422 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
31423 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
31424 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
31425 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
31426 }
31427 if (argc == 0) {
31428 return _wrap_new_GModelSpectralPlaw2__SWIG_0(self, args);
31429 }
31430 if (argc == 1) {
31431 int _v;
31432 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GXmlElement, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[50], 0, 0
)
;
31433 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
31434 if (_v) {
31435 return _wrap_new_GModelSpectralPlaw2__SWIG_2(self, args);
31436 }
31437 }
31438 if (argc == 1) {
31439 int _v;
31440 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GModelSpectralPlaw2, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[31], 0, 0
)
;
31441 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
31442 if (_v) {
31443 return _wrap_new_GModelSpectralPlaw2__SWIG_3(self, args);
31444 }
31445 }
31446 if (argc == 4) {
31447 int _v;
31448 {
31449 int res = SWIG_AsVal_double(argv[0], NULL__null);
31450 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
31451 }
31452 if (_v) {
31453 {
31454 int res = SWIG_AsVal_double(argv[1], NULL__null);
31455 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
31456 }
31457 if (_v) {
31458 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[3], 0, 0);
31459 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
31460 if (_v) {
31461 int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[3], 0, swig_types[3], 0, 0);
31462 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
31463 if (_v) {
31464 return _wrap_new_GModelSpectralPlaw2__SWIG_1(self, args);
31465 }
31466 }
31467 }
31468 }
31469 }
31470
31471fail:
31472 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GModelSpectralPlaw2'.\n"
31473 " Possible C/C++ prototypes are:\n"
31474 " GModelSpectralPlaw2::GModelSpectralPlaw2()\n"
31475 " GModelSpectralPlaw2::GModelSpectralPlaw2(double const &,double const &,GEnergy const &,GEnergy const &)\n"
31476 " GModelSpectralPlaw2::GModelSpectralPlaw2(GXmlElement const &)\n"
31477 " GModelSpectralPlaw2::GModelSpectralPlaw2(GModelSpectralPlaw2 const &)\n");
31478 return 0;
31479}
31480
31481
31482SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GModelSpectralPlaw2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31483 PyObject *resultobj = 0;
31484 GModelSpectralPlaw2 *arg1 = (GModelSpectralPlaw2 *) 0 ;
31485 void *argp1 = 0 ;
31486 int res1 = 0 ;
31487 PyObject * obj0 = 0 ;
31488
31489 if (!PyArg_ParseTuple(args,(char *)"O:delete_GModelSpectralPlaw2",&obj0)) SWIG_failgoto fail;
31490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw2, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[31]
, 0x1 | 0, 0)
;
31491 if (!SWIG_IsOK(res1)(res1 >= 0)) {
31492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GModelSpectralPlaw2" "', argument " "1"" of type '" "GModelSpectralPlaw2 *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GModelSpectralPlaw2"
"', argument " "1"" of type '" "GModelSpectralPlaw2 *""'"); goto
fail; } while(0)
;
31493 }
31494 arg1 = reinterpret_cast< GModelSpectralPlaw2 * >(argp1);
31495 {
31496 try {
31497 delete arg1;
31498 }
31499 catch (const GException::out_of_range& e) {
31500 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
31501 }
31502 catch (const GExceptionHandler& e) {
31503 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
31504 }
31505 catch (const std::exception& e) {
31506 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
31507 }
31508 }
31509 resultobj = SWIG_Py_Void();
31510 return resultobj;
31511fail:
31512 return NULL__null;
31513}
31514
31515
31516SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw2_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31517 PyObject *resultobj = 0;
31518 GModelSpectralPlaw2 *arg1 = (GModelSpectralPlaw2 *) 0 ;
31519 void *argp1 = 0 ;
31520 int res1 = 0 ;
31521 PyObject * obj0 = 0 ;
31522
31523 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralPlaw2_clear",&obj0)) SWIG_failgoto fail;
31524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw2, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[31]
, 0 | 0, 0)
;
31525 if (!SWIG_IsOK(res1)(res1 >= 0)) {
31526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw2_clear" "', argument " "1"" of type '" "GModelSpectralPlaw2 *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw2_clear"
"', argument " "1"" of type '" "GModelSpectralPlaw2 *""'"); goto
fail; } while(0)
;
31527 }
31528 arg1 = reinterpret_cast< GModelSpectralPlaw2 * >(argp1);
31529 {
31530 try {
31531 (arg1)->clear();
31532 }
31533 catch (const GException::out_of_range& e) {
31534 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
31535 }
31536 catch (const GExceptionHandler& e) {
31537 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
31538 }
31539 catch (const std::exception& e) {
31540 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
31541 }
31542 }
31543 resultobj = SWIG_Py_Void();
31544 return resultobj;
31545fail:
31546 return NULL__null;
31547}
31548
31549
31550SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw2_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31551 PyObject *resultobj = 0;
31552 GModelSpectralPlaw2 *arg1 = (GModelSpectralPlaw2 *) 0 ;
31553 void *argp1 = 0 ;
31554 int res1 = 0 ;
31555 PyObject * obj0 = 0 ;
31556 GModelSpectralPlaw2 *result = 0 ;
31557
31558 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralPlaw2_clone",&obj0)) SWIG_failgoto fail;
31559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw2, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[31]
, 0 | 0, 0)
;
31560 if (!SWIG_IsOK(res1)(res1 >= 0)) {
31561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw2_clone" "', argument " "1"" of type '" "GModelSpectralPlaw2 const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw2_clone"
"', argument " "1"" of type '" "GModelSpectralPlaw2 const *"
"'"); goto fail; } while(0)
;
31562 }
31563 arg1 = reinterpret_cast< GModelSpectralPlaw2 * >(argp1);
31564 {
31565 try {
31566 result = (GModelSpectralPlaw2 *)((GModelSpectralPlaw2 const *)arg1)->clone();
31567 }
31568 catch (const GException::out_of_range& e) {
31569 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
31570 }
31571 catch (const GExceptionHandler& e) {
31572 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
31573 }
31574 catch (const std::exception& e) {
31575 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
31576 }
31577 }
31578 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralPlaw2, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[31], 0
| 0)
;
31579 return resultobj;
31580fail:
31581 return NULL__null;
31582}
31583
31584
31585SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw2_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31586 PyObject *resultobj = 0;
31587 GModelSpectralPlaw2 *arg1 = (GModelSpectralPlaw2 *) 0 ;
31588 void *argp1 = 0 ;
31589 int res1 = 0 ;
31590 PyObject * obj0 = 0 ;
31591 std::string result;
31592
31593 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralPlaw2_type",&obj0)) SWIG_failgoto fail;
31594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw2, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[31]
, 0 | 0, 0)
;
31595 if (!SWIG_IsOK(res1)(res1 >= 0)) {
31596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw2_type" "', argument " "1"" of type '" "GModelSpectralPlaw2 const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw2_type" "', argument "
"1"" of type '" "GModelSpectralPlaw2 const *""'"); goto fail
; } while(0)
;
31597 }
31598 arg1 = reinterpret_cast< GModelSpectralPlaw2 * >(argp1);
31599 {
31600 try {
31601 result = ((GModelSpectralPlaw2 const *)arg1)->type();
31602 }
31603 catch (const GException::out_of_range& e) {
31604 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
31605 }
31606 catch (const GExceptionHandler& e) {
31607 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
31608 }
31609 catch (const std::exception& e) {
31610 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
31611 }
31612 }
31613 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
31614 return resultobj;
31615fail:
31616 return NULL__null;
31617}
31618
31619
31620SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw2_eval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31621 PyObject *resultobj = 0;
31622 GModelSpectralPlaw2 *arg1 = (GModelSpectralPlaw2 *) 0 ;
31623 GEnergy *arg2 = 0 ;
31624 GTime *arg3 = 0 ;
31625 void *argp1 = 0 ;
31626 int res1 = 0 ;
31627 void *argp2 = 0 ;
31628 int res2 = 0 ;
31629 void *argp3 = 0 ;
31630 int res3 = 0 ;
31631 PyObject * obj0 = 0 ;
31632 PyObject * obj1 = 0 ;
31633 PyObject * obj2 = 0 ;
31634 double result;
31635
31636 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectralPlaw2_eval",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
31637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw2, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[31]
, 0 | 0, 0)
;
31638 if (!SWIG_IsOK(res1)(res1 >= 0)) {
31639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw2_eval" "', argument " "1"" of type '" "GModelSpectralPlaw2 const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw2_eval" "', argument "
"1"" of type '" "GModelSpectralPlaw2 const *""'"); goto fail
; } while(0)
;
31640 }
31641 arg1 = reinterpret_cast< GModelSpectralPlaw2 * >(argp1);
31642 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
31643 if (!SWIG_IsOK(res2)(res2 >= 0)) {
31644 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralPlaw2_eval" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralPlaw2_eval" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
31645 }
31646 if (!argp2) {
31647 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralPlaw2_eval" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralPlaw2_eval" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
31648 }
31649 arg2 = reinterpret_cast< GEnergy * >(argp2);
31650 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[46]
, 0 | 0, 0)
;
31651 if (!SWIG_IsOK(res3)(res3 >= 0)) {
31652 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralPlaw2_eval" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralPlaw2_eval" "', argument "
"3"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
31653 }
31654 if (!argp3) {
31655 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralPlaw2_eval" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralPlaw2_eval" "', argument " "3"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
31656 }
31657 arg3 = reinterpret_cast< GTime * >(argp3);
31658 {
31659 try {
31660 result = (double)((GModelSpectralPlaw2 const *)arg1)->eval((GEnergy const &)*arg2,(GTime const &)*arg3);
31661 }
31662 catch (const GException::out_of_range& e) {
31663 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
31664 }
31665 catch (const GExceptionHandler& e) {
31666 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
31667 }
31668 catch (const std::exception& e) {
31669 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
31670 }
31671 }
31672 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
31673 return resultobj;
31674fail:
31675 return NULL__null;
31676}
31677
31678
31679SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw2_eval_gradients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31680 PyObject *resultobj = 0;
31681 GModelSpectralPlaw2 *arg1 = (GModelSpectralPlaw2 *) 0 ;
31682 GEnergy *arg2 = 0 ;
31683 GTime *arg3 = 0 ;
31684 void *argp1 = 0 ;
31685 int res1 = 0 ;
31686 void *argp2 = 0 ;
31687 int res2 = 0 ;
31688 void *argp3 = 0 ;
31689 int res3 = 0 ;
31690 PyObject * obj0 = 0 ;
31691 PyObject * obj1 = 0 ;
31692 PyObject * obj2 = 0 ;
31693 double result;
31694
31695 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectralPlaw2_eval_gradients",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
31696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw2, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[31]
, 0 | 0, 0)
;
31697 if (!SWIG_IsOK(res1)(res1 >= 0)) {
31698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw2_eval_gradients" "', argument " "1"" of type '" "GModelSpectralPlaw2 *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw2_eval_gradients"
"', argument " "1"" of type '" "GModelSpectralPlaw2 *""'"); goto
fail; } while(0)
;
31699 }
31700 arg1 = reinterpret_cast< GModelSpectralPlaw2 * >(argp1);
31701 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
31702 if (!SWIG_IsOK(res2)(res2 >= 0)) {
31703 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralPlaw2_eval_gradients" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralPlaw2_eval_gradients"
"', argument " "2"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
31704 }
31705 if (!argp2) {
31706 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralPlaw2_eval_gradients" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralPlaw2_eval_gradients" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
31707 }
31708 arg2 = reinterpret_cast< GEnergy * >(argp2);
31709 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[46]
, 0 | 0, 0)
;
31710 if (!SWIG_IsOK(res3)(res3 >= 0)) {
31711 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralPlaw2_eval_gradients" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralPlaw2_eval_gradients"
"', argument " "3"" of type '" "GTime const &""'"); goto
fail; } while(0)
;
31712 }
31713 if (!argp3) {
31714 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralPlaw2_eval_gradients" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralPlaw2_eval_gradients" "', argument "
"3"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
31715 }
31716 arg3 = reinterpret_cast< GTime * >(argp3);
31717 {
31718 try {
31719 result = (double)(arg1)->eval_gradients((GEnergy const &)*arg2,(GTime const &)*arg3);
31720 }
31721 catch (const GException::out_of_range& e) {
31722 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
31723 }
31724 catch (const GExceptionHandler& e) {
31725 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
31726 }
31727 catch (const std::exception& e) {
31728 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
31729 }
31730 }
31731 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
31732 return resultobj;
31733fail:
31734 return NULL__null;
31735}
31736
31737
31738SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw2_flux(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31739 PyObject *resultobj = 0;
31740 GModelSpectralPlaw2 *arg1 = (GModelSpectralPlaw2 *) 0 ;
31741 GEnergy *arg2 = 0 ;
31742 GEnergy *arg3 = 0 ;
31743 void *argp1 = 0 ;
31744 int res1 = 0 ;
31745 void *argp2 = 0 ;
31746 int res2 = 0 ;
31747 void *argp3 = 0 ;
31748 int res3 = 0 ;
31749 PyObject * obj0 = 0 ;
31750 PyObject * obj1 = 0 ;
31751 PyObject * obj2 = 0 ;
31752 double result;
31753
31754 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectralPlaw2_flux",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
31755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw2, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[31]
, 0 | 0, 0)
;
31756 if (!SWIG_IsOK(res1)(res1 >= 0)) {
31757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw2_flux" "', argument " "1"" of type '" "GModelSpectralPlaw2 const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw2_flux" "', argument "
"1"" of type '" "GModelSpectralPlaw2 const *""'"); goto fail
; } while(0)
;
31758 }
31759 arg1 = reinterpret_cast< GModelSpectralPlaw2 * >(argp1);
31760 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
31761 if (!SWIG_IsOK(res2)(res2 >= 0)) {
31762 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralPlaw2_flux" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralPlaw2_flux" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
31763 }
31764 if (!argp2) {
31765 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralPlaw2_flux" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralPlaw2_flux" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
31766 }
31767 arg2 = reinterpret_cast< GEnergy * >(argp2);
31768 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
31769 if (!SWIG_IsOK(res3)(res3 >= 0)) {
31770 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralPlaw2_flux" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralPlaw2_flux" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
31771 }
31772 if (!argp3) {
31773 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralPlaw2_flux" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralPlaw2_flux" "', argument " "3"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
31774 }
31775 arg3 = reinterpret_cast< GEnergy * >(argp3);
31776 {
31777 try {
31778 result = (double)((GModelSpectralPlaw2 const *)arg1)->flux((GEnergy const &)*arg2,(GEnergy const &)*arg3);
31779 }
31780 catch (const GException::out_of_range& e) {
31781 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
31782 }
31783 catch (const GExceptionHandler& e) {
31784 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
31785 }
31786 catch (const std::exception& e) {
31787 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
31788 }
31789 }
31790 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
31791 return resultobj;
31792fail:
31793 return NULL__null;
31794}
31795
31796
31797SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw2_eflux(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31798 PyObject *resultobj = 0;
31799 GModelSpectralPlaw2 *arg1 = (GModelSpectralPlaw2 *) 0 ;
31800 GEnergy *arg2 = 0 ;
31801 GEnergy *arg3 = 0 ;
31802 void *argp1 = 0 ;
31803 int res1 = 0 ;
31804 void *argp2 = 0 ;
31805 int res2 = 0 ;
31806 void *argp3 = 0 ;
31807 int res3 = 0 ;
31808 PyObject * obj0 = 0 ;
31809 PyObject * obj1 = 0 ;
31810 PyObject * obj2 = 0 ;
31811 double result;
31812
31813 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectralPlaw2_eflux",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
31814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw2, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[31]
, 0 | 0, 0)
;
31815 if (!SWIG_IsOK(res1)(res1 >= 0)) {
31816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw2_eflux" "', argument " "1"" of type '" "GModelSpectralPlaw2 const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw2_eflux"
"', argument " "1"" of type '" "GModelSpectralPlaw2 const *"
"'"); goto fail; } while(0)
;
31817 }
31818 arg1 = reinterpret_cast< GModelSpectralPlaw2 * >(argp1);
31819 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
31820 if (!SWIG_IsOK(res2)(res2 >= 0)) {
31821 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralPlaw2_eflux" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralPlaw2_eflux"
"', argument " "2"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
31822 }
31823 if (!argp2) {
31824 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralPlaw2_eflux" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralPlaw2_eflux" "', argument " "2"
" of type '" "GEnergy const &""'"); goto fail; } while(0)
;
31825 }
31826 arg2 = reinterpret_cast< GEnergy * >(argp2);
31827 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
31828 if (!SWIG_IsOK(res3)(res3 >= 0)) {
31829 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralPlaw2_eflux" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralPlaw2_eflux"
"', argument " "3"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
31830 }
31831 if (!argp3) {
31832 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralPlaw2_eflux" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralPlaw2_eflux" "', argument " "3"
" of type '" "GEnergy const &""'"); goto fail; } while(0)
;
31833 }
31834 arg3 = reinterpret_cast< GEnergy * >(argp3);
31835 {
31836 try {
31837 result = (double)((GModelSpectralPlaw2 const *)arg1)->eflux((GEnergy const &)*arg2,(GEnergy const &)*arg3);
31838 }
31839 catch (const GException::out_of_range& e) {
31840 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
31841 }
31842 catch (const GExceptionHandler& e) {
31843 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
31844 }
31845 catch (const std::exception& e) {
31846 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
31847 }
31848 }
31849 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
31850 return resultobj;
31851fail:
31852 return NULL__null;
31853}
31854
31855
31856SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw2_mc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31857 PyObject *resultobj = 0;
31858 GModelSpectralPlaw2 *arg1 = (GModelSpectralPlaw2 *) 0 ;
31859 GEnergy *arg2 = 0 ;
31860 GEnergy *arg3 = 0 ;
31861 GTime *arg4 = 0 ;
31862 GRan *arg5 = 0 ;
31863 void *argp1 = 0 ;
31864 int res1 = 0 ;
31865 void *argp2 = 0 ;
31866 int res2 = 0 ;
31867 void *argp3 = 0 ;
31868 int res3 = 0 ;
31869 void *argp4 = 0 ;
31870 int res4 = 0 ;
31871 void *argp5 = 0 ;
31872 int res5 = 0 ;
31873 PyObject * obj0 = 0 ;
31874 PyObject * obj1 = 0 ;
31875 PyObject * obj2 = 0 ;
31876 PyObject * obj3 = 0 ;
31877 PyObject * obj4 = 0 ;
31878 GEnergy result;
31879
31880 if (!PyArg_ParseTuple(args,(char *)"OOOOO:GModelSpectralPlaw2_mc",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_failgoto fail;
31881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw2, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[31]
, 0 | 0, 0)
;
31882 if (!SWIG_IsOK(res1)(res1 >= 0)) {
31883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw2_mc" "', argument " "1"" of type '" "GModelSpectralPlaw2 const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw2_mc" "', argument "
"1"" of type '" "GModelSpectralPlaw2 const *""'"); goto fail
; } while(0)
;
31884 }
31885 arg1 = reinterpret_cast< GModelSpectralPlaw2 * >(argp1);
31886 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
31887 if (!SWIG_IsOK(res2)(res2 >= 0)) {
31888 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralPlaw2_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralPlaw2_mc" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
31889 }
31890 if (!argp2) {
31891 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralPlaw2_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralPlaw2_mc" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
31892 }
31893 arg2 = reinterpret_cast< GEnergy * >(argp2);
31894 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
31895 if (!SWIG_IsOK(res3)(res3 >= 0)) {
31896 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralPlaw2_mc" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralPlaw2_mc" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
31897 }
31898 if (!argp3) {
31899 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralPlaw2_mc" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralPlaw2_mc" "', argument " "3"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
31900 }
31901 arg3 = reinterpret_cast< GEnergy * >(argp3);
31902 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[46]
, 0 | 0, 0)
;
31903 if (!SWIG_IsOK(res4)(res4 >= 0)) {
31904 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelSpectralPlaw2_mc" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelSpectralPlaw2_mc" "', argument "
"4"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
31905 }
31906 if (!argp4) {
31907 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralPlaw2_mc" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralPlaw2_mc" "', argument " "4"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
31908 }
31909 arg4 = reinterpret_cast< GTime * >(argp4);
31910 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_GRan, 0 )SWIG_Python_ConvertPtrAndOwn(obj4, &argp5, swig_types[42]
, 0, 0)
;
31911 if (!SWIG_IsOK(res5)(res5 >= 0)) {
31912 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GModelSpectralPlaw2_mc" "', argument " "5"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res5 != (
-1)) ? res5 : -5)), "in method '" "GModelSpectralPlaw2_mc" "', argument "
"5"" of type '" "GRan &""'"); goto fail; } while(0)
;
31913 }
31914 if (!argp5) {
31915 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralPlaw2_mc" "', argument " "5"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralPlaw2_mc" "', argument " "5"" of type '"
"GRan &""'"); goto fail; } while(0)
;
31916 }
31917 arg5 = reinterpret_cast< GRan * >(argp5);
31918 {
31919 try {
31920 result = ((GModelSpectralPlaw2 const *)arg1)->mc((GEnergy const &)*arg2,(GEnergy const &)*arg3,(GTime const &)*arg4,*arg5);
31921 }
31922 catch (const GException::out_of_range& e) {
31923 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
31924 }
31925 catch (const GExceptionHandler& e) {
31926 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
31927 }
31928 catch (const std::exception& e) {
31929 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
31930 }
31931 }
31932 resultobj = SWIG_NewPointerObj((new GEnergy(static_cast< const GEnergy& >(result))), SWIGTYPE_p_GEnergy, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GEnergy(static_cast<
const GEnergy& >(result))), swig_types[3], 0x1 | 0)
;
31933 return resultobj;
31934fail:
31935 return NULL__null;
31936}
31937
31938
31939SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw2_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31940 PyObject *resultobj = 0;
31941 GModelSpectralPlaw2 *arg1 = (GModelSpectralPlaw2 *) 0 ;
31942 GXmlElement *arg2 = 0 ;
31943 void *argp1 = 0 ;
31944 int res1 = 0 ;
31945 void *argp2 = 0 ;
31946 int res2 = 0 ;
31947 PyObject * obj0 = 0 ;
31948 PyObject * obj1 = 0 ;
31949
31950 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralPlaw2_read",&obj0,&obj1)) SWIG_failgoto fail;
31951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw2, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[31]
, 0 | 0, 0)
;
31952 if (!SWIG_IsOK(res1)(res1 >= 0)) {
31953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw2_read" "', argument " "1"" of type '" "GModelSpectralPlaw2 *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw2_read" "', argument "
"1"" of type '" "GModelSpectralPlaw2 *""'"); goto fail; } while
(0)
;
31954 }
31955 arg1 = reinterpret_cast< GModelSpectralPlaw2 * >(argp1);
31956 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0 | 0, 0)
;
31957 if (!SWIG_IsOK(res2)(res2 >= 0)) {
31958 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralPlaw2_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralPlaw2_read" "', argument "
"2"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
31959 }
31960 if (!argp2) {
31961 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralPlaw2_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralPlaw2_read" "', argument " "2"" of type '"
"GXmlElement const &""'"); goto fail; } while(0)
;
31962 }
31963 arg2 = reinterpret_cast< GXmlElement * >(argp2);
31964 {
31965 try {
31966 (arg1)->read((GXmlElement const &)*arg2);
31967 }
31968 catch (const GException::out_of_range& e) {
31969 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
31970 }
31971 catch (const GExceptionHandler& e) {
31972 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
31973 }
31974 catch (const std::exception& e) {
31975 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
31976 }
31977 }
31978 resultobj = SWIG_Py_Void();
31979 return resultobj;
31980fail:
31981 return NULL__null;
31982}
31983
31984
31985SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw2_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31986 PyObject *resultobj = 0;
31987 GModelSpectralPlaw2 *arg1 = (GModelSpectralPlaw2 *) 0 ;
31988 GXmlElement *arg2 = 0 ;
31989 void *argp1 = 0 ;
31990 int res1 = 0 ;
31991 void *argp2 = 0 ;
31992 int res2 = 0 ;
31993 PyObject * obj0 = 0 ;
31994 PyObject * obj1 = 0 ;
31995
31996 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralPlaw2_write",&obj0,&obj1)) SWIG_failgoto fail;
31997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw2, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[31]
, 0 | 0, 0)
;
31998 if (!SWIG_IsOK(res1)(res1 >= 0)) {
31999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw2_write" "', argument " "1"" of type '" "GModelSpectralPlaw2 const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw2_write"
"', argument " "1"" of type '" "GModelSpectralPlaw2 const *"
"'"); goto fail; } while(0)
;
32000 }
32001 arg1 = reinterpret_cast< GModelSpectralPlaw2 * >(argp1);
32002 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0, 0)
;
32003 if (!SWIG_IsOK(res2)(res2 >= 0)) {
32004 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralPlaw2_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralPlaw2_write"
"', argument " "2"" of type '" "GXmlElement &""'"); goto
fail; } while(0)
;
32005 }
32006 if (!argp2) {
32007 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralPlaw2_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralPlaw2_write" "', argument " "2"
" of type '" "GXmlElement &""'"); goto fail; } while(0)
;
32008 }
32009 arg2 = reinterpret_cast< GXmlElement * >(argp2);
32010 {
32011 try {
32012 ((GModelSpectralPlaw2 const *)arg1)->write(*arg2);
32013 }
32014 catch (const GException::out_of_range& e) {
32015 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
32016 }
32017 catch (const GExceptionHandler& e) {
32018 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32019 }
32020 catch (const std::exception& e) {
32021 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32022 }
32023 }
32024 resultobj = SWIG_Py_Void();
32025 return resultobj;
32026fail:
32027 return NULL__null;
32028}
32029
32030
32031SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw2_integral__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32032 PyObject *resultobj = 0;
32033 GModelSpectralPlaw2 *arg1 = (GModelSpectralPlaw2 *) 0 ;
32034 void *argp1 = 0 ;
32035 int res1 = 0 ;
32036 PyObject * obj0 = 0 ;
32037 double result;
32038
32039 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralPlaw2_integral",&obj0)) SWIG_failgoto fail;
32040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw2, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[31]
, 0 | 0, 0)
;
32041 if (!SWIG_IsOK(res1)(res1 >= 0)) {
32042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw2_integral" "', argument " "1"" of type '" "GModelSpectralPlaw2 const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw2_integral"
"', argument " "1"" of type '" "GModelSpectralPlaw2 const *"
"'"); goto fail; } while(0)
;
32043 }
32044 arg1 = reinterpret_cast< GModelSpectralPlaw2 * >(argp1);
32045 {
32046 try {
32047 result = (double)((GModelSpectralPlaw2 const *)arg1)->integral();
32048 }
32049 catch (const GException::out_of_range& e) {
32050 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
32051 }
32052 catch (const GExceptionHandler& e) {
32053 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32054 }
32055 catch (const std::exception& e) {
32056 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32057 }
32058 }
32059 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
32060 return resultobj;
32061fail:
32062 return NULL__null;
32063}
32064
32065
32066SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw2_integral__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32067 PyObject *resultobj = 0;
32068 GModelSpectralPlaw2 *arg1 = (GModelSpectralPlaw2 *) 0 ;
32069 double *arg2 = 0 ;
32070 void *argp1 = 0 ;
32071 int res1 = 0 ;
32072 double temp2 ;
32073 double val2 ;
32074 int ecode2 = 0 ;
32075 PyObject * obj0 = 0 ;
32076 PyObject * obj1 = 0 ;
32077
32078 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralPlaw2_integral",&obj0,&obj1)) SWIG_failgoto fail;
32079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw2, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[31]
, 0 | 0, 0)
;
32080 if (!SWIG_IsOK(res1)(res1 >= 0)) {
32081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw2_integral" "', argument " "1"" of type '" "GModelSpectralPlaw2 *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw2_integral"
"', argument " "1"" of type '" "GModelSpectralPlaw2 *""'"); goto
fail; } while(0)
;
32082 }
32083 arg1 = reinterpret_cast< GModelSpectralPlaw2 * >(argp1);
32084 ecode2 = SWIG_AsVal_double(obj1, &val2);
32085 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
32086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpectralPlaw2_integral" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpectralPlaw2_integral"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
32087 }
32088 temp2 = static_cast< double >(val2);
32089 arg2 = &temp2;
32090 {
32091 try {
32092 (arg1)->integral((double const &)*arg2);
32093 }
32094 catch (const GException::out_of_range& e) {
32095 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
32096 }
32097 catch (const GExceptionHandler& e) {
32098 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32099 }
32100 catch (const std::exception& e) {
32101 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32102 }
32103 }
32104 resultobj = SWIG_Py_Void();
32105 return resultobj;
32106fail:
32107 return NULL__null;
32108}
32109
32110
32111SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw2_integral(PyObject *self, PyObject *args) {
32112 int argc;
32113 PyObject *argv[3];
32114 int ii;
32115
32116 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
32117 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
32118 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
32119 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
32120 }
32121 if (argc == 1) {
32122 int _v;
32123 void *vptr = 0;
32124 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralPlaw2, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[31
], 0, 0)
;
32125 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
32126 if (_v) {
32127 return _wrap_GModelSpectralPlaw2_integral__SWIG_0(self, args);
32128 }
32129 }
32130 if (argc == 2) {
32131 int _v;
32132 void *vptr = 0;
32133 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralPlaw2, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[31
], 0, 0)
;
32134 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
32135 if (_v) {
32136 {
32137 int res = SWIG_AsVal_double(argv[1], NULL__null);
32138 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
32139 }
32140 if (_v) {
32141 return _wrap_GModelSpectralPlaw2_integral__SWIG_1(self, args);
32142 }
32143 }
32144 }
32145
32146fail:
32147 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpectralPlaw2_integral'.\n"
32148 " Possible C/C++ prototypes are:\n"
32149 " GModelSpectralPlaw2::integral() const\n"
32150 " GModelSpectralPlaw2::integral(double const &)\n");
32151 return 0;
32152}
32153
32154
32155SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw2_index__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32156 PyObject *resultobj = 0;
32157 GModelSpectralPlaw2 *arg1 = (GModelSpectralPlaw2 *) 0 ;
32158 void *argp1 = 0 ;
32159 int res1 = 0 ;
32160 PyObject * obj0 = 0 ;
32161 double result;
32162
32163 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralPlaw2_index",&obj0)) SWIG_failgoto fail;
32164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw2, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[31]
, 0 | 0, 0)
;
32165 if (!SWIG_IsOK(res1)(res1 >= 0)) {
32166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw2_index" "', argument " "1"" of type '" "GModelSpectralPlaw2 const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw2_index"
"', argument " "1"" of type '" "GModelSpectralPlaw2 const *"
"'"); goto fail; } while(0)
;
32167 }
32168 arg1 = reinterpret_cast< GModelSpectralPlaw2 * >(argp1);
32169 {
32170 try {
32171 result = (double)((GModelSpectralPlaw2 const *)arg1)->index();
32172 }
32173 catch (const GException::out_of_range& e) {
32174 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
32175 }
32176 catch (const GExceptionHandler& e) {
32177 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32178 }
32179 catch (const std::exception& e) {
32180 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32181 }
32182 }
32183 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
32184 return resultobj;
32185fail:
32186 return NULL__null;
32187}
32188
32189
32190SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw2_index__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32191 PyObject *resultobj = 0;
32192 GModelSpectralPlaw2 *arg1 = (GModelSpectralPlaw2 *) 0 ;
32193 double *arg2 = 0 ;
32194 void *argp1 = 0 ;
32195 int res1 = 0 ;
32196 double temp2 ;
32197 double val2 ;
32198 int ecode2 = 0 ;
32199 PyObject * obj0 = 0 ;
32200 PyObject * obj1 = 0 ;
32201
32202 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralPlaw2_index",&obj0,&obj1)) SWIG_failgoto fail;
32203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw2, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[31]
, 0 | 0, 0)
;
32204 if (!SWIG_IsOK(res1)(res1 >= 0)) {
32205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw2_index" "', argument " "1"" of type '" "GModelSpectralPlaw2 *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw2_index"
"', argument " "1"" of type '" "GModelSpectralPlaw2 *""'"); goto
fail; } while(0)
;
32206 }
32207 arg1 = reinterpret_cast< GModelSpectralPlaw2 * >(argp1);
32208 ecode2 = SWIG_AsVal_double(obj1, &val2);
32209 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
32210 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpectralPlaw2_index" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpectralPlaw2_index"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
32211 }
32212 temp2 = static_cast< double >(val2);
32213 arg2 = &temp2;
32214 {
32215 try {
32216 (arg1)->index((double const &)*arg2);
32217 }
32218 catch (const GException::out_of_range& e) {
32219 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
32220 }
32221 catch (const GExceptionHandler& e) {
32222 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32223 }
32224 catch (const std::exception& e) {
32225 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32226 }
32227 }
32228 resultobj = SWIG_Py_Void();
32229 return resultobj;
32230fail:
32231 return NULL__null;
32232}
32233
32234
32235SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw2_index(PyObject *self, PyObject *args) {
32236 int argc;
32237 PyObject *argv[3];
32238 int ii;
32239
32240 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
32241 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
32242 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
32243 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
32244 }
32245 if (argc == 1) {
32246 int _v;
32247 void *vptr = 0;
32248 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralPlaw2, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[31
], 0, 0)
;
32249 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
32250 if (_v) {
32251 return _wrap_GModelSpectralPlaw2_index__SWIG_0(self, args);
32252 }
32253 }
32254 if (argc == 2) {
32255 int _v;
32256 void *vptr = 0;
32257 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralPlaw2, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[31
], 0, 0)
;
32258 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
32259 if (_v) {
32260 {
32261 int res = SWIG_AsVal_double(argv[1], NULL__null);
32262 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
32263 }
32264 if (_v) {
32265 return _wrap_GModelSpectralPlaw2_index__SWIG_1(self, args);
32266 }
32267 }
32268 }
32269
32270fail:
32271 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpectralPlaw2_index'.\n"
32272 " Possible C/C++ prototypes are:\n"
32273 " GModelSpectralPlaw2::index() const\n"
32274 " GModelSpectralPlaw2::index(double const &)\n");
32275 return 0;
32276}
32277
32278
32279SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw2_emin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32280 PyObject *resultobj = 0;
32281 GModelSpectralPlaw2 *arg1 = (GModelSpectralPlaw2 *) 0 ;
32282 void *argp1 = 0 ;
32283 int res1 = 0 ;
32284 PyObject * obj0 = 0 ;
32285 GEnergy result;
32286
32287 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralPlaw2_emin",&obj0)) SWIG_failgoto fail;
32288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw2, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[31]
, 0 | 0, 0)
;
32289 if (!SWIG_IsOK(res1)(res1 >= 0)) {
32290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw2_emin" "', argument " "1"" of type '" "GModelSpectralPlaw2 const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw2_emin" "', argument "
"1"" of type '" "GModelSpectralPlaw2 const *""'"); goto fail
; } while(0)
;
32291 }
32292 arg1 = reinterpret_cast< GModelSpectralPlaw2 * >(argp1);
32293 {
32294 try {
32295 result = ((GModelSpectralPlaw2 const *)arg1)->emin();
32296 }
32297 catch (const GException::out_of_range& e) {
32298 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
32299 }
32300 catch (const GExceptionHandler& e) {
32301 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32302 }
32303 catch (const std::exception& e) {
32304 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32305 }
32306 }
32307 resultobj = SWIG_NewPointerObj((new GEnergy(static_cast< const GEnergy& >(result))), SWIGTYPE_p_GEnergy, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GEnergy(static_cast<
const GEnergy& >(result))), swig_types[3], 0x1 | 0)
;
32308 return resultobj;
32309fail:
32310 return NULL__null;
32311}
32312
32313
32314SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw2_emin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32315 PyObject *resultobj = 0;
32316 GModelSpectralPlaw2 *arg1 = (GModelSpectralPlaw2 *) 0 ;
32317 GEnergy *arg2 = 0 ;
32318 void *argp1 = 0 ;
32319 int res1 = 0 ;
32320 void *argp2 = 0 ;
32321 int res2 = 0 ;
32322 PyObject * obj0 = 0 ;
32323 PyObject * obj1 = 0 ;
32324
32325 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralPlaw2_emin",&obj0,&obj1)) SWIG_failgoto fail;
32326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw2, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[31]
, 0 | 0, 0)
;
32327 if (!SWIG_IsOK(res1)(res1 >= 0)) {
32328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw2_emin" "', argument " "1"" of type '" "GModelSpectralPlaw2 *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw2_emin" "', argument "
"1"" of type '" "GModelSpectralPlaw2 *""'"); goto fail; } while
(0)
;
32329 }
32330 arg1 = reinterpret_cast< GModelSpectralPlaw2 * >(argp1);
32331 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
32332 if (!SWIG_IsOK(res2)(res2 >= 0)) {
32333 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralPlaw2_emin" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralPlaw2_emin" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
32334 }
32335 if (!argp2) {
32336 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralPlaw2_emin" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralPlaw2_emin" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
32337 }
32338 arg2 = reinterpret_cast< GEnergy * >(argp2);
32339 {
32340 try {
32341 (arg1)->emin((GEnergy const &)*arg2);
32342 }
32343 catch (const GException::out_of_range& e) {
32344 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
32345 }
32346 catch (const GExceptionHandler& e) {
32347 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32348 }
32349 catch (const std::exception& e) {
32350 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32351 }
32352 }
32353 resultobj = SWIG_Py_Void();
32354 return resultobj;
32355fail:
32356 return NULL__null;
32357}
32358
32359
32360SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw2_emin(PyObject *self, PyObject *args) {
32361 int argc;
32362 PyObject *argv[3];
32363 int ii;
32364
32365 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
32366 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
32367 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
32368 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
32369 }
32370 if (argc == 1) {
32371 int _v;
32372 void *vptr = 0;
32373 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralPlaw2, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[31
], 0, 0)
;
32374 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
32375 if (_v) {
32376 return _wrap_GModelSpectralPlaw2_emin__SWIG_0(self, args);
32377 }
32378 }
32379 if (argc == 2) {
32380 int _v;
32381 void *vptr = 0;
32382 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralPlaw2, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[31
], 0, 0)
;
32383 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
32384 if (_v) {
32385 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[3], 0, 0);
32386 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
32387 if (_v) {
32388 return _wrap_GModelSpectralPlaw2_emin__SWIG_1(self, args);
32389 }
32390 }
32391 }
32392
32393fail:
32394 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpectralPlaw2_emin'.\n"
32395 " Possible C/C++ prototypes are:\n"
32396 " GModelSpectralPlaw2::emin() const\n"
32397 " GModelSpectralPlaw2::emin(GEnergy const &)\n");
32398 return 0;
32399}
32400
32401
32402SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw2_emax__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32403 PyObject *resultobj = 0;
32404 GModelSpectralPlaw2 *arg1 = (GModelSpectralPlaw2 *) 0 ;
32405 void *argp1 = 0 ;
32406 int res1 = 0 ;
32407 PyObject * obj0 = 0 ;
32408 GEnergy result;
32409
32410 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralPlaw2_emax",&obj0)) SWIG_failgoto fail;
32411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw2, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[31]
, 0 | 0, 0)
;
32412 if (!SWIG_IsOK(res1)(res1 >= 0)) {
32413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw2_emax" "', argument " "1"" of type '" "GModelSpectralPlaw2 const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw2_emax" "', argument "
"1"" of type '" "GModelSpectralPlaw2 const *""'"); goto fail
; } while(0)
;
32414 }
32415 arg1 = reinterpret_cast< GModelSpectralPlaw2 * >(argp1);
32416 {
32417 try {
32418 result = ((GModelSpectralPlaw2 const *)arg1)->emax();
32419 }
32420 catch (const GException::out_of_range& e) {
32421 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
32422 }
32423 catch (const GExceptionHandler& e) {
32424 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32425 }
32426 catch (const std::exception& e) {
32427 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32428 }
32429 }
32430 resultobj = SWIG_NewPointerObj((new GEnergy(static_cast< const GEnergy& >(result))), SWIGTYPE_p_GEnergy, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GEnergy(static_cast<
const GEnergy& >(result))), swig_types[3], 0x1 | 0)
;
32431 return resultobj;
32432fail:
32433 return NULL__null;
32434}
32435
32436
32437SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw2_emax__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32438 PyObject *resultobj = 0;
32439 GModelSpectralPlaw2 *arg1 = (GModelSpectralPlaw2 *) 0 ;
32440 GEnergy *arg2 = 0 ;
32441 void *argp1 = 0 ;
32442 int res1 = 0 ;
32443 void *argp2 = 0 ;
32444 int res2 = 0 ;
32445 PyObject * obj0 = 0 ;
32446 PyObject * obj1 = 0 ;
32447
32448 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralPlaw2_emax",&obj0,&obj1)) SWIG_failgoto fail;
32449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw2, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[31]
, 0 | 0, 0)
;
32450 if (!SWIG_IsOK(res1)(res1 >= 0)) {
32451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw2_emax" "', argument " "1"" of type '" "GModelSpectralPlaw2 *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw2_emax" "', argument "
"1"" of type '" "GModelSpectralPlaw2 *""'"); goto fail; } while
(0)
;
32452 }
32453 arg1 = reinterpret_cast< GModelSpectralPlaw2 * >(argp1);
32454 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
32455 if (!SWIG_IsOK(res2)(res2 >= 0)) {
32456 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralPlaw2_emax" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralPlaw2_emax" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
32457 }
32458 if (!argp2) {
32459 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralPlaw2_emax" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralPlaw2_emax" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
32460 }
32461 arg2 = reinterpret_cast< GEnergy * >(argp2);
32462 {
32463 try {
32464 (arg1)->emax((GEnergy const &)*arg2);
32465 }
32466 catch (const GException::out_of_range& e) {
32467 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
32468 }
32469 catch (const GExceptionHandler& e) {
32470 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32471 }
32472 catch (const std::exception& e) {
32473 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32474 }
32475 }
32476 resultobj = SWIG_Py_Void();
32477 return resultobj;
32478fail:
32479 return NULL__null;
32480}
32481
32482
32483SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw2_emax(PyObject *self, PyObject *args) {
32484 int argc;
32485 PyObject *argv[3];
32486 int ii;
32487
32488 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
32489 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
32490 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
32491 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
32492 }
32493 if (argc == 1) {
32494 int _v;
32495 void *vptr = 0;
32496 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralPlaw2, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[31
], 0, 0)
;
32497 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
32498 if (_v) {
32499 return _wrap_GModelSpectralPlaw2_emax__SWIG_0(self, args);
32500 }
32501 }
32502 if (argc == 2) {
32503 int _v;
32504 void *vptr = 0;
32505 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralPlaw2, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[31
], 0, 0)
;
32506 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
32507 if (_v) {
32508 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[3], 0, 0);
32509 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
32510 if (_v) {
32511 return _wrap_GModelSpectralPlaw2_emax__SWIG_1(self, args);
32512 }
32513 }
32514 }
32515
32516fail:
32517 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpectralPlaw2_emax'.\n"
32518 " Possible C/C++ prototypes are:\n"
32519 " GModelSpectralPlaw2::emax() const\n"
32520 " GModelSpectralPlaw2::emax(GEnergy const &)\n");
32521 return 0;
32522}
32523
32524
32525SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralPlaw2_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32526 PyObject *resultobj = 0;
32527 GModelSpectralPlaw2 *arg1 = (GModelSpectralPlaw2 *) 0 ;
32528 void *argp1 = 0 ;
32529 int res1 = 0 ;
32530 PyObject * obj0 = 0 ;
32531 GModelSpectralPlaw2 result;
32532
32533 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralPlaw2_copy",&obj0)) SWIG_failgoto fail;
32534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralPlaw2, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[31]
, 0 | 0, 0)
;
32535 if (!SWIG_IsOK(res1)(res1 >= 0)) {
32536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralPlaw2_copy" "', argument " "1"" of type '" "GModelSpectralPlaw2 *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralPlaw2_copy" "', argument "
"1"" of type '" "GModelSpectralPlaw2 *""'"); goto fail; } while
(0)
;
32537 }
32538 arg1 = reinterpret_cast< GModelSpectralPlaw2 * >(argp1);
32539 {
32540 try {
32541 result = GModelSpectralPlaw2_copy(arg1);
32542 }
32543 catch (const GException::out_of_range& e) {
32544 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
32545 }
32546 catch (const GExceptionHandler& e) {
32547 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32548 }
32549 catch (const std::exception& e) {
32550 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32551 }
32552 }
32553 resultobj = SWIG_NewPointerObj((new GModelSpectralPlaw2(static_cast< const GModelSpectralPlaw2& >(result))), SWIGTYPE_p_GModelSpectralPlaw2, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GModelSpectralPlaw2(static_cast
< const GModelSpectralPlaw2& >(result))), swig_types
[31], 0x1 | 0)
;
32554 return resultobj;
32555fail:
32556 return NULL__null;
32557}
32558
32559
32560SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GModelSpectralPlaw2_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32561 PyObject *obj;
32562 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
32563 SWIG_TypeNewClientData(SWIGTYPE_p_GModelSpectralPlaw2swig_types[31], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
32564 return SWIG_Py_Void();
32565}
32566
32567SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralLogParabola__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32568 PyObject *resultobj = 0;
32569 GModelSpectralLogParabola *result = 0 ;
32570
32571 if (!PyArg_ParseTuple(args,(char *)":new_GModelSpectralLogParabola")) SWIG_failgoto fail;
32572 {
32573 try {
32574 result = (GModelSpectralLogParabola *)new GModelSpectralLogParabola();
32575 }
32576 catch (const GException::out_of_range& e) {
32577 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
32578 }
32579 catch (const GExceptionHandler& e) {
32580 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32581 }
32582 catch (const std::exception& e) {
32583 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32584 }
32585 }
32586 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralLogParabola, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[28], (
(0x1 << 1) | 0x1) | 0)
;
32587 return resultobj;
32588fail:
32589 return NULL__null;
32590}
32591
32592
32593SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralLogParabola__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32594 PyObject *resultobj = 0;
32595 double *arg1 = 0 ;
32596 double *arg2 = 0 ;
32597 GEnergy *arg3 = 0 ;
32598 double *arg4 = 0 ;
32599 double temp1 ;
32600 double val1 ;
32601 int ecode1 = 0 ;
32602 double temp2 ;
32603 double val2 ;
32604 int ecode2 = 0 ;
32605 void *argp3 = 0 ;
32606 int res3 = 0 ;
32607 double temp4 ;
32608 double val4 ;
32609 int ecode4 = 0 ;
32610 PyObject * obj0 = 0 ;
32611 PyObject * obj1 = 0 ;
32612 PyObject * obj2 = 0 ;
32613 PyObject * obj3 = 0 ;
32614 GModelSpectralLogParabola *result = 0 ;
32615
32616 if (!PyArg_ParseTuple(args,(char *)"OOOO:new_GModelSpectralLogParabola",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
32617 ecode1 = SWIG_AsVal_double(obj0, &val1);
32618 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
32619 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GModelSpectralLogParabola" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "new_GModelSpectralLogParabola"
"', argument " "1"" of type '" "double""'"); goto fail; } while
(0)
;
32620 }
32621 temp1 = static_cast< double >(val1);
32622 arg1 = &temp1;
32623 ecode2 = SWIG_AsVal_double(obj1, &val2);
32624 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
32625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GModelSpectralLogParabola" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "new_GModelSpectralLogParabola"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
32626 }
32627 temp2 = static_cast< double >(val2);
32628 arg2 = &temp2;
32629 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
32630 if (!SWIG_IsOK(res3)(res3 >= 0)) {
32631 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_GModelSpectralLogParabola" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "new_GModelSpectralLogParabola"
"', argument " "3"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
32632 }
32633 if (!argp3) {
32634 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpectralLogParabola" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpectralLogParabola" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
32635 }
32636 arg3 = reinterpret_cast< GEnergy * >(argp3);
32637 ecode4 = SWIG_AsVal_double(obj3, &val4);
32638 if (!SWIG_IsOK(ecode4)(ecode4 >= 0)) {
32639 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_GModelSpectralLogParabola" "', argument " "4"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 !=
(-1)) ? ecode4 : -5)), "in method '" "new_GModelSpectralLogParabola"
"', argument " "4"" of type '" "double""'"); goto fail; } while
(0)
;
32640 }
32641 temp4 = static_cast< double >(val4);
32642 arg4 = &temp4;
32643 {
32644 try {
32645 result = (GModelSpectralLogParabola *)new GModelSpectralLogParabola((double const &)*arg1,(double const &)*arg2,(GEnergy const &)*arg3,(double const &)*arg4);
32646 }
32647 catch (const GException::out_of_range& e) {
32648 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
32649 }
32650 catch (const GExceptionHandler& e) {
32651 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32652 }
32653 catch (const std::exception& e) {
32654 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32655 }
32656 }
32657 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralLogParabola, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[28], (
(0x1 << 1) | 0x1) | 0)
;
32658 return resultobj;
32659fail:
32660 return NULL__null;
32661}
32662
32663
32664SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralLogParabola__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32665 PyObject *resultobj = 0;
32666 GXmlElement *arg1 = 0 ;
32667 void *argp1 = 0 ;
32668 int res1 = 0 ;
32669 PyObject * obj0 = 0 ;
32670 GModelSpectralLogParabola *result = 0 ;
32671
32672 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpectralLogParabola",&obj0)) SWIG_failgoto fail;
32673 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[50]
, 0 | 0, 0)
;
32674 if (!SWIG_IsOK(res1)(res1 >= 0)) {
32675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpectralLogParabola" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpectralLogParabola"
"', argument " "1"" of type '" "GXmlElement const &""'")
; goto fail; } while(0)
;
32676 }
32677 if (!argp1) {
32678 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpectralLogParabola" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpectralLogParabola" "', argument "
"1"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
32679 }
32680 arg1 = reinterpret_cast< GXmlElement * >(argp1);
32681 {
32682 try {
32683 result = (GModelSpectralLogParabola *)new GModelSpectralLogParabola((GXmlElement const &)*arg1);
32684 }
32685 catch (const GException::out_of_range& e) {
32686 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
32687 }
32688 catch (const GExceptionHandler& e) {
32689 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32690 }
32691 catch (const std::exception& e) {
32692 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32693 }
32694 }
32695 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralLogParabola, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[28], (
(0x1 << 1) | 0x1) | 0)
;
32696 return resultobj;
32697fail:
32698 return NULL__null;
32699}
32700
32701
32702SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralLogParabola__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32703 PyObject *resultobj = 0;
32704 GModelSpectralLogParabola *arg1 = 0 ;
32705 void *argp1 = 0 ;
32706 int res1 = 0 ;
32707 PyObject * obj0 = 0 ;
32708 GModelSpectralLogParabola *result = 0 ;
32709
32710 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelSpectralLogParabola",&obj0)) SWIG_failgoto fail;
32711 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GModelSpectralLogParabola, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
32712 if (!SWIG_IsOK(res1)(res1 >= 0)) {
32713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelSpectralLogParabola" "', argument " "1"" of type '" "GModelSpectralLogParabola const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelSpectralLogParabola"
"', argument " "1"" of type '" "GModelSpectralLogParabola const &"
"'"); goto fail; } while(0)
;
32714 }
32715 if (!argp1) {
32716 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelSpectralLogParabola" "', argument " "1"" of type '" "GModelSpectralLogParabola const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelSpectralLogParabola" "', argument "
"1"" of type '" "GModelSpectralLogParabola const &""'");
goto fail; } while(0)
;
32717 }
32718 arg1 = reinterpret_cast< GModelSpectralLogParabola * >(argp1);
32719 {
32720 try {
32721 result = (GModelSpectralLogParabola *)new GModelSpectralLogParabola((GModelSpectralLogParabola const &)*arg1);
32722 }
32723 catch (const GException::out_of_range& e) {
32724 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
32725 }
32726 catch (const GExceptionHandler& e) {
32727 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32728 }
32729 catch (const std::exception& e) {
32730 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32731 }
32732 }
32733 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralLogParabola, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[28], (
(0x1 << 1) | 0x1) | 0)
;
32734 return resultobj;
32735fail:
32736 return NULL__null;
32737}
32738
32739
32740SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelSpectralLogParabola(PyObject *self, PyObject *args) {
32741 int argc;
32742 PyObject *argv[5];
32743 int ii;
32744
32745 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
32746 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
32747 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
32748 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
32749 }
32750 if (argc == 0) {
32751 return _wrap_new_GModelSpectralLogParabola__SWIG_0(self, args);
32752 }
32753 if (argc == 1) {
32754 int _v;
32755 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GXmlElement, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[50], 0, 0
)
;
32756 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
32757 if (_v) {
32758 return _wrap_new_GModelSpectralLogParabola__SWIG_2(self, args);
32759 }
32760 }
32761 if (argc == 1) {
32762 int _v;
32763 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GModelSpectralLogParabola, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[28], 0, 0
)
;
32764 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
32765 if (_v) {
32766 return _wrap_new_GModelSpectralLogParabola__SWIG_3(self, args);
32767 }
32768 }
32769 if (argc == 4) {
32770 int _v;
32771 {
32772 int res = SWIG_AsVal_double(argv[0], NULL__null);
32773 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
32774 }
32775 if (_v) {
32776 {
32777 int res = SWIG_AsVal_double(argv[1], NULL__null);
32778 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
32779 }
32780 if (_v) {
32781 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[3], 0, 0);
32782 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
32783 if (_v) {
32784 {
32785 int res = SWIG_AsVal_double(argv[3], NULL__null);
32786 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
32787 }
32788 if (_v) {
32789 return _wrap_new_GModelSpectralLogParabola__SWIG_1(self, args);
32790 }
32791 }
32792 }
32793 }
32794 }
32795
32796fail:
32797 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GModelSpectralLogParabola'.\n"
32798 " Possible C/C++ prototypes are:\n"
32799 " GModelSpectralLogParabola::GModelSpectralLogParabola()\n"
32800 " GModelSpectralLogParabola::GModelSpectralLogParabola(double const &,double const &,GEnergy const &,double const &)\n"
32801 " GModelSpectralLogParabola::GModelSpectralLogParabola(GXmlElement const &)\n"
32802 " GModelSpectralLogParabola::GModelSpectralLogParabola(GModelSpectralLogParabola const &)\n");
32803 return 0;
32804}
32805
32806
32807SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GModelSpectralLogParabola(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32808 PyObject *resultobj = 0;
32809 GModelSpectralLogParabola *arg1 = (GModelSpectralLogParabola *) 0 ;
32810 void *argp1 = 0 ;
32811 int res1 = 0 ;
32812 PyObject * obj0 = 0 ;
32813
32814 if (!PyArg_ParseTuple(args,(char *)"O:delete_GModelSpectralLogParabola",&obj0)) SWIG_failgoto fail;
32815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralLogParabola, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0x1 | 0, 0)
;
32816 if (!SWIG_IsOK(res1)(res1 >= 0)) {
32817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GModelSpectralLogParabola" "', argument " "1"" of type '" "GModelSpectralLogParabola *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GModelSpectralLogParabola"
"', argument " "1"" of type '" "GModelSpectralLogParabola *"
"'"); goto fail; } while(0)
;
32818 }
32819 arg1 = reinterpret_cast< GModelSpectralLogParabola * >(argp1);
32820 {
32821 try {
32822 delete arg1;
32823 }
32824 catch (const GException::out_of_range& e) {
32825 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
32826 }
32827 catch (const GExceptionHandler& e) {
32828 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32829 }
32830 catch (const std::exception& e) {
32831 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32832 }
32833 }
32834 resultobj = SWIG_Py_Void();
32835 return resultobj;
32836fail:
32837 return NULL__null;
32838}
32839
32840
32841SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralLogParabola_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32842 PyObject *resultobj = 0;
32843 GModelSpectralLogParabola *arg1 = (GModelSpectralLogParabola *) 0 ;
32844 void *argp1 = 0 ;
32845 int res1 = 0 ;
32846 PyObject * obj0 = 0 ;
32847
32848 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralLogParabola_clear",&obj0)) SWIG_failgoto fail;
32849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralLogParabola, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
32850 if (!SWIG_IsOK(res1)(res1 >= 0)) {
32851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralLogParabola_clear" "', argument " "1"" of type '" "GModelSpectralLogParabola *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralLogParabola_clear"
"', argument " "1"" of type '" "GModelSpectralLogParabola *"
"'"); goto fail; } while(0)
;
32852 }
32853 arg1 = reinterpret_cast< GModelSpectralLogParabola * >(argp1);
32854 {
32855 try {
32856 (arg1)->clear();
32857 }
32858 catch (const GException::out_of_range& e) {
32859 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
32860 }
32861 catch (const GExceptionHandler& e) {
32862 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32863 }
32864 catch (const std::exception& e) {
32865 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32866 }
32867 }
32868 resultobj = SWIG_Py_Void();
32869 return resultobj;
32870fail:
32871 return NULL__null;
32872}
32873
32874
32875SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralLogParabola_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32876 PyObject *resultobj = 0;
32877 GModelSpectralLogParabola *arg1 = (GModelSpectralLogParabola *) 0 ;
32878 void *argp1 = 0 ;
32879 int res1 = 0 ;
32880 PyObject * obj0 = 0 ;
32881 GModelSpectralLogParabola *result = 0 ;
32882
32883 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralLogParabola_clone",&obj0)) SWIG_failgoto fail;
32884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralLogParabola, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
32885 if (!SWIG_IsOK(res1)(res1 >= 0)) {
32886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralLogParabola_clone" "', argument " "1"" of type '" "GModelSpectralLogParabola const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralLogParabola_clone"
"', argument " "1"" of type '" "GModelSpectralLogParabola const *"
"'"); goto fail; } while(0)
;
32887 }
32888 arg1 = reinterpret_cast< GModelSpectralLogParabola * >(argp1);
32889 {
32890 try {
32891 result = (GModelSpectralLogParabola *)((GModelSpectralLogParabola const *)arg1)->clone();
32892 }
32893 catch (const GException::out_of_range& e) {
32894 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
32895 }
32896 catch (const GExceptionHandler& e) {
32897 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32898 }
32899 catch (const std::exception& e) {
32900 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32901 }
32902 }
32903 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpectralLogParabola, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[28], 0
| 0)
;
32904 return resultobj;
32905fail:
32906 return NULL__null;
32907}
32908
32909
32910SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralLogParabola_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32911 PyObject *resultobj = 0;
32912 GModelSpectralLogParabola *arg1 = (GModelSpectralLogParabola *) 0 ;
32913 void *argp1 = 0 ;
32914 int res1 = 0 ;
32915 PyObject * obj0 = 0 ;
32916 std::string result;
32917
32918 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralLogParabola_type",&obj0)) SWIG_failgoto fail;
32919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralLogParabola, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
32920 if (!SWIG_IsOK(res1)(res1 >= 0)) {
32921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralLogParabola_type" "', argument " "1"" of type '" "GModelSpectralLogParabola const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralLogParabola_type"
"', argument " "1"" of type '" "GModelSpectralLogParabola const *"
"'"); goto fail; } while(0)
;
32922 }
32923 arg1 = reinterpret_cast< GModelSpectralLogParabola * >(argp1);
32924 {
32925 try {
32926 result = ((GModelSpectralLogParabola const *)arg1)->type();
32927 }
32928 catch (const GException::out_of_range& e) {
32929 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
32930 }
32931 catch (const GExceptionHandler& e) {
32932 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32933 }
32934 catch (const std::exception& e) {
32935 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32936 }
32937 }
32938 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
32939 return resultobj;
32940fail:
32941 return NULL__null;
32942}
32943
32944
32945SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralLogParabola_eval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32946 PyObject *resultobj = 0;
32947 GModelSpectralLogParabola *arg1 = (GModelSpectralLogParabola *) 0 ;
32948 GEnergy *arg2 = 0 ;
32949 GTime *arg3 = 0 ;
32950 void *argp1 = 0 ;
32951 int res1 = 0 ;
32952 void *argp2 = 0 ;
32953 int res2 = 0 ;
32954 void *argp3 = 0 ;
32955 int res3 = 0 ;
32956 PyObject * obj0 = 0 ;
32957 PyObject * obj1 = 0 ;
32958 PyObject * obj2 = 0 ;
32959 double result;
32960
32961 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectralLogParabola_eval",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
32962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralLogParabola, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
32963 if (!SWIG_IsOK(res1)(res1 >= 0)) {
32964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralLogParabola_eval" "', argument " "1"" of type '" "GModelSpectralLogParabola const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralLogParabola_eval"
"', argument " "1"" of type '" "GModelSpectralLogParabola const *"
"'"); goto fail; } while(0)
;
32965 }
32966 arg1 = reinterpret_cast< GModelSpectralLogParabola * >(argp1);
32967 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
32968 if (!SWIG_IsOK(res2)(res2 >= 0)) {
32969 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralLogParabola_eval" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralLogParabola_eval"
"', argument " "2"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
32970 }
32971 if (!argp2) {
32972 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralLogParabola_eval" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralLogParabola_eval" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
32973 }
32974 arg2 = reinterpret_cast< GEnergy * >(argp2);
32975 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[46]
, 0 | 0, 0)
;
32976 if (!SWIG_IsOK(res3)(res3 >= 0)) {
32977 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralLogParabola_eval" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralLogParabola_eval"
"', argument " "3"" of type '" "GTime const &""'"); goto
fail; } while(0)
;
32978 }
32979 if (!argp3) {
32980 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralLogParabola_eval" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralLogParabola_eval" "', argument "
"3"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
32981 }
32982 arg3 = reinterpret_cast< GTime * >(argp3);
32983 {
32984 try {
32985 result = (double)((GModelSpectralLogParabola const *)arg1)->eval((GEnergy const &)*arg2,(GTime const &)*arg3);
32986 }
32987 catch (const GException::out_of_range& e) {
32988 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
32989 }
32990 catch (const GExceptionHandler& e) {
32991 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32992 }
32993 catch (const std::exception& e) {
32994 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
32995 }
32996 }
32997 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
32998 return resultobj;
32999fail:
33000 return NULL__null;
33001}
33002
33003
33004SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralLogParabola_eval_gradients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33005 PyObject *resultobj = 0;
33006 GModelSpectralLogParabola *arg1 = (GModelSpectralLogParabola *) 0 ;
33007 GEnergy *arg2 = 0 ;
33008 GTime *arg3 = 0 ;
33009 void *argp1 = 0 ;
33010 int res1 = 0 ;
33011 void *argp2 = 0 ;
33012 int res2 = 0 ;
33013 void *argp3 = 0 ;
33014 int res3 = 0 ;
33015 PyObject * obj0 = 0 ;
33016 PyObject * obj1 = 0 ;
33017 PyObject * obj2 = 0 ;
33018 double result;
33019
33020 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectralLogParabola_eval_gradients",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
33021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralLogParabola, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
33022 if (!SWIG_IsOK(res1)(res1 >= 0)) {
33023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralLogParabola_eval_gradients" "', argument " "1"" of type '" "GModelSpectralLogParabola *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralLogParabola_eval_gradients"
"', argument " "1"" of type '" "GModelSpectralLogParabola *"
"'"); goto fail; } while(0)
;
33024 }
33025 arg1 = reinterpret_cast< GModelSpectralLogParabola * >(argp1);
33026 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
33027 if (!SWIG_IsOK(res2)(res2 >= 0)) {
33028 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralLogParabola_eval_gradients" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralLogParabola_eval_gradients"
"', argument " "2"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
33029 }
33030 if (!argp2) {
33031 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralLogParabola_eval_gradients" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralLogParabola_eval_gradients" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
33032 }
33033 arg2 = reinterpret_cast< GEnergy * >(argp2);
33034 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[46]
, 0 | 0, 0)
;
33035 if (!SWIG_IsOK(res3)(res3 >= 0)) {
33036 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralLogParabola_eval_gradients" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralLogParabola_eval_gradients"
"', argument " "3"" of type '" "GTime const &""'"); goto
fail; } while(0)
;
33037 }
33038 if (!argp3) {
33039 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralLogParabola_eval_gradients" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralLogParabola_eval_gradients" "', argument "
"3"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
33040 }
33041 arg3 = reinterpret_cast< GTime * >(argp3);
33042 {
33043 try {
33044 result = (double)(arg1)->eval_gradients((GEnergy const &)*arg2,(GTime const &)*arg3);
33045 }
33046 catch (const GException::out_of_range& e) {
33047 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
33048 }
33049 catch (const GExceptionHandler& e) {
33050 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33051 }
33052 catch (const std::exception& e) {
33053 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33054 }
33055 }
33056 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
33057 return resultobj;
33058fail:
33059 return NULL__null;
33060}
33061
33062
33063SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralLogParabola_flux(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33064 PyObject *resultobj = 0;
33065 GModelSpectralLogParabola *arg1 = (GModelSpectralLogParabola *) 0 ;
33066 GEnergy *arg2 = 0 ;
33067 GEnergy *arg3 = 0 ;
33068 void *argp1 = 0 ;
33069 int res1 = 0 ;
33070 void *argp2 = 0 ;
33071 int res2 = 0 ;
33072 void *argp3 = 0 ;
33073 int res3 = 0 ;
33074 PyObject * obj0 = 0 ;
33075 PyObject * obj1 = 0 ;
33076 PyObject * obj2 = 0 ;
33077 double result;
33078
33079 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectralLogParabola_flux",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
33080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralLogParabola, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
33081 if (!SWIG_IsOK(res1)(res1 >= 0)) {
33082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralLogParabola_flux" "', argument " "1"" of type '" "GModelSpectralLogParabola const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralLogParabola_flux"
"', argument " "1"" of type '" "GModelSpectralLogParabola const *"
"'"); goto fail; } while(0)
;
33083 }
33084 arg1 = reinterpret_cast< GModelSpectralLogParabola * >(argp1);
33085 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
33086 if (!SWIG_IsOK(res2)(res2 >= 0)) {
33087 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralLogParabola_flux" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralLogParabola_flux"
"', argument " "2"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
33088 }
33089 if (!argp2) {
33090 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralLogParabola_flux" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralLogParabola_flux" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
33091 }
33092 arg2 = reinterpret_cast< GEnergy * >(argp2);
33093 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
33094 if (!SWIG_IsOK(res3)(res3 >= 0)) {
33095 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralLogParabola_flux" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralLogParabola_flux"
"', argument " "3"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
33096 }
33097 if (!argp3) {
33098 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralLogParabola_flux" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralLogParabola_flux" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
33099 }
33100 arg3 = reinterpret_cast< GEnergy * >(argp3);
33101 {
33102 try {
33103 result = (double)((GModelSpectralLogParabola const *)arg1)->flux((GEnergy const &)*arg2,(GEnergy const &)*arg3);
33104 }
33105 catch (const GException::out_of_range& e) {
33106 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
33107 }
33108 catch (const GExceptionHandler& e) {
33109 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33110 }
33111 catch (const std::exception& e) {
33112 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33113 }
33114 }
33115 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
33116 return resultobj;
33117fail:
33118 return NULL__null;
33119}
33120
33121
33122SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralLogParabola_eflux(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33123 PyObject *resultobj = 0;
33124 GModelSpectralLogParabola *arg1 = (GModelSpectralLogParabola *) 0 ;
33125 GEnergy *arg2 = 0 ;
33126 GEnergy *arg3 = 0 ;
33127 void *argp1 = 0 ;
33128 int res1 = 0 ;
33129 void *argp2 = 0 ;
33130 int res2 = 0 ;
33131 void *argp3 = 0 ;
33132 int res3 = 0 ;
33133 PyObject * obj0 = 0 ;
33134 PyObject * obj1 = 0 ;
33135 PyObject * obj2 = 0 ;
33136 double result;
33137
33138 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelSpectralLogParabola_eflux",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
33139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralLogParabola, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
33140 if (!SWIG_IsOK(res1)(res1 >= 0)) {
33141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralLogParabola_eflux" "', argument " "1"" of type '" "GModelSpectralLogParabola const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralLogParabola_eflux"
"', argument " "1"" of type '" "GModelSpectralLogParabola const *"
"'"); goto fail; } while(0)
;
33142 }
33143 arg1 = reinterpret_cast< GModelSpectralLogParabola * >(argp1);
33144 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
33145 if (!SWIG_IsOK(res2)(res2 >= 0)) {
33146 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralLogParabola_eflux" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralLogParabola_eflux"
"', argument " "2"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
33147 }
33148 if (!argp2) {
33149 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralLogParabola_eflux" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralLogParabola_eflux" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
33150 }
33151 arg2 = reinterpret_cast< GEnergy * >(argp2);
33152 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
33153 if (!SWIG_IsOK(res3)(res3 >= 0)) {
33154 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralLogParabola_eflux" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralLogParabola_eflux"
"', argument " "3"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
33155 }
33156 if (!argp3) {
33157 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralLogParabola_eflux" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralLogParabola_eflux" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
33158 }
33159 arg3 = reinterpret_cast< GEnergy * >(argp3);
33160 {
33161 try {
33162 result = (double)((GModelSpectralLogParabola const *)arg1)->eflux((GEnergy const &)*arg2,(GEnergy const &)*arg3);
33163 }
33164 catch (const GException::out_of_range& e) {
33165 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
33166 }
33167 catch (const GExceptionHandler& e) {
33168 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33169 }
33170 catch (const std::exception& e) {
33171 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33172 }
33173 }
33174 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
33175 return resultobj;
33176fail:
33177 return NULL__null;
33178}
33179
33180
33181SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralLogParabola_mc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33182 PyObject *resultobj = 0;
33183 GModelSpectralLogParabola *arg1 = (GModelSpectralLogParabola *) 0 ;
33184 GEnergy *arg2 = 0 ;
33185 GEnergy *arg3 = 0 ;
33186 GTime *arg4 = 0 ;
33187 GRan *arg5 = 0 ;
33188 void *argp1 = 0 ;
33189 int res1 = 0 ;
33190 void *argp2 = 0 ;
33191 int res2 = 0 ;
33192 void *argp3 = 0 ;
33193 int res3 = 0 ;
33194 void *argp4 = 0 ;
33195 int res4 = 0 ;
33196 void *argp5 = 0 ;
33197 int res5 = 0 ;
33198 PyObject * obj0 = 0 ;
33199 PyObject * obj1 = 0 ;
33200 PyObject * obj2 = 0 ;
33201 PyObject * obj3 = 0 ;
33202 PyObject * obj4 = 0 ;
33203 GEnergy result;
33204
33205 if (!PyArg_ParseTuple(args,(char *)"OOOOO:GModelSpectralLogParabola_mc",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_failgoto fail;
33206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralLogParabola, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
33207 if (!SWIG_IsOK(res1)(res1 >= 0)) {
33208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralLogParabola_mc" "', argument " "1"" of type '" "GModelSpectralLogParabola const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralLogParabola_mc"
"', argument " "1"" of type '" "GModelSpectralLogParabola const *"
"'"); goto fail; } while(0)
;
33209 }
33210 arg1 = reinterpret_cast< GModelSpectralLogParabola * >(argp1);
33211 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
33212 if (!SWIG_IsOK(res2)(res2 >= 0)) {
33213 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralLogParabola_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralLogParabola_mc"
"', argument " "2"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
33214 }
33215 if (!argp2) {
33216 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralLogParabola_mc" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralLogParabola_mc" "', argument " "2"
" of type '" "GEnergy const &""'"); goto fail; } while(0)
;
33217 }
33218 arg2 = reinterpret_cast< GEnergy * >(argp2);
33219 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[3],
0 | 0, 0)
;
33220 if (!SWIG_IsOK(res3)(res3 >= 0)) {
33221 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelSpectralLogParabola_mc" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelSpectralLogParabola_mc"
"', argument " "3"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
33222 }
33223 if (!argp3) {
33224 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralLogParabola_mc" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralLogParabola_mc" "', argument " "3"
" of type '" "GEnergy const &""'"); goto fail; } while(0)
;
33225 }
33226 arg3 = reinterpret_cast< GEnergy * >(argp3);
33227 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[46]
, 0 | 0, 0)
;
33228 if (!SWIG_IsOK(res4)(res4 >= 0)) {
33229 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelSpectralLogParabola_mc" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelSpectralLogParabola_mc"
"', argument " "4"" of type '" "GTime const &""'"); goto
fail; } while(0)
;
33230 }
33231 if (!argp4) {
33232 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralLogParabola_mc" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralLogParabola_mc" "', argument " "4"
" of type '" "GTime const &""'"); goto fail; } while(0)
;
33233 }
33234 arg4 = reinterpret_cast< GTime * >(argp4);
33235 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_GRan, 0 )SWIG_Python_ConvertPtrAndOwn(obj4, &argp5, swig_types[42]
, 0, 0)
;
33236 if (!SWIG_IsOK(res5)(res5 >= 0)) {
33237 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GModelSpectralLogParabola_mc" "', argument " "5"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res5 != (
-1)) ? res5 : -5)), "in method '" "GModelSpectralLogParabola_mc"
"', argument " "5"" of type '" "GRan &""'"); goto fail; }
while(0)
;
33238 }
33239 if (!argp5) {
33240 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralLogParabola_mc" "', argument " "5"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralLogParabola_mc" "', argument " "5"
" of type '" "GRan &""'"); goto fail; } while(0)
;
33241 }
33242 arg5 = reinterpret_cast< GRan * >(argp5);
33243 {
33244 try {
33245 result = ((GModelSpectralLogParabola const *)arg1)->mc((GEnergy const &)*arg2,(GEnergy const &)*arg3,(GTime const &)*arg4,*arg5);
33246 }
33247 catch (const GException::out_of_range& e) {
33248 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
33249 }
33250 catch (const GExceptionHandler& e) {
33251 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33252 }
33253 catch (const std::exception& e) {
33254 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33255 }
33256 }
33257 resultobj = SWIG_NewPointerObj((new GEnergy(static_cast< const GEnergy& >(result))), SWIGTYPE_p_GEnergy, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GEnergy(static_cast<
const GEnergy& >(result))), swig_types[3], 0x1 | 0)
;
33258 return resultobj;
33259fail:
33260 return NULL__null;
33261}
33262
33263
33264SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralLogParabola_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33265 PyObject *resultobj = 0;
33266 GModelSpectralLogParabola *arg1 = (GModelSpectralLogParabola *) 0 ;
33267 GXmlElement *arg2 = 0 ;
33268 void *argp1 = 0 ;
33269 int res1 = 0 ;
33270 void *argp2 = 0 ;
33271 int res2 = 0 ;
33272 PyObject * obj0 = 0 ;
33273 PyObject * obj1 = 0 ;
33274
33275 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralLogParabola_read",&obj0,&obj1)) SWIG_failgoto fail;
33276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralLogParabola, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
33277 if (!SWIG_IsOK(res1)(res1 >= 0)) {
33278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralLogParabola_read" "', argument " "1"" of type '" "GModelSpectralLogParabola *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralLogParabola_read"
"', argument " "1"" of type '" "GModelSpectralLogParabola *"
"'"); goto fail; } while(0)
;
33279 }
33280 arg1 = reinterpret_cast< GModelSpectralLogParabola * >(argp1);
33281 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0 | 0, 0)
;
33282 if (!SWIG_IsOK(res2)(res2 >= 0)) {
33283 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralLogParabola_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralLogParabola_read"
"', argument " "2"" of type '" "GXmlElement const &""'")
; goto fail; } while(0)
;
33284 }
33285 if (!argp2) {
33286 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralLogParabola_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralLogParabola_read" "', argument "
"2"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
33287 }
33288 arg2 = reinterpret_cast< GXmlElement * >(argp2);
33289 {
33290 try {
33291 (arg1)->read((GXmlElement const &)*arg2);
33292 }
33293 catch (const GException::out_of_range& e) {
33294 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
33295 }
33296 catch (const GExceptionHandler& e) {
33297 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33298 }
33299 catch (const std::exception& e) {
33300 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33301 }
33302 }
33303 resultobj = SWIG_Py_Void();
33304 return resultobj;
33305fail:
33306 return NULL__null;
33307}
33308
33309
33310SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralLogParabola_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33311 PyObject *resultobj = 0;
33312 GModelSpectralLogParabola *arg1 = (GModelSpectralLogParabola *) 0 ;
33313 GXmlElement *arg2 = 0 ;
33314 void *argp1 = 0 ;
33315 int res1 = 0 ;
33316 void *argp2 = 0 ;
33317 int res2 = 0 ;
33318 PyObject * obj0 = 0 ;
33319 PyObject * obj1 = 0 ;
33320
33321 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralLogParabola_write",&obj0,&obj1)) SWIG_failgoto fail;
33322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralLogParabola, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
33323 if (!SWIG_IsOK(res1)(res1 >= 0)) {
33324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralLogParabola_write" "', argument " "1"" of type '" "GModelSpectralLogParabola const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralLogParabola_write"
"', argument " "1"" of type '" "GModelSpectralLogParabola const *"
"'"); goto fail; } while(0)
;
33325 }
33326 arg1 = reinterpret_cast< GModelSpectralLogParabola * >(argp1);
33327 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0, 0)
;
33328 if (!SWIG_IsOK(res2)(res2 >= 0)) {
33329 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralLogParabola_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralLogParabola_write"
"', argument " "2"" of type '" "GXmlElement &""'"); goto
fail; } while(0)
;
33330 }
33331 if (!argp2) {
33332 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralLogParabola_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralLogParabola_write" "', argument "
"2"" of type '" "GXmlElement &""'"); goto fail; } while(
0)
;
33333 }
33334 arg2 = reinterpret_cast< GXmlElement * >(argp2);
33335 {
33336 try {
33337 ((GModelSpectralLogParabola const *)arg1)->write(*arg2);
33338 }
33339 catch (const GException::out_of_range& e) {
33340 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
33341 }
33342 catch (const GExceptionHandler& e) {
33343 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33344 }
33345 catch (const std::exception& e) {
33346 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33347 }
33348 }
33349 resultobj = SWIG_Py_Void();
33350 return resultobj;
33351fail:
33352 return NULL__null;
33353}
33354
33355
33356SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralLogParabola_prefactor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33357 PyObject *resultobj = 0;
33358 GModelSpectralLogParabola *arg1 = (GModelSpectralLogParabola *) 0 ;
33359 void *argp1 = 0 ;
33360 int res1 = 0 ;
33361 PyObject * obj0 = 0 ;
33362 double result;
33363
33364 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralLogParabola_prefactor",&obj0)) SWIG_failgoto fail;
33365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralLogParabola, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
33366 if (!SWIG_IsOK(res1)(res1 >= 0)) {
33367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralLogParabola_prefactor" "', argument " "1"" of type '" "GModelSpectralLogParabola const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralLogParabola_prefactor"
"', argument " "1"" of type '" "GModelSpectralLogParabola const *"
"'"); goto fail; } while(0)
;
33368 }
33369 arg1 = reinterpret_cast< GModelSpectralLogParabola * >(argp1);
33370 {
33371 try {
33372 result = (double)((GModelSpectralLogParabola const *)arg1)->prefactor();
33373 }
33374 catch (const GException::out_of_range& e) {
33375 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
33376 }
33377 catch (const GExceptionHandler& e) {
33378 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33379 }
33380 catch (const std::exception& e) {
33381 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33382 }
33383 }
33384 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
33385 return resultobj;
33386fail:
33387 return NULL__null;
33388}
33389
33390
33391SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralLogParabola_prefactor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33392 PyObject *resultobj = 0;
33393 GModelSpectralLogParabola *arg1 = (GModelSpectralLogParabola *) 0 ;
33394 double *arg2 = 0 ;
33395 void *argp1 = 0 ;
33396 int res1 = 0 ;
33397 double temp2 ;
33398 double val2 ;
33399 int ecode2 = 0 ;
33400 PyObject * obj0 = 0 ;
33401 PyObject * obj1 = 0 ;
33402
33403 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralLogParabola_prefactor",&obj0,&obj1)) SWIG_failgoto fail;
33404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralLogParabola, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
33405 if (!SWIG_IsOK(res1)(res1 >= 0)) {
33406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralLogParabola_prefactor" "', argument " "1"" of type '" "GModelSpectralLogParabola *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralLogParabola_prefactor"
"', argument " "1"" of type '" "GModelSpectralLogParabola *"
"'"); goto fail; } while(0)
;
33407 }
33408 arg1 = reinterpret_cast< GModelSpectralLogParabola * >(argp1);
33409 ecode2 = SWIG_AsVal_double(obj1, &val2);
33410 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
33411 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpectralLogParabola_prefactor" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpectralLogParabola_prefactor"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
33412 }
33413 temp2 = static_cast< double >(val2);
33414 arg2 = &temp2;
33415 {
33416 try {
33417 (arg1)->prefactor((double const &)*arg2);
33418 }
33419 catch (const GException::out_of_range& e) {
33420 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
33421 }
33422 catch (const GExceptionHandler& e) {
33423 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33424 }
33425 catch (const std::exception& e) {
33426 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33427 }
33428 }
33429 resultobj = SWIG_Py_Void();
33430 return resultobj;
33431fail:
33432 return NULL__null;
33433}
33434
33435
33436SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralLogParabola_prefactor(PyObject *self, PyObject *args) {
33437 int argc;
33438 PyObject *argv[3];
33439 int ii;
33440
33441 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
33442 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
33443 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
33444 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
33445 }
33446 if (argc == 1) {
33447 int _v;
33448 void *vptr = 0;
33449 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralLogParabola, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[28
], 0, 0)
;
33450 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
33451 if (_v) {
33452 return _wrap_GModelSpectralLogParabola_prefactor__SWIG_0(self, args);
33453 }
33454 }
33455 if (argc == 2) {
33456 int _v;
33457 void *vptr = 0;
33458 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralLogParabola, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[28
], 0, 0)
;
33459 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
33460 if (_v) {
33461 {
33462 int res = SWIG_AsVal_double(argv[1], NULL__null);
33463 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
33464 }
33465 if (_v) {
33466 return _wrap_GModelSpectralLogParabola_prefactor__SWIG_1(self, args);
33467 }
33468 }
33469 }
33470
33471fail:
33472 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpectralLogParabola_prefactor'.\n"
33473 " Possible C/C++ prototypes are:\n"
33474 " GModelSpectralLogParabola::prefactor() const\n"
33475 " GModelSpectralLogParabola::prefactor(double const &)\n");
33476 return 0;
33477}
33478
33479
33480SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralLogParabola_index__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33481 PyObject *resultobj = 0;
33482 GModelSpectralLogParabola *arg1 = (GModelSpectralLogParabola *) 0 ;
33483 void *argp1 = 0 ;
33484 int res1 = 0 ;
33485 PyObject * obj0 = 0 ;
33486 double result;
33487
33488 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralLogParabola_index",&obj0)) SWIG_failgoto fail;
33489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralLogParabola, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
33490 if (!SWIG_IsOK(res1)(res1 >= 0)) {
33491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralLogParabola_index" "', argument " "1"" of type '" "GModelSpectralLogParabola const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralLogParabola_index"
"', argument " "1"" of type '" "GModelSpectralLogParabola const *"
"'"); goto fail; } while(0)
;
33492 }
33493 arg1 = reinterpret_cast< GModelSpectralLogParabola * >(argp1);
33494 {
33495 try {
33496 result = (double)((GModelSpectralLogParabola const *)arg1)->index();
33497 }
33498 catch (const GException::out_of_range& e) {
33499 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
33500 }
33501 catch (const GExceptionHandler& e) {
33502 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33503 }
33504 catch (const std::exception& e) {
33505 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33506 }
33507 }
33508 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
33509 return resultobj;
33510fail:
33511 return NULL__null;
33512}
33513
33514
33515SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralLogParabola_index__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33516 PyObject *resultobj = 0;
33517 GModelSpectralLogParabola *arg1 = (GModelSpectralLogParabola *) 0 ;
33518 double *arg2 = 0 ;
33519 void *argp1 = 0 ;
33520 int res1 = 0 ;
33521 double temp2 ;
33522 double val2 ;
33523 int ecode2 = 0 ;
33524 PyObject * obj0 = 0 ;
33525 PyObject * obj1 = 0 ;
33526
33527 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralLogParabola_index",&obj0,&obj1)) SWIG_failgoto fail;
33528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralLogParabola, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
33529 if (!SWIG_IsOK(res1)(res1 >= 0)) {
33530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralLogParabola_index" "', argument " "1"" of type '" "GModelSpectralLogParabola *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralLogParabola_index"
"', argument " "1"" of type '" "GModelSpectralLogParabola *"
"'"); goto fail; } while(0)
;
33531 }
33532 arg1 = reinterpret_cast< GModelSpectralLogParabola * >(argp1);
33533 ecode2 = SWIG_AsVal_double(obj1, &val2);
33534 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
33535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpectralLogParabola_index" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpectralLogParabola_index"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
33536 }
33537 temp2 = static_cast< double >(val2);
33538 arg2 = &temp2;
33539 {
33540 try {
33541 (arg1)->index((double const &)*arg2);
33542 }
33543 catch (const GException::out_of_range& e) {
33544 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
33545 }
33546 catch (const GExceptionHandler& e) {
33547 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33548 }
33549 catch (const std::exception& e) {
33550 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33551 }
33552 }
33553 resultobj = SWIG_Py_Void();
33554 return resultobj;
33555fail:
33556 return NULL__null;
33557}
33558
33559
33560SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralLogParabola_index(PyObject *self, PyObject *args) {
33561 int argc;
33562 PyObject *argv[3];
33563 int ii;
33564
33565 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
33566 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
33567 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
33568 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
33569 }
33570 if (argc == 1) {
33571 int _v;
33572 void *vptr = 0;
33573 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralLogParabola, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[28
], 0, 0)
;
33574 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
33575 if (_v) {
33576 return _wrap_GModelSpectralLogParabola_index__SWIG_0(self, args);
33577 }
33578 }
33579 if (argc == 2) {
33580 int _v;
33581 void *vptr = 0;
33582 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralLogParabola, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[28
], 0, 0)
;
33583 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
33584 if (_v) {
33585 {
33586 int res = SWIG_AsVal_double(argv[1], NULL__null);
33587 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
33588 }
33589 if (_v) {
33590 return _wrap_GModelSpectralLogParabola_index__SWIG_1(self, args);
33591 }
33592 }
33593 }
33594
33595fail:
33596 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpectralLogParabola_index'.\n"
33597 " Possible C/C++ prototypes are:\n"
33598 " GModelSpectralLogParabola::index() const\n"
33599 " GModelSpectralLogParabola::index(double const &)\n");
33600 return 0;
33601}
33602
33603
33604SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralLogParabola_pivot__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33605 PyObject *resultobj = 0;
33606 GModelSpectralLogParabola *arg1 = (GModelSpectralLogParabola *) 0 ;
33607 void *argp1 = 0 ;
33608 int res1 = 0 ;
33609 PyObject * obj0 = 0 ;
33610 GEnergy result;
33611
33612 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralLogParabola_pivot",&obj0)) SWIG_failgoto fail;
33613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralLogParabola, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
33614 if (!SWIG_IsOK(res1)(res1 >= 0)) {
33615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralLogParabola_pivot" "', argument " "1"" of type '" "GModelSpectralLogParabola const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralLogParabola_pivot"
"', argument " "1"" of type '" "GModelSpectralLogParabola const *"
"'"); goto fail; } while(0)
;
33616 }
33617 arg1 = reinterpret_cast< GModelSpectralLogParabola * >(argp1);
33618 {
33619 try {
33620 result = ((GModelSpectralLogParabola const *)arg1)->pivot();
33621 }
33622 catch (const GException::out_of_range& e) {
33623 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
33624 }
33625 catch (const GExceptionHandler& e) {
33626 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33627 }
33628 catch (const std::exception& e) {
33629 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33630 }
33631 }
33632 resultobj = SWIG_NewPointerObj((new GEnergy(static_cast< const GEnergy& >(result))), SWIGTYPE_p_GEnergy, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GEnergy(static_cast<
const GEnergy& >(result))), swig_types[3], 0x1 | 0)
;
33633 return resultobj;
33634fail:
33635 return NULL__null;
33636}
33637
33638
33639SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralLogParabola_pivot__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33640 PyObject *resultobj = 0;
33641 GModelSpectralLogParabola *arg1 = (GModelSpectralLogParabola *) 0 ;
33642 GEnergy *arg2 = 0 ;
33643 void *argp1 = 0 ;
33644 int res1 = 0 ;
33645 void *argp2 = 0 ;
33646 int res2 = 0 ;
33647 PyObject * obj0 = 0 ;
33648 PyObject * obj1 = 0 ;
33649
33650 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralLogParabola_pivot",&obj0,&obj1)) SWIG_failgoto fail;
33651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralLogParabola, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
33652 if (!SWIG_IsOK(res1)(res1 >= 0)) {
33653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralLogParabola_pivot" "', argument " "1"" of type '" "GModelSpectralLogParabola *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralLogParabola_pivot"
"', argument " "1"" of type '" "GModelSpectralLogParabola *"
"'"); goto fail; } while(0)
;
33654 }
33655 arg1 = reinterpret_cast< GModelSpectralLogParabola * >(argp1);
33656 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
33657 if (!SWIG_IsOK(res2)(res2 >= 0)) {
33658 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelSpectralLogParabola_pivot" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelSpectralLogParabola_pivot"
"', argument " "2"" of type '" "GEnergy const &""'"); goto
fail; } while(0)
;
33659 }
33660 if (!argp2) {
33661 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelSpectralLogParabola_pivot" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelSpectralLogParabola_pivot" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
33662 }
33663 arg2 = reinterpret_cast< GEnergy * >(argp2);
33664 {
33665 try {
33666 (arg1)->pivot((GEnergy const &)*arg2);
33667 }
33668 catch (const GException::out_of_range& e) {
33669 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
33670 }
33671 catch (const GExceptionHandler& e) {
33672 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33673 }
33674 catch (const std::exception& e) {
33675 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33676 }
33677 }
33678 resultobj = SWIG_Py_Void();
33679 return resultobj;
33680fail:
33681 return NULL__null;
33682}
33683
33684
33685SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralLogParabola_pivot(PyObject *self, PyObject *args) {
33686 int argc;
33687 PyObject *argv[3];
33688 int ii;
33689
33690 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
33691 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
33692 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
33693 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
33694 }
33695 if (argc == 1) {
33696 int _v;
33697 void *vptr = 0;
33698 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralLogParabola, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[28
], 0, 0)
;
33699 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
33700 if (_v) {
33701 return _wrap_GModelSpectralLogParabola_pivot__SWIG_0(self, args);
33702 }
33703 }
33704 if (argc == 2) {
33705 int _v;
33706 void *vptr = 0;
33707 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralLogParabola, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[28
], 0, 0)
;
33708 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
33709 if (_v) {
33710 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[3], 0, 0);
33711 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
33712 if (_v) {
33713 return _wrap_GModelSpectralLogParabola_pivot__SWIG_1(self, args);
33714 }
33715 }
33716 }
33717
33718fail:
33719 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpectralLogParabola_pivot'.\n"
33720 " Possible C/C++ prototypes are:\n"
33721 " GModelSpectralLogParabola::pivot() const\n"
33722 " GModelSpectralLogParabola::pivot(GEnergy const &)\n");
33723 return 0;
33724}
33725
33726
33727SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralLogParabola_curvature__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33728 PyObject *resultobj = 0;
33729 GModelSpectralLogParabola *arg1 = (GModelSpectralLogParabola *) 0 ;
33730 void *argp1 = 0 ;
33731 int res1 = 0 ;
33732 PyObject * obj0 = 0 ;
33733 double result;
33734
33735 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralLogParabola_curvature",&obj0)) SWIG_failgoto fail;
33736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralLogParabola, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
33737 if (!SWIG_IsOK(res1)(res1 >= 0)) {
33738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralLogParabola_curvature" "', argument " "1"" of type '" "GModelSpectralLogParabola const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralLogParabola_curvature"
"', argument " "1"" of type '" "GModelSpectralLogParabola const *"
"'"); goto fail; } while(0)
;
33739 }
33740 arg1 = reinterpret_cast< GModelSpectralLogParabola * >(argp1);
33741 {
33742 try {
33743 result = (double)((GModelSpectralLogParabola const *)arg1)->curvature();
33744 }
33745 catch (const GException::out_of_range& e) {
33746 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
33747 }
33748 catch (const GExceptionHandler& e) {
33749 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33750 }
33751 catch (const std::exception& e) {
33752 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33753 }
33754 }
33755 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
33756 return resultobj;
33757fail:
33758 return NULL__null;
33759}
33760
33761
33762SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralLogParabola_curvature__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33763 PyObject *resultobj = 0;
33764 GModelSpectralLogParabola *arg1 = (GModelSpectralLogParabola *) 0 ;
33765 double *arg2 = 0 ;
33766 void *argp1 = 0 ;
33767 int res1 = 0 ;
33768 double temp2 ;
33769 double val2 ;
33770 int ecode2 = 0 ;
33771 PyObject * obj0 = 0 ;
33772 PyObject * obj1 = 0 ;
33773
33774 if (!PyArg_ParseTuple(args,(char *)"OO:GModelSpectralLogParabola_curvature",&obj0,&obj1)) SWIG_failgoto fail;
33775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralLogParabola, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
33776 if (!SWIG_IsOK(res1)(res1 >= 0)) {
33777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralLogParabola_curvature" "', argument " "1"" of type '" "GModelSpectralLogParabola *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralLogParabola_curvature"
"', argument " "1"" of type '" "GModelSpectralLogParabola *"
"'"); goto fail; } while(0)
;
33778 }
33779 arg1 = reinterpret_cast< GModelSpectralLogParabola * >(argp1);
33780 ecode2 = SWIG_AsVal_double(obj1, &val2);
33781 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
33782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelSpectralLogParabola_curvature" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelSpectralLogParabola_curvature"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
33783 }
33784 temp2 = static_cast< double >(val2);
33785 arg2 = &temp2;
33786 {
33787 try {
33788 (arg1)->curvature((double const &)*arg2);
33789 }
33790 catch (const GException::out_of_range& e) {
33791 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
33792 }
33793 catch (const GExceptionHandler& e) {
33794 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33795 }
33796 catch (const std::exception& e) {
33797 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33798 }
33799 }
33800 resultobj = SWIG_Py_Void();
33801 return resultobj;
33802fail:
33803 return NULL__null;
33804}
33805
33806
33807SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralLogParabola_curvature(PyObject *self, PyObject *args) {
33808 int argc;
33809 PyObject *argv[3];
33810 int ii;
33811
33812 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
33813 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
33814 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
33815 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
33816 }
33817 if (argc == 1) {
33818 int _v;
33819 void *vptr = 0;
33820 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralLogParabola, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[28
], 0, 0)
;
33821 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
33822 if (_v) {
33823 return _wrap_GModelSpectralLogParabola_curvature__SWIG_0(self, args);
33824 }
33825 }
33826 if (argc == 2) {
33827 int _v;
33828 void *vptr = 0;
33829 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelSpectralLogParabola, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[28
], 0, 0)
;
33830 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
33831 if (_v) {
33832 {
33833 int res = SWIG_AsVal_double(argv[1], NULL__null);
33834 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
33835 }
33836 if (_v) {
33837 return _wrap_GModelSpectralLogParabola_curvature__SWIG_1(self, args);
33838 }
33839 }
33840 }
33841
33842fail:
33843 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelSpectralLogParabola_curvature'.\n"
33844 " Possible C/C++ prototypes are:\n"
33845 " GModelSpectralLogParabola::curvature() const\n"
33846 " GModelSpectralLogParabola::curvature(double const &)\n");
33847 return 0;
33848}
33849
33850
33851SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelSpectralLogParabola_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33852 PyObject *resultobj = 0;
33853 GModelSpectralLogParabola *arg1 = (GModelSpectralLogParabola *) 0 ;
33854 void *argp1 = 0 ;
33855 int res1 = 0 ;
33856 PyObject * obj0 = 0 ;
33857 GModelSpectralLogParabola result;
33858
33859 if (!PyArg_ParseTuple(args,(char *)"O:GModelSpectralLogParabola_copy",&obj0)) SWIG_failgoto fail;
33860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelSpectralLogParabola, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
33861 if (!SWIG_IsOK(res1)(res1 >= 0)) {
33862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelSpectralLogParabola_copy" "', argument " "1"" of type '" "GModelSpectralLogParabola *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelSpectralLogParabola_copy"
"', argument " "1"" of type '" "GModelSpectralLogParabola *"
"'"); goto fail; } while(0)
;
33863 }
33864 arg1 = reinterpret_cast< GModelSpectralLogParabola * >(argp1);
33865 {
33866 try {
33867 result = GModelSpectralLogParabola_copy(arg1);
33868 }
33869 catch (const GException::out_of_range& e) {
33870 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
33871 }
33872 catch (const GExceptionHandler& e) {
33873 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33874 }
33875 catch (const std::exception& e) {
33876 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33877 }
33878 }
33879 resultobj = SWIG_NewPointerObj((new GModelSpectralLogParabola(static_cast< const GModelSpectralLogParabola& >(result))), SWIGTYPE_p_GModelSpectralLogParabola, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GModelSpectralLogParabola
(static_cast< const GModelSpectralLogParabola& >(result
))), swig_types[28], 0x1 | 0)
;
33880 return resultobj;
33881fail:
33882 return NULL__null;
33883}
33884
33885
33886SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GModelSpectralLogParabola_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33887 PyObject *obj;
33888 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
33889 SWIG_TypeNewClientData(SWIGTYPE_p_GModelSpectralLogParabolaswig_types[28], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
33890 return SWIG_Py_Void();
33891}
33892
33893SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GModelTemporal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33894 PyObject *resultobj = 0;
33895 GModelTemporal *arg1 = (GModelTemporal *) 0 ;
33896 void *argp1 = 0 ;
33897 int res1 = 0 ;
33898 PyObject * obj0 = 0 ;
33899
33900 if (!PyArg_ParseTuple(args,(char *)"O:delete_GModelTemporal",&obj0)) SWIG_failgoto fail;
33901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelTemporal, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0x1 | 0, 0)
;
33902 if (!SWIG_IsOK(res1)(res1 >= 0)) {
33903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GModelTemporal" "', argument " "1"" of type '" "GModelTemporal *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GModelTemporal" "', argument "
"1"" of type '" "GModelTemporal *""'"); goto fail; } while(0
)
;
33904 }
33905 arg1 = reinterpret_cast< GModelTemporal * >(argp1);
33906 {
33907 try {
33908 delete arg1;
33909 }
33910 catch (const GException::out_of_range& e) {
33911 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
33912 }
33913 catch (const GExceptionHandler& e) {
33914 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33915 }
33916 catch (const std::exception& e) {
33917 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33918 }
33919 }
33920 resultobj = SWIG_Py_Void();
33921 return resultobj;
33922fail:
33923 return NULL__null;
33924}
33925
33926
33927SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelTemporal_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33928 PyObject *resultobj = 0;
33929 GModelTemporal *arg1 = (GModelTemporal *) 0 ;
33930 void *argp1 = 0 ;
33931 int res1 = 0 ;
33932 PyObject * obj0 = 0 ;
33933
33934 if (!PyArg_ParseTuple(args,(char *)"O:GModelTemporal_clear",&obj0)) SWIG_failgoto fail;
33935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelTemporal, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
33936 if (!SWIG_IsOK(res1)(res1 >= 0)) {
33937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelTemporal_clear" "', argument " "1"" of type '" "GModelTemporal *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelTemporal_clear" "', argument "
"1"" of type '" "GModelTemporal *""'"); goto fail; } while(0
)
;
33938 }
33939 arg1 = reinterpret_cast< GModelTemporal * >(argp1);
33940 {
33941 try {
33942 (arg1)->clear();
33943 }
33944 catch (const GException::out_of_range& e) {
33945 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
33946 }
33947 catch (const GExceptionHandler& e) {
33948 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33949 }
33950 catch (const std::exception& e) {
33951 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33952 }
33953 }
33954 resultobj = SWIG_Py_Void();
33955 return resultobj;
33956fail:
33957 return NULL__null;
33958}
33959
33960
33961SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelTemporal_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33962 PyObject *resultobj = 0;
33963 GModelTemporal *arg1 = (GModelTemporal *) 0 ;
33964 void *argp1 = 0 ;
33965 int res1 = 0 ;
33966 PyObject * obj0 = 0 ;
33967 GModelTemporal *result = 0 ;
33968
33969 if (!PyArg_ParseTuple(args,(char *)"O:GModelTemporal_clone",&obj0)) SWIG_failgoto fail;
33970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelTemporal, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
33971 if (!SWIG_IsOK(res1)(res1 >= 0)) {
33972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelTemporal_clone" "', argument " "1"" of type '" "GModelTemporal const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelTemporal_clone" "', argument "
"1"" of type '" "GModelTemporal const *""'"); goto fail; } while
(0)
;
33973 }
33974 arg1 = reinterpret_cast< GModelTemporal * >(argp1);
33975 {
33976 try {
33977 result = (GModelTemporal *)((GModelTemporal const *)arg1)->clone();
33978 }
33979 catch (const GException::out_of_range& e) {
33980 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
33981 }
33982 catch (const GExceptionHandler& e) {
33983 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33984 }
33985 catch (const std::exception& e) {
33986 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
33987 }
33988 }
33989 {
33990 if (dynamic_cast<GModelTemporalConst*>(result) != NULL__null) {
33991 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelTemporalConst, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[34], 0
| 0)
;
33992 }
33993 else {
33994 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelTemporal, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[33], 0
| 0)
;
33995 }
33996 }
33997 return resultobj;
33998fail:
33999 return NULL__null;
34000}
34001
34002
34003SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelTemporal_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34004 PyObject *resultobj = 0;
34005 GModelTemporal *arg1 = (GModelTemporal *) 0 ;
34006 void *argp1 = 0 ;
34007 int res1 = 0 ;
34008 PyObject * obj0 = 0 ;
34009 std::string result;
34010
34011 if (!PyArg_ParseTuple(args,(char *)"O:GModelTemporal_type",&obj0)) SWIG_failgoto fail;
34012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelTemporal, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
34013 if (!SWIG_IsOK(res1)(res1 >= 0)) {
34014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelTemporal_type" "', argument " "1"" of type '" "GModelTemporal const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelTemporal_type" "', argument "
"1"" of type '" "GModelTemporal const *""'"); goto fail; } while
(0)
;
34015 }
34016 arg1 = reinterpret_cast< GModelTemporal * >(argp1);
34017 {
34018 try {
34019 result = ((GModelTemporal const *)arg1)->type();
34020 }
34021 catch (const GException::out_of_range& e) {
34022 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
34023 }
34024 catch (const GExceptionHandler& e) {
34025 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34026 }
34027 catch (const std::exception& e) {
34028 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34029 }
34030 }
34031 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
34032 return resultobj;
34033fail:
34034 return NULL__null;
34035}
34036
34037
34038SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelTemporal_eval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34039 PyObject *resultobj = 0;
34040 GModelTemporal *arg1 = (GModelTemporal *) 0 ;
34041 GTime *arg2 = 0 ;
34042 void *argp1 = 0 ;
34043 int res1 = 0 ;
34044 void *argp2 = 0 ;
34045 int res2 = 0 ;
34046 PyObject * obj0 = 0 ;
34047 PyObject * obj1 = 0 ;
34048 double result;
34049
34050 if (!PyArg_ParseTuple(args,(char *)"OO:GModelTemporal_eval",&obj0,&obj1)) SWIG_failgoto fail;
34051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelTemporal, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
34052 if (!SWIG_IsOK(res1)(res1 >= 0)) {
34053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelTemporal_eval" "', argument " "1"" of type '" "GModelTemporal const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelTemporal_eval" "', argument "
"1"" of type '" "GModelTemporal const *""'"); goto fail; } while
(0)
;
34054 }
34055 arg1 = reinterpret_cast< GModelTemporal * >(argp1);
34056 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[46]
, 0 | 0, 0)
;
34057 if (!SWIG_IsOK(res2)(res2 >= 0)) {
34058 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelTemporal_eval" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelTemporal_eval" "', argument "
"2"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
34059 }
34060 if (!argp2) {
34061 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelTemporal_eval" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelTemporal_eval" "', argument " "2"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
34062 }
34063 arg2 = reinterpret_cast< GTime * >(argp2);
34064 {
34065 try {
34066 result = (double)((GModelTemporal const *)arg1)->eval((GTime const &)*arg2);
34067 }
34068 catch (const GException::out_of_range& e) {
34069 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
34070 }
34071 catch (const GExceptionHandler& e) {
34072 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34073 }
34074 catch (const std::exception& e) {
34075 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34076 }
34077 }
34078 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
34079 return resultobj;
34080fail:
34081 return NULL__null;
34082}
34083
34084
34085SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelTemporal_eval_gradients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34086 PyObject *resultobj = 0;
34087 GModelTemporal *arg1 = (GModelTemporal *) 0 ;
34088 GTime *arg2 = 0 ;
34089 void *argp1 = 0 ;
34090 int res1 = 0 ;
34091 void *argp2 = 0 ;
34092 int res2 = 0 ;
34093 PyObject * obj0 = 0 ;
34094 PyObject * obj1 = 0 ;
34095 double result;
34096
34097 if (!PyArg_ParseTuple(args,(char *)"OO:GModelTemporal_eval_gradients",&obj0,&obj1)) SWIG_failgoto fail;
34098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelTemporal, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
34099 if (!SWIG_IsOK(res1)(res1 >= 0)) {
34100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelTemporal_eval_gradients" "', argument " "1"" of type '" "GModelTemporal *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelTemporal_eval_gradients"
"', argument " "1"" of type '" "GModelTemporal *""'"); goto fail
; } while(0)
;
34101 }
34102 arg1 = reinterpret_cast< GModelTemporal * >(argp1);
34103 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[46]
, 0 | 0, 0)
;
34104 if (!SWIG_IsOK(res2)(res2 >= 0)) {
34105 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelTemporal_eval_gradients" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelTemporal_eval_gradients"
"', argument " "2"" of type '" "GTime const &""'"); goto
fail; } while(0)
;
34106 }
34107 if (!argp2) {
34108 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelTemporal_eval_gradients" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelTemporal_eval_gradients" "', argument "
"2"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
34109 }
34110 arg2 = reinterpret_cast< GTime * >(argp2);
34111 {
34112 try {
34113 result = (double)(arg1)->eval_gradients((GTime const &)*arg2);
34114 }
34115 catch (const GException::out_of_range& e) {
34116 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
34117 }
34118 catch (const GExceptionHandler& e) {
34119 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34120 }
34121 catch (const std::exception& e) {
34122 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34123 }
34124 }
34125 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
34126 return resultobj;
34127fail:
34128 return NULL__null;
34129}
34130
34131
34132SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelTemporal_mc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34133 PyObject *resultobj = 0;
34134 GModelTemporal *arg1 = (GModelTemporal *) 0 ;
34135 double *arg2 = 0 ;
34136 GTime *arg3 = 0 ;
34137 GTime *arg4 = 0 ;
34138 GRan *arg5 = 0 ;
34139 void *argp1 = 0 ;
34140 int res1 = 0 ;
34141 double temp2 ;
34142 double val2 ;
34143 int ecode2 = 0 ;
34144 void *argp3 = 0 ;
34145 int res3 = 0 ;
34146 void *argp4 = 0 ;
34147 int res4 = 0 ;
34148 void *argp5 = 0 ;
34149 int res5 = 0 ;
34150 PyObject * obj0 = 0 ;
34151 PyObject * obj1 = 0 ;
34152 PyObject * obj2 = 0 ;
34153 PyObject * obj3 = 0 ;
34154 PyObject * obj4 = 0 ;
34155 GTimes result;
34156
34157 if (!PyArg_ParseTuple(args,(char *)"OOOOO:GModelTemporal_mc",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_failgoto fail;
34158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelTemporal, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
34159 if (!SWIG_IsOK(res1)(res1 >= 0)) {
34160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelTemporal_mc" "', argument " "1"" of type '" "GModelTemporal const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelTemporal_mc" "', argument "
"1"" of type '" "GModelTemporal const *""'"); goto fail; } while
(0)
;
34161 }
34162 arg1 = reinterpret_cast< GModelTemporal * >(argp1);
34163 ecode2 = SWIG_AsVal_double(obj1, &val2);
34164 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
34165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelTemporal_mc" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelTemporal_mc" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
34166 }
34167 temp2 = static_cast< double >(val2);
34168 arg2 = &temp2;
34169 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[46]
, 0 | 0, 0)
;
34170 if (!SWIG_IsOK(res3)(res3 >= 0)) {
34171 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelTemporal_mc" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelTemporal_mc" "', argument "
"3"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
34172 }
34173 if (!argp3) {
34174 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelTemporal_mc" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelTemporal_mc" "', argument " "3"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
34175 }
34176 arg3 = reinterpret_cast< GTime * >(argp3);
34177 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[46]
, 0 | 0, 0)
;
34178 if (!SWIG_IsOK(res4)(res4 >= 0)) {
34179 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelTemporal_mc" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelTemporal_mc" "', argument "
"4"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
34180 }
34181 if (!argp4) {
34182 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelTemporal_mc" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelTemporal_mc" "', argument " "4"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
34183 }
34184 arg4 = reinterpret_cast< GTime * >(argp4);
34185 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_GRan, 0 )SWIG_Python_ConvertPtrAndOwn(obj4, &argp5, swig_types[42]
, 0, 0)
;
34186 if (!SWIG_IsOK(res5)(res5 >= 0)) {
34187 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GModelTemporal_mc" "', argument " "5"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res5 != (
-1)) ? res5 : -5)), "in method '" "GModelTemporal_mc" "', argument "
"5"" of type '" "GRan &""'"); goto fail; } while(0)
;
34188 }
34189 if (!argp5) {
34190 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelTemporal_mc" "', argument " "5"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelTemporal_mc" "', argument " "5"" of type '"
"GRan &""'"); goto fail; } while(0)
;
34191 }
34192 arg5 = reinterpret_cast< GRan * >(argp5);
34193 {
34194 try {
34195 result = ((GModelTemporal const *)arg1)->mc((double const &)*arg2,(GTime const &)*arg3,(GTime const &)*arg4,*arg5);
34196 }
34197 catch (const GException::out_of_range& e) {
34198 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
34199 }
34200 catch (const GExceptionHandler& e) {
34201 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34202 }
34203 catch (const std::exception& e) {
34204 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34205 }
34206 }
34207 resultobj = SWIG_NewPointerObj((new GTimes(static_cast< const GTimes& >(result))), SWIGTYPE_p_GTimes, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GTimes(static_cast<
const GTimes& >(result))), swig_types[47], 0x1 | 0)
;
34208 return resultobj;
34209fail:
34210 return NULL__null;
34211}
34212
34213
34214SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelTemporal_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34215 PyObject *resultobj = 0;
34216 GModelTemporal *arg1 = (GModelTemporal *) 0 ;
34217 GXmlElement *arg2 = 0 ;
34218 void *argp1 = 0 ;
34219 int res1 = 0 ;
34220 void *argp2 = 0 ;
34221 int res2 = 0 ;
34222 PyObject * obj0 = 0 ;
34223 PyObject * obj1 = 0 ;
34224
34225 if (!PyArg_ParseTuple(args,(char *)"OO:GModelTemporal_read",&obj0,&obj1)) SWIG_failgoto fail;
34226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelTemporal, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
34227 if (!SWIG_IsOK(res1)(res1 >= 0)) {
34228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelTemporal_read" "', argument " "1"" of type '" "GModelTemporal *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelTemporal_read" "', argument "
"1"" of type '" "GModelTemporal *""'"); goto fail; } while(0
)
;
34229 }
34230 arg1 = reinterpret_cast< GModelTemporal * >(argp1);
34231 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0 | 0, 0)
;
34232 if (!SWIG_IsOK(res2)(res2 >= 0)) {
34233 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelTemporal_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelTemporal_read" "', argument "
"2"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
34234 }
34235 if (!argp2) {
34236 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelTemporal_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelTemporal_read" "', argument " "2"" of type '"
"GXmlElement const &""'"); goto fail; } while(0)
;
34237 }
34238 arg2 = reinterpret_cast< GXmlElement * >(argp2);
34239 {
34240 try {
34241 (arg1)->read((GXmlElement const &)*arg2);
34242 }
34243 catch (const GException::out_of_range& e) {
34244 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
34245 }
34246 catch (const GExceptionHandler& e) {
34247 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34248 }
34249 catch (const std::exception& e) {
34250 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34251 }
34252 }
34253 resultobj = SWIG_Py_Void();
34254 return resultobj;
34255fail:
34256 return NULL__null;
34257}
34258
34259
34260SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelTemporal_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34261 PyObject *resultobj = 0;
34262 GModelTemporal *arg1 = (GModelTemporal *) 0 ;
34263 GXmlElement *arg2 = 0 ;
34264 void *argp1 = 0 ;
34265 int res1 = 0 ;
34266 void *argp2 = 0 ;
34267 int res2 = 0 ;
34268 PyObject * obj0 = 0 ;
34269 PyObject * obj1 = 0 ;
34270
34271 if (!PyArg_ParseTuple(args,(char *)"OO:GModelTemporal_write",&obj0,&obj1)) SWIG_failgoto fail;
34272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelTemporal, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
34273 if (!SWIG_IsOK(res1)(res1 >= 0)) {
34274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelTemporal_write" "', argument " "1"" of type '" "GModelTemporal const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelTemporal_write" "', argument "
"1"" of type '" "GModelTemporal const *""'"); goto fail; } while
(0)
;
34275 }
34276 arg1 = reinterpret_cast< GModelTemporal * >(argp1);
34277 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0, 0)
;
34278 if (!SWIG_IsOK(res2)(res2 >= 0)) {
34279 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelTemporal_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelTemporal_write" "', argument "
"2"" of type '" "GXmlElement &""'"); goto fail; } while(
0)
;
34280 }
34281 if (!argp2) {
34282 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelTemporal_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelTemporal_write" "', argument " "2"" of type '"
"GXmlElement &""'"); goto fail; } while(0)
;
34283 }
34284 arg2 = reinterpret_cast< GXmlElement * >(argp2);
34285 {
34286 try {
34287 ((GModelTemporal const *)arg1)->write(*arg2);
34288 }
34289 catch (const GException::out_of_range& e) {
34290 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
34291 }
34292 catch (const GExceptionHandler& e) {
34293 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34294 }
34295 catch (const std::exception& e) {
34296 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34297 }
34298 }
34299 resultobj = SWIG_Py_Void();
34300 return resultobj;
34301fail:
34302 return NULL__null;
34303}
34304
34305
34306SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelTemporal_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34307 PyObject *resultobj = 0;
34308 GModelTemporal *arg1 = (GModelTemporal *) 0 ;
34309 void *argp1 = 0 ;
34310 int res1 = 0 ;
34311 PyObject * obj0 = 0 ;
34312 int result;
34313
34314 if (!PyArg_ParseTuple(args,(char *)"O:GModelTemporal_size",&obj0)) SWIG_failgoto fail;
34315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelTemporal, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
34316 if (!SWIG_IsOK(res1)(res1 >= 0)) {
34317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelTemporal_size" "', argument " "1"" of type '" "GModelTemporal const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelTemporal_size" "', argument "
"1"" of type '" "GModelTemporal const *""'"); goto fail; } while
(0)
;
34318 }
34319 arg1 = reinterpret_cast< GModelTemporal * >(argp1);
34320 {
34321 try {
34322 result = (int)((GModelTemporal const *)arg1)->size();
34323 }
34324 catch (const GException::out_of_range& e) {
34325 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
34326 }
34327 catch (const GExceptionHandler& e) {
34328 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34329 }
34330 catch (const std::exception& e) {
34331 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34332 }
34333 }
34334 resultobj = SWIG_From_int(static_cast< int >(result));
34335 return resultobj;
34336fail:
34337 return NULL__null;
34338}
34339
34340
34341SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelTemporal_autoscale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34342 PyObject *resultobj = 0;
34343 GModelTemporal *arg1 = (GModelTemporal *) 0 ;
34344 void *argp1 = 0 ;
34345 int res1 = 0 ;
34346 PyObject * obj0 = 0 ;
34347
34348 if (!PyArg_ParseTuple(args,(char *)"O:GModelTemporal_autoscale",&obj0)) SWIG_failgoto fail;
34349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelTemporal, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
34350 if (!SWIG_IsOK(res1)(res1 >= 0)) {
34351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelTemporal_autoscale" "', argument " "1"" of type '" "GModelTemporal *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelTemporal_autoscale" "', argument "
"1"" of type '" "GModelTemporal *""'"); goto fail; } while(0
)
;
34352 }
34353 arg1 = reinterpret_cast< GModelTemporal * >(argp1);
34354 {
34355 try {
34356 (arg1)->autoscale();
34357 }
34358 catch (const GException::out_of_range& e) {
34359 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
34360 }
34361 catch (const GExceptionHandler& e) {
34362 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34363 }
34364 catch (const std::exception& e) {
34365 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34366 }
34367 }
34368 resultobj = SWIG_Py_Void();
34369 return resultobj;
34370fail:
34371 return NULL__null;
34372}
34373
34374
34375SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelTemporal___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34376 PyObject *resultobj = 0;
34377 GModelTemporal *arg1 = (GModelTemporal *) 0 ;
34378 int *arg2 = 0 ;
34379 void *argp1 = 0 ;
34380 int res1 = 0 ;
34381 int temp2 ;
34382 int val2 ;
34383 int ecode2 = 0 ;
34384 PyObject * obj0 = 0 ;
34385 PyObject * obj1 = 0 ;
34386 GModelPar *result = 0 ;
34387
34388 if (!PyArg_ParseTuple(args,(char *)"OO:GModelTemporal___getitem__",&obj0,&obj1)) SWIG_failgoto fail;
34389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelTemporal, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
34390 if (!SWIG_IsOK(res1)(res1 >= 0)) {
34391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelTemporal___getitem__" "', argument " "1"" of type '" "GModelTemporal *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelTemporal___getitem__"
"', argument " "1"" of type '" "GModelTemporal *""'"); goto fail
; } while(0)
;
34392 }
34393 arg1 = reinterpret_cast< GModelTemporal * >(argp1);
34394 ecode2 = SWIG_AsVal_int(obj1, &val2);
34395 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
34396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelTemporal___getitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelTemporal___getitem__"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
34397 }
34398 temp2 = static_cast< int >(val2);
34399 arg2 = &temp2;
34400 {
34401 try {
34402 result = (GModelPar *) &GModelTemporal___getitem____SWIG_0(arg1,(int const &)*arg2);
34403 }
34404 catch (const GException::out_of_range& e) {
34405 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
34406 }
34407 catch (const GExceptionHandler& e) {
34408 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34409 }
34410 catch (const std::exception& e) {
34411 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34412 }
34413 }
34414 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelPar, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], 0 |
0)
;
34415 return resultobj;
34416fail:
34417 return NULL__null;
34418}
34419
34420
34421SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelTemporal___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34422 PyObject *resultobj = 0;
34423 GModelTemporal *arg1 = (GModelTemporal *) 0 ;
34424 std::string *arg2 = 0 ;
34425 void *argp1 = 0 ;
34426 int res1 = 0 ;
34427 int res2 = SWIG_OLDOBJ((0)) ;
34428 PyObject * obj0 = 0 ;
34429 PyObject * obj1 = 0 ;
34430 GModelPar *result = 0 ;
34431
34432 if (!PyArg_ParseTuple(args,(char *)"OO:GModelTemporal___getitem__",&obj0,&obj1)) SWIG_failgoto fail;
34433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelTemporal, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
34434 if (!SWIG_IsOK(res1)(res1 >= 0)) {
34435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelTemporal___getitem__" "', argument " "1"" of type '" "GModelTemporal *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelTemporal___getitem__"
"', argument " "1"" of type '" "GModelTemporal *""'"); goto fail
; } while(0)
;
34436 }
34437 arg1 = reinterpret_cast< GModelTemporal * >(argp1);
34438 {
34439 std::string *ptr = (std::string *)0;
34440 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
34441 if (!SWIG_IsOK(res2)(res2 >= 0)) {
34442 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelTemporal___getitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelTemporal___getitem__"
"', argument " "2"" of type '" "std::string const &""'")
; goto fail; } while(0)
;
34443 }
34444 if (!ptr) {
34445 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelTemporal___getitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelTemporal___getitem__" "', argument " "2"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
34446 }
34447 arg2 = ptr;
34448 }
34449 {
34450 try {
34451 result = (GModelPar *) &GModelTemporal___getitem____SWIG_1(arg1,(std::string const &)*arg2);
34452 }
34453 catch (const GException::out_of_range& e) {
34454 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
34455 }
34456 catch (const GExceptionHandler& e) {
34457 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34458 }
34459 catch (const std::exception& e) {
34460 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34461 }
34462 }
34463 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelPar, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], 0 |
0)
;
34464 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
34465 return resultobj;
34466fail:
34467 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
34468 return NULL__null;
34469}
34470
34471
34472SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelTemporal___getitem__(PyObject *self, PyObject *args) {
34473 int argc;
34474 PyObject *argv[3];
34475 int ii;
34476
34477 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
34478 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
34479 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
34480 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
34481 }
34482 if (argc == 2) {
34483 int _v;
34484 void *vptr = 0;
34485 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelTemporal, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[33
], 0, 0)
;
34486 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
34487 if (_v) {
34488 {
34489 int res = SWIG_AsVal_int(argv[1], NULL__null);
34490 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
34491 }
34492 if (_v) {
34493 return _wrap_GModelTemporal___getitem____SWIG_0(self, args);
34494 }
34495 }
34496 }
34497 if (argc == 2) {
34498 int _v;
34499 void *vptr = 0;
34500 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelTemporal, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[33
], 0, 0)
;
34501 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
34502 if (_v) {
34503 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
34504 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
34505 if (_v) {
34506 return _wrap_GModelTemporal___getitem____SWIG_1(self, args);
34507 }
34508 }
34509 }
34510
34511fail:
34512 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelTemporal___getitem__'.\n"
34513 " Possible C/C++ prototypes are:\n"
34514 " GModelTemporal::__getitem__(int const &)\n"
34515 " GModelTemporal::__getitem__(std::string const &)\n");
34516 return 0;
34517}
34518
34519
34520SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelTemporal___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34521 PyObject *resultobj = 0;
34522 GModelTemporal *arg1 = (GModelTemporal *) 0 ;
34523 int *arg2 = 0 ;
34524 GModelPar *arg3 = 0 ;
34525 void *argp1 = 0 ;
34526 int res1 = 0 ;
34527 int temp2 ;
34528 int val2 ;
34529 int ecode2 = 0 ;
34530 void *argp3 = 0 ;
34531 int res3 = 0 ;
34532 PyObject * obj0 = 0 ;
34533 PyObject * obj1 = 0 ;
34534 PyObject * obj2 = 0 ;
34535
34536 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelTemporal___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
34537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelTemporal, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
34538 if (!SWIG_IsOK(res1)(res1 >= 0)) {
34539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelTemporal___setitem__" "', argument " "1"" of type '" "GModelTemporal *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelTemporal___setitem__"
"', argument " "1"" of type '" "GModelTemporal *""'"); goto fail
; } while(0)
;
34540 }
34541 arg1 = reinterpret_cast< GModelTemporal * >(argp1);
34542 ecode2 = SWIG_AsVal_int(obj1, &val2);
34543 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
34544 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelTemporal___setitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelTemporal___setitem__"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
34545 }
34546 temp2 = static_cast< int >(val2);
34547 arg2 = &temp2;
34548 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GModelPar, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[8],
0 | 0, 0)
;
34549 if (!SWIG_IsOK(res3)(res3 >= 0)) {
34550 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelTemporal___setitem__" "', argument " "3"" of type '" "GModelPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelTemporal___setitem__"
"', argument " "3"" of type '" "GModelPar const &""'"); goto
fail; } while(0)
;
34551 }
34552 if (!argp3) {
34553 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelTemporal___setitem__" "', argument " "3"" of type '" "GModelPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelTemporal___setitem__" "', argument " "3"
" of type '" "GModelPar const &""'"); goto fail; } while(
0)
;
34554 }
34555 arg3 = reinterpret_cast< GModelPar * >(argp3);
34556 {
34557 try {
34558 GModelTemporal___setitem____SWIG_0(arg1,(int const &)*arg2,(GModelPar const &)*arg3);
34559 }
34560 catch (const GException::out_of_range& e) {
34561 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
34562 }
34563 catch (const GExceptionHandler& e) {
34564 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34565 }
34566 catch (const std::exception& e) {
34567 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34568 }
34569 }
34570 resultobj = SWIG_Py_Void();
34571 return resultobj;
34572fail:
34573 return NULL__null;
34574}
34575
34576
34577SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelTemporal___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34578 PyObject *resultobj = 0;
34579 GModelTemporal *arg1 = (GModelTemporal *) 0 ;
34580 std::string *arg2 = 0 ;
34581 GModelPar *arg3 = 0 ;
34582 void *argp1 = 0 ;
34583 int res1 = 0 ;
34584 int res2 = SWIG_OLDOBJ((0)) ;
34585 void *argp3 = 0 ;
34586 int res3 = 0 ;
34587 PyObject * obj0 = 0 ;
34588 PyObject * obj1 = 0 ;
34589 PyObject * obj2 = 0 ;
34590
34591 if (!PyArg_ParseTuple(args,(char *)"OOO:GModelTemporal___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
34592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelTemporal, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
34593 if (!SWIG_IsOK(res1)(res1 >= 0)) {
34594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelTemporal___setitem__" "', argument " "1"" of type '" "GModelTemporal *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelTemporal___setitem__"
"', argument " "1"" of type '" "GModelTemporal *""'"); goto fail
; } while(0)
;
34595 }
34596 arg1 = reinterpret_cast< GModelTemporal * >(argp1);
34597 {
34598 std::string *ptr = (std::string *)0;
34599 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
34600 if (!SWIG_IsOK(res2)(res2 >= 0)) {
34601 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelTemporal___setitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelTemporal___setitem__"
"', argument " "2"" of type '" "std::string const &""'")
; goto fail; } while(0)
;
34602 }
34603 if (!ptr) {
34604 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelTemporal___setitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelTemporal___setitem__" "', argument " "2"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
34605 }
34606 arg2 = ptr;
34607 }
34608 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GModelPar, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[8],
0 | 0, 0)
;
34609 if (!SWIG_IsOK(res3)(res3 >= 0)) {
34610 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelTemporal___setitem__" "', argument " "3"" of type '" "GModelPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelTemporal___setitem__"
"', argument " "3"" of type '" "GModelPar const &""'"); goto
fail; } while(0)
;
34611 }
34612 if (!argp3) {
34613 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelTemporal___setitem__" "', argument " "3"" of type '" "GModelPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelTemporal___setitem__" "', argument " "3"
" of type '" "GModelPar const &""'"); goto fail; } while(
0)
;
34614 }
34615 arg3 = reinterpret_cast< GModelPar * >(argp3);
34616 {
34617 try {
34618 GModelTemporal___setitem____SWIG_1(arg1,(std::string const &)*arg2,(GModelPar const &)*arg3);
34619 }
34620 catch (const GException::out_of_range& e) {
34621 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
34622 }
34623 catch (const GExceptionHandler& e) {
34624 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34625 }
34626 catch (const std::exception& e) {
34627 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34628 }
34629 }
34630 resultobj = SWIG_Py_Void();
34631 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
34632 return resultobj;
34633fail:
34634 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
34635 return NULL__null;
34636}
34637
34638
34639SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelTemporal___setitem__(PyObject *self, PyObject *args) {
34640 int argc;
34641 PyObject *argv[4];
34642 int ii;
34643
34644 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
34645 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
34646 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
34647 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
34648 }
34649 if (argc == 3) {
34650 int _v;
34651 void *vptr = 0;
34652 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelTemporal, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[33
], 0, 0)
;
34653 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
34654 if (_v) {
34655 {
34656 int res = SWIG_AsVal_int(argv[1], NULL__null);
34657 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
34658 }
34659 if (_v) {
34660 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GModelPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[8], 0, 0);
34661 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
34662 if (_v) {
34663 return _wrap_GModelTemporal___setitem____SWIG_0(self, args);
34664 }
34665 }
34666 }
34667 }
34668 if (argc == 3) {
34669 int _v;
34670 void *vptr = 0;
34671 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelTemporal, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[33
], 0, 0)
;
34672 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
34673 if (_v) {
34674 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
34675 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
34676 if (_v) {
34677 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GModelPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[8], 0, 0);
34678 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
34679 if (_v) {
34680 return _wrap_GModelTemporal___setitem____SWIG_1(self, args);
34681 }
34682 }
34683 }
34684 }
34685
34686fail:
34687 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelTemporal___setitem__'.\n"
34688 " Possible C/C++ prototypes are:\n"
34689 " GModelTemporal::__setitem__(int const &,GModelPar const &)\n"
34690 " GModelTemporal::__setitem__(std::string const &,GModelPar const &)\n");
34691 return 0;
34692}
34693
34694
34695SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GModelTemporal_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34696 PyObject *obj;
34697 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
34698 SWIG_TypeNewClientData(SWIGTYPE_p_GModelTemporalswig_types[33], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
34699 return SWIG_Py_Void();
34700}
34701
34702SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelTemporalRegistry__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34703 PyObject *resultobj = 0;
34704 GModelTemporalRegistry *result = 0 ;
34705
34706 if (!PyArg_ParseTuple(args,(char *)":new_GModelTemporalRegistry")) SWIG_failgoto fail;
34707 {
34708 try {
34709 result = (GModelTemporalRegistry *)new GModelTemporalRegistry();
34710 }
34711 catch (const GException::out_of_range& e) {
34712 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
34713 }
34714 catch (const GExceptionHandler& e) {
34715 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34716 }
34717 catch (const std::exception& e) {
34718 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34719 }
34720 }
34721 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelTemporalRegistry, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[35], (
(0x1 << 1) | 0x1) | 0)
;
34722 return resultobj;
34723fail:
34724 return NULL__null;
34725}
34726
34727
34728SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelTemporalRegistry__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34729 PyObject *resultobj = 0;
34730 GModelTemporal *arg1 = (GModelTemporal *) 0 ;
34731 void *argp1 = 0 ;
34732 int res1 = 0 ;
34733 PyObject * obj0 = 0 ;
34734 GModelTemporalRegistry *result = 0 ;
34735
34736 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelTemporalRegistry",&obj0)) SWIG_failgoto fail;
34737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelTemporal, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
34738 if (!SWIG_IsOK(res1)(res1 >= 0)) {
34739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelTemporalRegistry" "', argument " "1"" of type '" "GModelTemporal const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelTemporalRegistry"
"', argument " "1"" of type '" "GModelTemporal const *""'");
goto fail; } while(0)
;
34740 }
34741 arg1 = reinterpret_cast< GModelTemporal * >(argp1);
34742 {
34743 try {
34744 result = (GModelTemporalRegistry *)new GModelTemporalRegistry((GModelTemporal const *)arg1);
34745 }
34746 catch (const GException::out_of_range& e) {
34747 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
34748 }
34749 catch (const GExceptionHandler& e) {
34750 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34751 }
34752 catch (const std::exception& e) {
34753 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34754 }
34755 }
34756 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelTemporalRegistry, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[35], (
(0x1 << 1) | 0x1) | 0)
;
34757 return resultobj;
34758fail:
34759 return NULL__null;
34760}
34761
34762
34763SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelTemporalRegistry__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34764 PyObject *resultobj = 0;
34765 GModelTemporalRegistry *arg1 = 0 ;
34766 void *argp1 = 0 ;
34767 int res1 = 0 ;
34768 PyObject * obj0 = 0 ;
34769 GModelTemporalRegistry *result = 0 ;
34770
34771 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelTemporalRegistry",&obj0)) SWIG_failgoto fail;
34772 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GModelTemporalRegistry, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[35]
, 0 | 0, 0)
;
34773 if (!SWIG_IsOK(res1)(res1 >= 0)) {
34774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelTemporalRegistry" "', argument " "1"" of type '" "GModelTemporalRegistry const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelTemporalRegistry"
"', argument " "1"" of type '" "GModelTemporalRegistry const &"
"'"); goto fail; } while(0)
;
34775 }
34776 if (!argp1) {
34777 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelTemporalRegistry" "', argument " "1"" of type '" "GModelTemporalRegistry const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelTemporalRegistry" "', argument " "1"
" of type '" "GModelTemporalRegistry const &""'"); goto fail
; } while(0)
;
34778 }
34779 arg1 = reinterpret_cast< GModelTemporalRegistry * >(argp1);
34780 {
34781 try {
34782 result = (GModelTemporalRegistry *)new GModelTemporalRegistry((GModelTemporalRegistry const &)*arg1);
34783 }
34784 catch (const GException::out_of_range& e) {
34785 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
34786 }
34787 catch (const GExceptionHandler& e) {
34788 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34789 }
34790 catch (const std::exception& e) {
34791 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34792 }
34793 }
34794 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelTemporalRegistry, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[35], (
(0x1 << 1) | 0x1) | 0)
;
34795 return resultobj;
34796fail:
34797 return NULL__null;
34798}
34799
34800
34801SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelTemporalRegistry(PyObject *self, PyObject *args) {
34802 int argc;
34803 PyObject *argv[2];
34804 int ii;
34805
34806 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
34807 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
34808 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
34809 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
34810 }
34811 if (argc == 0) {
34812 return _wrap_new_GModelTemporalRegistry__SWIG_0(self, args);
34813 }
34814 if (argc == 1) {
34815 int _v;
34816 void *vptr = 0;
34817 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelTemporal, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[33
], 0, 0)
;
34818 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
34819 if (_v) {
34820 return _wrap_new_GModelTemporalRegistry__SWIG_1(self, args);
34821 }
34822 }
34823 if (argc == 1) {
34824 int _v;
34825 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GModelTemporalRegistry, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[35], 0, 0
)
;
34826 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
34827 if (_v) {
34828 return _wrap_new_GModelTemporalRegistry__SWIG_2(self, args);
34829 }
34830 }
34831
34832fail:
34833 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GModelTemporalRegistry'.\n"
34834 " Possible C/C++ prototypes are:\n"
34835 " GModelTemporalRegistry::GModelTemporalRegistry()\n"
34836 " GModelTemporalRegistry::GModelTemporalRegistry(GModelTemporal const *)\n"
34837 " GModelTemporalRegistry::GModelTemporalRegistry(GModelTemporalRegistry const &)\n");
34838 return 0;
34839}
34840
34841
34842SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GModelTemporalRegistry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34843 PyObject *resultobj = 0;
34844 GModelTemporalRegistry *arg1 = (GModelTemporalRegistry *) 0 ;
34845 void *argp1 = 0 ;
34846 int res1 = 0 ;
34847 PyObject * obj0 = 0 ;
34848
34849 if (!PyArg_ParseTuple(args,(char *)"O:delete_GModelTemporalRegistry",&obj0)) SWIG_failgoto fail;
34850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelTemporalRegistry, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[35]
, 0x1 | 0, 0)
;
34851 if (!SWIG_IsOK(res1)(res1 >= 0)) {
34852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GModelTemporalRegistry" "', argument " "1"" of type '" "GModelTemporalRegistry *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GModelTemporalRegistry"
"', argument " "1"" of type '" "GModelTemporalRegistry *""'"
); goto fail; } while(0)
;
34853 }
34854 arg1 = reinterpret_cast< GModelTemporalRegistry * >(argp1);
34855 {
34856 try {
34857 delete arg1;
34858 }
34859 catch (const GException::out_of_range& e) {
34860 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
34861 }
34862 catch (const GExceptionHandler& e) {
34863 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34864 }
34865 catch (const std::exception& e) {
34866 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34867 }
34868 }
34869 resultobj = SWIG_Py_Void();
34870 return resultobj;
34871fail:
34872 return NULL__null;
34873}
34874
34875
34876SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelTemporalRegistry_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34877 PyObject *resultobj = 0;
34878 GModelTemporalRegistry *arg1 = (GModelTemporalRegistry *) 0 ;
34879 void *argp1 = 0 ;
34880 int res1 = 0 ;
34881 PyObject * obj0 = 0 ;
34882 int result;
34883
34884 if (!PyArg_ParseTuple(args,(char *)"O:GModelTemporalRegistry_size",&obj0)) SWIG_failgoto fail;
34885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelTemporalRegistry, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[35]
, 0 | 0, 0)
;
34886 if (!SWIG_IsOK(res1)(res1 >= 0)) {
34887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelTemporalRegistry_size" "', argument " "1"" of type '" "GModelTemporalRegistry const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelTemporalRegistry_size"
"', argument " "1"" of type '" "GModelTemporalRegistry const *"
"'"); goto fail; } while(0)
;
34888 }
34889 arg1 = reinterpret_cast< GModelTemporalRegistry * >(argp1);
34890 {
34891 try {
34892 result = (int)((GModelTemporalRegistry const *)arg1)->size();
34893 }
34894 catch (const GException::out_of_range& e) {
34895 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
34896 }
34897 catch (const GExceptionHandler& e) {
34898 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34899 }
34900 catch (const std::exception& e) {
34901 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34902 }
34903 }
34904 resultobj = SWIG_From_int(static_cast< int >(result));
34905 return resultobj;
34906fail:
34907 return NULL__null;
34908}
34909
34910
34911SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelTemporalRegistry_alloc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34912 PyObject *resultobj = 0;
34913 GModelTemporalRegistry *arg1 = (GModelTemporalRegistry *) 0 ;
34914 std::string *arg2 = 0 ;
34915 void *argp1 = 0 ;
34916 int res1 = 0 ;
34917 int res2 = SWIG_OLDOBJ((0)) ;
34918 PyObject * obj0 = 0 ;
34919 PyObject * obj1 = 0 ;
34920 GModelTemporal *result = 0 ;
34921
34922 if (!PyArg_ParseTuple(args,(char *)"OO:GModelTemporalRegistry_alloc",&obj0,&obj1)) SWIG_failgoto fail;
34923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelTemporalRegistry, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[35]
, 0 | 0, 0)
;
34924 if (!SWIG_IsOK(res1)(res1 >= 0)) {
34925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelTemporalRegistry_alloc" "', argument " "1"" of type '" "GModelTemporalRegistry const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelTemporalRegistry_alloc"
"', argument " "1"" of type '" "GModelTemporalRegistry const *"
"'"); goto fail; } while(0)
;
34926 }
34927 arg1 = reinterpret_cast< GModelTemporalRegistry * >(argp1);
34928 {
34929 std::string *ptr = (std::string *)0;
34930 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
34931 if (!SWIG_IsOK(res2)(res2 >= 0)) {
34932 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelTemporalRegistry_alloc" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelTemporalRegistry_alloc"
"', argument " "2"" of type '" "std::string const &""'")
; goto fail; } while(0)
;
34933 }
34934 if (!ptr) {
34935 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelTemporalRegistry_alloc" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelTemporalRegistry_alloc" "', argument " "2"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
34936 }
34937 arg2 = ptr;
34938 }
34939 {
34940 try {
34941 result = (GModelTemporal *)((GModelTemporalRegistry const *)arg1)->alloc((std::string const &)*arg2);
34942 }
34943 catch (const GException::out_of_range& e) {
34944 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
34945 }
34946 catch (const GExceptionHandler& e) {
34947 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34948 }
34949 catch (const std::exception& e) {
34950 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
34951 }
34952 }
34953 {
34954 if (dynamic_cast<GModelTemporalConst*>(result) != NULL__null) {
34955 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelTemporalConst, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[34], 0
| 0)
;
34956 }
34957 else {
34958 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelTemporal, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[33], 0
| 0)
;
34959 }
34960 }
34961 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
34962 return resultobj;
34963fail:
34964 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
34965 return NULL__null;
34966}
34967
34968
34969SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelTemporalRegistry_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34970 PyObject *resultobj = 0;
34971 GModelTemporalRegistry *arg1 = (GModelTemporalRegistry *) 0 ;
34972 int *arg2 = 0 ;
34973 void *argp1 = 0 ;
34974 int res1 = 0 ;
34975 int temp2 ;
34976 int val2 ;
34977 int ecode2 = 0 ;
34978 PyObject * obj0 = 0 ;
34979 PyObject * obj1 = 0 ;
34980 std::string result;
34981
34982 if (!PyArg_ParseTuple(args,(char *)"OO:GModelTemporalRegistry_name",&obj0,&obj1)) SWIG_failgoto fail;
34983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelTemporalRegistry, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[35]
, 0 | 0, 0)
;
34984 if (!SWIG_IsOK(res1)(res1 >= 0)) {
34985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelTemporalRegistry_name" "', argument " "1"" of type '" "GModelTemporalRegistry const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelTemporalRegistry_name"
"', argument " "1"" of type '" "GModelTemporalRegistry const *"
"'"); goto fail; } while(0)
;
34986 }
34987 arg1 = reinterpret_cast< GModelTemporalRegistry * >(argp1);
34988 ecode2 = SWIG_AsVal_int(obj1, &val2);
34989 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
34990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelTemporalRegistry_name" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelTemporalRegistry_name"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
34991 }
34992 temp2 = static_cast< int >(val2);
34993 arg2 = &temp2;
34994 {
34995 try {
34996 result = ((GModelTemporalRegistry const *)arg1)->name((int const &)*arg2);
34997 }
34998 catch (const GException::out_of_range& e) {
34999 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
35000 }
35001 catch (const GExceptionHandler& e) {
35002 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
35003 }
35004 catch (const std::exception& e) {
35005 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
35006 }
35007 }
35008 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
35009 return resultobj;
35010fail:
35011 return NULL__null;
35012}
35013
35014
35015SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GModelTemporalRegistry_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35016 PyObject *obj;
35017 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
35018 SWIG_TypeNewClientData(SWIGTYPE_p_GModelTemporalRegistryswig_types[35], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
35019 return SWIG_Py_Void();
35020}
35021
35022SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelTemporalConst__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35023 PyObject *resultobj = 0;
35024 GModelTemporalConst *result = 0 ;
35025
35026 if (!PyArg_ParseTuple(args,(char *)":new_GModelTemporalConst")) SWIG_failgoto fail;
35027 {
35028 try {
35029 result = (GModelTemporalConst *)new GModelTemporalConst();
35030 }
35031 catch (const GException::out_of_range& e) {
35032 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
35033 }
35034 catch (const GExceptionHandler& e) {
35035 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
35036 }
35037 catch (const std::exception& e) {
35038 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
35039 }
35040 }
35041 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelTemporalConst, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[34], (
(0x1 << 1) | 0x1) | 0)
;
35042 return resultobj;
35043fail:
35044 return NULL__null;
35045}
35046
35047
35048SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelTemporalConst__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35049 PyObject *resultobj = 0;
35050 double *arg1 = 0 ;
35051 double temp1 ;
35052 double val1 ;
35053 int ecode1 = 0 ;
35054 PyObject * obj0 = 0 ;
35055 GModelTemporalConst *result = 0 ;
35056
35057 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelTemporalConst",&obj0)) SWIG_failgoto fail;
35058 ecode1 = SWIG_AsVal_double(obj0, &val1);
35059 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
35060 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GModelTemporalConst" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "new_GModelTemporalConst"
"', argument " "1"" of type '" "double""'"); goto fail; } while
(0)
;
35061 }
35062 temp1 = static_cast< double >(val1);
35063 arg1 = &temp1;
35064 {
35065 try {
35066 result = (GModelTemporalConst *)new GModelTemporalConst((double const &)*arg1);
35067 }
35068 catch (const GException::out_of_range& e) {
35069 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
35070 }
35071 catch (const GExceptionHandler& e) {
35072 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
35073 }
35074 catch (const std::exception& e) {
35075 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
35076 }
35077 }
35078 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelTemporalConst, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[34], (
(0x1 << 1) | 0x1) | 0)
;
35079 return resultobj;
35080fail:
35081 return NULL__null;
35082}
35083
35084
35085SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelTemporalConst__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35086 PyObject *resultobj = 0;
35087 GModelTemporalConst *arg1 = 0 ;
35088 void *argp1 = 0 ;
35089 int res1 = 0 ;
35090 PyObject * obj0 = 0 ;
35091 GModelTemporalConst *result = 0 ;
35092
35093 if (!PyArg_ParseTuple(args,(char *)"O:new_GModelTemporalConst",&obj0)) SWIG_failgoto fail;
35094 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GModelTemporalConst, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[34]
, 0 | 0, 0)
;
35095 if (!SWIG_IsOK(res1)(res1 >= 0)) {
35096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GModelTemporalConst" "', argument " "1"" of type '" "GModelTemporalConst const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GModelTemporalConst" "', argument "
"1"" of type '" "GModelTemporalConst const &""'"); goto fail
; } while(0)
;
35097 }
35098 if (!argp1) {
35099 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GModelTemporalConst" "', argument " "1"" of type '" "GModelTemporalConst const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GModelTemporalConst" "', argument " "1"" of type '"
"GModelTemporalConst const &""'"); goto fail; } while(0)
;
35100 }
35101 arg1 = reinterpret_cast< GModelTemporalConst * >(argp1);
35102 {
35103 try {
35104 result = (GModelTemporalConst *)new GModelTemporalConst((GModelTemporalConst const &)*arg1);
35105 }
35106 catch (const GException::out_of_range& e) {
35107 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
35108 }
35109 catch (const GExceptionHandler& e) {
35110 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
35111 }
35112 catch (const std::exception& e) {
35113 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
35114 }
35115 }
35116 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelTemporalConst, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[34], (
(0x1 << 1) | 0x1) | 0)
;
35117 return resultobj;
35118fail:
35119 return NULL__null;
35120}
35121
35122
35123SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GModelTemporalConst(PyObject *self, PyObject *args) {
35124 int argc;
35125 PyObject *argv[2];
35126 int ii;
35127
35128 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
35129 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
35130 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
35131 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
35132 }
35133 if (argc == 0) {
35134 return _wrap_new_GModelTemporalConst__SWIG_0(self, args);
35135 }
35136 if (argc == 1) {
35137 int _v;
35138 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GModelTemporalConst, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[34], 0, 0
)
;
35139 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
35140 if (_v) {
35141 return _wrap_new_GModelTemporalConst__SWIG_2(self, args);
35142 }
35143 }
35144 if (argc == 1) {
35145 int _v;
35146 {
35147 int res = SWIG_AsVal_double(argv[0], NULL__null);
35148 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
35149 }
35150 if (_v) {
35151 return _wrap_new_GModelTemporalConst__SWIG_1(self, args);
35152 }
35153 }
35154
35155fail:
35156 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GModelTemporalConst'.\n"
35157 " Possible C/C++ prototypes are:\n"
35158 " GModelTemporalConst::GModelTemporalConst()\n"
35159 " GModelTemporalConst::GModelTemporalConst(double const &)\n"
35160 " GModelTemporalConst::GModelTemporalConst(GModelTemporalConst const &)\n");
35161 return 0;
35162}
35163
35164
35165SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GModelTemporalConst(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35166 PyObject *resultobj = 0;
35167 GModelTemporalConst *arg1 = (GModelTemporalConst *) 0 ;
35168 void *argp1 = 0 ;
35169 int res1 = 0 ;
35170 PyObject * obj0 = 0 ;
35171
35172 if (!PyArg_ParseTuple(args,(char *)"O:delete_GModelTemporalConst",&obj0)) SWIG_failgoto fail;
35173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelTemporalConst, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[34]
, 0x1 | 0, 0)
;
35174 if (!SWIG_IsOK(res1)(res1 >= 0)) {
35175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GModelTemporalConst" "', argument " "1"" of type '" "GModelTemporalConst *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GModelTemporalConst"
"', argument " "1"" of type '" "GModelTemporalConst *""'"); goto
fail; } while(0)
;
35176 }
35177 arg1 = reinterpret_cast< GModelTemporalConst * >(argp1);
35178 {
35179 try {
35180 delete arg1;
35181 }
35182 catch (const GException::out_of_range& e) {
35183 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
35184 }
35185 catch (const GExceptionHandler& e) {
35186 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
35187 }
35188 catch (const std::exception& e) {
35189 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
35190 }
35191 }
35192 resultobj = SWIG_Py_Void();
35193 return resultobj;
35194fail:
35195 return NULL__null;
35196}
35197
35198
35199SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelTemporalConst_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35200 PyObject *resultobj = 0;
35201 GModelTemporalConst *arg1 = (GModelTemporalConst *) 0 ;
35202 void *argp1 = 0 ;
35203 int res1 = 0 ;
35204 PyObject * obj0 = 0 ;
35205
35206 if (!PyArg_ParseTuple(args,(char *)"O:GModelTemporalConst_clear",&obj0)) SWIG_failgoto fail;
35207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelTemporalConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[34]
, 0 | 0, 0)
;
35208 if (!SWIG_IsOK(res1)(res1 >= 0)) {
35209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelTemporalConst_clear" "', argument " "1"" of type '" "GModelTemporalConst *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelTemporalConst_clear"
"', argument " "1"" of type '" "GModelTemporalConst *""'"); goto
fail; } while(0)
;
35210 }
35211 arg1 = reinterpret_cast< GModelTemporalConst * >(argp1);
35212 {
35213 try {
35214 (arg1)->clear();
35215 }
35216 catch (const GException::out_of_range& e) {
35217 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
35218 }
35219 catch (const GExceptionHandler& e) {
35220 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
35221 }
35222 catch (const std::exception& e) {
35223 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
35224 }
35225 }
35226 resultobj = SWIG_Py_Void();
35227 return resultobj;
35228fail:
35229 return NULL__null;
35230}
35231
35232
35233SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelTemporalConst_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35234 PyObject *resultobj = 0;
35235 GModelTemporalConst *arg1 = (GModelTemporalConst *) 0 ;
35236 void *argp1 = 0 ;
35237 int res1 = 0 ;
35238 PyObject * obj0 = 0 ;
35239 GModelTemporalConst *result = 0 ;
35240
35241 if (!PyArg_ParseTuple(args,(char *)"O:GModelTemporalConst_clone",&obj0)) SWIG_failgoto fail;
35242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelTemporalConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[34]
, 0 | 0, 0)
;
35243 if (!SWIG_IsOK(res1)(res1 >= 0)) {
35244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelTemporalConst_clone" "', argument " "1"" of type '" "GModelTemporalConst const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelTemporalConst_clone"
"', argument " "1"" of type '" "GModelTemporalConst const *"
"'"); goto fail; } while(0)
;
35245 }
35246 arg1 = reinterpret_cast< GModelTemporalConst * >(argp1);
35247 {
35248 try {
35249 result = (GModelTemporalConst *)((GModelTemporalConst const *)arg1)->clone();
35250 }
35251 catch (const GException::out_of_range& e) {
35252 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
35253 }
35254 catch (const GExceptionHandler& e) {
35255 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
35256 }
35257 catch (const std::exception& e) {
35258 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
35259 }
35260 }
35261 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelTemporalConst, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[34], 0
| 0)
;
35262 return resultobj;
35263fail:
35264 return NULL__null;
35265}
35266
35267
35268SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelTemporalConst_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35269 PyObject *resultobj = 0;
35270 GModelTemporalConst *arg1 = (GModelTemporalConst *) 0 ;
35271 void *argp1 = 0 ;
35272 int res1 = 0 ;
35273 PyObject * obj0 = 0 ;
35274 std::string result;
35275
35276 if (!PyArg_ParseTuple(args,(char *)"O:GModelTemporalConst_type",&obj0)) SWIG_failgoto fail;
35277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelTemporalConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[34]
, 0 | 0, 0)
;
35278 if (!SWIG_IsOK(res1)(res1 >= 0)) {
35279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelTemporalConst_type" "', argument " "1"" of type '" "GModelTemporalConst const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelTemporalConst_type" "', argument "
"1"" of type '" "GModelTemporalConst const *""'"); goto fail
; } while(0)
;
35280 }
35281 arg1 = reinterpret_cast< GModelTemporalConst * >(argp1);
35282 {
35283 try {
35284 result = ((GModelTemporalConst const *)arg1)->type();
35285 }
35286 catch (const GException::out_of_range& e) {
35287 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
35288 }
35289 catch (const GExceptionHandler& e) {
35290 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
35291 }
35292 catch (const std::exception& e) {
35293 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
35294 }
35295 }
35296 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
35297 return resultobj;
35298fail:
35299 return NULL__null;
35300}
35301
35302
35303SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelTemporalConst_eval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35304 PyObject *resultobj = 0;
35305 GModelTemporalConst *arg1 = (GModelTemporalConst *) 0 ;
35306 GTime *arg2 = 0 ;
35307 void *argp1 = 0 ;
35308 int res1 = 0 ;
35309 void *argp2 = 0 ;
35310 int res2 = 0 ;
35311 PyObject * obj0 = 0 ;
35312 PyObject * obj1 = 0 ;
35313 double result;
35314
35315 if (!PyArg_ParseTuple(args,(char *)"OO:GModelTemporalConst_eval",&obj0,&obj1)) SWIG_failgoto fail;
35316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelTemporalConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[34]
, 0 | 0, 0)
;
35317 if (!SWIG_IsOK(res1)(res1 >= 0)) {
35318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelTemporalConst_eval" "', argument " "1"" of type '" "GModelTemporalConst const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelTemporalConst_eval" "', argument "
"1"" of type '" "GModelTemporalConst const *""'"); goto fail
; } while(0)
;
35319 }
35320 arg1 = reinterpret_cast< GModelTemporalConst * >(argp1);
35321 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[46]
, 0 | 0, 0)
;
35322 if (!SWIG_IsOK(res2)(res2 >= 0)) {
35323 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelTemporalConst_eval" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelTemporalConst_eval" "', argument "
"2"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
35324 }
35325 if (!argp2) {
35326 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelTemporalConst_eval" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelTemporalConst_eval" "', argument " "2"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
35327 }
35328 arg2 = reinterpret_cast< GTime * >(argp2);
35329 {
35330 try {
35331 result = (double)((GModelTemporalConst const *)arg1)->eval((GTime const &)*arg2);
35332 }
35333 catch (const GException::out_of_range& e) {
35334 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
35335 }
35336 catch (const GExceptionHandler& e) {
35337 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
35338 }
35339 catch (const std::exception& e) {
35340 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
35341 }
35342 }
35343 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
35344 return resultobj;
35345fail:
35346 return NULL__null;
35347}
35348
35349
35350SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelTemporalConst_eval_gradients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35351 PyObject *resultobj = 0;
35352 GModelTemporalConst *arg1 = (GModelTemporalConst *) 0 ;
35353 GTime *arg2 = 0 ;
35354 void *argp1 = 0 ;
35355 int res1 = 0 ;
35356 void *argp2 = 0 ;
35357 int res2 = 0 ;
35358 PyObject * obj0 = 0 ;
35359 PyObject * obj1 = 0 ;
35360 double result;
35361
35362 if (!PyArg_ParseTuple(args,(char *)"OO:GModelTemporalConst_eval_gradients",&obj0,&obj1)) SWIG_failgoto fail;
35363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelTemporalConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[34]
, 0 | 0, 0)
;
35364 if (!SWIG_IsOK(res1)(res1 >= 0)) {
35365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelTemporalConst_eval_gradients" "', argument " "1"" of type '" "GModelTemporalConst *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelTemporalConst_eval_gradients"
"', argument " "1"" of type '" "GModelTemporalConst *""'"); goto
fail; } while(0)
;
35366 }
35367 arg1 = reinterpret_cast< GModelTemporalConst * >(argp1);
35368 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[46]
, 0 | 0, 0)
;
35369 if (!SWIG_IsOK(res2)(res2 >= 0)) {
35370 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelTemporalConst_eval_gradients" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelTemporalConst_eval_gradients"
"', argument " "2"" of type '" "GTime const &""'"); goto
fail; } while(0)
;
35371 }
35372 if (!argp2) {
35373 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelTemporalConst_eval_gradients" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelTemporalConst_eval_gradients" "', argument "
"2"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
35374 }
35375 arg2 = reinterpret_cast< GTime * >(argp2);
35376 {
35377 try {
35378 result = (double)(arg1)->eval_gradients((GTime const &)*arg2);
35379 }
35380 catch (const GException::out_of_range& e) {
35381 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
35382 }
35383 catch (const GExceptionHandler& e) {
35384 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
35385 }
35386 catch (const std::exception& e) {
35387 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
35388 }
35389 }
35390 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
35391 return resultobj;
35392fail:
35393 return NULL__null;
35394}
35395
35396
35397SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelTemporalConst_mc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35398 PyObject *resultobj = 0;
35399 GModelTemporalConst *arg1 = (GModelTemporalConst *) 0 ;
35400 double *arg2 = 0 ;
35401 GTime *arg3 = 0 ;
35402 GTime *arg4 = 0 ;
35403 GRan *arg5 = 0 ;
35404 void *argp1 = 0 ;
35405 int res1 = 0 ;
35406 double temp2 ;
35407 double val2 ;
35408 int ecode2 = 0 ;
35409 void *argp3 = 0 ;
35410 int res3 = 0 ;
35411 void *argp4 = 0 ;
35412 int res4 = 0 ;
35413 void *argp5 = 0 ;
35414 int res5 = 0 ;
35415 PyObject * obj0 = 0 ;
35416 PyObject * obj1 = 0 ;
35417 PyObject * obj2 = 0 ;
35418 PyObject * obj3 = 0 ;
35419 PyObject * obj4 = 0 ;
35420 GTimes result;
35421
35422 if (!PyArg_ParseTuple(args,(char *)"OOOOO:GModelTemporalConst_mc",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_failgoto fail;
35423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelTemporalConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[34]
, 0 | 0, 0)
;
35424 if (!SWIG_IsOK(res1)(res1 >= 0)) {
35425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelTemporalConst_mc" "', argument " "1"" of type '" "GModelTemporalConst const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelTemporalConst_mc" "', argument "
"1"" of type '" "GModelTemporalConst const *""'"); goto fail
; } while(0)
;
35426 }
35427 arg1 = reinterpret_cast< GModelTemporalConst * >(argp1);
35428 ecode2 = SWIG_AsVal_double(obj1, &val2);
35429 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
35430 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelTemporalConst_mc" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelTemporalConst_mc"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
35431 }
35432 temp2 = static_cast< double >(val2);
35433 arg2 = &temp2;
35434 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[46]
, 0 | 0, 0)
;
35435 if (!SWIG_IsOK(res3)(res3 >= 0)) {
35436 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GModelTemporalConst_mc" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GModelTemporalConst_mc" "', argument "
"3"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
35437 }
35438 if (!argp3) {
35439 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelTemporalConst_mc" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelTemporalConst_mc" "', argument " "3"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
35440 }
35441 arg3 = reinterpret_cast< GTime * >(argp3);
35442 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[46]
, 0 | 0, 0)
;
35443 if (!SWIG_IsOK(res4)(res4 >= 0)) {
35444 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GModelTemporalConst_mc" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GModelTemporalConst_mc" "', argument "
"4"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
35445 }
35446 if (!argp4) {
35447 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelTemporalConst_mc" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelTemporalConst_mc" "', argument " "4"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
35448 }
35449 arg4 = reinterpret_cast< GTime * >(argp4);
35450 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_GRan, 0 )SWIG_Python_ConvertPtrAndOwn(obj4, &argp5, swig_types[42]
, 0, 0)
;
35451 if (!SWIG_IsOK(res5)(res5 >= 0)) {
35452 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GModelTemporalConst_mc" "', argument " "5"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res5 != (
-1)) ? res5 : -5)), "in method '" "GModelTemporalConst_mc" "', argument "
"5"" of type '" "GRan &""'"); goto fail; } while(0)
;
35453 }
35454 if (!argp5) {
35455 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelTemporalConst_mc" "', argument " "5"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelTemporalConst_mc" "', argument " "5"" of type '"
"GRan &""'"); goto fail; } while(0)
;
35456 }
35457 arg5 = reinterpret_cast< GRan * >(argp5);
35458 {
35459 try {
35460 result = ((GModelTemporalConst const *)arg1)->mc((double const &)*arg2,(GTime const &)*arg3,(GTime const &)*arg4,*arg5);
35461 }
35462 catch (const GException::out_of_range& e) {
35463 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
35464 }
35465 catch (const GExceptionHandler& e) {
35466 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
35467 }
35468 catch (const std::exception& e) {
35469 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
35470 }
35471 }
35472 resultobj = SWIG_NewPointerObj((new GTimes(static_cast< const GTimes& >(result))), SWIGTYPE_p_GTimes, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GTimes(static_cast<
const GTimes& >(result))), swig_types[47], 0x1 | 0)
;
35473 return resultobj;
35474fail:
35475 return NULL__null;
35476}
35477
35478
35479SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelTemporalConst_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35480 PyObject *resultobj = 0;
35481 GModelTemporalConst *arg1 = (GModelTemporalConst *) 0 ;
35482 GXmlElement *arg2 = 0 ;
35483 void *argp1 = 0 ;
35484 int res1 = 0 ;
35485 void *argp2 = 0 ;
35486 int res2 = 0 ;
35487 PyObject * obj0 = 0 ;
35488 PyObject * obj1 = 0 ;
35489
35490 if (!PyArg_ParseTuple(args,(char *)"OO:GModelTemporalConst_read",&obj0,&obj1)) SWIG_failgoto fail;
35491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelTemporalConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[34]
, 0 | 0, 0)
;
35492 if (!SWIG_IsOK(res1)(res1 >= 0)) {
35493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelTemporalConst_read" "', argument " "1"" of type '" "GModelTemporalConst *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelTemporalConst_read" "', argument "
"1"" of type '" "GModelTemporalConst *""'"); goto fail; } while
(0)
;
35494 }
35495 arg1 = reinterpret_cast< GModelTemporalConst * >(argp1);
35496 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0 | 0, 0)
;
35497 if (!SWIG_IsOK(res2)(res2 >= 0)) {
35498 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelTemporalConst_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelTemporalConst_read" "', argument "
"2"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
35499 }
35500 if (!argp2) {
35501 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelTemporalConst_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelTemporalConst_read" "', argument " "2"" of type '"
"GXmlElement const &""'"); goto fail; } while(0)
;
35502 }
35503 arg2 = reinterpret_cast< GXmlElement * >(argp2);
35504 {
35505 try {
35506 (arg1)->read((GXmlElement const &)*arg2);
35507 }
35508 catch (const GException::out_of_range& e) {
35509 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
35510 }
35511 catch (const GExceptionHandler& e) {
35512 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
35513 }
35514 catch (const std::exception& e) {
35515 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
35516 }
35517 }
35518 resultobj = SWIG_Py_Void();
35519 return resultobj;
35520fail:
35521 return NULL__null;
35522}
35523
35524
35525SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelTemporalConst_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35526 PyObject *resultobj = 0;
35527 GModelTemporalConst *arg1 = (GModelTemporalConst *) 0 ;
35528 GXmlElement *arg2 = 0 ;
35529 void *argp1 = 0 ;
35530 int res1 = 0 ;
35531 void *argp2 = 0 ;
35532 int res2 = 0 ;
35533 PyObject * obj0 = 0 ;
35534 PyObject * obj1 = 0 ;
35535
35536 if (!PyArg_ParseTuple(args,(char *)"OO:GModelTemporalConst_write",&obj0,&obj1)) SWIG_failgoto fail;
35537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelTemporalConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[34]
, 0 | 0, 0)
;
35538 if (!SWIG_IsOK(res1)(res1 >= 0)) {
35539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelTemporalConst_write" "', argument " "1"" of type '" "GModelTemporalConst const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelTemporalConst_write"
"', argument " "1"" of type '" "GModelTemporalConst const *"
"'"); goto fail; } while(0)
;
35540 }
35541 arg1 = reinterpret_cast< GModelTemporalConst * >(argp1);
35542 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[50]
, 0, 0)
;
35543 if (!SWIG_IsOK(res2)(res2 >= 0)) {
35544 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GModelTemporalConst_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GModelTemporalConst_write"
"', argument " "2"" of type '" "GXmlElement &""'"); goto
fail; } while(0)
;
35545 }
35546 if (!argp2) {
35547 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GModelTemporalConst_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GModelTemporalConst_write" "', argument " "2"
" of type '" "GXmlElement &""'"); goto fail; } while(0)
;
35548 }
35549 arg2 = reinterpret_cast< GXmlElement * >(argp2);
35550 {
35551 try {
35552 ((GModelTemporalConst const *)arg1)->write(*arg2);
35553 }
35554 catch (const GException::out_of_range& e) {
35555 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
35556 }
35557 catch (const GExceptionHandler& e) {
35558 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
35559 }
35560 catch (const std::exception& e) {
35561 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
35562 }
35563 }
35564 resultobj = SWIG_Py_Void();
35565 return resultobj;
35566fail:
35567 return NULL__null;
35568}
35569
35570
35571SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelTemporalConst_norm__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35572 PyObject *resultobj = 0;
35573 GModelTemporalConst *arg1 = (GModelTemporalConst *) 0 ;
35574 void *argp1 = 0 ;
35575 int res1 = 0 ;
35576 PyObject * obj0 = 0 ;
35577 double result;
35578
35579 if (!PyArg_ParseTuple(args,(char *)"O:GModelTemporalConst_norm",&obj0)) SWIG_failgoto fail;
35580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelTemporalConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[34]
, 0 | 0, 0)
;
35581 if (!SWIG_IsOK(res1)(res1 >= 0)) {
35582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelTemporalConst_norm" "', argument " "1"" of type '" "GModelTemporalConst const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelTemporalConst_norm" "', argument "
"1"" of type '" "GModelTemporalConst const *""'"); goto fail
; } while(0)
;
35583 }
35584 arg1 = reinterpret_cast< GModelTemporalConst * >(argp1);
35585 {
35586 try {
35587 result = (double)((GModelTemporalConst const *)arg1)->norm();
35588 }
35589 catch (const GException::out_of_range& e) {
35590 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
35591 }
35592 catch (const GExceptionHandler& e) {
35593 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
35594 }
35595 catch (const std::exception& e) {
35596 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
35597 }
35598 }
35599 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
35600 return resultobj;
35601fail:
35602 return NULL__null;
35603}
35604
35605
35606SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelTemporalConst_norm__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35607 PyObject *resultobj = 0;
35608 GModelTemporalConst *arg1 = (GModelTemporalConst *) 0 ;
35609 double *arg2 = 0 ;
35610 void *argp1 = 0 ;
35611 int res1 = 0 ;
35612 double temp2 ;
35613 double val2 ;
35614 int ecode2 = 0 ;
35615 PyObject * obj0 = 0 ;
35616 PyObject * obj1 = 0 ;
35617
35618 if (!PyArg_ParseTuple(args,(char *)"OO:GModelTemporalConst_norm",&obj0,&obj1)) SWIG_failgoto fail;
35619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelTemporalConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[34]
, 0 | 0, 0)
;
35620 if (!SWIG_IsOK(res1)(res1 >= 0)) {
35621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelTemporalConst_norm" "', argument " "1"" of type '" "GModelTemporalConst *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelTemporalConst_norm" "', argument "
"1"" of type '" "GModelTemporalConst *""'"); goto fail; } while
(0)
;
35622 }
35623 arg1 = reinterpret_cast< GModelTemporalConst * >(argp1);
35624 ecode2 = SWIG_AsVal_double(obj1, &val2);
35625 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
35626 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GModelTemporalConst_norm" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GModelTemporalConst_norm"
"', argument " "2"" of type '" "double""'"); goto fail; } while
(0)
;
35627 }
35628 temp2 = static_cast< double >(val2);
35629 arg2 = &temp2;
35630 {
35631 try {
35632 (arg1)->norm((double const &)*arg2);
35633 }
35634 catch (const GException::out_of_range& e) {
35635 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
35636 }
35637 catch (const GExceptionHandler& e) {
35638 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
35639 }
35640 catch (const std::exception& e) {
35641 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
35642 }
35643 }
35644 resultobj = SWIG_Py_Void();
35645 return resultobj;
35646fail:
35647 return NULL__null;
35648}
35649
35650
35651SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelTemporalConst_norm(PyObject *self, PyObject *args) {
35652 int argc;
35653 PyObject *argv[3];
35654 int ii;
35655
35656 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
35657 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
35658 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
35659 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
35660 }
35661 if (argc == 1) {
35662 int _v;
35663 void *vptr = 0;
35664 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelTemporalConst, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[34
], 0, 0)
;
35665 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
35666 if (_v) {
35667 return _wrap_GModelTemporalConst_norm__SWIG_0(self, args);
35668 }
35669 }
35670 if (argc == 2) {
35671 int _v;
35672 void *vptr = 0;
35673 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GModelTemporalConst, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[34
], 0, 0)
;
35674 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
35675 if (_v) {
35676 {
35677 int res = SWIG_AsVal_double(argv[1], NULL__null);
35678 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
35679 }
35680 if (_v) {
35681 return _wrap_GModelTemporalConst_norm__SWIG_1(self, args);
35682 }
35683 }
35684 }
35685
35686fail:
35687 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GModelTemporalConst_norm'.\n"
35688 " Possible C/C++ prototypes are:\n"
35689 " GModelTemporalConst::norm() const\n"
35690 " GModelTemporalConst::norm(double const &)\n");
35691 return 0;
35692}
35693
35694
35695SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GModelTemporalConst_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35696 PyObject *resultobj = 0;
35697 GModelTemporalConst *arg1 = (GModelTemporalConst *) 0 ;
35698 void *argp1 = 0 ;
35699 int res1 = 0 ;
35700 PyObject * obj0 = 0 ;
35701 GModelTemporalConst result;
35702
35703 if (!PyArg_ParseTuple(args,(char *)"O:GModelTemporalConst_copy",&obj0)) SWIG_failgoto fail;
35704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GModelTemporalConst, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[34]
, 0 | 0, 0)
;
35705 if (!SWIG_IsOK(res1)(res1 >= 0)) {
35706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GModelTemporalConst_copy" "', argument " "1"" of type '" "GModelTemporalConst *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GModelTemporalConst_copy" "', argument "
"1"" of type '" "GModelTemporalConst *""'"); goto fail; } while
(0)
;
35707 }
35708 arg1 = reinterpret_cast< GModelTemporalConst * >(argp1);
35709 {
35710 try {
35711 result = GModelTemporalConst_copy(arg1);
35712 }
35713 catch (const GException::out_of_range& e) {
35714 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
35715 }
35716 catch (const GExceptionHandler& e) {
35717 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
35718 }
35719 catch (const std::exception& e) {
35720 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
35721 }
35722 }
35723 resultobj = SWIG_NewPointerObj((new GModelTemporalConst(static_cast< const GModelTemporalConst& >(result))), SWIGTYPE_p_GModelTemporalConst, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GModelTemporalConst(static_cast
< const GModelTemporalConst& >(result))), swig_types
[34], 0x1 | 0)
;
35724 return resultobj;
35725fail:
35726 return NULL__null;
35727}
35728
35729
35730SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GModelTemporalConst_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35731 PyObject *obj;
35732 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
35733 SWIG_TypeNewClientData(SWIGTYPE_p_GModelTemporalConstswig_types[34], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
35734 return SWIG_Py_Void();
35735}
35736
35737static PyMethodDef SwigMethods[] = {
35738 { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O0x0008, NULL__null},
35739 { (char *)"delete_SwigPyIterator", _wrap_delete_SwigPyIterator, METH_VARARGS0x0001, (char *)"delete_SwigPyIterator(SwigPyIterator self)"},
35740 { (char *)"SwigPyIterator_value", _wrap_SwigPyIterator_value, METH_VARARGS0x0001, (char *)"SwigPyIterator_value(SwigPyIterator self) -> PyObject *"},
35741 { (char *)"SwigPyIterator_incr", _wrap_SwigPyIterator_incr, METH_VARARGS0x0001, (char *)"\n"
35742 "incr(size_t n=1) -> SwigPyIterator\n"
35743 "SwigPyIterator_incr(SwigPyIterator self) -> SwigPyIterator\n"
35744 ""},
35745 { (char *)"SwigPyIterator_decr", _wrap_SwigPyIterator_decr, METH_VARARGS0x0001, (char *)"\n"
35746 "decr(size_t n=1) -> SwigPyIterator\n"
35747 "SwigPyIterator_decr(SwigPyIterator self) -> SwigPyIterator\n"
35748 ""},
35749 { (char *)"SwigPyIterator_distance", _wrap_SwigPyIterator_distance, METH_VARARGS0x0001, (char *)"SwigPyIterator_distance(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t"},
35750 { (char *)"SwigPyIterator_equal", _wrap_SwigPyIterator_equal, METH_VARARGS0x0001, (char *)"SwigPyIterator_equal(SwigPyIterator self, SwigPyIterator x) -> bool"},
35751 { (char *)"SwigPyIterator_copy", _wrap_SwigPyIterator_copy, METH_VARARGS0x0001, (char *)"SwigPyIterator_copy(SwigPyIterator self) -> SwigPyIterator"},
35752 { (char *)"SwigPyIterator_next", _wrap_SwigPyIterator_next, METH_VARARGS0x0001, (char *)"SwigPyIterator_next(SwigPyIterator self) -> PyObject *"},
35753 { (char *)"SwigPyIterator___next__", _wrap_SwigPyIterator___next__, METH_VARARGS0x0001, (char *)"SwigPyIterator___next__(SwigPyIterator self) -> PyObject *"},
35754 { (char *)"SwigPyIterator_previous", _wrap_SwigPyIterator_previous, METH_VARARGS0x0001, (char *)"SwigPyIterator_previous(SwigPyIterator self) -> PyObject *"},
35755 { (char *)"SwigPyIterator_advance", _wrap_SwigPyIterator_advance, METH_VARARGS0x0001, (char *)"SwigPyIterator_advance(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
35756 { (char *)"SwigPyIterator___eq__", _wrap_SwigPyIterator___eq__, METH_VARARGS0x0001, (char *)"SwigPyIterator___eq__(SwigPyIterator self, SwigPyIterator x) -> bool"},
35757 { (char *)"SwigPyIterator___ne__", _wrap_SwigPyIterator___ne__, METH_VARARGS0x0001, (char *)"SwigPyIterator___ne__(SwigPyIterator self, SwigPyIterator x) -> bool"},
35758 { (char *)"SwigPyIterator___iadd__", _wrap_SwigPyIterator___iadd__, METH_VARARGS0x0001, (char *)"SwigPyIterator___iadd__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
35759 { (char *)"SwigPyIterator___isub__", _wrap_SwigPyIterator___isub__, METH_VARARGS0x0001, (char *)"SwigPyIterator___isub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
35760 { (char *)"SwigPyIterator___add__", _wrap_SwigPyIterator___add__, METH_VARARGS0x0001, (char *)"SwigPyIterator___add__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
35761 { (char *)"SwigPyIterator___sub__", _wrap_SwigPyIterator___sub__, METH_VARARGS0x0001, (char *)"\n"
35762 "__sub__(ptrdiff_t n) -> SwigPyIterator\n"
35763 "SwigPyIterator___sub__(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t\n"
35764 ""},
35765 { (char *)"SwigPyIterator_swigregister", SwigPyIterator_swigregister, METH_VARARGS0x0001, NULL__null},
35766 { (char *)"new_GModelPar", _wrap_new_GModelPar, METH_VARARGS0x0001, (char *)"\n"
35767 "GModelPar()\n"
35768 "GModelPar(std::string const & name, double const & value)\n"
35769 "GModelPar(std::string const & name, double const & factor, double const & scale)\n"
35770 "new_GModelPar(GModelPar par) -> GModelPar\n"
35771 ""},
35772 { (char *)"delete_GModelPar", _wrap_delete_GModelPar, METH_VARARGS0x0001, (char *)"delete_GModelPar(GModelPar self)"},
35773 { (char *)"GModelPar_clone", _wrap_GModelPar_clone, METH_VARARGS0x0001, (char *)"GModelPar_clone(GModelPar self) -> GModelPar"},
35774 { (char *)"GModelPar_read", _wrap_GModelPar_read, METH_VARARGS0x0001, (char *)"GModelPar_read(GModelPar self, GXmlElement const & xml)"},
35775 { (char *)"GModelPar_write", _wrap_GModelPar_write, METH_VARARGS0x0001, (char *)"GModelPar_write(GModelPar self, GXmlElement & xml)"},
35776 { (char *)"GModelPar_copy", _wrap_GModelPar_copy, METH_VARARGS0x0001, (char *)"GModelPar_copy(GModelPar self) -> GModelPar"},
35777 { (char *)"GModelPar_swigregister", GModelPar_swigregister, METH_VARARGS0x0001, NULL__null},
35778 { (char *)"new_GModels", _wrap_new_GModels, METH_VARARGS0x0001, (char *)"\n"
35779 "GModels()\n"
35780 "GModels(GModels models)\n"
35781 "new_GModels(std::string const & filename) -> GModels\n"
35782 ""},
35783 { (char *)"delete_GModels", _wrap_delete_GModels, METH_VARARGS0x0001, (char *)"delete_GModels(GModels self)"},
35784 { (char *)"GModels_clear", _wrap_GModels_clear, METH_VARARGS0x0001, (char *)"GModels_clear(GModels self)"},
35785 { (char *)"GModels_clone", _wrap_GModels_clone, METH_VARARGS0x0001, (char *)"GModels_clone(GModels self) -> GModels"},
35786 { (char *)"GModels_at", _wrap_GModels_at, METH_VARARGS0x0001, (char *)"GModels_at(GModels self, int const & index) -> GModel"},
35787 { (char *)"GModels_size", _wrap_GModels_size, METH_VARARGS0x0001, (char *)"GModels_size(GModels self) -> int"},
35788 { (char *)"GModels_isempty", _wrap_GModels_isempty, METH_VARARGS0x0001, (char *)"GModels_isempty(GModels self) -> bool"},
35789 { (char *)"GModels_set", _wrap_GModels_set, METH_VARARGS0x0001, (char *)"\n"
35790 "set(int const & index, GModel model) -> GModel\n"
35791 "GModels_set(GModels self, std::string const & name, GModel model) -> GModel\n"
35792 ""},
35793 { (char *)"GModels_append", _wrap_GModels_append, METH_VARARGS0x0001, (char *)"GModels_append(GModels self, GModel model) -> GModel"},
35794 { (char *)"GModels_insert", _wrap_GModels_insert, METH_VARARGS0x0001, (char *)"\n"
35795 "insert(int const & index, GModel model) -> GModel\n"
35796 "GModels_insert(GModels self, std::string const & name, GModel model) -> GModel\n"
35797 ""},
35798 { (char *)"GModels_remove", _wrap_GModels_remove, METH_VARARGS0x0001, (char *)"\n"
35799 "remove(int const & index)\n"
35800 "GModels_remove(GModels self, std::string const & name)\n"
35801 ""},
35802 { (char *)"GModels_reserve", _wrap_GModels_reserve, METH_VARARGS0x0001, (char *)"GModels_reserve(GModels self, int const & num)"},
35803 { (char *)"GModels_extend", _wrap_GModels_extend, METH_VARARGS0x0001, (char *)"GModels_extend(GModels self, GModels models)"},
35804 { (char *)"GModels_contains", _wrap_GModels_contains, METH_VARARGS0x0001, (char *)"GModels_contains(GModels self, std::string const & name) -> bool"},
35805 { (char *)"GModels_load", _wrap_GModels_load, METH_VARARGS0x0001, (char *)"GModels_load(GModels self, std::string const & filename)"},
35806 { (char *)"GModels_save", _wrap_GModels_save, METH_VARARGS0x0001, (char *)"GModels_save(GModels self, std::string const & filename)"},
35807 { (char *)"GModels_read", _wrap_GModels_read, METH_VARARGS0x0001, (char *)"GModels_read(GModels self, GXml const & xml)"},
35808 { (char *)"GModels_write", _wrap_GModels_write, METH_VARARGS0x0001, (char *)"GModels_write(GModels self, GXml & xml)"},
35809 { (char *)"GModels_npars", _wrap_GModels_npars, METH_VARARGS0x0001, (char *)"GModels_npars(GModels self) -> int"},
35810 { (char *)"GModels_pars", _wrap_GModels_pars, METH_VARARGS0x0001, (char *)"GModels_pars(GModels self) -> GOptimizerPars"},
35811 { (char *)"GModels_eval", _wrap_GModels_eval, METH_VARARGS0x0001, (char *)"GModels_eval(GModels self, GEvent const & event, GObservation const & obs) -> double"},
35812 { (char *)"GModels_eval_gradients", _wrap_GModels_eval_gradients, METH_VARARGS0x0001, (char *)"GModels_eval_gradients(GModels self, GEvent const & event, GObservation const & obs) -> double"},
35813 { (char *)"GModels___getitem__", _wrap_GModels___getitem__, METH_VARARGS0x0001, (char *)"\n"
35814 "__getitem__(int const & index) -> GModel\n"
35815 "GModels___getitem__(GModels self, std::string const & name) -> GModel\n"
35816 ""},
35817 { (char *)"GModels___setitem__", _wrap_GModels___setitem__, METH_VARARGS0x0001, (char *)"\n"
35818 "__setitem__(int const & index, GModel val)\n"
35819 "GModels___setitem__(GModels self, std::string const & name, GModel val)\n"
35820 ""},
35821 { (char *)"GModels_copy", _wrap_GModels_copy, METH_VARARGS0x0001, (char *)"GModels_copy(GModels self) -> GModels"},
35822 { (char *)"GModels_swigregister", GModels_swigregister, METH_VARARGS0x0001, NULL__null},
35823 { (char *)"delete_GModel", _wrap_delete_GModel, METH_VARARGS0x0001, (char *)"delete_GModel(GModel self)"},
35824 { (char *)"GModel_clear", _wrap_GModel_clear, METH_VARARGS0x0001, (char *)"GModel_clear(GModel self)"},
35825 { (char *)"GModel_clone", _wrap_GModel_clone, METH_VARARGS0x0001, (char *)"GModel_clone(GModel self) -> GModel"},
35826 { (char *)"GModel_type", _wrap_GModel_type, METH_VARARGS0x0001, (char *)"GModel_type(GModel self) -> std::string"},
35827 { (char *)"GModel_isconstant", _wrap_GModel_isconstant, METH_VARARGS0x0001, (char *)"GModel_isconstant(GModel self) -> bool"},
35828 { (char *)"GModel_eval", _wrap_GModel_eval, METH_VARARGS0x0001, (char *)"GModel_eval(GModel self, GEvent const & event, GObservation const & obs) -> double"},
35829 { (char *)"GModel_eval_gradients", _wrap_GModel_eval_gradients, METH_VARARGS0x0001, (char *)"GModel_eval_gradients(GModel self, GEvent const & event, GObservation const & obs) -> double"},
35830 { (char *)"GModel_npred", _wrap_GModel_npred, METH_VARARGS0x0001, (char *)"GModel_npred(GModel self, GEnergy const & obsEng, GTime const & obsTime, GObservation const & obs) -> double"},
35831 { (char *)"GModel_read", _wrap_GModel_read, METH_VARARGS0x0001, (char *)"GModel_read(GModel self, GXmlElement const & xml)"},
35832 { (char *)"GModel_write", _wrap_GModel_write, METH_VARARGS0x0001, (char *)"GModel_write(GModel self, GXmlElement & xml)"},
35833 { (char *)"GModel_size", _wrap_GModel_size, METH_VARARGS0x0001, (char *)"GModel_size(GModel self) -> int"},
35834 { (char *)"GModel_at", _wrap_GModel_at, METH_VARARGS0x0001, (char *)"GModel_at(GModel self, int const & index) -> GModelPar"},
35835 { (char *)"GModel_haspar", _wrap_GModel_haspar, METH_VARARGS0x0001, (char *)"GModel_haspar(GModel self, std::string const & name) -> bool"},
35836 { (char *)"GModel_name", _wrap_GModel_name, METH_VARARGS0x0001, (char *)"\n"
35837 "name() -> std::string const\n"
35838 "GModel_name(GModel self, std::string const & name)\n"
35839 ""},
35840 { (char *)"GModel_instruments", _wrap_GModel_instruments, METH_VARARGS0x0001, (char *)"\n"
35841 "instruments() -> std::string\n"
35842 "GModel_instruments(GModel self, std::string const & instruments)\n"
35843 ""},
35844 { (char *)"GModel_scale", _wrap_GModel_scale, METH_VARARGS0x0001, (char *)"\n"
35845 "scale(std::string const & instrument) -> GModelPar\n"
35846 "GModel_scale(GModel self, GModelPar par)\n"
35847 ""},
35848 { (char *)"GModel_ids", _wrap_GModel_ids, METH_VARARGS0x0001, (char *)"\n"
35849 "ids() -> std::string\n"
35850 "GModel_ids(GModel self, std::string const & ids)\n"
35851 ""},
35852 { (char *)"GModel_isvalid", _wrap_GModel_isvalid, METH_VARARGS0x0001, (char *)"GModel_isvalid(GModel self, std::string const & instruments, std::string const & ids) -> bool"},
35853 { (char *)"GModel___getitem__", _wrap_GModel___getitem__, METH_VARARGS0x0001, (char *)"\n"
35854 "__getitem__(int const & index) -> GModelPar\n"
35855 "GModel___getitem__(GModel self, std::string const & name) -> GModelPar\n"
35856 ""},
35857 { (char *)"GModel___setitem__", _wrap_GModel___setitem__, METH_VARARGS0x0001, (char *)"\n"
35858 "__setitem__(int const & index, GModelPar val)\n"
35859 "GModel___setitem__(GModel self, std::string const & name, GModelPar val)\n"
35860 ""},
35861 { (char *)"GModel_swigregister", GModel_swigregister, METH_VARARGS0x0001, NULL__null},
35862 { (char *)"new_GModelRegistry", _wrap_new_GModelRegistry, METH_VARARGS0x0001, (char *)"\n"
35863 "GModelRegistry()\n"
35864 "GModelRegistry(GModel model)\n"
35865 "new_GModelRegistry(GModelRegistry registry) -> GModelRegistry\n"
35866 ""},
35867 { (char *)"delete_GModelRegistry", _wrap_delete_GModelRegistry, METH_VARARGS0x0001, (char *)"delete_GModelRegistry(GModelRegistry self)"},
35868 { (char *)"GModelRegistry_size", _wrap_GModelRegistry_size, METH_VARARGS0x0001, (char *)"GModelRegistry_size(GModelRegistry self) -> int"},
35869 { (char *)"GModelRegistry_alloc", _wrap_GModelRegistry_alloc, METH_VARARGS0x0001, (char *)"GModelRegistry_alloc(GModelRegistry self, std::string const & name) -> GModel"},
35870 { (char *)"GModelRegistry_name", _wrap_GModelRegistry_name, METH_VARARGS0x0001, (char *)"GModelRegistry_name(GModelRegistry self, int const & index) -> std::string"},
35871 { (char *)"GModelRegistry_swigregister", GModelRegistry_swigregister, METH_VARARGS0x0001, NULL__null},
35872 { (char *)"new_GModelSky", _wrap_new_GModelSky, METH_VARARGS0x0001, (char *)"\n"
35873 "GModelSky()\n"
35874 "GModelSky(std::string const & type)\n"
35875 "GModelSky(GXmlElement const & xml)\n"
35876 "GModelSky(GXmlElement const & spatial, GXmlElement const & spectral)\n"
35877 "GModelSky(GXmlElement const & spatial, GXmlElement const & spectral, GXmlElement const & temporal)\n"
35878 "GModelSky(GModelSpatial spatial, GModelSpectral spectral)\n"
35879 "GModelSky(GModelSpatial spatial, GModelSpectral spectral, GModelTemporal temporal)\n"
35880 "new_GModelSky(GModelSky model) -> GModelSky\n"
35881 ""},
35882 { (char *)"delete_GModelSky", _wrap_delete_GModelSky, METH_VARARGS0x0001, (char *)"delete_GModelSky(GModelSky self)"},
35883 { (char *)"GModelSky_clear", _wrap_GModelSky_clear, METH_VARARGS0x0001, (char *)"GModelSky_clear(GModelSky self)"},
35884 { (char *)"GModelSky_clone", _wrap_GModelSky_clone, METH_VARARGS0x0001, (char *)"GModelSky_clone(GModelSky self) -> GModelSky"},
35885 { (char *)"GModelSky_type", _wrap_GModelSky_type, METH_VARARGS0x0001, (char *)"GModelSky_type(GModelSky self) -> std::string"},
35886 { (char *)"GModelSky_isconstant", _wrap_GModelSky_isconstant, METH_VARARGS0x0001, (char *)"GModelSky_isconstant(GModelSky self) -> bool"},
35887 { (char *)"GModelSky_eval", _wrap_GModelSky_eval, METH_VARARGS0x0001, (char *)"GModelSky_eval(GModelSky self, GEvent const & event, GObservation const & obs) -> double"},
35888 { (char *)"GModelSky_eval_gradients", _wrap_GModelSky_eval_gradients, METH_VARARGS0x0001, (char *)"GModelSky_eval_gradients(GModelSky self, GEvent const & event, GObservation const & obs) -> double"},
35889 { (char *)"GModelSky_npred", _wrap_GModelSky_npred, METH_VARARGS0x0001, (char *)"GModelSky_npred(GModelSky self, GEnergy const & obsEng, GTime const & obsTime, GObservation const & obs) -> double"},
35890 { (char *)"GModelSky_read", _wrap_GModelSky_read, METH_VARARGS0x0001, (char *)"GModelSky_read(GModelSky self, GXmlElement const & xml)"},
35891 { (char *)"GModelSky_write", _wrap_GModelSky_write, METH_VARARGS0x0001, (char *)"GModelSky_write(GModelSky self, GXmlElement & xml)"},
35892 { (char *)"GModelSky_spatial", _wrap_GModelSky_spatial, METH_VARARGS0x0001, (char *)"GModelSky_spatial(GModelSky self) -> GModelSpatial"},
35893 { (char *)"GModelSky_spectral", _wrap_GModelSky_spectral, METH_VARARGS0x0001, (char *)"GModelSky_spectral(GModelSky self) -> GModelSpectral"},
35894 { (char *)"GModelSky_temporal", _wrap_GModelSky_temporal, METH_VARARGS0x0001, (char *)"GModelSky_temporal(GModelSky self) -> GModelTemporal"},
35895 { (char *)"GModelSky_value", _wrap_GModelSky_value, METH_VARARGS0x0001, (char *)"GModelSky_value(GModelSky self, GPhoton const & photon) -> double"},
35896 { (char *)"GModelSky_gradients", _wrap_GModelSky_gradients, METH_VARARGS0x0001, (char *)"GModelSky_gradients(GModelSky self, GPhoton const & photon) -> GVector"},
35897 { (char *)"GModelSky_mc", _wrap_GModelSky_mc, METH_VARARGS0x0001, (char *)"\n"
35898 "GModelSky_mc(GModelSky self, double const & area, GSkyDir const & dir, double const & radius, \n"
35899 " GEnergy const & emin, GEnergy const & emax, GTime const & tmin, GTime const & tmax, \n"
35900 " GRan & ran) -> GPhotons\n"
35901 ""},
35902 { (char *)"GModelSky_swigregister", GModelSky_swigregister, METH_VARARGS0x0001, NULL__null},
35903 { (char *)"delete_GModelData", _wrap_delete_GModelData, METH_VARARGS0x0001, (char *)"delete_GModelData(GModelData self)"},
35904 { (char *)"GModelData_clear", _wrap_GModelData_clear, METH_VARARGS0x0001, (char *)"GModelData_clear(GModelData self)"},
35905 { (char *)"GModelData_clone", _wrap_GModelData_clone, METH_VARARGS0x0001, (char *)"GModelData_clone(GModelData self) -> GModelData"},
35906 { (char *)"GModelData_type", _wrap_GModelData_type, METH_VARARGS0x0001, (char *)"GModelData_type(GModelData self) -> std::string"},
35907 { (char *)"GModelData_isconstant", _wrap_GModelData_isconstant, METH_VARARGS0x0001, (char *)"GModelData_isconstant(GModelData self) -> bool"},
35908 { (char *)"GModelData_eval", _wrap_GModelData_eval, METH_VARARGS0x0001, (char *)"GModelData_eval(GModelData self, GEvent const & event, GObservation const & obs) -> double"},
35909 { (char *)"GModelData_eval_gradients", _wrap_GModelData_eval_gradients, METH_VARARGS0x0001, (char *)"GModelData_eval_gradients(GModelData self, GEvent const & event, GObservation const & obs) -> double"},
35910 { (char *)"GModelData_npred", _wrap_GModelData_npred, METH_VARARGS0x0001, (char *)"GModelData_npred(GModelData self, GEnergy const & obsEng, GTime const & obsTime, GObservation const & obs) -> double"},
35911 { (char *)"GModelData_mc", _wrap_GModelData_mc, METH_VARARGS0x0001, (char *)"GModelData_mc(GModelData self, GObservation const & obs, GRan & ran) -> GEvents *"},
35912 { (char *)"GModelData_read", _wrap_GModelData_read, METH_VARARGS0x0001, (char *)"GModelData_read(GModelData self, GXmlElement const & xml)"},
35913 { (char *)"GModelData_write", _wrap_GModelData_write, METH_VARARGS0x0001, (char *)"GModelData_write(GModelData self, GXmlElement & xml)"},
35914 { (char *)"GModelData_swigregister", GModelData_swigregister, METH_VARARGS0x0001, NULL__null},
35915 { (char *)"delete_GModelSpatial", _wrap_delete_GModelSpatial, METH_VARARGS0x0001, (char *)"delete_GModelSpatial(GModelSpatial self)"},
35916 { (char *)"GModelSpatial_clear", _wrap_GModelSpatial_clear, METH_VARARGS0x0001, (char *)"GModelSpatial_clear(GModelSpatial self)"},
35917 { (char *)"GModelSpatial_clone", _wrap_GModelSpatial_clone, METH_VARARGS0x0001, (char *)"GModelSpatial_clone(GModelSpatial self) -> GModelSpatial"},
35918 { (char *)"GModelSpatial_type", _wrap_GModelSpatial_type, METH_VARARGS0x0001, (char *)"GModelSpatial_type(GModelSpatial self) -> std::string"},
35919 { (char *)"GModelSpatial_eval", _wrap_GModelSpatial_eval, METH_VARARGS0x0001, (char *)"GModelSpatial_eval(GModelSpatial self, GPhoton const & photon) -> double"},
35920 { (char *)"GModelSpatial_eval_gradients", _wrap_GModelSpatial_eval_gradients, METH_VARARGS0x0001, (char *)"GModelSpatial_eval_gradients(GModelSpatial self, GPhoton const & photon) -> double"},
35921 { (char *)"GModelSpatial_mc", _wrap_GModelSpatial_mc, METH_VARARGS0x0001, (char *)"GModelSpatial_mc(GModelSpatial self, GEnergy const & energy, GTime const & time, GRan & ran) -> GSkyDir"},
35922 { (char *)"GModelSpatial_read", _wrap_GModelSpatial_read, METH_VARARGS0x0001, (char *)"GModelSpatial_read(GModelSpatial self, GXmlElement const & xml)"},
35923 { (char *)"GModelSpatial_write", _wrap_GModelSpatial_write, METH_VARARGS0x0001, (char *)"GModelSpatial_write(GModelSpatial self, GXmlElement & xml)"},
35924 { (char *)"GModelSpatial_size", _wrap_GModelSpatial_size, METH_VARARGS0x0001, (char *)"GModelSpatial_size(GModelSpatial self) -> int"},
35925 { (char *)"GModelSpatial_autoscale", _wrap_GModelSpatial_autoscale, METH_VARARGS0x0001, (char *)"GModelSpatial_autoscale(GModelSpatial self)"},
35926 { (char *)"GModelSpatial___getitem__", _wrap_GModelSpatial___getitem__, METH_VARARGS0x0001, (char *)"\n"
35927 "__getitem__(int const & index) -> GModelPar\n"
35928 "GModelSpatial___getitem__(GModelSpatial self, std::string const & name) -> GModelPar\n"
35929 ""},
35930 { (char *)"GModelSpatial___setitem__", _wrap_GModelSpatial___setitem__, METH_VARARGS0x0001, (char *)"\n"
35931 "__setitem__(int const & index, GModelPar val)\n"
35932 "GModelSpatial___setitem__(GModelSpatial self, std::string const & name, GModelPar val)\n"
35933 ""},
35934 { (char *)"GModelSpatial_swigregister", GModelSpatial_swigregister, METH_VARARGS0x0001, NULL__null},
35935 { (char *)"new_GModelSpatialRegistry", _wrap_new_GModelSpatialRegistry, METH_VARARGS0x0001, (char *)"\n"
35936 "GModelSpatialRegistry()\n"
35937 "GModelSpatialRegistry(GModelSpatial model)\n"
35938 "new_GModelSpatialRegistry(GModelSpatialRegistry registry) -> GModelSpatialRegistry\n"
35939 ""},
35940 { (char *)"delete_GModelSpatialRegistry", _wrap_delete_GModelSpatialRegistry, METH_VARARGS0x0001, (char *)"delete_GModelSpatialRegistry(GModelSpatialRegistry self)"},
35941 { (char *)"GModelSpatialRegistry_size", _wrap_GModelSpatialRegistry_size, METH_VARARGS0x0001, (char *)"GModelSpatialRegistry_size(GModelSpatialRegistry self) -> int"},
35942 { (char *)"GModelSpatialRegistry_alloc", _wrap_GModelSpatialRegistry_alloc, METH_VARARGS0x0001, (char *)"GModelSpatialRegistry_alloc(GModelSpatialRegistry self, std::string const & name) -> GModelSpatial"},
35943 { (char *)"GModelSpatialRegistry_name", _wrap_GModelSpatialRegistry_name, METH_VARARGS0x0001, (char *)"GModelSpatialRegistry_name(GModelSpatialRegistry self, int const & index) -> std::string"},
35944 { (char *)"GModelSpatialRegistry___str__", _wrap_GModelSpatialRegistry___str__, METH_VARARGS0x0001, (char *)"GModelSpatialRegistry___str__(GModelSpatialRegistry self) -> char *"},
35945 { (char *)"GModelSpatialRegistry_swigregister", GModelSpatialRegistry_swigregister, METH_VARARGS0x0001, NULL__null},
35946 { (char *)"new_GModelSpatialPointSource", _wrap_new_GModelSpatialPointSource, METH_VARARGS0x0001, (char *)"\n"
35947 "GModelSpatialPointSource()\n"
35948 "GModelSpatialPointSource(GSkyDir const & dir)\n"
35949 "GModelSpatialPointSource(double const & ra, double const & dec)\n"
35950 "GModelSpatialPointSource(GXmlElement const & xml)\n"
35951 "new_GModelSpatialPointSource(GModelSpatialPointSource model) -> GModelSpatialPointSource\n"
35952 ""},
35953 { (char *)"delete_GModelSpatialPointSource", _wrap_delete_GModelSpatialPointSource, METH_VARARGS0x0001, (char *)"delete_GModelSpatialPointSource(GModelSpatialPointSource self)"},
35954 { (char *)"GModelSpatialPointSource_clear", _wrap_GModelSpatialPointSource_clear, METH_VARARGS0x0001, (char *)"GModelSpatialPointSource_clear(GModelSpatialPointSource self)"},
35955 { (char *)"GModelSpatialPointSource_clone", _wrap_GModelSpatialPointSource_clone, METH_VARARGS0x0001, (char *)"GModelSpatialPointSource_clone(GModelSpatialPointSource self) -> GModelSpatialPointSource"},
35956 { (char *)"GModelSpatialPointSource_type", _wrap_GModelSpatialPointSource_type, METH_VARARGS0x0001, (char *)"GModelSpatialPointSource_type(GModelSpatialPointSource self) -> std::string"},
35957 { (char *)"GModelSpatialPointSource_eval", _wrap_GModelSpatialPointSource_eval, METH_VARARGS0x0001, (char *)"GModelSpatialPointSource_eval(GModelSpatialPointSource self, GPhoton const & photon) -> double"},
35958 { (char *)"GModelSpatialPointSource_eval_gradients", _wrap_GModelSpatialPointSource_eval_gradients, METH_VARARGS0x0001, (char *)"GModelSpatialPointSource_eval_gradients(GModelSpatialPointSource self, GPhoton const & photon) -> double"},
35959 { (char *)"GModelSpatialPointSource_mc", _wrap_GModelSpatialPointSource_mc, METH_VARARGS0x0001, (char *)"GModelSpatialPointSource_mc(GModelSpatialPointSource self, GEnergy const & energy, GTime const & time, GRan & ran) -> GSkyDir"},
35960 { (char *)"GModelSpatialPointSource_read", _wrap_GModelSpatialPointSource_read, METH_VARARGS0x0001, (char *)"GModelSpatialPointSource_read(GModelSpatialPointSource self, GXmlElement const & xml)"},
35961 { (char *)"GModelSpatialPointSource_write", _wrap_GModelSpatialPointSource_write, METH_VARARGS0x0001, (char *)"GModelSpatialPointSource_write(GModelSpatialPointSource self, GXmlElement & xml)"},
35962 { (char *)"GModelSpatialPointSource_ra", _wrap_GModelSpatialPointSource_ra, METH_VARARGS0x0001, (char *)"\n"
35963 "ra() -> double\n"
35964 "GModelSpatialPointSource_ra(GModelSpatialPointSource self, double const & ra)\n"
35965 ""},
35966 { (char *)"GModelSpatialPointSource_dec", _wrap_GModelSpatialPointSource_dec, METH_VARARGS0x0001, (char *)"\n"
35967 "dec() -> double\n"
35968 "GModelSpatialPointSource_dec(GModelSpatialPointSource self, double const & dec)\n"
35969 ""},
35970 { (char *)"GModelSpatialPointSource_dir", _wrap_GModelSpatialPointSource_dir, METH_VARARGS0x0001, (char *)"\n"
35971 "dir() -> GSkyDir\n"
35972 "GModelSpatialPointSource_dir(GModelSpatialPointSource self, GSkyDir const & dir)\n"
35973 ""},
35974 { (char *)"GModelSpatialPointSource_copy", _wrap_GModelSpatialPointSource_copy, METH_VARARGS0x0001, (char *)"GModelSpatialPointSource_copy(GModelSpatialPointSource self) -> GModelSpatialPointSource"},
35975 { (char *)"GModelSpatialPointSource_swigregister", GModelSpatialPointSource_swigregister, METH_VARARGS0x0001, NULL__null},
35976 { (char *)"delete_GModelSpatialRadial", _wrap_delete_GModelSpatialRadial, METH_VARARGS0x0001, (char *)"delete_GModelSpatialRadial(GModelSpatialRadial self)"},
35977 { (char *)"GModelSpatialRadial_clear", _wrap_GModelSpatialRadial_clear, METH_VARARGS0x0001, (char *)"GModelSpatialRadial_clear(GModelSpatialRadial self)"},
35978 { (char *)"GModelSpatialRadial_clone", _wrap_GModelSpatialRadial_clone, METH_VARARGS0x0001, (char *)"GModelSpatialRadial_clone(GModelSpatialRadial self) -> GModelSpatialRadial"},
35979 { (char *)"GModelSpatialRadial_type", _wrap_GModelSpatialRadial_type, METH_VARARGS0x0001, (char *)"GModelSpatialRadial_type(GModelSpatialRadial self) -> std::string"},
35980 { (char *)"GModelSpatialRadial_mc", _wrap_GModelSpatialRadial_mc, METH_VARARGS0x0001, (char *)"GModelSpatialRadial_mc(GModelSpatialRadial self, GEnergy const & energy, GTime const & time, GRan & ran) -> GSkyDir"},
35981 { (char *)"GModelSpatialRadial_theta_max", _wrap_GModelSpatialRadial_theta_max, METH_VARARGS0x0001, (char *)"GModelSpatialRadial_theta_max(GModelSpatialRadial self) -> double"},
35982 { (char *)"GModelSpatialRadial_eval", _wrap_GModelSpatialRadial_eval, METH_VARARGS0x0001, (char *)"\n"
35983 "eval(double const & theta, GEnergy const & energy, GTime const & time) -> double\n"
35984 "GModelSpatialRadial_eval(GModelSpatialRadial self, GPhoton const & photon) -> double\n"
35985 ""},
35986 { (char *)"GModelSpatialRadial_eval_gradients", _wrap_GModelSpatialRadial_eval_gradients, METH_VARARGS0x0001, (char *)"\n"
35987 "eval_gradients(double const & theta, GEnergy const & energy, GTime const & time) -> double\n"
35988 "GModelSpatialRadial_eval_gradients(GModelSpatialRadial self, GPhoton const & photon) -> double\n"
35989 ""},
35990 { (char *)"GModelSpatialRadial_read", _wrap_GModelSpatialRadial_read, METH_VARARGS0x0001, (char *)"GModelSpatialRadial_read(GModelSpatialRadial self, GXmlElement const & xml)"},
35991 { (char *)"GModelSpatialRadial_write", _wrap_GModelSpatialRadial_write, METH_VARARGS0x0001, (char *)"GModelSpatialRadial_write(GModelSpatialRadial self, GXmlElement & xml)"},
35992 { (char *)"GModelSpatialRadial_ra", _wrap_GModelSpatialRadial_ra, METH_VARARGS0x0001, (char *)"\n"
35993 "ra() -> double\n"
35994 "GModelSpatialRadial_ra(GModelSpatialRadial self, double const & ra)\n"
35995 ""},
35996 { (char *)"GModelSpatialRadial_dec", _wrap_GModelSpatialRadial_dec, METH_VARARGS0x0001, (char *)"\n"
35997 "dec() -> double\n"
35998 "GModelSpatialRadial_dec(GModelSpatialRadial self, double const & dec)\n"
35999 ""},
36000 { (char *)"GModelSpatialRadial_dir", _wrap_GModelSpatialRadial_dir, METH_VARARGS0x0001, (char *)"\n"
36001 "dir() -> GSkyDir\n"
36002 "GModelSpatialRadial_dir(GModelSpatialRadial self, GSkyDir const & dir)\n"
36003 ""},
36004 { (char *)"GModelSpatialRadial_swigregister", GModelSpatialRadial_swigregister, METH_VARARGS0x0001, NULL__null},
36005 { (char *)"new_GModelSpatialRadialDisk", _wrap_new_GModelSpatialRadialDisk, METH_VARARGS0x0001, (char *)"\n"
36006 "GModelSpatialRadialDisk()\n"
36007 "GModelSpatialRadialDisk(GSkyDir const & dir, double const & radius)\n"
36008 "GModelSpatialRadialDisk(GXmlElement const & xml)\n"
36009 "new_GModelSpatialRadialDisk(GModelSpatialRadialDisk model) -> GModelSpatialRadialDisk\n"
36010 ""},
36011 { (char *)"delete_GModelSpatialRadialDisk", _wrap_delete_GModelSpatialRadialDisk, METH_VARARGS0x0001, (char *)"delete_GModelSpatialRadialDisk(GModelSpatialRadialDisk self)"},
36012 { (char *)"GModelSpatialRadialDisk_clear", _wrap_GModelSpatialRadialDisk_clear, METH_VARARGS0x0001, (char *)"GModelSpatialRadialDisk_clear(GModelSpatialRadialDisk self)"},
36013 { (char *)"GModelSpatialRadialDisk_clone", _wrap_GModelSpatialRadialDisk_clone, METH_VARARGS0x0001, (char *)"GModelSpatialRadialDisk_clone(GModelSpatialRadialDisk self) -> GModelSpatialRadialDisk"},
36014 { (char *)"GModelSpatialRadialDisk_type", _wrap_GModelSpatialRadialDisk_type, METH_VARARGS0x0001, (char *)"GModelSpatialRadialDisk_type(GModelSpatialRadialDisk self) -> std::string"},
36015 { (char *)"GModelSpatialRadialDisk_mc", _wrap_GModelSpatialRadialDisk_mc, METH_VARARGS0x0001, (char *)"GModelSpatialRadialDisk_mc(GModelSpatialRadialDisk self, GEnergy const & energy, GTime const & time, GRan & ran) -> GSkyDir"},
36016 { (char *)"GModelSpatialRadialDisk_theta_max", _wrap_GModelSpatialRadialDisk_theta_max, METH_VARARGS0x0001, (char *)"GModelSpatialRadialDisk_theta_max(GModelSpatialRadialDisk self) -> double"},
36017 { (char *)"GModelSpatialRadialDisk_read", _wrap_GModelSpatialRadialDisk_read, METH_VARARGS0x0001, (char *)"GModelSpatialRadialDisk_read(GModelSpatialRadialDisk self, GXmlElement const & xml)"},
36018 { (char *)"GModelSpatialRadialDisk_write", _wrap_GModelSpatialRadialDisk_write, METH_VARARGS0x0001, (char *)"GModelSpatialRadialDisk_write(GModelSpatialRadialDisk self, GXmlElement & xml)"},
36019 { (char *)"GModelSpatialRadialDisk_radius", _wrap_GModelSpatialRadialDisk_radius, METH_VARARGS0x0001, (char *)"\n"
36020 "radius() -> double\n"
36021 "GModelSpatialRadialDisk_radius(GModelSpatialRadialDisk self, double const & radius)\n"
36022 ""},
36023 { (char *)"GModelSpatialRadialDisk_copy", _wrap_GModelSpatialRadialDisk_copy, METH_VARARGS0x0001, (char *)"GModelSpatialRadialDisk_copy(GModelSpatialRadialDisk self) -> GModelSpatialRadialDisk"},
36024 { (char *)"GModelSpatialRadialDisk_eval", _wrap_GModelSpatialRadialDisk_eval, METH_VARARGS0x0001, (char *)"\n"
36025 "eval(double const & theta, GEnergy const & energy, GTime const & time) -> double\n"
36026 "GModelSpatialRadialDisk_eval(GModelSpatialRadialDisk self, GPhoton const & photon) -> double\n"
36027 ""},
36028 { (char *)"GModelSpatialRadialDisk_eval_gradients", _wrap_GModelSpatialRadialDisk_eval_gradients, METH_VARARGS0x0001, (char *)"\n"
36029 "eval_gradients(double const & theta, GEnergy const & energy, GTime const & time) -> double\n"
36030 "GModelSpatialRadialDisk_eval_gradients(GModelSpatialRadialDisk self, GPhoton const & photon) -> double\n"
36031 ""},
36032 { (char *)"GModelSpatialRadialDisk_swigregister", GModelSpatialRadialDisk_swigregister, METH_VARARGS0x0001, NULL__null},
36033 { (char *)"new_GModelSpatialRadialGauss", _wrap_new_GModelSpatialRadialGauss, METH_VARARGS0x0001, (char *)"\n"
36034 "GModelSpatialRadialGauss()\n"
36035 "GModelSpatialRadialGauss(GSkyDir const & dir, double const & sigma)\n"
36036 "GModelSpatialRadialGauss(GXmlElement const & xml)\n"
36037 "new_GModelSpatialRadialGauss(GModelSpatialRadialGauss model) -> GModelSpatialRadialGauss\n"
36038 ""},
36039 { (char *)"delete_GModelSpatialRadialGauss", _wrap_delete_GModelSpatialRadialGauss, METH_VARARGS0x0001, (char *)"delete_GModelSpatialRadialGauss(GModelSpatialRadialGauss self)"},
36040 { (char *)"GModelSpatialRadialGauss_clear", _wrap_GModelSpatialRadialGauss_clear, METH_VARARGS0x0001, (char *)"GModelSpatialRadialGauss_clear(GModelSpatialRadialGauss self)"},
36041 { (char *)"GModelSpatialRadialGauss_clone", _wrap_GModelSpatialRadialGauss_clone, METH_VARARGS0x0001, (char *)"GModelSpatialRadialGauss_clone(GModelSpatialRadialGauss self) -> GModelSpatialRadialGauss"},
36042 { (char *)"GModelSpatialRadialGauss_type", _wrap_GModelSpatialRadialGauss_type, METH_VARARGS0x0001, (char *)"GModelSpatialRadialGauss_type(GModelSpatialRadialGauss self) -> std::string"},
36043 { (char *)"GModelSpatialRadialGauss_mc", _wrap_GModelSpatialRadialGauss_mc, METH_VARARGS0x0001, (char *)"GModelSpatialRadialGauss_mc(GModelSpatialRadialGauss self, GEnergy const & energy, GTime const & time, GRan & ran) -> GSkyDir"},
36044 { (char *)"GModelSpatialRadialGauss_theta_max", _wrap_GModelSpatialRadialGauss_theta_max, METH_VARARGS0x0001, (char *)"GModelSpatialRadialGauss_theta_max(GModelSpatialRadialGauss self) -> double"},
36045 { (char *)"GModelSpatialRadialGauss_read", _wrap_GModelSpatialRadialGauss_read, METH_VARARGS0x0001, (char *)"GModelSpatialRadialGauss_read(GModelSpatialRadialGauss self, GXmlElement const & xml)"},
36046 { (char *)"GModelSpatialRadialGauss_write", _wrap_GModelSpatialRadialGauss_write, METH_VARARGS0x0001, (char *)"GModelSpatialRadialGauss_write(GModelSpatialRadialGauss self, GXmlElement & xml)"},
36047 { (char *)"GModelSpatialRadialGauss_sigma", _wrap_GModelSpatialRadialGauss_sigma, METH_VARARGS0x0001, (char *)"\n"
36048 "sigma() -> double\n"
36049 "GModelSpatialRadialGauss_sigma(GModelSpatialRadialGauss self, double const & sigma)\n"
36050 ""},
36051 { (char *)"GModelSpatialRadialGauss_copy", _wrap_GModelSpatialRadialGauss_copy, METH_VARARGS0x0001, (char *)"GModelSpatialRadialGauss_copy(GModelSpatialRadialGauss self) -> GModelSpatialRadialGauss"},
36052 { (char *)"GModelSpatialRadialGauss_eval", _wrap_GModelSpatialRadialGauss_eval, METH_VARARGS0x0001, (char *)"\n"
36053 "eval(double const & theta, GEnergy const & energy, GTime const & time) -> double\n"
36054 "GModelSpatialRadialGauss_eval(GModelSpatialRadialGauss self, GPhoton const & photon) -> double\n"
36055 ""},
36056 { (char *)"GModelSpatialRadialGauss_eval_gradients", _wrap_GModelSpatialRadialGauss_eval_gradients, METH_VARARGS0x0001, (char *)"\n"
36057 "eval_gradients(double const & theta, GEnergy const & energy, GTime const & time) -> double\n"
36058 "GModelSpatialRadialGauss_eval_gradients(GModelSpatialRadialGauss self, GPhoton const & photon) -> double\n"
36059 ""},
36060 { (char *)"GModelSpatialRadialGauss_swigregister", GModelSpatialRadialGauss_swigregister, METH_VARARGS0x0001, NULL__null},
36061 { (char *)"new_GModelSpatialRadialShell", _wrap_new_GModelSpatialRadialShell, METH_VARARGS0x0001, (char *)"\n"
36062 "GModelSpatialRadialShell()\n"
36063 "GModelSpatialRadialShell(GSkyDir const & dir, double const & radius, double const & width, bool const & small_angle=True)\n"
36064 "GModelSpatialRadialShell(GSkyDir const & dir, double const & radius, double const & width)\n"
36065 "GModelSpatialRadialShell(GXmlElement const & xml)\n"
36066 "new_GModelSpatialRadialShell(GModelSpatialRadialShell model) -> GModelSpatialRadialShell\n"
36067 ""},
36068 { (char *)"delete_GModelSpatialRadialShell", _wrap_delete_GModelSpatialRadialShell, METH_VARARGS0x0001, (char *)"delete_GModelSpatialRadialShell(GModelSpatialRadialShell self)"},
36069 { (char *)"GModelSpatialRadialShell_clear", _wrap_GModelSpatialRadialShell_clear, METH_VARARGS0x0001, (char *)"GModelSpatialRadialShell_clear(GModelSpatialRadialShell self)"},
36070 { (char *)"GModelSpatialRadialShell_clone", _wrap_GModelSpatialRadialShell_clone, METH_VARARGS0x0001, (char *)"GModelSpatialRadialShell_clone(GModelSpatialRadialShell self) -> GModelSpatialRadialShell"},
36071 { (char *)"GModelSpatialRadialShell_type", _wrap_GModelSpatialRadialShell_type, METH_VARARGS0x0001, (char *)"GModelSpatialRadialShell_type(GModelSpatialRadialShell self) -> std::string"},
36072 { (char *)"GModelSpatialRadialShell_mc", _wrap_GModelSpatialRadialShell_mc, METH_VARARGS0x0001, (char *)"GModelSpatialRadialShell_mc(GModelSpatialRadialShell self, GEnergy const & energy, GTime const & time, GRan & ran) -> GSkyDir"},
36073 { (char *)"GModelSpatialRadialShell_theta_max", _wrap_GModelSpatialRadialShell_theta_max, METH_VARARGS0x0001, (char *)"GModelSpatialRadialShell_theta_max(GModelSpatialRadialShell self) -> double"},
36074 { (char *)"GModelSpatialRadialShell_read", _wrap_GModelSpatialRadialShell_read, METH_VARARGS0x0001, (char *)"GModelSpatialRadialShell_read(GModelSpatialRadialShell self, GXmlElement const & xml)"},
36075 { (char *)"GModelSpatialRadialShell_write", _wrap_GModelSpatialRadialShell_write, METH_VARARGS0x0001, (char *)"GModelSpatialRadialShell_write(GModelSpatialRadialShell self, GXmlElement & xml)"},
36076 { (char *)"GModelSpatialRadialShell_radius", _wrap_GModelSpatialRadialShell_radius, METH_VARARGS0x0001, (char *)"\n"
36077 "radius() -> double\n"
36078 "GModelSpatialRadialShell_radius(GModelSpatialRadialShell self, double const & radius)\n"
36079 ""},
36080 { (char *)"GModelSpatialRadialShell_width", _wrap_GModelSpatialRadialShell_width, METH_VARARGS0x0001, (char *)"\n"
36081 "width() -> double\n"
36082 "GModelSpatialRadialShell_width(GModelSpatialRadialShell self, double const & width)\n"
36083 ""},
36084 { (char *)"GModelSpatialRadialShell_small_angle", _wrap_GModelSpatialRadialShell_small_angle, METH_VARARGS0x0001, (char *)"\n"
36085 "small_angle() -> bool\n"
36086 "GModelSpatialRadialShell_small_angle(GModelSpatialRadialShell self, bool const & small_angle)\n"
36087 ""},
36088 { (char *)"GModelSpatialRadialShell_copy", _wrap_GModelSpatialRadialShell_copy, METH_VARARGS0x0001, (char *)"GModelSpatialRadialShell_copy(GModelSpatialRadialShell self) -> GModelSpatialRadialShell"},
36089 { (char *)"GModelSpatialRadialShell_eval", _wrap_GModelSpatialRadialShell_eval, METH_VARARGS0x0001, (char *)"\n"
36090 "eval(double const & theta, GEnergy const & energy, GTime const & time) -> double\n"
36091 "GModelSpatialRadialShell_eval(GModelSpatialRadialShell self, GPhoton const & photon) -> double\n"
36092 ""},
36093 { (char *)"GModelSpatialRadialShell_eval_gradients", _wrap_GModelSpatialRadialShell_eval_gradients, METH_VARARGS0x0001, (char *)"\n"
36094 "eval_gradients(double const & theta, GEnergy const & energy, GTime const & time) -> double\n"
36095 "GModelSpatialRadialShell_eval_gradients(GModelSpatialRadialShell self, GPhoton const & photon) -> double\n"
36096 ""},
36097 { (char *)"GModelSpatialRadialShell_swigregister", GModelSpatialRadialShell_swigregister, METH_VARARGS0x0001, NULL__null},
36098 { (char *)"delete_GModelSpatialElliptical", _wrap_delete_GModelSpatialElliptical, METH_VARARGS0x0001, (char *)"delete_GModelSpatialElliptical(GModelSpatialElliptical self)"},
36099 { (char *)"GModelSpatialElliptical_clear", _wrap_GModelSpatialElliptical_clear, METH_VARARGS0x0001, (char *)"GModelSpatialElliptical_clear(GModelSpatialElliptical self)"},
36100 { (char *)"GModelSpatialElliptical_clone", _wrap_GModelSpatialElliptical_clone, METH_VARARGS0x0001, (char *)"GModelSpatialElliptical_clone(GModelSpatialElliptical self) -> GModelSpatialElliptical"},
36101 { (char *)"GModelSpatialElliptical_type", _wrap_GModelSpatialElliptical_type, METH_VARARGS0x0001, (char *)"GModelSpatialElliptical_type(GModelSpatialElliptical self) -> std::string"},
36102 { (char *)"GModelSpatialElliptical_mc", _wrap_GModelSpatialElliptical_mc, METH_VARARGS0x0001, (char *)"GModelSpatialElliptical_mc(GModelSpatialElliptical self, GEnergy const & energy, GTime const & time, GRan & ran) -> GSkyDir"},
36103 { (char *)"GModelSpatialElliptical_theta_max", _wrap_GModelSpatialElliptical_theta_max, METH_VARARGS0x0001, (char *)"GModelSpatialElliptical_theta_max(GModelSpatialElliptical self) -> double"},
36104 { (char *)"GModelSpatialElliptical_eval", _wrap_GModelSpatialElliptical_eval, METH_VARARGS0x0001, (char *)"\n"
36105 "eval(double const & theta, double const & posangle, GEnergy const & energy, GTime const & time) -> double\n"
36106 "GModelSpatialElliptical_eval(GModelSpatialElliptical self, GPhoton const & photon) -> double\n"
36107 ""},
36108 { (char *)"GModelSpatialElliptical_eval_gradients", _wrap_GModelSpatialElliptical_eval_gradients, METH_VARARGS0x0001, (char *)"\n"
36109 "eval_gradients(double const & theta, double const & posangle, GEnergy const & energy, GTime const & time) -> double\n"
36110 "GModelSpatialElliptical_eval_gradients(GModelSpatialElliptical self, GPhoton const & photon) -> double\n"
36111 ""},
36112 { (char *)"GModelSpatialElliptical_read", _wrap_GModelSpatialElliptical_read, METH_VARARGS0x0001, (char *)"GModelSpatialElliptical_read(GModelSpatialElliptical self, GXmlElement const & xml)"},
36113 { (char *)"GModelSpatialElliptical_write", _wrap_GModelSpatialElliptical_write, METH_VARARGS0x0001, (char *)"GModelSpatialElliptical_write(GModelSpatialElliptical self, GXmlElement & xml)"},
36114 { (char *)"GModelSpatialElliptical_ra", _wrap_GModelSpatialElliptical_ra, METH_VARARGS0x0001, (char *)"\n"
36115 "ra() -> double\n"
36116 "GModelSpatialElliptical_ra(GModelSpatialElliptical self, double const & ra)\n"
36117 ""},
36118 { (char *)"GModelSpatialElliptical_dec", _wrap_GModelSpatialElliptical_dec, METH_VARARGS0x0001, (char *)"\n"
36119 "dec() -> double\n"
36120 "GModelSpatialElliptical_dec(GModelSpatialElliptical self, double const & dec)\n"
36121 ""},
36122 { (char *)"GModelSpatialElliptical_posangle", _wrap_GModelSpatialElliptical_posangle, METH_VARARGS0x0001, (char *)"\n"
36123 "posangle() -> double\n"
36124 "GModelSpatialElliptical_posangle(GModelSpatialElliptical self, double const & posangle)\n"
36125 ""},
36126 { (char *)"GModelSpatialElliptical_dir", _wrap_GModelSpatialElliptical_dir, METH_VARARGS0x0001, (char *)"\n"
36127 "dir() -> GSkyDir\n"
36128 "GModelSpatialElliptical_dir(GModelSpatialElliptical self, GSkyDir const & dir)\n"
36129 ""},
36130 { (char *)"GModelSpatialElliptical_swigregister", GModelSpatialElliptical_swigregister, METH_VARARGS0x0001, NULL__null},
36131 { (char *)"new_GModelSpatialEllipticalDisk", _wrap_new_GModelSpatialEllipticalDisk, METH_VARARGS0x0001, (char *)"\n"
36132 "GModelSpatialEllipticalDisk()\n"
36133 "GModelSpatialEllipticalDisk(GSkyDir const & dir, double const & semiminor, double const & semimajor, double const & posangle)\n"
36134 "GModelSpatialEllipticalDisk(GXmlElement const & xml)\n"
36135 "new_GModelSpatialEllipticalDisk(GModelSpatialEllipticalDisk model) -> GModelSpatialEllipticalDisk\n"
36136 ""},
36137 { (char *)"delete_GModelSpatialEllipticalDisk", _wrap_delete_GModelSpatialEllipticalDisk, METH_VARARGS0x0001, (char *)"delete_GModelSpatialEllipticalDisk(GModelSpatialEllipticalDisk self)"},
36138 { (char *)"GModelSpatialEllipticalDisk_clear", _wrap_GModelSpatialEllipticalDisk_clear, METH_VARARGS0x0001, (char *)"GModelSpatialEllipticalDisk_clear(GModelSpatialEllipticalDisk self)"},
36139 { (char *)"GModelSpatialEllipticalDisk_clone", _wrap_GModelSpatialEllipticalDisk_clone, METH_VARARGS0x0001, (char *)"GModelSpatialEllipticalDisk_clone(GModelSpatialEllipticalDisk self) -> GModelSpatialEllipticalDisk"},
36140 { (char *)"GModelSpatialEllipticalDisk_type", _wrap_GModelSpatialEllipticalDisk_type, METH_VARARGS0x0001, (char *)"GModelSpatialEllipticalDisk_type(GModelSpatialEllipticalDisk self) -> std::string"},
36141 { (char *)"GModelSpatialEllipticalDisk_mc", _wrap_GModelSpatialEllipticalDisk_mc, METH_VARARGS0x0001, (char *)"GModelSpatialEllipticalDisk_mc(GModelSpatialEllipticalDisk self, GEnergy const & energy, GTime const & time, GRan & ran) -> GSkyDir"},
36142 { (char *)"GModelSpatialEllipticalDisk_theta_max", _wrap_GModelSpatialEllipticalDisk_theta_max, METH_VARARGS0x0001, (char *)"GModelSpatialEllipticalDisk_theta_max(GModelSpatialEllipticalDisk self) -> double"},
36143 { (char *)"GModelSpatialEllipticalDisk_read", _wrap_GModelSpatialEllipticalDisk_read, METH_VARARGS0x0001, (char *)"GModelSpatialEllipticalDisk_read(GModelSpatialEllipticalDisk self, GXmlElement const & xml)"},
36144 { (char *)"GModelSpatialEllipticalDisk_write", _wrap_GModelSpatialEllipticalDisk_write, METH_VARARGS0x0001, (char *)"GModelSpatialEllipticalDisk_write(GModelSpatialEllipticalDisk self, GXmlElement & xml)"},
36145 { (char *)"GModelSpatialEllipticalDisk_semiminor", _wrap_GModelSpatialEllipticalDisk_semiminor, METH_VARARGS0x0001, (char *)"\n"
36146 "semiminor() -> double\n"
36147 "GModelSpatialEllipticalDisk_semiminor(GModelSpatialEllipticalDisk self, double const & semiminor)\n"
36148 ""},
36149 { (char *)"GModelSpatialEllipticalDisk_semimajor", _wrap_GModelSpatialEllipticalDisk_semimajor, METH_VARARGS0x0001, (char *)"\n"
36150 "semimajor() -> double\n"
36151 "GModelSpatialEllipticalDisk_semimajor(GModelSpatialEllipticalDisk self, double const & semimajor)\n"
36152 ""},
36153 { (char *)"GModelSpatialEllipticalDisk_copy", _wrap_GModelSpatialEllipticalDisk_copy, METH_VARARGS0x0001, (char *)"GModelSpatialEllipticalDisk_copy(GModelSpatialEllipticalDisk self) -> GModelSpatialEllipticalDisk"},
36154 { (char *)"GModelSpatialEllipticalDisk_eval", _wrap_GModelSpatialEllipticalDisk_eval, METH_VARARGS0x0001, (char *)"\n"
36155 "eval(double const & theta, double const & posangle, GEnergy const & energy, GTime const & time) -> double\n"
36156 "GModelSpatialEllipticalDisk_eval(GModelSpatialEllipticalDisk self, GPhoton const & photon) -> double\n"
36157 ""},
36158 { (char *)"GModelSpatialEllipticalDisk_eval_gradients", _wrap_GModelSpatialEllipticalDisk_eval_gradients, METH_VARARGS0x0001, (char *)"\n"
36159 "eval_gradients(double const & theta, double const & posangle, GEnergy const & energy, GTime const & time) -> double\n"
36160 "GModelSpatialEllipticalDisk_eval_gradients(GModelSpatialEllipticalDisk self, GPhoton const & photon) -> double\n"
36161 ""},
36162 { (char *)"GModelSpatialEllipticalDisk_swigregister", GModelSpatialEllipticalDisk_swigregister, METH_VARARGS0x0001, NULL__null},
36163 { (char *)"delete_GModelSpatialDiffuse", _wrap_delete_GModelSpatialDiffuse, METH_VARARGS0x0001, (char *)"delete_GModelSpatialDiffuse(GModelSpatialDiffuse self)"},
36164 { (char *)"GModelSpatialDiffuse_clear", _wrap_GModelSpatialDiffuse_clear, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuse_clear(GModelSpatialDiffuse self)"},
36165 { (char *)"GModelSpatialDiffuse_clone", _wrap_GModelSpatialDiffuse_clone, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuse_clone(GModelSpatialDiffuse self) -> GModelSpatialDiffuse"},
36166 { (char *)"GModelSpatialDiffuse_type", _wrap_GModelSpatialDiffuse_type, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuse_type(GModelSpatialDiffuse self) -> std::string"},
36167 { (char *)"GModelSpatialDiffuse_eval", _wrap_GModelSpatialDiffuse_eval, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuse_eval(GModelSpatialDiffuse self, GPhoton const & photon) -> double"},
36168 { (char *)"GModelSpatialDiffuse_eval_gradients", _wrap_GModelSpatialDiffuse_eval_gradients, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuse_eval_gradients(GModelSpatialDiffuse self, GPhoton const & photon) -> double"},
36169 { (char *)"GModelSpatialDiffuse_mc", _wrap_GModelSpatialDiffuse_mc, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuse_mc(GModelSpatialDiffuse self, GEnergy const & energy, GTime const & time, GRan & ran) -> GSkyDir"},
36170 { (char *)"GModelSpatialDiffuse_read", _wrap_GModelSpatialDiffuse_read, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuse_read(GModelSpatialDiffuse self, GXmlElement const & xml)"},
36171 { (char *)"GModelSpatialDiffuse_write", _wrap_GModelSpatialDiffuse_write, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuse_write(GModelSpatialDiffuse self, GXmlElement & xml)"},
36172 { (char *)"GModelSpatialDiffuse_swigregister", GModelSpatialDiffuse_swigregister, METH_VARARGS0x0001, NULL__null},
36173 { (char *)"new_GModelSpatialDiffuseConst", _wrap_new_GModelSpatialDiffuseConst, METH_VARARGS0x0001, (char *)"\n"
36174 "GModelSpatialDiffuseConst()\n"
36175 "GModelSpatialDiffuseConst(GXmlElement const & xml)\n"
36176 "GModelSpatialDiffuseConst(double const & value)\n"
36177 "new_GModelSpatialDiffuseConst(GModelSpatialDiffuseConst model) -> GModelSpatialDiffuseConst\n"
36178 ""},
36179 { (char *)"delete_GModelSpatialDiffuseConst", _wrap_delete_GModelSpatialDiffuseConst, METH_VARARGS0x0001, (char *)"delete_GModelSpatialDiffuseConst(GModelSpatialDiffuseConst self)"},
36180 { (char *)"GModelSpatialDiffuseConst_clear", _wrap_GModelSpatialDiffuseConst_clear, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuseConst_clear(GModelSpatialDiffuseConst self)"},
36181 { (char *)"GModelSpatialDiffuseConst_clone", _wrap_GModelSpatialDiffuseConst_clone, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuseConst_clone(GModelSpatialDiffuseConst self) -> GModelSpatialDiffuseConst"},
36182 { (char *)"GModelSpatialDiffuseConst_type", _wrap_GModelSpatialDiffuseConst_type, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuseConst_type(GModelSpatialDiffuseConst self) -> std::string"},
36183 { (char *)"GModelSpatialDiffuseConst_eval", _wrap_GModelSpatialDiffuseConst_eval, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuseConst_eval(GModelSpatialDiffuseConst self, GPhoton const & photon) -> double"},
36184 { (char *)"GModelSpatialDiffuseConst_eval_gradients", _wrap_GModelSpatialDiffuseConst_eval_gradients, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuseConst_eval_gradients(GModelSpatialDiffuseConst self, GPhoton const & photon) -> double"},
36185 { (char *)"GModelSpatialDiffuseConst_mc", _wrap_GModelSpatialDiffuseConst_mc, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuseConst_mc(GModelSpatialDiffuseConst self, GEnergy const & energy, GTime const & time, GRan & ran) -> GSkyDir"},
36186 { (char *)"GModelSpatialDiffuseConst_read", _wrap_GModelSpatialDiffuseConst_read, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuseConst_read(GModelSpatialDiffuseConst self, GXmlElement const & xml)"},
36187 { (char *)"GModelSpatialDiffuseConst_write", _wrap_GModelSpatialDiffuseConst_write, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuseConst_write(GModelSpatialDiffuseConst self, GXmlElement & xml)"},
36188 { (char *)"GModelSpatialDiffuseConst_value", _wrap_GModelSpatialDiffuseConst_value, METH_VARARGS0x0001, (char *)"\n"
36189 "value() -> double\n"
36190 "GModelSpatialDiffuseConst_value(GModelSpatialDiffuseConst self, double const & value)\n"
36191 ""},
36192 { (char *)"GModelSpatialDiffuseConst_copy", _wrap_GModelSpatialDiffuseConst_copy, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuseConst_copy(GModelSpatialDiffuseConst self) -> GModelSpatialDiffuseConst"},
36193 { (char *)"GModelSpatialDiffuseConst_swigregister", GModelSpatialDiffuseConst_swigregister, METH_VARARGS0x0001, NULL__null},
36194 { (char *)"new_GModelSpatialDiffuseCube", _wrap_new_GModelSpatialDiffuseCube, METH_VARARGS0x0001, (char *)"\n"
36195 "GModelSpatialDiffuseCube()\n"
36196 "GModelSpatialDiffuseCube(GXmlElement const & xml)\n"
36197 "GModelSpatialDiffuseCube(std::string const & filename, double const & value=1.0)\n"
36198 "GModelSpatialDiffuseCube(std::string const & filename)\n"
36199 "GModelSpatialDiffuseCube(GSkymap const & map, GEnergies const & energies, double const & value=1.0)\n"
36200 "GModelSpatialDiffuseCube(GSkymap const & map, GEnergies const & energies)\n"
36201 "new_GModelSpatialDiffuseCube(GModelSpatialDiffuseCube model) -> GModelSpatialDiffuseCube\n"
36202 ""},
36203 { (char *)"delete_GModelSpatialDiffuseCube", _wrap_delete_GModelSpatialDiffuseCube, METH_VARARGS0x0001, (char *)"delete_GModelSpatialDiffuseCube(GModelSpatialDiffuseCube self)"},
36204 { (char *)"GModelSpatialDiffuseCube_clear", _wrap_GModelSpatialDiffuseCube_clear, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuseCube_clear(GModelSpatialDiffuseCube self)"},
36205 { (char *)"GModelSpatialDiffuseCube_clone", _wrap_GModelSpatialDiffuseCube_clone, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuseCube_clone(GModelSpatialDiffuseCube self) -> GModelSpatialDiffuseCube"},
36206 { (char *)"GModelSpatialDiffuseCube_type", _wrap_GModelSpatialDiffuseCube_type, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuseCube_type(GModelSpatialDiffuseCube self) -> std::string"},
36207 { (char *)"GModelSpatialDiffuseCube_eval", _wrap_GModelSpatialDiffuseCube_eval, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuseCube_eval(GModelSpatialDiffuseCube self, GPhoton const & photon) -> double"},
36208 { (char *)"GModelSpatialDiffuseCube_eval_gradients", _wrap_GModelSpatialDiffuseCube_eval_gradients, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuseCube_eval_gradients(GModelSpatialDiffuseCube self, GPhoton const & photon) -> double"},
36209 { (char *)"GModelSpatialDiffuseCube_mc", _wrap_GModelSpatialDiffuseCube_mc, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuseCube_mc(GModelSpatialDiffuseCube self, GEnergy const & energy, GTime const & time, GRan & ran) -> GSkyDir"},
36210 { (char *)"GModelSpatialDiffuseCube_read", _wrap_GModelSpatialDiffuseCube_read, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuseCube_read(GModelSpatialDiffuseCube self, GXmlElement const & xml)"},
36211 { (char *)"GModelSpatialDiffuseCube_write", _wrap_GModelSpatialDiffuseCube_write, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuseCube_write(GModelSpatialDiffuseCube self, GXmlElement & xml)"},
36212 { (char *)"GModelSpatialDiffuseCube_maps", _wrap_GModelSpatialDiffuseCube_maps, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuseCube_maps(GModelSpatialDiffuseCube self) -> int"},
36213 { (char *)"GModelSpatialDiffuseCube_pixels", _wrap_GModelSpatialDiffuseCube_pixels, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuseCube_pixels(GModelSpatialDiffuseCube self) -> int"},
36214 { (char *)"GModelSpatialDiffuseCube_load", _wrap_GModelSpatialDiffuseCube_load, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuseCube_load(GModelSpatialDiffuseCube self, std::string const & filename)"},
36215 { (char *)"GModelSpatialDiffuseCube_value", _wrap_GModelSpatialDiffuseCube_value, METH_VARARGS0x0001, (char *)"\n"
36216 "value() -> double\n"
36217 "GModelSpatialDiffuseCube_value(GModelSpatialDiffuseCube self, double const & value)\n"
36218 ""},
36219 { (char *)"GModelSpatialDiffuseCube_filename", _wrap_GModelSpatialDiffuseCube_filename, METH_VARARGS0x0001, (char *)"\n"
36220 "filename() -> std::string const\n"
36221 "GModelSpatialDiffuseCube_filename(GModelSpatialDiffuseCube self, std::string const & filename)\n"
36222 ""},
36223 { (char *)"GModelSpatialDiffuseCube_cube", _wrap_GModelSpatialDiffuseCube_cube, METH_VARARGS0x0001, (char *)"\n"
36224 "cube() -> GSkymap const\n"
36225 "GModelSpatialDiffuseCube_cube(GModelSpatialDiffuseCube self, GSkymap const & cube)\n"
36226 ""},
36227 { (char *)"GModelSpatialDiffuseCube_energies", _wrap_GModelSpatialDiffuseCube_energies, METH_VARARGS0x0001, (char *)"\n"
36228 "energies() -> GEnergies\n"
36229 "GModelSpatialDiffuseCube_energies(GModelSpatialDiffuseCube self, GEnergies const & energies)\n"
36230 ""},
36231 { (char *)"GModelSpatialDiffuseCube_spectrum", _wrap_GModelSpatialDiffuseCube_spectrum, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuseCube_spectrum(GModelSpatialDiffuseCube self) -> GModelSpectralNodes"},
36232 { (char *)"GModelSpatialDiffuseCube_set_mc_cone", _wrap_GModelSpatialDiffuseCube_set_mc_cone, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuseCube_set_mc_cone(GModelSpatialDiffuseCube self, GSkyDir const & centre, double const & radius)"},
36233 { (char *)"GModelSpatialDiffuseCube_copy", _wrap_GModelSpatialDiffuseCube_copy, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuseCube_copy(GModelSpatialDiffuseCube self) -> GModelSpatialDiffuseCube"},
36234 { (char *)"GModelSpatialDiffuseCube_swigregister", GModelSpatialDiffuseCube_swigregister, METH_VARARGS0x0001, NULL__null},
36235 { (char *)"new_GModelSpatialDiffuseMap", _wrap_new_GModelSpatialDiffuseMap, METH_VARARGS0x0001, (char *)"\n"
36236 "GModelSpatialDiffuseMap()\n"
36237 "GModelSpatialDiffuseMap(GXmlElement const & xml)\n"
36238 "GModelSpatialDiffuseMap(std::string const & filename, double const & value=1.0)\n"
36239 "GModelSpatialDiffuseMap(std::string const & filename)\n"
36240 "GModelSpatialDiffuseMap(GSkymap const & map, double const & value=1.0)\n"
36241 "GModelSpatialDiffuseMap(GSkymap const & map)\n"
36242 "new_GModelSpatialDiffuseMap(GModelSpatialDiffuseMap model) -> GModelSpatialDiffuseMap\n"
36243 ""},
36244 { (char *)"delete_GModelSpatialDiffuseMap", _wrap_delete_GModelSpatialDiffuseMap, METH_VARARGS0x0001, (char *)"delete_GModelSpatialDiffuseMap(GModelSpatialDiffuseMap self)"},
36245 { (char *)"GModelSpatialDiffuseMap_clear", _wrap_GModelSpatialDiffuseMap_clear, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuseMap_clear(GModelSpatialDiffuseMap self)"},
36246 { (char *)"GModelSpatialDiffuseMap_clone", _wrap_GModelSpatialDiffuseMap_clone, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuseMap_clone(GModelSpatialDiffuseMap self) -> GModelSpatialDiffuseMap"},
36247 { (char *)"GModelSpatialDiffuseMap_type", _wrap_GModelSpatialDiffuseMap_type, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuseMap_type(GModelSpatialDiffuseMap self) -> std::string"},
36248 { (char *)"GModelSpatialDiffuseMap_eval", _wrap_GModelSpatialDiffuseMap_eval, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuseMap_eval(GModelSpatialDiffuseMap self, GPhoton const & photon) -> double"},
36249 { (char *)"GModelSpatialDiffuseMap_eval_gradients", _wrap_GModelSpatialDiffuseMap_eval_gradients, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuseMap_eval_gradients(GModelSpatialDiffuseMap self, GPhoton const & photon) -> double"},
36250 { (char *)"GModelSpatialDiffuseMap_mc", _wrap_GModelSpatialDiffuseMap_mc, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuseMap_mc(GModelSpatialDiffuseMap self, GEnergy const & energy, GTime const & time, GRan & ran) -> GSkyDir"},
36251 { (char *)"GModelSpatialDiffuseMap_read", _wrap_GModelSpatialDiffuseMap_read, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuseMap_read(GModelSpatialDiffuseMap self, GXmlElement const & xml)"},
36252 { (char *)"GModelSpatialDiffuseMap_write", _wrap_GModelSpatialDiffuseMap_write, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuseMap_write(GModelSpatialDiffuseMap self, GXmlElement & xml)"},
36253 { (char *)"GModelSpatialDiffuseMap_value", _wrap_GModelSpatialDiffuseMap_value, METH_VARARGS0x0001, (char *)"\n"
36254 "value() -> double\n"
36255 "GModelSpatialDiffuseMap_value(GModelSpatialDiffuseMap self, double const & value)\n"
36256 ""},
36257 { (char *)"GModelSpatialDiffuseMap_filename", _wrap_GModelSpatialDiffuseMap_filename, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuseMap_filename(GModelSpatialDiffuseMap self) -> std::string const &"},
36258 { (char *)"GModelSpatialDiffuseMap_load", _wrap_GModelSpatialDiffuseMap_load, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuseMap_load(GModelSpatialDiffuseMap self, std::string const & filename)"},
36259 { (char *)"GModelSpatialDiffuseMap_map", _wrap_GModelSpatialDiffuseMap_map, METH_VARARGS0x0001, (char *)"\n"
36260 "map() -> GSkymap const\n"
36261 "GModelSpatialDiffuseMap_map(GModelSpatialDiffuseMap self, GSkymap const & map)\n"
36262 ""},
36263 { (char *)"GModelSpatialDiffuseMap_copy", _wrap_GModelSpatialDiffuseMap_copy, METH_VARARGS0x0001, (char *)"GModelSpatialDiffuseMap_copy(GModelSpatialDiffuseMap self) -> GModelSpatialDiffuseMap"},
36264 { (char *)"GModelSpatialDiffuseMap_swigregister", GModelSpatialDiffuseMap_swigregister, METH_VARARGS0x0001, NULL__null},
36265 { (char *)"delete_GModelSpectral", _wrap_delete_GModelSpectral, METH_VARARGS0x0001, (char *)"delete_GModelSpectral(GModelSpectral self)"},
36266 { (char *)"GModelSpectral_clear", _wrap_GModelSpectral_clear, METH_VARARGS0x0001, (char *)"GModelSpectral_clear(GModelSpectral self)"},
36267 { (char *)"GModelSpectral_clone", _wrap_GModelSpectral_clone, METH_VARARGS0x0001, (char *)"GModelSpectral_clone(GModelSpectral self) -> GModelSpectral"},
36268 { (char *)"GModelSpectral_type", _wrap_GModelSpectral_type, METH_VARARGS0x0001, (char *)"GModelSpectral_type(GModelSpectral self) -> std::string"},
36269 { (char *)"GModelSpectral_eval", _wrap_GModelSpectral_eval, METH_VARARGS0x0001, (char *)"GModelSpectral_eval(GModelSpectral self, GEnergy const & srcEng, GTime const & srcTime) -> double"},
36270 { (char *)"GModelSpectral_eval_gradients", _wrap_GModelSpectral_eval_gradients, METH_VARARGS0x0001, (char *)"GModelSpectral_eval_gradients(GModelSpectral self, GEnergy const & srcEng, GTime const & srcTime) -> double"},
36271 { (char *)"GModelSpectral_flux", _wrap_GModelSpectral_flux, METH_VARARGS0x0001, (char *)"GModelSpectral_flux(GModelSpectral self, GEnergy const & emin, GEnergy const & emax) -> double"},
36272 { (char *)"GModelSpectral_eflux", _wrap_GModelSpectral_eflux, METH_VARARGS0x0001, (char *)"GModelSpectral_eflux(GModelSpectral self, GEnergy const & emin, GEnergy const & emax) -> double"},
36273 { (char *)"GModelSpectral_mc", _wrap_GModelSpectral_mc, METH_VARARGS0x0001, (char *)"\n"
36274 "GModelSpectral_mc(GModelSpectral self, GEnergy const & emin, GEnergy const & emax, GTime const & time, \n"
36275 " GRan & ran) -> GEnergy\n"
36276 ""},
36277 { (char *)"GModelSpectral_read", _wrap_GModelSpectral_read, METH_VARARGS0x0001, (char *)"GModelSpectral_read(GModelSpectral self, GXmlElement const & xml)"},
36278 { (char *)"GModelSpectral_write", _wrap_GModelSpectral_write, METH_VARARGS0x0001, (char *)"GModelSpectral_write(GModelSpectral self, GXmlElement & xml)"},
36279 { (char *)"GModelSpectral_size", _wrap_GModelSpectral_size, METH_VARARGS0x0001, (char *)"GModelSpectral_size(GModelSpectral self) -> int"},
36280 { (char *)"GModelSpectral_autoscale", _wrap_GModelSpectral_autoscale, METH_VARARGS0x0001, (char *)"GModelSpectral_autoscale(GModelSpectral self)"},
36281 { (char *)"GModelSpectral___getitem__", _wrap_GModelSpectral___getitem__, METH_VARARGS0x0001, (char *)"\n"
36282 "__getitem__(int const & index) -> GModelPar\n"
36283 "GModelSpectral___getitem__(GModelSpectral self, std::string const & name) -> GModelPar\n"
36284 ""},
36285 { (char *)"GModelSpectral___setitem__", _wrap_GModelSpectral___setitem__, METH_VARARGS0x0001, (char *)"\n"
36286 "__setitem__(int const & index, GModelPar val)\n"
36287 "GModelSpectral___setitem__(GModelSpectral self, std::string const & name, GModelPar val)\n"
36288 ""},
36289 { (char *)"GModelSpectral_swigregister", GModelSpectral_swigregister, METH_VARARGS0x0001, NULL__null},
36290 { (char *)"new_GModelSpectralRegistry", _wrap_new_GModelSpectralRegistry, METH_VARARGS0x0001, (char *)"\n"
36291 "GModelSpectralRegistry()\n"
36292 "GModelSpectralRegistry(GModelSpectral model)\n"
36293 "new_GModelSpectralRegistry(GModelSpectralRegistry registry) -> GModelSpectralRegistry\n"
36294 ""},
36295 { (char *)"delete_GModelSpectralRegistry", _wrap_delete_GModelSpectralRegistry, METH_VARARGS0x0001, (char *)"delete_GModelSpectralRegistry(GModelSpectralRegistry self)"},
36296 { (char *)"GModelSpectralRegistry_size", _wrap_GModelSpectralRegistry_size, METH_VARARGS0x0001, (char *)"GModelSpectralRegistry_size(GModelSpectralRegistry self) -> int"},
36297 { (char *)"GModelSpectralRegistry_alloc", _wrap_GModelSpectralRegistry_alloc, METH_VARARGS0x0001, (char *)"GModelSpectralRegistry_alloc(GModelSpectralRegistry self, std::string const & name) -> GModelSpectral"},
36298 { (char *)"GModelSpectralRegistry_name", _wrap_GModelSpectralRegistry_name, METH_VARARGS0x0001, (char *)"GModelSpectralRegistry_name(GModelSpectralRegistry self, int const & index) -> std::string"},
36299 { (char *)"GModelSpectralRegistry___str__", _wrap_GModelSpectralRegistry___str__, METH_VARARGS0x0001, (char *)"GModelSpectralRegistry___str__(GModelSpectralRegistry self) -> char *"},
36300 { (char *)"GModelSpectralRegistry_swigregister", GModelSpectralRegistry_swigregister, METH_VARARGS0x0001, NULL__null},
36301 { (char *)"new_GModelSpectralConst", _wrap_new_GModelSpectralConst, METH_VARARGS0x0001, (char *)"\n"
36302 "GModelSpectralConst()\n"
36303 "GModelSpectralConst(GXmlElement const & xml)\n"
36304 "GModelSpectralConst(double const & value)\n"
36305 "new_GModelSpectralConst(GModelSpectralConst model) -> GModelSpectralConst\n"
36306 ""},
36307 { (char *)"delete_GModelSpectralConst", _wrap_delete_GModelSpectralConst, METH_VARARGS0x0001, (char *)"delete_GModelSpectralConst(GModelSpectralConst self)"},
36308 { (char *)"GModelSpectralConst_clear", _wrap_GModelSpectralConst_clear, METH_VARARGS0x0001, (char *)"GModelSpectralConst_clear(GModelSpectralConst self)"},
36309 { (char *)"GModelSpectralConst_clone", _wrap_GModelSpectralConst_clone, METH_VARARGS0x0001, (char *)"GModelSpectralConst_clone(GModelSpectralConst self) -> GModelSpectralConst"},
36310 { (char *)"GModelSpectralConst_type", _wrap_GModelSpectralConst_type, METH_VARARGS0x0001, (char *)"GModelSpectralConst_type(GModelSpectralConst self) -> std::string"},
36311 { (char *)"GModelSpectralConst_eval", _wrap_GModelSpectralConst_eval, METH_VARARGS0x0001, (char *)"GModelSpectralConst_eval(GModelSpectralConst self, GEnergy const & srcEng, GTime const & srcTime) -> double"},
36312 { (char *)"GModelSpectralConst_eval_gradients", _wrap_GModelSpectralConst_eval_gradients, METH_VARARGS0x0001, (char *)"GModelSpectralConst_eval_gradients(GModelSpectralConst self, GEnergy const & srcEng, GTime const & srcTime) -> double"},
36313 { (char *)"GModelSpectralConst_flux", _wrap_GModelSpectralConst_flux, METH_VARARGS0x0001, (char *)"GModelSpectralConst_flux(GModelSpectralConst self, GEnergy const & emin, GEnergy const & emax) -> double"},
36314 { (char *)"GModelSpectralConst_eflux", _wrap_GModelSpectralConst_eflux, METH_VARARGS0x0001, (char *)"GModelSpectralConst_eflux(GModelSpectralConst self, GEnergy const & emin, GEnergy const & emax) -> double"},
36315 { (char *)"GModelSpectralConst_mc", _wrap_GModelSpectralConst_mc, METH_VARARGS0x0001, (char *)"\n"
36316 "GModelSpectralConst_mc(GModelSpectralConst self, GEnergy const & emin, GEnergy const & emax, GTime const & time, \n"
36317 " GRan & ran) -> GEnergy\n"
36318 ""},
36319 { (char *)"GModelSpectralConst_read", _wrap_GModelSpectralConst_read, METH_VARARGS0x0001, (char *)"GModelSpectralConst_read(GModelSpectralConst self, GXmlElement const & xml)"},
36320 { (char *)"GModelSpectralConst_write", _wrap_GModelSpectralConst_write, METH_VARARGS0x0001, (char *)"GModelSpectralConst_write(GModelSpectralConst self, GXmlElement & xml)"},
36321 { (char *)"GModelSpectralConst_value", _wrap_GModelSpectralConst_value, METH_VARARGS0x0001, (char *)"\n"
36322 "value() -> double\n"
36323 "GModelSpectralConst_value(GModelSpectralConst self, double const & value)\n"
36324 ""},
36325 { (char *)"GModelSpectralConst_copy", _wrap_GModelSpectralConst_copy, METH_VARARGS0x0001, (char *)"GModelSpectralConst_copy(GModelSpectralConst self) -> GModelSpectralConst"},
36326 { (char *)"GModelSpectralConst_swigregister", GModelSpectralConst_swigregister, METH_VARARGS0x0001, NULL__null},
36327 { (char *)"new_GModelSpectralExpPlaw", _wrap_new_GModelSpectralExpPlaw, METH_VARARGS0x0001, (char *)"\n"
36328 "GModelSpectralExpPlaw()\n"
36329 "GModelSpectralExpPlaw(double const & prefactor, double const & index, GEnergy const & pivot, GEnergy const & cutoff)\n"
36330 "GModelSpectralExpPlaw(GXmlElement const & xml)\n"
36331 "new_GModelSpectralExpPlaw(GModelSpectralExpPlaw model) -> GModelSpectralExpPlaw\n"
36332 ""},
36333 { (char *)"delete_GModelSpectralExpPlaw", _wrap_delete_GModelSpectralExpPlaw, METH_VARARGS0x0001, (char *)"delete_GModelSpectralExpPlaw(GModelSpectralExpPlaw self)"},
36334 { (char *)"GModelSpectralExpPlaw_clear", _wrap_GModelSpectralExpPlaw_clear, METH_VARARGS0x0001, (char *)"GModelSpectralExpPlaw_clear(GModelSpectralExpPlaw self)"},
36335 { (char *)"GModelSpectralExpPlaw_clone", _wrap_GModelSpectralExpPlaw_clone, METH_VARARGS0x0001, (char *)"GModelSpectralExpPlaw_clone(GModelSpectralExpPlaw self) -> GModelSpectralExpPlaw"},
36336 { (char *)"GModelSpectralExpPlaw_type", _wrap_GModelSpectralExpPlaw_type, METH_VARARGS0x0001, (char *)"GModelSpectralExpPlaw_type(GModelSpectralExpPlaw self) -> std::string"},
36337 { (char *)"GModelSpectralExpPlaw_eval", _wrap_GModelSpectralExpPlaw_eval, METH_VARARGS0x0001, (char *)"GModelSpectralExpPlaw_eval(GModelSpectralExpPlaw self, GEnergy const & srcEng, GTime const & srcTime) -> double"},
36338 { (char *)"GModelSpectralExpPlaw_eval_gradients", _wrap_GModelSpectralExpPlaw_eval_gradients, METH_VARARGS0x0001, (char *)"GModelSpectralExpPlaw_eval_gradients(GModelSpectralExpPlaw self, GEnergy const & srcEng, GTime const & srcTime) -> double"},
36339 { (char *)"GModelSpectralExpPlaw_flux", _wrap_GModelSpectralExpPlaw_flux, METH_VARARGS0x0001, (char *)"GModelSpectralExpPlaw_flux(GModelSpectralExpPlaw self, GEnergy const & emin, GEnergy const & emax) -> double"},
36340 { (char *)"GModelSpectralExpPlaw_eflux", _wrap_GModelSpectralExpPlaw_eflux, METH_VARARGS0x0001, (char *)"GModelSpectralExpPlaw_eflux(GModelSpectralExpPlaw self, GEnergy const & emin, GEnergy const & emax) -> double"},
36341 { (char *)"GModelSpectralExpPlaw_mc", _wrap_GModelSpectralExpPlaw_mc, METH_VARARGS0x0001, (char *)"\n"
36342 "GModelSpectralExpPlaw_mc(GModelSpectralExpPlaw self, GEnergy const & emin, GEnergy const & emax, GTime const & time, \n"
36343 " GRan & ran) -> GEnergy\n"
36344 ""},
36345 { (char *)"GModelSpectralExpPlaw_read", _wrap_GModelSpectralExpPlaw_read, METH_VARARGS0x0001, (char *)"GModelSpectralExpPlaw_read(GModelSpectralExpPlaw self, GXmlElement const & xml)"},
36346 { (char *)"GModelSpectralExpPlaw_write", _wrap_GModelSpectralExpPlaw_write, METH_VARARGS0x0001, (char *)"GModelSpectralExpPlaw_write(GModelSpectralExpPlaw self, GXmlElement & xml)"},
36347 { (char *)"GModelSpectralExpPlaw_prefactor", _wrap_GModelSpectralExpPlaw_prefactor, METH_VARARGS0x0001, (char *)"\n"
36348 "prefactor() -> double\n"
36349 "GModelSpectralExpPlaw_prefactor(GModelSpectralExpPlaw self, double const & prefactor)\n"
36350 ""},
36351 { (char *)"GModelSpectralExpPlaw_index", _wrap_GModelSpectralExpPlaw_index, METH_VARARGS0x0001, (char *)"\n"
36352 "index() -> double\n"
36353 "GModelSpectralExpPlaw_index(GModelSpectralExpPlaw self, double const & index)\n"
36354 ""},
36355 { (char *)"GModelSpectralExpPlaw_pivot", _wrap_GModelSpectralExpPlaw_pivot, METH_VARARGS0x0001, (char *)"\n"
36356 "pivot() -> GEnergy\n"
36357 "GModelSpectralExpPlaw_pivot(GModelSpectralExpPlaw self, GEnergy const & pivot)\n"
36358 ""},
36359 { (char *)"GModelSpectralExpPlaw_cutoff", _wrap_GModelSpectralExpPlaw_cutoff, METH_VARARGS0x0001, (char *)"\n"
36360 "cutoff() -> GEnergy\n"
36361 "GModelSpectralExpPlaw_cutoff(GModelSpectralExpPlaw self, GEnergy const & cutoff)\n"
36362 ""},
36363 { (char *)"GModelSpectralExpPlaw_copy", _wrap_GModelSpectralExpPlaw_copy, METH_VARARGS0x0001, (char *)"GModelSpectralExpPlaw_copy(GModelSpectralExpPlaw self) -> GModelSpectralExpPlaw"},
36364 { (char *)"GModelSpectralExpPlaw_swigregister", GModelSpectralExpPlaw_swigregister, METH_VARARGS0x0001, NULL__null},
36365 { (char *)"new_GModelSpectralFunc", _wrap_new_GModelSpectralFunc, METH_VARARGS0x0001, (char *)"\n"
36366 "GModelSpectralFunc()\n"
36367 "GModelSpectralFunc(std::string const & filename, double const & norm)\n"
36368 "GModelSpectralFunc(GXmlElement const & xml)\n"
36369 "new_GModelSpectralFunc(GModelSpectralFunc model) -> GModelSpectralFunc\n"
36370 ""},
36371 { (char *)"delete_GModelSpectralFunc", _wrap_delete_GModelSpectralFunc, METH_VARARGS0x0001, (char *)"delete_GModelSpectralFunc(GModelSpectralFunc self)"},
36372 { (char *)"GModelSpectralFunc_clear", _wrap_GModelSpectralFunc_clear, METH_VARARGS0x0001, (char *)"GModelSpectralFunc_clear(GModelSpectralFunc self)"},
36373 { (char *)"GModelSpectralFunc_clone", _wrap_GModelSpectralFunc_clone, METH_VARARGS0x0001, (char *)"GModelSpectralFunc_clone(GModelSpectralFunc self) -> GModelSpectralFunc"},
36374 { (char *)"GModelSpectralFunc_type", _wrap_GModelSpectralFunc_type, METH_VARARGS0x0001, (char *)"GModelSpectralFunc_type(GModelSpectralFunc self) -> std::string"},
36375 { (char *)"GModelSpectralFunc_eval", _wrap_GModelSpectralFunc_eval, METH_VARARGS0x0001, (char *)"GModelSpectralFunc_eval(GModelSpectralFunc self, GEnergy const & srcEng, GTime const & srcTime) -> double"},
36376 { (char *)"GModelSpectralFunc_eval_gradients", _wrap_GModelSpectralFunc_eval_gradients, METH_VARARGS0x0001, (char *)"GModelSpectralFunc_eval_gradients(GModelSpectralFunc self, GEnergy const & srcEng, GTime const & srcTime) -> double"},
36377 { (char *)"GModelSpectralFunc_flux", _wrap_GModelSpectralFunc_flux, METH_VARARGS0x0001, (char *)"GModelSpectralFunc_flux(GModelSpectralFunc self, GEnergy const & emin, GEnergy const & emax) -> double"},
36378 { (char *)"GModelSpectralFunc_eflux", _wrap_GModelSpectralFunc_eflux, METH_VARARGS0x0001, (char *)"GModelSpectralFunc_eflux(GModelSpectralFunc self, GEnergy const & emin, GEnergy const & emax) -> double"},
36379 { (char *)"GModelSpectralFunc_mc", _wrap_GModelSpectralFunc_mc, METH_VARARGS0x0001, (char *)"\n"
36380 "GModelSpectralFunc_mc(GModelSpectralFunc self, GEnergy const & emin, GEnergy const & emax, GTime const & time, \n"
36381 " GRan & ran) -> GEnergy\n"
36382 ""},
36383 { (char *)"GModelSpectralFunc_read", _wrap_GModelSpectralFunc_read, METH_VARARGS0x0001, (char *)"GModelSpectralFunc_read(GModelSpectralFunc self, GXmlElement const & xml)"},
36384 { (char *)"GModelSpectralFunc_write", _wrap_GModelSpectralFunc_write, METH_VARARGS0x0001, (char *)"GModelSpectralFunc_write(GModelSpectralFunc self, GXmlElement & xml)"},
36385 { (char *)"GModelSpectralFunc_filename", _wrap_GModelSpectralFunc_filename, METH_VARARGS0x0001, (char *)"\n"
36386 "filename() -> std::string const\n"
36387 "GModelSpectralFunc_filename(GModelSpectralFunc self, std::string const & filename)\n"
36388 ""},
36389 { (char *)"GModelSpectralFunc_norm", _wrap_GModelSpectralFunc_norm, METH_VARARGS0x0001, (char *)"\n"
36390 "norm() -> double\n"
36391 "GModelSpectralFunc_norm(GModelSpectralFunc self, double const & norm)\n"
36392 ""},
36393 { (char *)"GModelSpectralFunc_copy", _wrap_GModelSpectralFunc_copy, METH_VARARGS0x0001, (char *)"GModelSpectralFunc_copy(GModelSpectralFunc self) -> GModelSpectralFunc"},
36394 { (char *)"GModelSpectralFunc_swigregister", GModelSpectralFunc_swigregister, METH_VARARGS0x0001, NULL__null},
36395 { (char *)"new_GModelSpectralNodes", _wrap_new_GModelSpectralNodes, METH_VARARGS0x0001, (char *)"\n"
36396 "GModelSpectralNodes()\n"
36397 "GModelSpectralNodes(GXmlElement const & xml)\n"
36398 "new_GModelSpectralNodes(GModelSpectralNodes model) -> GModelSpectralNodes\n"
36399 ""},
36400 { (char *)"delete_GModelSpectralNodes", _wrap_delete_GModelSpectralNodes, METH_VARARGS0x0001, (char *)"delete_GModelSpectralNodes(GModelSpectralNodes self)"},
36401 { (char *)"GModelSpectralNodes_clear", _wrap_GModelSpectralNodes_clear, METH_VARARGS0x0001, (char *)"GModelSpectralNodes_clear(GModelSpectralNodes self)"},
36402 { (char *)"GModelSpectralNodes_clone", _wrap_GModelSpectralNodes_clone, METH_VARARGS0x0001, (char *)"GModelSpectralNodes_clone(GModelSpectralNodes self) -> GModelSpectralNodes"},
36403 { (char *)"GModelSpectralNodes_type", _wrap_GModelSpectralNodes_type, METH_VARARGS0x0001, (char *)"GModelSpectralNodes_type(GModelSpectralNodes self) -> std::string"},
36404 { (char *)"GModelSpectralNodes_eval", _wrap_GModelSpectralNodes_eval, METH_VARARGS0x0001, (char *)"GModelSpectralNodes_eval(GModelSpectralNodes self, GEnergy const & srcEng, GTime const & srcTime) -> double"},
36405 { (char *)"GModelSpectralNodes_eval_gradients", _wrap_GModelSpectralNodes_eval_gradients, METH_VARARGS0x0001, (char *)"GModelSpectralNodes_eval_gradients(GModelSpectralNodes self, GEnergy const & srcEng, GTime const & srcTime) -> double"},
36406 { (char *)"GModelSpectralNodes_flux", _wrap_GModelSpectralNodes_flux, METH_VARARGS0x0001, (char *)"GModelSpectralNodes_flux(GModelSpectralNodes self, GEnergy const & emin, GEnergy const & emax) -> double"},
36407 { (char *)"GModelSpectralNodes_eflux", _wrap_GModelSpectralNodes_eflux, METH_VARARGS0x0001, (char *)"GModelSpectralNodes_eflux(GModelSpectralNodes self, GEnergy const & emin, GEnergy const & emax) -> double"},
36408 { (char *)"GModelSpectralNodes_mc", _wrap_GModelSpectralNodes_mc, METH_VARARGS0x0001, (char *)"\n"
36409 "GModelSpectralNodes_mc(GModelSpectralNodes self, GEnergy const & emin, GEnergy const & emax, GTime const & time, \n"
36410 " GRan & ran) -> GEnergy\n"
36411 ""},
36412 { (char *)"GModelSpectralNodes_read", _wrap_GModelSpectralNodes_read, METH_VARARGS0x0001, (char *)"GModelSpectralNodes_read(GModelSpectralNodes self, GXmlElement const & xml)"},
36413 { (char *)"GModelSpectralNodes_write", _wrap_GModelSpectralNodes_write, METH_VARARGS0x0001, (char *)"GModelSpectralNodes_write(GModelSpectralNodes self, GXmlElement & xml)"},
36414 { (char *)"GModelSpectralNodes_nodes", _wrap_GModelSpectralNodes_nodes, METH_VARARGS0x0001, (char *)"GModelSpectralNodes_nodes(GModelSpectralNodes self) -> int"},
36415 { (char *)"GModelSpectralNodes_append", _wrap_GModelSpectralNodes_append, METH_VARARGS0x0001, (char *)"GModelSpectralNodes_append(GModelSpectralNodes self, GEnergy const & energy, double const & intensity)"},
36416 { (char *)"GModelSpectralNodes_insert", _wrap_GModelSpectralNodes_insert, METH_VARARGS0x0001, (char *)"GModelSpectralNodes_insert(GModelSpectralNodes self, int const & index, GEnergy const & energy, double const & intensity)"},
36417 { (char *)"GModelSpectralNodes_remove", _wrap_GModelSpectralNodes_remove, METH_VARARGS0x0001, (char *)"GModelSpectralNodes_remove(GModelSpectralNodes self, int const & index)"},
36418 { (char *)"GModelSpectralNodes_reserve", _wrap_GModelSpectralNodes_reserve, METH_VARARGS0x0001, (char *)"GModelSpectralNodes_reserve(GModelSpectralNodes self, int const & num)"},
36419 { (char *)"GModelSpectralNodes_extend", _wrap_GModelSpectralNodes_extend, METH_VARARGS0x0001, (char *)"GModelSpectralNodes_extend(GModelSpectralNodes self, GModelSpectralNodes nodes)"},
36420 { (char *)"GModelSpectralNodes_energy", _wrap_GModelSpectralNodes_energy, METH_VARARGS0x0001, (char *)"\n"
36421 "energy(int const & index) -> GEnergy\n"
36422 "GModelSpectralNodes_energy(GModelSpectralNodes self, int const & index, GEnergy const & energy)\n"
36423 ""},
36424 { (char *)"GModelSpectralNodes_intensity", _wrap_GModelSpectralNodes_intensity, METH_VARARGS0x0001, (char *)"\n"
36425 "intensity(int const & index) -> double\n"
36426 "GModelSpectralNodes_intensity(GModelSpectralNodes self, int const & index, double const & intensity)\n"
36427 ""},
36428 { (char *)"GModelSpectralNodes_copy", _wrap_GModelSpectralNodes_copy, METH_VARARGS0x0001, (char *)"GModelSpectralNodes_copy(GModelSpectralNodes self) -> GModelSpectralNodes"},
36429 { (char *)"GModelSpectralNodes_swigregister", GModelSpectralNodes_swigregister, METH_VARARGS0x0001, NULL__null},
36430 { (char *)"new_GModelSpectralPlaw", _wrap_new_GModelSpectralPlaw, METH_VARARGS0x0001, (char *)"\n"
36431 "GModelSpectralPlaw()\n"
36432 "GModelSpectralPlaw(double const & prefactor, double const & index, GEnergy const & pivot)\n"
36433 "GModelSpectralPlaw(GXmlElement const & xml)\n"
36434 "new_GModelSpectralPlaw(GModelSpectralPlaw model) -> GModelSpectralPlaw\n"
36435 ""},
36436 { (char *)"delete_GModelSpectralPlaw", _wrap_delete_GModelSpectralPlaw, METH_VARARGS0x0001, (char *)"delete_GModelSpectralPlaw(GModelSpectralPlaw self)"},
36437 { (char *)"GModelSpectralPlaw_clear", _wrap_GModelSpectralPlaw_clear, METH_VARARGS0x0001, (char *)"GModelSpectralPlaw_clear(GModelSpectralPlaw self)"},
36438 { (char *)"GModelSpectralPlaw_clone", _wrap_GModelSpectralPlaw_clone, METH_VARARGS0x0001, (char *)"GModelSpectralPlaw_clone(GModelSpectralPlaw self) -> GModelSpectralPlaw"},
36439 { (char *)"GModelSpectralPlaw_type", _wrap_GModelSpectralPlaw_type, METH_VARARGS0x0001, (char *)"GModelSpectralPlaw_type(GModelSpectralPlaw self) -> std::string"},
36440 { (char *)"GModelSpectralPlaw_eval", _wrap_GModelSpectralPlaw_eval, METH_VARARGS0x0001, (char *)"GModelSpectralPlaw_eval(GModelSpectralPlaw self, GEnergy const & srcEng, GTime const & srcTime) -> double"},
36441 { (char *)"GModelSpectralPlaw_eval_gradients", _wrap_GModelSpectralPlaw_eval_gradients, METH_VARARGS0x0001, (char *)"GModelSpectralPlaw_eval_gradients(GModelSpectralPlaw self, GEnergy const & srcEng, GTime const & srcTime) -> double"},
36442 { (char *)"GModelSpectralPlaw_flux", _wrap_GModelSpectralPlaw_flux, METH_VARARGS0x0001, (char *)"GModelSpectralPlaw_flux(GModelSpectralPlaw self, GEnergy const & emin, GEnergy const & emax) -> double"},
36443 { (char *)"GModelSpectralPlaw_eflux", _wrap_GModelSpectralPlaw_eflux, METH_VARARGS0x0001, (char *)"GModelSpectralPlaw_eflux(GModelSpectralPlaw self, GEnergy const & emin, GEnergy const & emax) -> double"},
36444 { (char *)"GModelSpectralPlaw_mc", _wrap_GModelSpectralPlaw_mc, METH_VARARGS0x0001, (char *)"\n"
36445 "GModelSpectralPlaw_mc(GModelSpectralPlaw self, GEnergy const & emin, GEnergy const & emax, GTime const & time, \n"
36446 " GRan & ran) -> GEnergy\n"
36447 ""},
36448 { (char *)"GModelSpectralPlaw_read", _wrap_GModelSpectralPlaw_read, METH_VARARGS0x0001, (char *)"GModelSpectralPlaw_read(GModelSpectralPlaw self, GXmlElement const & xml)"},
36449 { (char *)"GModelSpectralPlaw_write", _wrap_GModelSpectralPlaw_write, METH_VARARGS0x0001, (char *)"GModelSpectralPlaw_write(GModelSpectralPlaw self, GXmlElement & xml)"},
36450 { (char *)"GModelSpectralPlaw_prefactor", _wrap_GModelSpectralPlaw_prefactor, METH_VARARGS0x0001, (char *)"\n"
36451 "prefactor() -> double\n"
36452 "GModelSpectralPlaw_prefactor(GModelSpectralPlaw self, double const & prefactor)\n"
36453 ""},
36454 { (char *)"GModelSpectralPlaw_index", _wrap_GModelSpectralPlaw_index, METH_VARARGS0x0001, (char *)"\n"
36455 "index() -> double\n"
36456 "GModelSpectralPlaw_index(GModelSpectralPlaw self, double const & index)\n"
36457 ""},
36458 { (char *)"GModelSpectralPlaw_pivot", _wrap_GModelSpectralPlaw_pivot, METH_VARARGS0x0001, (char *)"\n"
36459 "pivot() -> GEnergy\n"
36460 "GModelSpectralPlaw_pivot(GModelSpectralPlaw self, GEnergy const & pivot)\n"
36461 ""},
36462 { (char *)"GModelSpectralPlaw_copy", _wrap_GModelSpectralPlaw_copy, METH_VARARGS0x0001, (char *)"GModelSpectralPlaw_copy(GModelSpectralPlaw self) -> GModelSpectralPlaw"},
36463 { (char *)"GModelSpectralPlaw_swigregister", GModelSpectralPlaw_swigregister, METH_VARARGS0x0001, NULL__null},
36464 { (char *)"new_GModelSpectralPlaw2", _wrap_new_GModelSpectralPlaw2, METH_VARARGS0x0001, (char *)"\n"
36465 "GModelSpectralPlaw2()\n"
36466 "GModelSpectralPlaw2(double const & integral, double const & index, GEnergy const & emin, GEnergy const & emax)\n"
36467 "GModelSpectralPlaw2(GXmlElement const & xml)\n"
36468 "new_GModelSpectralPlaw2(GModelSpectralPlaw2 model) -> GModelSpectralPlaw2\n"
36469 ""},
36470 { (char *)"delete_GModelSpectralPlaw2", _wrap_delete_GModelSpectralPlaw2, METH_VARARGS0x0001, (char *)"delete_GModelSpectralPlaw2(GModelSpectralPlaw2 self)"},
36471 { (char *)"GModelSpectralPlaw2_clear", _wrap_GModelSpectralPlaw2_clear, METH_VARARGS0x0001, (char *)"GModelSpectralPlaw2_clear(GModelSpectralPlaw2 self)"},
36472 { (char *)"GModelSpectralPlaw2_clone", _wrap_GModelSpectralPlaw2_clone, METH_VARARGS0x0001, (char *)"GModelSpectralPlaw2_clone(GModelSpectralPlaw2 self) -> GModelSpectralPlaw2"},
36473 { (char *)"GModelSpectralPlaw2_type", _wrap_GModelSpectralPlaw2_type, METH_VARARGS0x0001, (char *)"GModelSpectralPlaw2_type(GModelSpectralPlaw2 self) -> std::string"},
36474 { (char *)"GModelSpectralPlaw2_eval", _wrap_GModelSpectralPlaw2_eval, METH_VARARGS0x0001, (char *)"GModelSpectralPlaw2_eval(GModelSpectralPlaw2 self, GEnergy const & srcEng, GTime const & srcTime) -> double"},
36475 { (char *)"GModelSpectralPlaw2_eval_gradients", _wrap_GModelSpectralPlaw2_eval_gradients, METH_VARARGS0x0001, (char *)"GModelSpectralPlaw2_eval_gradients(GModelSpectralPlaw2 self, GEnergy const & srcEng, GTime const & srcTime) -> double"},
36476 { (char *)"GModelSpectralPlaw2_flux", _wrap_GModelSpectralPlaw2_flux, METH_VARARGS0x0001, (char *)"GModelSpectralPlaw2_flux(GModelSpectralPlaw2 self, GEnergy const & emin, GEnergy const & emax) -> double"},
36477 { (char *)"GModelSpectralPlaw2_eflux", _wrap_GModelSpectralPlaw2_eflux, METH_VARARGS0x0001, (char *)"GModelSpectralPlaw2_eflux(GModelSpectralPlaw2 self, GEnergy const & emin, GEnergy const & emax) -> double"},
36478 { (char *)"GModelSpectralPlaw2_mc", _wrap_GModelSpectralPlaw2_mc, METH_VARARGS0x0001, (char *)"\n"
36479 "GModelSpectralPlaw2_mc(GModelSpectralPlaw2 self, GEnergy const & emin, GEnergy const & emax, GTime const & time, \n"
36480 " GRan & ran) -> GEnergy\n"
36481 ""},
36482 { (char *)"GModelSpectralPlaw2_read", _wrap_GModelSpectralPlaw2_read, METH_VARARGS0x0001, (char *)"GModelSpectralPlaw2_read(GModelSpectralPlaw2 self, GXmlElement const & xml)"},
36483 { (char *)"GModelSpectralPlaw2_write", _wrap_GModelSpectralPlaw2_write, METH_VARARGS0x0001, (char *)"GModelSpectralPlaw2_write(GModelSpectralPlaw2 self, GXmlElement & xml)"},
36484 { (char *)"GModelSpectralPlaw2_integral", _wrap_GModelSpectralPlaw2_integral, METH_VARARGS0x0001, (char *)"\n"
36485 "integral() -> double\n"
36486 "GModelSpectralPlaw2_integral(GModelSpectralPlaw2 self, double const & integral)\n"
36487 ""},
36488 { (char *)"GModelSpectralPlaw2_index", _wrap_GModelSpectralPlaw2_index, METH_VARARGS0x0001, (char *)"\n"
36489 "index() -> double\n"
36490 "GModelSpectralPlaw2_index(GModelSpectralPlaw2 self, double const & index)\n"
36491 ""},
36492 { (char *)"GModelSpectralPlaw2_emin", _wrap_GModelSpectralPlaw2_emin, METH_VARARGS0x0001, (char *)"\n"
36493 "emin() -> GEnergy\n"
36494 "GModelSpectralPlaw2_emin(GModelSpectralPlaw2 self, GEnergy const & emin)\n"
36495 ""},
36496 { (char *)"GModelSpectralPlaw2_emax", _wrap_GModelSpectralPlaw2_emax, METH_VARARGS0x0001, (char *)"\n"
36497 "emax() -> GEnergy\n"
36498 "GModelSpectralPlaw2_emax(GModelSpectralPlaw2 self, GEnergy const & emax)\n"
36499 ""},
36500 { (char *)"GModelSpectralPlaw2_copy", _wrap_GModelSpectralPlaw2_copy, METH_VARARGS0x0001, (char *)"GModelSpectralPlaw2_copy(GModelSpectralPlaw2 self) -> GModelSpectralPlaw2"},
36501 { (char *)"GModelSpectralPlaw2_swigregister", GModelSpectralPlaw2_swigregister, METH_VARARGS0x0001, NULL__null},
36502 { (char *)"new_GModelSpectralLogParabola", _wrap_new_GModelSpectralLogParabola, METH_VARARGS0x0001, (char *)"\n"
36503 "GModelSpectralLogParabola()\n"
36504 "GModelSpectralLogParabola(double const & prefactor, double const & index, GEnergy const & pivot, double const & curvature)\n"
36505 "GModelSpectralLogParabola(GXmlElement const & xml)\n"
36506 "new_GModelSpectralLogParabola(GModelSpectralLogParabola model) -> GModelSpectralLogParabola\n"
36507 ""},
36508 { (char *)"delete_GModelSpectralLogParabola", _wrap_delete_GModelSpectralLogParabola, METH_VARARGS0x0001, (char *)"delete_GModelSpectralLogParabola(GModelSpectralLogParabola self)"},
36509 { (char *)"GModelSpectralLogParabola_clear", _wrap_GModelSpectralLogParabola_clear, METH_VARARGS0x0001, (char *)"GModelSpectralLogParabola_clear(GModelSpectralLogParabola self)"},
36510 { (char *)"GModelSpectralLogParabola_clone", _wrap_GModelSpectralLogParabola_clone, METH_VARARGS0x0001, (char *)"GModelSpectralLogParabola_clone(GModelSpectralLogParabola self) -> GModelSpectralLogParabola"},
36511 { (char *)"GModelSpectralLogParabola_type", _wrap_GModelSpectralLogParabola_type, METH_VARARGS0x0001, (char *)"GModelSpectralLogParabola_type(GModelSpectralLogParabola self) -> std::string"},
36512 { (char *)"GModelSpectralLogParabola_eval", _wrap_GModelSpectralLogParabola_eval, METH_VARARGS0x0001, (char *)"GModelSpectralLogParabola_eval(GModelSpectralLogParabola self, GEnergy const & srcEng, GTime const & srcTime) -> double"},
36513 { (char *)"GModelSpectralLogParabola_eval_gradients", _wrap_GModelSpectralLogParabola_eval_gradients, METH_VARARGS0x0001, (char *)"GModelSpectralLogParabola_eval_gradients(GModelSpectralLogParabola self, GEnergy const & srcEng, GTime const & srcTime) -> double"},
36514 { (char *)"GModelSpectralLogParabola_flux", _wrap_GModelSpectralLogParabola_flux, METH_VARARGS0x0001, (char *)"GModelSpectralLogParabola_flux(GModelSpectralLogParabola self, GEnergy const & emin, GEnergy const & emax) -> double"},
36515 { (char *)"GModelSpectralLogParabola_eflux", _wrap_GModelSpectralLogParabola_eflux, METH_VARARGS0x0001, (char *)"GModelSpectralLogParabola_eflux(GModelSpectralLogParabola self, GEnergy const & emin, GEnergy const & emax) -> double"},
36516 { (char *)"GModelSpectralLogParabola_mc", _wrap_GModelSpectralLogParabola_mc, METH_VARARGS0x0001, (char *)"\n"
36517 "GModelSpectralLogParabola_mc(GModelSpectralLogParabola self, GEnergy const & emin, GEnergy const & emax, GTime const & time, \n"
36518 " GRan & ran) -> GEnergy\n"
36519 ""},
36520 { (char *)"GModelSpectralLogParabola_read", _wrap_GModelSpectralLogParabola_read, METH_VARARGS0x0001, (char *)"GModelSpectralLogParabola_read(GModelSpectralLogParabola self, GXmlElement const & xml)"},
36521 { (char *)"GModelSpectralLogParabola_write", _wrap_GModelSpectralLogParabola_write, METH_VARARGS0x0001, (char *)"GModelSpectralLogParabola_write(GModelSpectralLogParabola self, GXmlElement & xml)"},
36522 { (char *)"GModelSpectralLogParabola_prefactor", _wrap_GModelSpectralLogParabola_prefactor, METH_VARARGS0x0001, (char *)"\n"
36523 "prefactor() -> double\n"
36524 "GModelSpectralLogParabola_prefactor(GModelSpectralLogParabola self, double const & prefactor)\n"
36525 ""},
36526 { (char *)"GModelSpectralLogParabola_index", _wrap_GModelSpectralLogParabola_index, METH_VARARGS0x0001, (char *)"\n"
36527 "index() -> double\n"
36528 "GModelSpectralLogParabola_index(GModelSpectralLogParabola self, double const & index)\n"
36529 ""},
36530 { (char *)"GModelSpectralLogParabola_pivot", _wrap_GModelSpectralLogParabola_pivot, METH_VARARGS0x0001, (char *)"\n"
36531 "pivot() -> GEnergy\n"
36532 "GModelSpectralLogParabola_pivot(GModelSpectralLogParabola self, GEnergy const & pivot)\n"
36533 ""},
36534 { (char *)"GModelSpectralLogParabola_curvature", _wrap_GModelSpectralLogParabola_curvature, METH_VARARGS0x0001, (char *)"\n"
36535 "curvature() -> double\n"
36536 "GModelSpectralLogParabola_curvature(GModelSpectralLogParabola self, double const & curvature)\n"
36537 ""},
36538 { (char *)"GModelSpectralLogParabola_copy", _wrap_GModelSpectralLogParabola_copy, METH_VARARGS0x0001, (char *)"GModelSpectralLogParabola_copy(GModelSpectralLogParabola self) -> GModelSpectralLogParabola"},
36539 { (char *)"GModelSpectralLogParabola_swigregister", GModelSpectralLogParabola_swigregister, METH_VARARGS0x0001, NULL__null},
36540 { (char *)"delete_GModelTemporal", _wrap_delete_GModelTemporal, METH_VARARGS0x0001, (char *)"delete_GModelTemporal(GModelTemporal self)"},
36541 { (char *)"GModelTemporal_clear", _wrap_GModelTemporal_clear, METH_VARARGS0x0001, (char *)"GModelTemporal_clear(GModelTemporal self)"},
36542 { (char *)"GModelTemporal_clone", _wrap_GModelTemporal_clone, METH_VARARGS0x0001, (char *)"GModelTemporal_clone(GModelTemporal self) -> GModelTemporal"},
36543 { (char *)"GModelTemporal_type", _wrap_GModelTemporal_type, METH_VARARGS0x0001, (char *)"GModelTemporal_type(GModelTemporal self) -> std::string"},
36544 { (char *)"GModelTemporal_eval", _wrap_GModelTemporal_eval, METH_VARARGS0x0001, (char *)"GModelTemporal_eval(GModelTemporal self, GTime const & srcTime) -> double"},
36545 { (char *)"GModelTemporal_eval_gradients", _wrap_GModelTemporal_eval_gradients, METH_VARARGS0x0001, (char *)"GModelTemporal_eval_gradients(GModelTemporal self, GTime const & srcTime) -> double"},
36546 { (char *)"GModelTemporal_mc", _wrap_GModelTemporal_mc, METH_VARARGS0x0001, (char *)"\n"
36547 "GModelTemporal_mc(GModelTemporal self, double const & rate, GTime const & tmin, GTime const & tmax, \n"
36548 " GRan & ran) -> GTimes\n"
36549 ""},
36550 { (char *)"GModelTemporal_read", _wrap_GModelTemporal_read, METH_VARARGS0x0001, (char *)"GModelTemporal_read(GModelTemporal self, GXmlElement const & xml)"},
36551 { (char *)"GModelTemporal_write", _wrap_GModelTemporal_write, METH_VARARGS0x0001, (char *)"GModelTemporal_write(GModelTemporal self, GXmlElement & xml)"},
36552 { (char *)"GModelTemporal_size", _wrap_GModelTemporal_size, METH_VARARGS0x0001, (char *)"GModelTemporal_size(GModelTemporal self) -> int"},
36553 { (char *)"GModelTemporal_autoscale", _wrap_GModelTemporal_autoscale, METH_VARARGS0x0001, (char *)"GModelTemporal_autoscale(GModelTemporal self)"},
36554 { (char *)"GModelTemporal___getitem__", _wrap_GModelTemporal___getitem__, METH_VARARGS0x0001, (char *)"\n"
36555 "__getitem__(int const & index) -> GModelPar\n"
36556 "GModelTemporal___getitem__(GModelTemporal self, std::string const & name) -> GModelPar\n"
36557 ""},
36558 { (char *)"GModelTemporal___setitem__", _wrap_GModelTemporal___setitem__, METH_VARARGS0x0001, (char *)"\n"
36559 "__setitem__(int const & index, GModelPar val)\n"
36560 "GModelTemporal___setitem__(GModelTemporal self, std::string const & name, GModelPar val)\n"
36561 ""},
36562 { (char *)"GModelTemporal_swigregister", GModelTemporal_swigregister, METH_VARARGS0x0001, NULL__null},
36563 { (char *)"new_GModelTemporalRegistry", _wrap_new_GModelTemporalRegistry, METH_VARARGS0x0001, (char *)"\n"
36564 "GModelTemporalRegistry()\n"
36565 "GModelTemporalRegistry(GModelTemporal model)\n"
36566 "new_GModelTemporalRegistry(GModelTemporalRegistry registry) -> GModelTemporalRegistry\n"
36567 ""},
36568 { (char *)"delete_GModelTemporalRegistry", _wrap_delete_GModelTemporalRegistry, METH_VARARGS0x0001, (char *)"delete_GModelTemporalRegistry(GModelTemporalRegistry self)"},
36569 { (char *)"GModelTemporalRegistry_size", _wrap_GModelTemporalRegistry_size, METH_VARARGS0x0001, (char *)"GModelTemporalRegistry_size(GModelTemporalRegistry self) -> int"},
36570 { (char *)"GModelTemporalRegistry_alloc", _wrap_GModelTemporalRegistry_alloc, METH_VARARGS0x0001, (char *)"GModelTemporalRegistry_alloc(GModelTemporalRegistry self, std::string const & name) -> GModelTemporal"},
36571 { (char *)"GModelTemporalRegistry_name", _wrap_GModelTemporalRegistry_name, METH_VARARGS0x0001, (char *)"GModelTemporalRegistry_name(GModelTemporalRegistry self, int const & index) -> std::string"},
36572 { (char *)"GModelTemporalRegistry_swigregister", GModelTemporalRegistry_swigregister, METH_VARARGS0x0001, NULL__null},
36573 { (char *)"new_GModelTemporalConst", _wrap_new_GModelTemporalConst, METH_VARARGS0x0001, (char *)"\n"
36574 "GModelTemporalConst()\n"
36575 "GModelTemporalConst(double const & norm)\n"
36576 "new_GModelTemporalConst(GModelTemporalConst model) -> GModelTemporalConst\n"
36577 ""},
36578 { (char *)"delete_GModelTemporalConst", _wrap_delete_GModelTemporalConst, METH_VARARGS0x0001, (char *)"delete_GModelTemporalConst(GModelTemporalConst self)"},
36579 { (char *)"GModelTemporalConst_clear", _wrap_GModelTemporalConst_clear, METH_VARARGS0x0001, (char *)"GModelTemporalConst_clear(GModelTemporalConst self)"},
36580 { (char *)"GModelTemporalConst_clone", _wrap_GModelTemporalConst_clone, METH_VARARGS0x0001, (char *)"GModelTemporalConst_clone(GModelTemporalConst self) -> GModelTemporalConst"},
36581 { (char *)"GModelTemporalConst_type", _wrap_GModelTemporalConst_type, METH_VARARGS0x0001, (char *)"GModelTemporalConst_type(GModelTemporalConst self) -> std::string"},
36582 { (char *)"GModelTemporalConst_eval", _wrap_GModelTemporalConst_eval, METH_VARARGS0x0001, (char *)"GModelTemporalConst_eval(GModelTemporalConst self, GTime const & srcTime) -> double"},
36583 { (char *)"GModelTemporalConst_eval_gradients", _wrap_GModelTemporalConst_eval_gradients, METH_VARARGS0x0001, (char *)"GModelTemporalConst_eval_gradients(GModelTemporalConst self, GTime const & srcTime) -> double"},
36584 { (char *)"GModelTemporalConst_mc", _wrap_GModelTemporalConst_mc, METH_VARARGS0x0001, (char *)"\n"
36585 "GModelTemporalConst_mc(GModelTemporalConst self, double const & rate, GTime const & tmin, GTime const & tmax, \n"
36586 " GRan & ran) -> GTimes\n"
36587 ""},
36588 { (char *)"GModelTemporalConst_read", _wrap_GModelTemporalConst_read, METH_VARARGS0x0001, (char *)"GModelTemporalConst_read(GModelTemporalConst self, GXmlElement const & xml)"},
36589 { (char *)"GModelTemporalConst_write", _wrap_GModelTemporalConst_write, METH_VARARGS0x0001, (char *)"GModelTemporalConst_write(GModelTemporalConst self, GXmlElement & xml)"},
36590 { (char *)"GModelTemporalConst_norm", _wrap_GModelTemporalConst_norm, METH_VARARGS0x0001, (char *)"\n"
36591 "norm() -> double\n"
36592 "GModelTemporalConst_norm(GModelTemporalConst self, double const & norm)\n"
36593 ""},
36594 { (char *)"GModelTemporalConst_copy", _wrap_GModelTemporalConst_copy, METH_VARARGS0x0001, (char *)"GModelTemporalConst_copy(GModelTemporalConst self) -> GModelTemporalConst"},
36595 { (char *)"GModelTemporalConst_swigregister", GModelTemporalConst_swigregister, METH_VARARGS0x0001, NULL__null},
36596 { NULL__null, NULL__null, 0, NULL__null }
36597};
36598
36599
36600/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
36601
36602static void *_p_GModelRegistryTo_p_GRegistry(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36603 return (void *)((GRegistry *) ((GModelRegistry *) x));
36604}
36605static void *_p_GModelSpatialRegistryTo_p_GRegistry(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36606 return (void *)((GRegistry *) ((GModelSpatialRegistry *) x));
36607}
36608static void *_p_GModelSpectralRegistryTo_p_GRegistry(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36609 return (void *)((GRegistry *) ((GModelSpectralRegistry *) x));
36610}
36611static void *_p_GModelTemporalRegistryTo_p_GRegistry(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36612 return (void *)((GRegistry *) ((GModelTemporalRegistry *) x));
36613}
36614static void *_p_GModelSpatialEllipticalTo_p_GModelSpatial(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36615 return (void *)((GModelSpatial *) ((GModelSpatialElliptical *) x));
36616}
36617static void *_p_GModelSpatialPointSourceTo_p_GModelSpatial(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36618 return (void *)((GModelSpatial *) ((GModelSpatialPointSource *) x));
36619}
36620static void *_p_GModelSpatialDiffuseTo_p_GModelSpatial(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36621 return (void *)((GModelSpatial *) ((GModelSpatialDiffuse *) x));
36622}
36623static void *_p_GModelSpatialDiffuseConstTo_p_GModelSpatial(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36624 return (void *)((GModelSpatial *) (GModelSpatialDiffuse *) ((GModelSpatialDiffuseConst *) x));
36625}
36626static void *_p_GModelSpatialRadialGaussTo_p_GModelSpatial(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36627 return (void *)((GModelSpatial *) (GModelSpatialRadial *) ((GModelSpatialRadialGauss *) x));
36628}
36629static void *_p_GModelSpatialDiffuseCubeTo_p_GModelSpatial(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36630 return (void *)((GModelSpatial *) (GModelSpatialDiffuse *) ((GModelSpatialDiffuseCube *) x));
36631}
36632static void *_p_GModelSpatialRadialTo_p_GModelSpatial(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36633 return (void *)((GModelSpatial *) ((GModelSpatialRadial *) x));
36634}
36635static void *_p_GModelSpatialRadialDiskTo_p_GModelSpatial(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36636 return (void *)((GModelSpatial *) (GModelSpatialRadial *) ((GModelSpatialRadialDisk *) x));
36637}
36638static void *_p_GModelSpatialRadialShellTo_p_GModelSpatial(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36639 return (void *)((GModelSpatial *) (GModelSpatialRadial *) ((GModelSpatialRadialShell *) x));
36640}
36641static void *_p_GModelSpatialEllipticalDiskTo_p_GModelSpatial(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36642 return (void *)((GModelSpatial *) (GModelSpatialElliptical *) ((GModelSpatialEllipticalDisk *) x));
36643}
36644static void *_p_GModelSpatialDiffuseMapTo_p_GModelSpatial(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36645 return (void *)((GModelSpatial *) (GModelSpatialDiffuse *) ((GModelSpatialDiffuseMap *) x));
36646}
36647static void *_p_GOptimizerParsTo_p_GContainer(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36648 return (void *)((GContainer *) ((GOptimizerPars *) x));
36649}
36650static void *_p_GModelsTo_p_GContainer(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36651 return (void *)((GContainer *) ((GModels *) x));
36652}
36653static void *_p_GModelParTo_p_GOptimizerPar(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36654 return (void *)((GOptimizerPar *) ((GModelPar *) x));
36655}
36656static void *_p_GModelSpectralConstTo_p_GModelSpectral(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36657 return (void *)((GModelSpectral *) ((GModelSpectralConst *) x));
36658}
36659static void *_p_GModelSpectralPlaw2To_p_GModelSpectral(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36660 return (void *)((GModelSpectral *) ((GModelSpectralPlaw2 *) x));
36661}
36662static void *_p_GModelSpectralExpPlawTo_p_GModelSpectral(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36663 return (void *)((GModelSpectral *) ((GModelSpectralExpPlaw *) x));
36664}
36665static void *_p_GModelSpectralFuncTo_p_GModelSpectral(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36666 return (void *)((GModelSpectral *) ((GModelSpectralFunc *) x));
36667}
36668static void *_p_GModelSpectralNodesTo_p_GModelSpectral(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36669 return (void *)((GModelSpectral *) ((GModelSpectralNodes *) x));
36670}
36671static void *_p_GModelSpectralPlawTo_p_GModelSpectral(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36672 return (void *)((GModelSpectral *) ((GModelSpectralPlaw *) x));
36673}
36674static void *_p_GModelSpectralLogParabolaTo_p_GModelSpectral(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36675 return (void *)((GModelSpectral *) ((GModelSpectralLogParabola *) x));
36676}
36677static void *_p_GModelSpatialDiffuseConstTo_p_GModelSpatialDiffuse(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36678 return (void *)((GModelSpatialDiffuse *) ((GModelSpatialDiffuseConst *) x));
36679}
36680static void *_p_GModelSpatialDiffuseCubeTo_p_GModelSpatialDiffuse(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36681 return (void *)((GModelSpatialDiffuse *) ((GModelSpatialDiffuseCube *) x));
36682}
36683static void *_p_GModelSpatialDiffuseMapTo_p_GModelSpatialDiffuse(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36684 return (void *)((GModelSpatialDiffuse *) ((GModelSpatialDiffuseMap *) x));
36685}
36686static void *_p_GModelTemporalConstTo_p_GModelTemporal(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36687 return (void *)((GModelTemporal *) ((GModelTemporalConst *) x));
36688}
36689static void *_p_GModelSpatialRadialShellTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36690 return (void *)((GBase *) (GModelSpatial *)(GModelSpatialRadial *) ((GModelSpatialRadialShell *) x));
36691}
36692static void *_p_GModelSpatialRadialTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36693 return (void *)((GBase *) (GModelSpatial *) ((GModelSpatialRadial *) x));
36694}
36695static void *_p_GModelSpectralFuncTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36696 return (void *)((GBase *) (GModelSpectral *) ((GModelSpectralFunc *) x));
36697}
36698static void *_p_GModelSpectralNodesTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36699 return (void *)((GBase *) (GModelSpectral *) ((GModelSpectralNodes *) x));
36700}
36701static void *_p_GModelTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36702 return (void *)((GBase *) ((GModel *) x));
36703}
36704static void *_p_GOptimizerParsTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36705 return (void *)((GBase *) (GContainer *) ((GOptimizerPars *) x));
36706}
36707static void *_p_GModelSpatialRadialDiskTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36708 return (void *)((GBase *) (GModelSpatial *)(GModelSpatialRadial *) ((GModelSpatialRadialDisk *) x));
36709}
36710static void *_p_GModelSpatialTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36711 return (void *)((GBase *) ((GModelSpatial *) x));
36712}
36713static void *_p_GModelSpatialEllipticalDiskTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36714 return (void *)((GBase *) (GModelSpatial *)(GModelSpatialElliptical *) ((GModelSpatialEllipticalDisk *) x));
36715}
36716static void *_p_GModelSpatialDiffuseMapTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36717 return (void *)((GBase *) (GModelSpatial *)(GModelSpatialDiffuse *) ((GModelSpatialDiffuseMap *) x));
36718}
36719static void *_p_GModelSpatialRadialGaussTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36720 return (void *)((GBase *) (GModelSpatial *)(GModelSpatialRadial *) ((GModelSpatialRadialGauss *) x));
36721}
36722static void *_p_GModelSpectralConstTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36723 return (void *)((GBase *) (GModelSpectral *) ((GModelSpectralConst *) x));
36724}
36725static void *_p_GModelSpectralLogParabolaTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36726 return (void *)((GBase *) (GModelSpectral *) ((GModelSpectralLogParabola *) x));
36727}
36728static void *_p_GModelTemporalConstTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36729 return (void *)((GBase *) (GModelTemporal *) ((GModelTemporalConst *) x));
36730}
36731static void *_p_GModelTemporalTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36732 return (void *)((GBase *) ((GModelTemporal *) x));
36733}
36734static void *_p_GModelsTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36735 return (void *)((GBase *) (GContainer *) ((GModels *) x));
36736}
36737static void *_p_GOptimizerParTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36738 return (void *)((GBase *) ((GOptimizerPar *) x));
36739}
36740static void *_p_GModelSpatialDiffuseConstTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36741 return (void *)((GBase *) (GModelSpatial *)(GModelSpatialDiffuse *) ((GModelSpatialDiffuseConst *) x));
36742}
36743static void *_p_GModelSpectralExpPlawTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36744 return (void *)((GBase *) (GModelSpectral *) ((GModelSpectralExpPlaw *) x));
36745}
36746static void *_p_GModelSpectralPlaw2To_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36747 return (void *)((GBase *) (GModelSpectral *) ((GModelSpectralPlaw2 *) x));
36748}
36749static void *_p_GContainerTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36750 return (void *)((GBase *) ((GContainer *) x));
36751}
36752static void *_p_GModelSpatialDiffuseCubeTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36753 return (void *)((GBase *) (GModelSpatial *)(GModelSpatialDiffuse *) ((GModelSpatialDiffuseCube *) x));
36754}
36755static void *_p_GModelSpectralTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36756 return (void *)((GBase *) ((GModelSpectral *) x));
36757}
36758static void *_p_GModelSkyTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36759 return (void *)((GBase *) (GModel *) ((GModelSky *) x));
36760}
36761static void *_p_GModelSpatialPointSourceTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36762 return (void *)((GBase *) (GModelSpatial *) ((GModelSpatialPointSource *) x));
36763}
36764static void *_p_GModelSpatialDiffuseTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36765 return (void *)((GBase *) (GModelSpatial *) ((GModelSpatialDiffuse *) x));
36766}
36767static void *_p_GModelParTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36768 return (void *)((GBase *) (GOptimizerPar *) ((GModelPar *) x));
36769}
36770static void *_p_GModelDataTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36771 return (void *)((GBase *) (GModel *) ((GModelData *) x));
36772}
36773static void *_p_GModelSpatialEllipticalTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36774 return (void *)((GBase *) (GModelSpatial *) ((GModelSpatialElliptical *) x));
36775}
36776static void *_p_GModelSpectralPlawTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36777 return (void *)((GBase *) (GModelSpectral *) ((GModelSpectralPlaw *) x));
36778}
36779static void *_p_GModelSpatialRadialGaussTo_p_GModelSpatialRadial(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36780 return (void *)((GModelSpatialRadial *) ((GModelSpatialRadialGauss *) x));
36781}
36782static void *_p_GModelSpatialRadialDiskTo_p_GModelSpatialRadial(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36783 return (void *)((GModelSpatialRadial *) ((GModelSpatialRadialDisk *) x));
36784}
36785static void *_p_GModelSpatialRadialShellTo_p_GModelSpatialRadial(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36786 return (void *)((GModelSpatialRadial *) ((GModelSpatialRadialShell *) x));
36787}
36788static void *_p_GModelSpatialEllipticalDiskTo_p_GModelSpatialElliptical(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36789 return (void *)((GModelSpatialElliptical *) ((GModelSpatialEllipticalDisk *) x));
36790}
36791static void *_p_GModelSkyTo_p_GModel(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36792 return (void *)((GModel *) ((GModelSky *) x));
36793}
36794static void *_p_GModelDataTo_p_GModel(void *x, int *SWIGUNUSEDPARM(newmemory)) {
36795 return (void *)((GModel *) ((GModelData *) x));
36796}
36797static swig_type_info _swigt__p_GBase = {"_p_GBase", "GBase *", 0, 0, (void*)0, 0};
36798static swig_type_info _swigt__p_GContainer = {"_p_GContainer", "GContainer *", 0, 0, (void*)0, 0};
36799static swig_type_info _swigt__p_GEnergies = {"_p_GEnergies", "GEnergies *", 0, 0, (void*)0, 0};
36800static swig_type_info _swigt__p_GEnergy = {"_p_GEnergy", "GEnergy *", 0, 0, (void*)0, 0};
36801static swig_type_info _swigt__p_GEvent = {"_p_GEvent", "GEvent *", 0, 0, (void*)0, 0};
36802static swig_type_info _swigt__p_GEvents = {"_p_GEvents", "GEvents *", 0, 0, (void*)0, 0};
36803static swig_type_info _swigt__p_GModel = {"_p_GModel", "GModel *", 0, 0, (void*)0, 0};
36804static swig_type_info _swigt__p_GModelData = {"_p_GModelData", "GModelData *", 0, 0, (void*)0, 0};
36805static swig_type_info _swigt__p_GModelPar = {"_p_GModelPar", "GModelPar *", 0, 0, (void*)0, 0};
36806static swig_type_info _swigt__p_GModelRegistry = {"_p_GModelRegistry", "GModelRegistry *", 0, 0, (void*)0, 0};
36807static swig_type_info _swigt__p_GModelSky = {"_p_GModelSky", "GModelSky *", 0, 0, (void*)0, 0};
36808static swig_type_info _swigt__p_GModelSpatial = {"_p_GModelSpatial", "GModelSpatial *", 0, 0, (void*)0, 0};
36809static swig_type_info _swigt__p_GModelSpatialDiffuse = {"_p_GModelSpatialDiffuse", "GModelSpatialDiffuse *", 0, 0, (void*)0, 0};
36810static swig_type_info _swigt__p_GModelSpatialDiffuseConst = {"_p_GModelSpatialDiffuseConst", "GModelSpatialDiffuseConst *", 0, 0, (void*)0, 0};
36811static swig_type_info _swigt__p_GModelSpatialDiffuseCube = {"_p_GModelSpatialDiffuseCube", "GModelSpatialDiffuseCube *", 0, 0, (void*)0, 0};
36812static swig_type_info _swigt__p_GModelSpatialDiffuseMap = {"_p_GModelSpatialDiffuseMap", "GModelSpatialDiffuseMap *", 0, 0, (void*)0, 0};
36813static swig_type_info _swigt__p_GModelSpatialElliptical = {"_p_GModelSpatialElliptical", "GModelSpatialElliptical *", 0, 0, (void*)0, 0};
36814static swig_type_info _swigt__p_GModelSpatialEllipticalDisk = {"_p_GModelSpatialEllipticalDisk", "GModelSpatialEllipticalDisk *", 0, 0, (void*)0, 0};
36815static swig_type_info _swigt__p_GModelSpatialPointSource = {"_p_GModelSpatialPointSource", "GModelSpatialPointSource *", 0, 0, (void*)0, 0};
36816static swig_type_info _swigt__p_GModelSpatialRadial = {"_p_GModelSpatialRadial", "GModelSpatialRadial *", 0, 0, (void*)0, 0};
36817static swig_type_info _swigt__p_GModelSpatialRadialDisk = {"_p_GModelSpatialRadialDisk", "GModelSpatialRadialDisk *", 0, 0, (void*)0, 0};
36818static swig_type_info _swigt__p_GModelSpatialRadialGauss = {"_p_GModelSpatialRadialGauss", "GModelSpatialRadialGauss *", 0, 0, (void*)0, 0};
36819static swig_type_info _swigt__p_GModelSpatialRadialShell = {"_p_GModelSpatialRadialShell", "GModelSpatialRadialShell *", 0, 0, (void*)0, 0};
36820static swig_type_info _swigt__p_GModelSpatialRegistry = {"_p_GModelSpatialRegistry", "GModelSpatialRegistry *", 0, 0, (void*)0, 0};
36821static swig_type_info _swigt__p_GModelSpectral = {"_p_GModelSpectral", "GModelSpectral *", 0, 0, (void*)0, 0};
36822static swig_type_info _swigt__p_GModelSpectralConst = {"_p_GModelSpectralConst", "GModelSpectralConst *", 0, 0, (void*)0, 0};
36823static swig_type_info _swigt__p_GModelSpectralExpPlaw = {"_p_GModelSpectralExpPlaw", "GModelSpectralExpPlaw *", 0, 0, (void*)0, 0};
36824static swig_type_info _swigt__p_GModelSpectralFunc = {"_p_GModelSpectralFunc", "GModelSpectralFunc *", 0, 0, (void*)0, 0};
36825static swig_type_info _swigt__p_GModelSpectralLogParabola = {"_p_GModelSpectralLogParabola", "GModelSpectralLogParabola *", 0, 0, (void*)0, 0};
36826static swig_type_info _swigt__p_GModelSpectralNodes = {"_p_GModelSpectralNodes", "GModelSpectralNodes *", 0, 0, (void*)0, 0};
36827static swig_type_info _swigt__p_GModelSpectralPlaw = {"_p_GModelSpectralPlaw", "GModelSpectralPlaw *", 0, 0, (void*)0, 0};
36828static swig_type_info _swigt__p_GModelSpectralPlaw2 = {"_p_GModelSpectralPlaw2", "GModelSpectralPlaw2 *", 0, 0, (void*)0, 0};
36829static swig_type_info _swigt__p_GModelSpectralRegistry = {"_p_GModelSpectralRegistry", "GModelSpectralRegistry *", 0, 0, (void*)0, 0};
36830static swig_type_info _swigt__p_GModelTemporal = {"_p_GModelTemporal", "GModelTemporal *", 0, 0, (void*)0, 0};
36831static swig_type_info _swigt__p_GModelTemporalConst = {"_p_GModelTemporalConst", "GModelTemporalConst *", 0, 0, (void*)0, 0};
36832static swig_type_info _swigt__p_GModelTemporalRegistry = {"_p_GModelTemporalRegistry", "GModelTemporalRegistry *", 0, 0, (void*)0, 0};
36833static swig_type_info _swigt__p_GModels = {"_p_GModels", "GModels *", 0, 0, (void*)0, 0};
36834static swig_type_info _swigt__p_GObservation = {"_p_GObservation", "GObservation *", 0, 0, (void*)0, 0};
36835static swig_type_info _swigt__p_GOptimizerPar = {"_p_GOptimizerPar", "GOptimizerPar *", 0, 0, (void*)0, 0};
36836static swig_type_info _swigt__p_GOptimizerPars = {"_p_GOptimizerPars", "GOptimizerPars *", 0, 0, (void*)0, 0};
36837static swig_type_info _swigt__p_GPhoton = {"_p_GPhoton", "GPhoton *", 0, 0, (void*)0, 0};
36838static swig_type_info _swigt__p_GPhotons = {"_p_GPhotons", "GPhotons *", 0, 0, (void*)0, 0};
36839static swig_type_info _swigt__p_GRan = {"_p_GRan", "GRan *", 0, 0, (void*)0, 0};
36840static swig_type_info _swigt__p_GRegistry = {"_p_GRegistry", "GRegistry *", 0, 0, (void*)0, 0};
36841static swig_type_info _swigt__p_GSkyDir = {"_p_GSkyDir", "GSkyDir *", 0, 0, (void*)0, 0};
36842static swig_type_info _swigt__p_GSkymap = {"_p_GSkymap", "GSkymap *", 0, 0, (void*)0, 0};
36843static swig_type_info _swigt__p_GTime = {"_p_GTime", "GTime *", 0, 0, (void*)0, 0};
36844static swig_type_info _swigt__p_GTimes = {"_p_GTimes", "GTimes *", 0, 0, (void*)0, 0};
36845static swig_type_info _swigt__p_GVector = {"_p_GVector", "GVector *", 0, 0, (void*)0, 0};
36846static swig_type_info _swigt__p_GXml = {"_p_GXml", "GXml *", 0, 0, (void*)0, 0};
36847static swig_type_info _swigt__p_GXmlElement = {"_p_GXmlElement", "GXmlElement *", 0, 0, (void*)0, 0};
36848static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
36849static swig_type_info _swigt__p_std__invalid_argument = {"_p_std__invalid_argument", "std::invalid_argument *", 0, 0, (void*)0, 0};
36850static swig_type_info _swigt__p_swig__SwigPyIterator = {"_p_swig__SwigPyIterator", "swig::SwigPyIterator *", 0, 0, (void*)0, 0};
36851
36852static swig_type_info *swig_type_initial[] = {
36853 &_swigt__p_GBase,
36854 &_swigt__p_GContainer,
36855 &_swigt__p_GEnergies,
36856 &_swigt__p_GEnergy,
36857 &_swigt__p_GEvent,
36858 &_swigt__p_GEvents,
36859 &_swigt__p_GModel,
36860 &_swigt__p_GModelData,
36861 &_swigt__p_GModelPar,
36862 &_swigt__p_GModelRegistry,
36863 &_swigt__p_GModelSky,
36864 &_swigt__p_GModelSpatial,
36865 &_swigt__p_GModelSpatialDiffuse,
36866 &_swigt__p_GModelSpatialDiffuseConst,
36867 &_swigt__p_GModelSpatialDiffuseCube,
36868 &_swigt__p_GModelSpatialDiffuseMap,
36869 &_swigt__p_GModelSpatialElliptical,
36870 &_swigt__p_GModelSpatialEllipticalDisk,
36871 &_swigt__p_GModelSpatialPointSource,
36872 &_swigt__p_GModelSpatialRadial,
36873 &_swigt__p_GModelSpatialRadialDisk,
36874 &_swigt__p_GModelSpatialRadialGauss,
36875 &_swigt__p_GModelSpatialRadialShell,
36876 &_swigt__p_GModelSpatialRegistry,
36877 &_swigt__p_GModelSpectral,
36878 &_swigt__p_GModelSpectralConst,
36879 &_swigt__p_GModelSpectralExpPlaw,
36880 &_swigt__p_GModelSpectralFunc,
36881 &_swigt__p_GModelSpectralLogParabola,
36882 &_swigt__p_GModelSpectralNodes,
36883 &_swigt__p_GModelSpectralPlaw,
36884 &_swigt__p_GModelSpectralPlaw2,
36885 &_swigt__p_GModelSpectralRegistry,
36886 &_swigt__p_GModelTemporal,
36887 &_swigt__p_GModelTemporalConst,
36888 &_swigt__p_GModelTemporalRegistry,
36889 &_swigt__p_GModels,
36890 &_swigt__p_GObservation,
36891 &_swigt__p_GOptimizerPar,
36892 &_swigt__p_GOptimizerPars,
36893 &_swigt__p_GPhoton,
36894 &_swigt__p_GPhotons,
36895 &_swigt__p_GRan,
36896 &_swigt__p_GRegistry,
36897 &_swigt__p_GSkyDir,
36898 &_swigt__p_GSkymap,
36899 &_swigt__p_GTime,
36900 &_swigt__p_GTimes,
36901 &_swigt__p_GVector,
36902 &_swigt__p_GXml,
36903 &_swigt__p_GXmlElement,
36904 &_swigt__p_char,
36905 &_swigt__p_std__invalid_argument,
36906 &_swigt__p_swig__SwigPyIterator,
36907};
36908
36909static swig_cast_info _swigc__p_GBase[] = { {&_swigt__p_GModelSpatialRadialShell, _p_GModelSpatialRadialShellTo_p_GBase, 0, 0}, {&_swigt__p_GModelSpatialRadial, _p_GModelSpatialRadialTo_p_GBase, 0, 0}, {&_swigt__p_GModelSpectralFunc, _p_GModelSpectralFuncTo_p_GBase, 0, 0}, {&_swigt__p_GModelSpectralNodes, _p_GModelSpectralNodesTo_p_GBase, 0, 0}, {&_swigt__p_GOptimizerPars, _p_GOptimizerParsTo_p_GBase, 0, 0}, {&_swigt__p_GModelSpatialEllipticalDisk, _p_GModelSpatialEllipticalDiskTo_p_GBase, 0, 0}, {&_swigt__p_GModelSpatialDiffuseMap, _p_GModelSpatialDiffuseMapTo_p_GBase, 0, 0}, {&_swigt__p_GModelSpatialRadialDisk, _p_GModelSpatialRadialDiskTo_p_GBase, 0, 0}, {&_swigt__p_GModelSpatial, _p_GModelSpatialTo_p_GBase, 0, 0}, {&_swigt__p_GModelSpatialRadialGauss, _p_GModelSpatialRadialGaussTo_p_GBase, 0, 0}, {&_swigt__p_GModelSpectralLogParabola, _p_GModelSpectralLogParabolaTo_p_GBase, 0, 0}, {&_swigt__p_GModelSpectralConst, _p_GModelSpectralConstTo_p_GBase, 0, 0}, {&_swigt__p_GModelTemporalConst, _p_GModelTemporalConstTo_p_GBase, 0, 0}, {&_swigt__p_GModelTemporal, _p_GModelTemporalTo_p_GBase, 0, 0}, {&_swigt__p_GModels, _p_GModelsTo_p_GBase, 0, 0}, {&_swigt__p_GModelSpatialDiffuseConst, _p_GModelSpatialDiffuseConstTo_p_GBase, 0, 0}, {&_swigt__p_GOptimizerPar, _p_GOptimizerParTo_p_GBase, 0, 0}, {&_swigt__p_GModelSpectralExpPlaw, _p_GModelSpectralExpPlawTo_p_GBase, 0, 0}, {&_swigt__p_GBase, 0, 0, 0}, {&_swigt__p_GModelSpectralPlaw2, _p_GModelSpectralPlaw2To_p_GBase, 0, 0}, {&_swigt__p_GModelSpatialDiffuseCube, _p_GModelSpatialDiffuseCubeTo_p_GBase, 0, 0}, {&_swigt__p_GContainer, _p_GContainerTo_p_GBase, 0, 0}, {&_swigt__p_GModelSpectral, _p_GModelSpectralTo_p_GBase, 0, 0}, {&_swigt__p_GModelSpatialDiffuse, _p_GModelSpatialDiffuseTo_p_GBase, 0, 0}, {&_swigt__p_GModelSpatialPointSource, _p_GModelSpatialPointSourceTo_p_GBase, 0, 0}, {&_swigt__p_GModelSky, _p_GModelSkyTo_p_GBase, 0, 0}, {&_swigt__p_GModelPar, _p_GModelParTo_p_GBase, 0, 0}, {&_swigt__p_GModel, _p_GModelTo_p_GBase, 0, 0}, {&_swigt__p_GModelSpatialElliptical, _p_GModelSpatialEllipticalTo_p_GBase, 0, 0}, {&_swigt__p_GModelSpectralPlaw, _p_GModelSpectralPlawTo_p_GBase, 0, 0}, {&_swigt__p_GModelData, _p_GModelDataTo_p_GBase, 0, 0},{0, 0, 0, 0}};
36910static swig_cast_info _swigc__p_GContainer[] = { {&_swigt__p_GOptimizerPars, _p_GOptimizerParsTo_p_GContainer, 0, 0}, {&_swigt__p_GModels, _p_GModelsTo_p_GContainer, 0, 0}, {&_swigt__p_GContainer, 0, 0, 0},{0, 0, 0, 0}};
36911static swig_cast_info _swigc__p_GEnergies[] = { {&_swigt__p_GEnergies, 0, 0, 0},{0, 0, 0, 0}};
36912static swig_cast_info _swigc__p_GEnergy[] = { {&_swigt__p_GEnergy, 0, 0, 0},{0, 0, 0, 0}};
36913static swig_cast_info _swigc__p_GEvent[] = { {&_swigt__p_GEvent, 0, 0, 0},{0, 0, 0, 0}};
36914static swig_cast_info _swigc__p_GEvents[] = { {&_swigt__p_GEvents, 0, 0, 0},{0, 0, 0, 0}};
36915static swig_cast_info _swigc__p_GModel[] = { {&_swigt__p_GModelSky, _p_GModelSkyTo_p_GModel, 0, 0}, {&_swigt__p_GModel, 0, 0, 0}, {&_swigt__p_GModelData, _p_GModelDataTo_p_GModel, 0, 0},{0, 0, 0, 0}};
36916static swig_cast_info _swigc__p_GModelData[] = { {&_swigt__p_GModelData, 0, 0, 0},{0, 0, 0, 0}};
36917static swig_cast_info _swigc__p_GModelPar[] = { {&_swigt__p_GModelPar, 0, 0, 0},{0, 0, 0, 0}};
36918static swig_cast_info _swigc__p_GModelRegistry[] = { {&_swigt__p_GModelRegistry, 0, 0, 0},{0, 0, 0, 0}};
36919static swig_cast_info _swigc__p_GModelSky[] = { {&_swigt__p_GModelSky, 0, 0, 0},{0, 0, 0, 0}};
36920static swig_cast_info _swigc__p_GModelSpatial[] = { {&_swigt__p_GModelSpatialElliptical, _p_GModelSpatialEllipticalTo_p_GModelSpatial, 0, 0}, {&_swigt__p_GModelSpatialPointSource, _p_GModelSpatialPointSourceTo_p_GModelSpatial, 0, 0}, {&_swigt__p_GModelSpatialDiffuse, _p_GModelSpatialDiffuseTo_p_GModelSpatial, 0, 0}, {&_swigt__p_GModelSpatialDiffuseConst, _p_GModelSpatialDiffuseConstTo_p_GModelSpatial, 0, 0}, {&_swigt__p_GModelSpatial, 0, 0, 0}, {&_swigt__p_GModelSpatialRadialGauss, _p_GModelSpatialRadialGaussTo_p_GModelSpatial, 0, 0}, {&_swigt__p_GModelSpatialDiffuseCube, _p_GModelSpatialDiffuseCubeTo_p_GModelSpatial, 0, 0}, {&_swigt__p_GModelSpatialEllipticalDisk, _p_GModelSpatialEllipticalDiskTo_p_GModelSpatial, 0, 0}, {&_swigt__p_GModelSpatialDiffuseMap, _p_GModelSpatialDiffuseMapTo_p_GModelSpatial, 0, 0}, {&_swigt__p_GModelSpatialRadial, _p_GModelSpatialRadialTo_p_GModelSpatial, 0, 0}, {&_swigt__p_GModelSpatialRadialDisk, _p_GModelSpatialRadialDiskTo_p_GModelSpatial, 0, 0}, {&_swigt__p_GModelSpatialRadialShell, _p_GModelSpatialRadialShellTo_p_GModelSpatial, 0, 0},{0, 0, 0, 0}};
36921static swig_cast_info _swigc__p_GModelSpatialDiffuse[] = { {&_swigt__p_GModelSpatialDiffuse, 0, 0, 0}, {&_swigt__p_GModelSpatialDiffuseConst, _p_GModelSpatialDiffuseConstTo_p_GModelSpatialDiffuse, 0, 0}, {&_swigt__p_GModelSpatialDiffuseCube, _p_GModelSpatialDiffuseCubeTo_p_GModelSpatialDiffuse, 0, 0}, {&_swigt__p_GModelSpatialDiffuseMap, _p_GModelSpatialDiffuseMapTo_p_GModelSpatialDiffuse, 0, 0},{0, 0, 0, 0}};
36922static swig_cast_info _swigc__p_GModelSpatialDiffuseConst[] = { {&_swigt__p_GModelSpatialDiffuseConst, 0, 0, 0},{0, 0, 0, 0}};
36923static swig_cast_info _swigc__p_GModelSpatialDiffuseCube[] = { {&_swigt__p_GModelSpatialDiffuseCube, 0, 0, 0},{0, 0, 0, 0}};
36924static swig_cast_info _swigc__p_GModelSpatialDiffuseMap[] = { {&_swigt__p_GModelSpatialDiffuseMap, 0, 0, 0},{0, 0, 0, 0}};
36925static swig_cast_info _swigc__p_GModelSpatialElliptical[] = { {&_swigt__p_GModelSpatialElliptical, 0, 0, 0}, {&_swigt__p_GModelSpatialEllipticalDisk, _p_GModelSpatialEllipticalDiskTo_p_GModelSpatialElliptical, 0, 0},{0, 0, 0, 0}};
36926static swig_cast_info _swigc__p_GModelSpatialEllipticalDisk[] = { {&_swigt__p_GModelSpatialEllipticalDisk, 0, 0, 0},{0, 0, 0, 0}};
36927static swig_cast_info _swigc__p_GModelSpatialPointSource[] = { {&_swigt__p_GModelSpatialPointSource, 0, 0, 0},{0, 0, 0, 0}};
36928static swig_cast_info _swigc__p_GModelSpatialRadial[] = { {&_swigt__p_GModelSpatialRadialGauss, _p_GModelSpatialRadialGaussTo_p_GModelSpatialRadial, 0, 0}, {&_swigt__p_GModelSpatialRadial, 0, 0, 0}, {&_swigt__p_GModelSpatialRadialDisk, _p_GModelSpatialRadialDiskTo_p_GModelSpatialRadial, 0, 0}, {&_swigt__p_GModelSpatialRadialShell, _p_GModelSpatialRadialShellTo_p_GModelSpatialRadial, 0, 0},{0, 0, 0, 0}};
36929static swig_cast_info _swigc__p_GModelSpatialRadialDisk[] = { {&_swigt__p_GModelSpatialRadialDisk, 0, 0, 0},{0, 0, 0, 0}};
36930static swig_cast_info _swigc__p_GModelSpatialRadialGauss[] = { {&_swigt__p_GModelSpatialRadialGauss, 0, 0, 0},{0, 0, 0, 0}};
36931static swig_cast_info _swigc__p_GModelSpatialRadialShell[] = { {&_swigt__p_GModelSpatialRadialShell, 0, 0, 0},{0, 0, 0, 0}};
36932static swig_cast_info _swigc__p_GModelSpatialRegistry[] = { {&_swigt__p_GModelSpatialRegistry, 0, 0, 0},{0, 0, 0, 0}};
36933static swig_cast_info _swigc__p_GModelSpectral[] = { {&_swigt__p_GModelSpectral, 0, 0, 0}, {&_swigt__p_GModelSpectralConst, _p_GModelSpectralConstTo_p_GModelSpectral, 0, 0}, {&_swigt__p_GModelSpectralPlaw2, _p_GModelSpectralPlaw2To_p_GModelSpectral, 0, 0}, {&_swigt__p_GModelSpectralExpPlaw, _p_GModelSpectralExpPlawTo_p_GModelSpectral, 0, 0}, {&_swigt__p_GModelSpectralFunc, _p_GModelSpectralFuncTo_p_GModelSpectral, 0, 0}, {&_swigt__p_GModelSpectralNodes, _p_GModelSpectralNodesTo_p_GModelSpectral, 0, 0}, {&_swigt__p_GModelSpectralPlaw, _p_GModelSpectralPlawTo_p_GModelSpectral, 0, 0}, {&_swigt__p_GModelSpectralLogParabola, _p_GModelSpectralLogParabolaTo_p_GModelSpectral, 0, 0},{0, 0, 0, 0}};
36934static swig_cast_info _swigc__p_GModelSpectralConst[] = { {&_swigt__p_GModelSpectralConst, 0, 0, 0},{0, 0, 0, 0}};
36935static swig_cast_info _swigc__p_GModelSpectralExpPlaw[] = { {&_swigt__p_GModelSpectralExpPlaw, 0, 0, 0},{0, 0, 0, 0}};
36936static swig_cast_info _swigc__p_GModelSpectralFunc[] = { {&_swigt__p_GModelSpectralFunc, 0, 0, 0},{0, 0, 0, 0}};
36937static swig_cast_info _swigc__p_GModelSpectralLogParabola[] = { {&_swigt__p_GModelSpectralLogParabola, 0, 0, 0},{0, 0, 0, 0}};
36938static swig_cast_info _swigc__p_GModelSpectralNodes[] = { {&_swigt__p_GModelSpectralNodes, 0, 0, 0},{0, 0, 0, 0}};
36939static swig_cast_info _swigc__p_GModelSpectralPlaw[] = { {&_swigt__p_GModelSpectralPlaw, 0, 0, 0},{0, 0, 0, 0}};
36940static swig_cast_info _swigc__p_GModelSpectralPlaw2[] = { {&_swigt__p_GModelSpectralPlaw2, 0, 0, 0},{0, 0, 0, 0}};
36941static swig_cast_info _swigc__p_GModelSpectralRegistry[] = { {&_swigt__p_GModelSpectralRegistry, 0, 0, 0},{0, 0, 0, 0}};
36942static swig_cast_info _swigc__p_GModelTemporal[] = { {&_swigt__p_GModelTemporal, 0, 0, 0}, {&_swigt__p_GModelTemporalConst, _p_GModelTemporalConstTo_p_GModelTemporal, 0, 0},{0, 0, 0, 0}};
36943static swig_cast_info _swigc__p_GModelTemporalConst[] = { {&_swigt__p_GModelTemporalConst, 0, 0, 0},{0, 0, 0, 0}};
36944static swig_cast_info _swigc__p_GModelTemporalRegistry[] = { {&_swigt__p_GModelTemporalRegistry, 0, 0, 0},{0, 0, 0, 0}};
36945static swig_cast_info _swigc__p_GModels[] = { {&_swigt__p_GModels, 0, 0, 0},{0, 0, 0, 0}};
36946static swig_cast_info _swigc__p_GObservation[] = { {&_swigt__p_GObservation, 0, 0, 0},{0, 0, 0, 0}};
36947static swig_cast_info _swigc__p_GOptimizerPar[] = { {&_swigt__p_GOptimizerPar, 0, 0, 0}, {&_swigt__p_GModelPar, _p_GModelParTo_p_GOptimizerPar, 0, 0},{0, 0, 0, 0}};
36948static swig_cast_info _swigc__p_GOptimizerPars[] = { {&_swigt__p_GOptimizerPars, 0, 0, 0},{0, 0, 0, 0}};
36949static swig_cast_info _swigc__p_GPhoton[] = { {&_swigt__p_GPhoton, 0, 0, 0},{0, 0, 0, 0}};
36950static swig_cast_info _swigc__p_GPhotons[] = { {&_swigt__p_GPhotons, 0, 0, 0},{0, 0, 0, 0}};
36951static swig_cast_info _swigc__p_GRan[] = { {&_swigt__p_GRan, 0, 0, 0},{0, 0, 0, 0}};
36952static swig_cast_info _swigc__p_GRegistry[] = { {&_swigt__p_GRegistry, 0, 0, 0}, {&_swigt__p_GModelRegistry, _p_GModelRegistryTo_p_GRegistry, 0, 0}, {&_swigt__p_GModelSpatialRegistry, _p_GModelSpatialRegistryTo_p_GRegistry, 0, 0}, {&_swigt__p_GModelSpectralRegistry, _p_GModelSpectralRegistryTo_p_GRegistry, 0, 0}, {&_swigt__p_GModelTemporalRegistry, _p_GModelTemporalRegistryTo_p_GRegistry, 0, 0},{0, 0, 0, 0}};
36953static swig_cast_info _swigc__p_GSkyDir[] = { {&_swigt__p_GSkyDir, 0, 0, 0},{0, 0, 0, 0}};
36954static swig_cast_info _swigc__p_GSkymap[] = { {&_swigt__p_GSkymap, 0, 0, 0},{0, 0, 0, 0}};
36955static swig_cast_info _swigc__p_GTime[] = { {&_swigt__p_GTime, 0, 0, 0},{0, 0, 0, 0}};
36956static swig_cast_info _swigc__p_GTimes[] = { {&_swigt__p_GTimes, 0, 0, 0},{0, 0, 0, 0}};
36957static swig_cast_info _swigc__p_GVector[] = { {&_swigt__p_GVector, 0, 0, 0},{0, 0, 0, 0}};
36958static swig_cast_info _swigc__p_GXml[] = { {&_swigt__p_GXml, 0, 0, 0},{0, 0, 0, 0}};
36959static swig_cast_info _swigc__p_GXmlElement[] = { {&_swigt__p_GXmlElement, 0, 0, 0},{0, 0, 0, 0}};
36960static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
36961static swig_cast_info _swigc__p_std__invalid_argument[] = { {&_swigt__p_std__invalid_argument, 0, 0, 0},{0, 0, 0, 0}};
36962static swig_cast_info _swigc__p_swig__SwigPyIterator[] = { {&_swigt__p_swig__SwigPyIterator, 0, 0, 0},{0, 0, 0, 0}};
36963
36964static swig_cast_info *swig_cast_initial[] = {
36965 _swigc__p_GBase,
36966 _swigc__p_GContainer,
36967 _swigc__p_GEnergies,
36968 _swigc__p_GEnergy,
36969 _swigc__p_GEvent,
36970 _swigc__p_GEvents,
36971 _swigc__p_GModel,
36972 _swigc__p_GModelData,
36973 _swigc__p_GModelPar,
36974 _swigc__p_GModelRegistry,
36975 _swigc__p_GModelSky,
36976 _swigc__p_GModelSpatial,
36977 _swigc__p_GModelSpatialDiffuse,
36978 _swigc__p_GModelSpatialDiffuseConst,
36979 _swigc__p_GModelSpatialDiffuseCube,
36980 _swigc__p_GModelSpatialDiffuseMap,
36981 _swigc__p_GModelSpatialElliptical,
36982 _swigc__p_GModelSpatialEllipticalDisk,
36983 _swigc__p_GModelSpatialPointSource,
36984 _swigc__p_GModelSpatialRadial,
36985 _swigc__p_GModelSpatialRadialDisk,
36986 _swigc__p_GModelSpatialRadialGauss,
36987 _swigc__p_GModelSpatialRadialShell,
36988 _swigc__p_GModelSpatialRegistry,
36989 _swigc__p_GModelSpectral,
36990 _swigc__p_GModelSpectralConst,
36991 _swigc__p_GModelSpectralExpPlaw,
36992 _swigc__p_GModelSpectralFunc,
36993 _swigc__p_GModelSpectralLogParabola,
36994 _swigc__p_GModelSpectralNodes,
36995 _swigc__p_GModelSpectralPlaw,
36996 _swigc__p_GModelSpectralPlaw2,
36997 _swigc__p_GModelSpectralRegistry,
36998 _swigc__p_GModelTemporal,
36999 _swigc__p_GModelTemporalConst,
37000 _swigc__p_GModelTemporalRegistry,
37001 _swigc__p_GModels,
37002 _swigc__p_GObservation,
37003 _swigc__p_GOptimizerPar,
37004 _swigc__p_GOptimizerPars,
37005 _swigc__p_GPhoton,
37006 _swigc__p_GPhotons,
37007 _swigc__p_GRan,
37008 _swigc__p_GRegistry,
37009 _swigc__p_GSkyDir,
37010 _swigc__p_GSkymap,
37011 _swigc__p_GTime,
37012 _swigc__p_GTimes,
37013 _swigc__p_GVector,
37014 _swigc__p_GXml,
37015 _swigc__p_GXmlElement,
37016 _swigc__p_char,
37017 _swigc__p_std__invalid_argument,
37018 _swigc__p_swig__SwigPyIterator,
37019};
37020
37021
37022/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
37023
37024static swig_const_info swig_const_table[] = {
37025{0, 0, 0, 0.0, 0, 0}};
37026
37027#ifdef __cplusplus199711L
37028}
37029#endif
37030/* -----------------------------------------------------------------------------
37031 * Type initialization:
37032 * This problem is tough by the requirement that no dynamic
37033 * memory is used. Also, since swig_type_info structures store pointers to
37034 * swig_cast_info structures and swig_cast_info structures store pointers back
37035 * to swig_type_info structures, we need some lookup code at initialization.
37036 * The idea is that swig generates all the structures that are needed.
37037 * The runtime then collects these partially filled structures.
37038 * The SWIG_InitializeModule function takes these initial arrays out of
37039 * swig_module, and does all the lookup, filling in the swig_module.types
37040 * array with the correct data and linking the correct swig_cast_info
37041 * structures together.
37042 *
37043 * The generated swig_type_info structures are assigned staticly to an initial
37044 * array. We just loop through that array, and handle each type individually.
37045 * First we lookup if this type has been already loaded, and if so, use the
37046 * loaded structure instead of the generated one. Then we have to fill in the
37047 * cast linked list. The cast data is initially stored in something like a
37048 * two-dimensional array. Each row corresponds to a type (there are the same
37049 * number of rows as there are in the swig_type_initial array). Each entry in
37050 * a column is one of the swig_cast_info structures for that type.
37051 * The cast_initial array is actually an array of arrays, because each row has
37052 * a variable number of columns. So to actually build the cast linked list,
37053 * we find the array of casts associated with the type, and loop through it
37054 * adding the casts to the list. The one last trick we need to do is making
37055 * sure the type pointer in the swig_cast_info struct is correct.
37056 *
37057 * First off, we lookup the cast->type name to see if it is already loaded.
37058 * There are three cases to handle:
37059 * 1) If the cast->type has already been loaded AND the type we are adding
37060 * casting info to has not been loaded (it is in this module), THEN we
37061 * replace the cast->type pointer with the type pointer that has already
37062 * been loaded.
37063 * 2) If BOTH types (the one we are adding casting info to, and the
37064 * cast->type) are loaded, THEN the cast info has already been loaded by
37065 * the previous module so we just ignore it.
37066 * 3) Finally, if cast->type has not already been loaded, then we add that
37067 * swig_cast_info to the linked list (because the cast->type) pointer will
37068 * be correct.
37069 * ----------------------------------------------------------------------------- */
37070
37071#ifdef __cplusplus199711L
37072extern "C" {
37073#if 0
37074} /* c-mode */
37075#endif
37076#endif
37077
37078#if 0
37079#define SWIGRUNTIME_DEBUG
37080#endif
37081
37082
37083SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
37084SWIG_InitializeModule(void *clientdata) {
37085 size_t i;
37086 swig_module_info *module_head, *iter;
37087 int found, init;
37088
37089 /* check to see if the circular list has been setup, if not, set it up */
37090 if (swig_module.next==0) {
37091 /* Initialize the swig_module */
37092 swig_module.type_initial = swig_type_initial;
37093 swig_module.cast_initial = swig_cast_initial;
37094 swig_module.next = &swig_module;
37095 init = 1;
37096 } else {
37097 init = 0;
37098 }
37099
37100 /* Try and load any already created modules */
37101 module_head = SWIG_GetModule(clientdata)SWIG_Python_GetModule(clientdata);
37102 if (!module_head) {
37103 /* This is the first module loaded for this interpreter */
37104 /* so set the swig module into the interpreter */
37105 SWIG_SetModule(clientdata, &swig_module)SWIG_Python_SetModule(&swig_module);
37106 module_head = &swig_module;
Value stored to 'module_head' is never read
37107 } else {
37108 /* the interpreter has loaded a SWIG module, but has it loaded this one? */
37109 found=0;
37110 iter=module_head;
37111 do {
37112 if (iter==&swig_module) {
37113 found=1;
37114 break;
37115 }
37116 iter=iter->next;
37117 } while (iter!= module_head);
37118
37119 /* if the is found in the list, then all is done and we may leave */
37120 if (found) return;
37121 /* otherwise we must add out module into the list */
37122 swig_module.next = module_head->next;
37123 module_head->next = &swig_module;
37124 }
37125
37126 /* When multiple interpreters are used, a module could have already been initialized in
37127 a different interpreter, but not yet have a pointer in this interpreter.
37128 In this case, we do not want to continue adding types... everything should be
37129 set up already */
37130 if (init == 0) return;
37131
37132 /* Now work on filling in swig_module.types */
37133#ifdef SWIGRUNTIME_DEBUG
37134 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
37135#endif
37136 for (i = 0; i < swig_module.size; ++i) {
37137 swig_type_info *type = 0;
37138 swig_type_info *ret;
37139 swig_cast_info *cast;
37140
37141#ifdef SWIGRUNTIME_DEBUG
37142 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
37143#endif
37144
37145 /* if there is another module already loaded */
37146 if (swig_module.next != &swig_module) {
37147 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
37148 }
37149 if (type) {
37150 /* Overwrite clientdata field */
37151#ifdef SWIGRUNTIME_DEBUG
37152 printf("SWIG_InitializeModule: found type %s\n", type->name);
37153#endif
37154 if (swig_module.type_initial[i]->clientdata) {
37155 type->clientdata = swig_module.type_initial[i]->clientdata;
37156#ifdef SWIGRUNTIME_DEBUG
37157 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
37158#endif
37159 }
37160 } else {
37161 type = swig_module.type_initial[i];
37162 }
37163
37164 /* Insert casting types */
37165 cast = swig_module.cast_initial[i];
37166 while (cast->type) {
37167 /* Don't need to add information already in the list */
37168 ret = 0;
37169#ifdef SWIGRUNTIME_DEBUG
37170 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
37171#endif
37172 if (swig_module.next != &swig_module) {
37173 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
37174#ifdef SWIGRUNTIME_DEBUG
37175 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
37176#endif
37177 }
37178 if (ret) {
37179 if (type == swig_module.type_initial[i]) {
37180#ifdef SWIGRUNTIME_DEBUG
37181 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
37182#endif
37183 cast->type = ret;
37184 ret = 0;
37185 } else {
37186 /* Check for casting already in the list */
37187 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
37188#ifdef SWIGRUNTIME_DEBUG
37189 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
37190#endif
37191 if (!ocast) ret = 0;
37192 }
37193 }
37194
37195 if (!ret) {
37196#ifdef SWIGRUNTIME_DEBUG
37197 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
37198#endif
37199 if (type->cast) {
37200 type->cast->prev = cast;
37201 cast->next = type->cast;
37202 }
37203 type->cast = cast;
37204 }
37205 cast++;
37206 }
37207 /* Set entry in modules->types array equal to the type */
37208 swig_module.types[i] = type;
37209 }
37210 swig_module.types[i] = 0;
37211
37212#ifdef SWIGRUNTIME_DEBUG
37213 printf("**** SWIG_InitializeModule: Cast List ******\n");
37214 for (i = 0; i < swig_module.size; ++i) {
37215 int j = 0;
37216 swig_cast_info *cast = swig_module.cast_initial[i];
37217 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
37218 while (cast->type) {
37219 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
37220 cast++;
37221 ++j;
37222 }
37223 printf("---- Total casts: %d\n",j);
37224 }
37225 printf("**** SWIG_InitializeModule: Cast List ******\n");
37226#endif
37227}
37228
37229/* This function will propagate the clientdata field of type to
37230* any new swig_type_info structures that have been added into the list
37231* of equivalent types. It is like calling
37232* SWIG_TypeClientData(type, clientdata) a second time.
37233*/
37234SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
37235SWIG_PropagateClientData(void) {
37236 size_t i;
37237 swig_cast_info *equiv;
37238 static int init_run = 0;
37239
37240 if (init_run) return;
37241 init_run = 1;
37242
37243 for (i = 0; i < swig_module.size; i++) {
37244 if (swig_module.types[i]->clientdata) {
37245 equiv = swig_module.types[i]->cast;
37246 while (equiv) {
37247 if (!equiv->converter) {
37248 if (equiv->type && !equiv->type->clientdata)
37249 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
37250 }
37251 equiv = equiv->next;
37252 }
37253 }
37254 }
37255}
37256
37257#ifdef __cplusplus199711L
37258#if 0
37259{
37260 /* c-mode */
37261#endif
37262}
37263#endif
37264
37265
37266
37267#ifdef __cplusplus199711L
37268extern "C" {
37269#endif
37270
37271 /* Python-specific SWIG API */
37272#define SWIG_newvarlink()SWIG_Python_newvarlink() SWIG_Python_newvarlink()
37273#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)
37274#define SWIG_InstallConstants(d, constants)SWIG_Python_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
37275
37276 /* -----------------------------------------------------------------------------
37277 * global variable support code.
37278 * ----------------------------------------------------------------------------- */
37279
37280 typedef struct swig_globalvar {
37281 char *name; /* Name of global variable */
37282 PyObject *(*get_attr)(void); /* Return the current value */
37283 int (*set_attr)(PyObject *); /* Set the value */
37284 struct swig_globalvar *next;
37285 } swig_globalvar;
37286
37287 typedef struct swig_varlinkobject {
37288 PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type;
37289 swig_globalvar *vars;
37290 } swig_varlinkobject;
37291
37292 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
37293 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
37294#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
37295 return PyUnicode_InternFromString("<Swig global variables>");
37296#else
37297 return PyString_FromString("<Swig global variables>");
37298#endif
37299 }
37300
37301 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
37302 swig_varlink_str(swig_varlinkobject *v) {
37303#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
37304 PyObject *str = PyUnicode_InternFromString("(");
37305 PyObject *tail;
37306 PyObject *joined;
37307 swig_globalvar *var;
37308 for (var = v->vars; var; var=var->next) {
37309 tail = PyUnicode_FromStringPyUnicodeUCS2_FromString(var->name);
37310 joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail);
37311 Py_DecRef(str);
37312 Py_DecRef(tail);
37313 str = joined;
37314 if (var->next) {
37315 tail = PyUnicode_InternFromString(", ");
37316 joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail);
37317 Py_DecRef(str);
37318 Py_DecRef(tail);
37319 str = joined;
37320 }
37321 }
37322 tail = PyUnicode_InternFromString(")");
37323 joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail);
37324 Py_DecRef(str);
37325 Py_DecRef(tail);
37326 str = joined;
37327#else
37328 PyObject *str = PyString_FromString("(");
37329 swig_globalvar *var;
37330 for (var = v->vars; var; var=var->next) {
37331 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
37332 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
37333 }
37334 PyString_ConcatAndDel(&str,PyString_FromString(")"));
37335#endif
37336 return str;
37337 }
37338
37339 SWIGINTERNstatic __attribute__ ((__unused__)) int
37340 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
37341 char *tmp;
37342 PyObject *str = swig_varlink_str(v);
37343 fprintf(fp,"Swig global variables ");
37344 fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str));
37345 SWIG_Python_str_DelForPy3(tmp);
37346 Py_DECREF(str)do { if ( --((PyObject*)(str))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(str)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(str)))); } while (0)
;
37347 return 0;
37348 }
37349
37350 SWIGINTERNstatic __attribute__ ((__unused__)) void
37351 swig_varlink_dealloc(swig_varlinkobject *v) {
37352 swig_globalvar *var = v->vars;
37353 while (var) {
37354 swig_globalvar *n = var->next;
37355 free(var->name);
37356 free(var);
37357 var = n;
37358 }
37359 }
37360
37361 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
37362 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
37363 PyObject *res = NULL__null;
37364 swig_globalvar *var = v->vars;
37365 while (var) {
37366 if (strcmp(var->name,n) == 0) {
37367 res = (*var->get_attr)();
37368 break;
37369 }
37370 var = var->next;
37371 }
37372 if (res == NULL__null && !PyErr_Occurred()) {
37373 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
37374 }
37375 return res;
37376 }
37377
37378 SWIGINTERNstatic __attribute__ ((__unused__)) int
37379 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
37380 int res = 1;
37381 swig_globalvar *var = v->vars;
37382 while (var) {
37383 if (strcmp(var->name,n) == 0) {
37384 res = (*var->set_attr)(p);
37385 break;
37386 }
37387 var = var->next;
37388 }
37389 if (res == 1 && !PyErr_Occurred()) {
37390 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
37391 }
37392 return res;
37393 }
37394
37395 SWIGINTERNstatic __attribute__ ((__unused__)) PyTypeObject*
37396 swig_varlink_type(void) {
37397 static char varlink__doc__[] = "Swig var link object";
37398 static PyTypeObject varlink_type;
37399 static int type_init = 0;
37400 if (!type_init) {
37401 const PyTypeObject tmp = {
37402 /* PyObject header changed in Python 3 */
37403#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
37404 PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0,
37405#else
37406 PyObject_HEAD_INIT(NULL)1, __null,
37407 0, /* ob_size */
37408#endif
37409 (char *)"swigvarlink", /* tp_name */
37410 sizeof(swig_varlinkobject), /* tp_basicsize */
37411 0, /* tp_itemsize */
37412 (destructor) swig_varlink_dealloc, /* tp_dealloc */
37413 (printfunc) swig_varlink_print, /* tp_print */
37414 (getattrfunc) swig_varlink_getattr, /* tp_getattr */
37415 (setattrfunc) swig_varlink_setattr, /* tp_setattr */
37416 0, /* tp_compare */
37417 (reprfunc) swig_varlink_repr, /* tp_repr */
37418 0, /* tp_as_number */
37419 0, /* tp_as_sequence */
37420 0, /* tp_as_mapping */
37421 0, /* tp_hash */
37422 0, /* tp_call */
37423 (reprfunc) swig_varlink_str, /* tp_str */
37424 0, /* tp_getattro */
37425 0, /* tp_setattro */
37426 0, /* tp_as_buffer */
37427 0, /* tp_flags */
37428 varlink__doc__, /* tp_doc */
37429 0, /* tp_traverse */
37430 0, /* tp_clear */
37431 0, /* tp_richcompare */
37432 0, /* tp_weaklistoffset */
37433#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000
37434 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
37435#endif
37436#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000
37437 0, /* tp_del */
37438#endif
37439#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02060000
37440 0, /* tp_version */
37441#endif
37442#ifdef COUNT_ALLOCS
37443 0,0,0,0 /* tp_alloc -> tp_next */
37444#endif
37445 };
37446 varlink_type = tmp;
37447 type_init = 1;
37448#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
37449 varlink_type.ob_type = &PyType_Type;
37450#else
37451 if (PyType_Ready(&varlink_type) < 0)
37452 return NULL__null;
37453#endif
37454 }
37455 return &varlink_type;
37456 }
37457
37458 /* Create a variable linking object for use later */
37459 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
37460 SWIG_Python_newvarlink(void) {
37461 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
())) )
;
37462 if (result) {
37463 result->vars = 0;
37464 }
37465 return ((PyObject*) result);
37466 }
37467
37468 SWIGINTERNstatic __attribute__ ((__unused__)) void
37469 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
37470 swig_varlinkobject *v = (swig_varlinkobject *) p;
37471 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
37472 if (gv) {
37473 size_t size = strlen(name)+1;
37474 gv->name = (char *)malloc(size);
37475 if (gv->name) {
37476 strncpy(gv->name,name,size);
37477 gv->get_attr = get_attr;
37478 gv->set_attr = set_attr;
37479 gv->next = v->vars;
37480 }
37481 }
37482 v->vars = gv;
37483 }
37484
37485 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
37486 SWIG_globals(void) {
37487 static PyObject *_SWIG_globals = 0;
37488 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink()SWIG_Python_newvarlink();
37489 return _SWIG_globals;
37490 }
37491
37492 /* -----------------------------------------------------------------------------
37493 * constants/methods manipulation
37494 * ----------------------------------------------------------------------------- */
37495
37496 /* Install Constants */
37497 SWIGINTERNstatic __attribute__ ((__unused__)) void
37498 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
37499 PyObject *obj = 0;
37500 size_t i;
37501 for (i = 0; constants[i].type; ++i) {
37502 switch(constants[i].type) {
37503 case SWIG_PY_POINTER4:
37504 obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0)SWIG_Python_NewPointerObj(__null, constants[i].pvalue, *(constants
[i]).ptype, 0)
;
37505 break;
37506 case SWIG_PY_BINARY5:
37507 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype))SWIG_Python_NewPackedObj(constants[i].pvalue, constants[i].lvalue
, *(constants[i].ptype))
;
37508 break;
37509 default:
37510 obj = 0;
37511 break;
37512 }
37513 if (obj) {
37514 PyDict_SetItemString(d, constants[i].name, obj);
37515 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
37516 }
37517 }
37518 }
37519
37520 /* -----------------------------------------------------------------------------*/
37521 /* Fix SwigMethods to carry the callback ptrs when needed */
37522 /* -----------------------------------------------------------------------------*/
37523
37524 SWIGINTERNstatic __attribute__ ((__unused__)) void
37525 SWIG_Python_FixMethods(PyMethodDef *methods,
37526 swig_const_info *const_table,
37527 swig_type_info **types,
37528 swig_type_info **types_initial) {
37529 size_t i;
37530 for (i = 0; methods[i].ml_name; ++i) {
37531 const char *c = methods[i].ml_doc;
37532 if (c && (c = strstr(c, "swig_ptr: "))) {
37533 int j;
37534 swig_const_info *ci = 0;
37535 const char *name = c + 10;
37536 for (j = 0; const_table[j].type; ++j) {
37537 if (strncmp(const_table[j].name, name,
37538 strlen(const_table[j].name)) == 0) {
37539 ci = &(const_table[j]);
37540 break;
37541 }
37542 }
37543 if (ci) {
37544 void *ptr = (ci->type == SWIG_PY_POINTER4) ? ci->pvalue : 0;
37545 if (ptr) {
37546 size_t shift = (ci->ptype) - types;
37547 swig_type_info *ty = types_initial[shift];
37548 size_t ldoc = (c - methods[i].ml_doc);
37549 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
37550 char *ndoc = (char*)malloc(ldoc + lptr + 10);
37551 if (ndoc) {
37552 char *buff = ndoc;
37553 strncpy(buff, methods[i].ml_doc, ldoc);
37554 buff += ldoc;
37555 strncpy(buff, "swig_ptr: ", 10);
37556 buff += 10;
37557 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
37558 methods[i].ml_doc = ndoc;
37559 }
37560 }
37561 }
37562 }
37563 }
37564 }
37565
37566#ifdef __cplusplus199711L
37567}
37568#endif
37569
37570/* -----------------------------------------------------------------------------*
37571 * Partial Init method
37572 * -----------------------------------------------------------------------------*/
37573
37574#ifdef __cplusplus199711L
37575extern "C"
37576#endif
37577
37578SWIGEXPORT__attribute__ ((visibility("default")))
37579#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
37580PyObject*
37581#else
37582void
37583#endif
37584SWIG_initinit_model(void) {
37585 PyObject *m, *d, *md;
37586#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
37587 static struct PyModuleDef SWIG_module = {
37588# if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03020000
37589 PyModuleDef_HEAD_INIT,
37590# else
37591 {
37592 PyObject_HEAD_INIT(NULL)1, __null,
37593 NULL__null, /* m_init */
37594 0, /* m_index */
37595 NULL__null, /* m_copy */
37596 },
37597# endif
37598 (char *) SWIG_name"_model",
37599 NULL__null,
37600 -1,
37601 SwigMethods,
37602 NULL__null,
37603 NULL__null,
37604 NULL__null,
37605 NULL__null
37606 };
37607#endif
37608
37609#if defined(SWIGPYTHON_BUILTIN)
37610 static SwigPyClientData SwigPyObject_clientdata = {
37611 0, 0, 0, 0, 0, 0, 0
37612 };
37613 static PyGetSetDef this_getset_def = {
37614 (char *)"this", &SwigPyBuiltin_ThisClosure, NULL__null, NULL__null, NULL__null
37615 };
37616 static SwigPyGetSet thisown_getset_closure = {
37617 (PyCFunction) SwigPyObject_own,
37618 (PyCFunction) SwigPyObject_own
37619 };
37620 static PyGetSetDef thisown_getset_def = {
37621 (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL__null, &thisown_getset_closure
37622 };
37623 PyObject *metatype_args;
37624 PyTypeObject *builtin_pytype;
37625 int builtin_base_count;
37626 swig_type_info *builtin_basetype;
37627 PyObject *tuple;
37628 PyGetSetDescrObject *static_getset;
37629 PyTypeObject *metatype;
37630 SwigPyClientData *cd;
37631 PyObject *public_interface, *public_symbol;
37632 PyObject *this_descr;
37633 PyObject *thisown_descr;
37634 int i;
37635
37636 (void)builtin_pytype;
37637 (void)builtin_base_count;
37638 (void)builtin_basetype;
37639 (void)tuple;
37640 (void)static_getset;
37641
37642 /* metatype is used to implement static member variables. */
37643 metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type);
37644 assert(metatype_args)((void)0);
37645 metatype = (PyTypeObject *) PyType_Type.tp_call((PyObject *) &PyType_Type, metatype_args, NULL__null);
37646 assert(metatype)((void)0);
37647 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)
;
37648 metatype->tp_setattro = (setattrofunc) &SwigPyObjectType_setattro;
37649 assert(PyType_Ready(metatype) >= 0)((void)0);
37650#endif
37651
37652 /* Fix SwigMethods to carry the callback ptrs when needed */
37653 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
37654
37655#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
37656 m = PyModule_Create(&SWIG_module);
37657#else
37658 m = Py_InitModule((char *) SWIG_name, SwigMethods)Py_InitModule4_64((char *) "_model", SwigMethods, (char *)__null
, (PyObject *)__null, 1013)
;
37659#endif
37660 md = d = PyModule_GetDict(m);
37661 (void)md;
37662
37663 SWIG_InitializeModule(0);
37664
37665#ifdef SWIGPYTHON_BUILTIN
37666 SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject")SWIG_MangledTypeQueryModule(&swig_module, &swig_module
, "_p_SwigPyObject")
;
37667 assert(SwigPyObject_stype)((void)0);
37668 cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
37669 if (!cd) {
37670 SwigPyObject_stype->clientdata = &SwigPyObject_clientdata;
37671 SwigPyObject_clientdata.pytype = SwigPyObject_TypeOnce();
37672 } else if (SwigPyObject_TypeOnce()->tp_basicsize != cd->pytype->tp_basicsize) {
37673 PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules.");
37674# if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
37675 return NULL__null;
37676# else
37677 return;
37678# endif
37679 }
37680
37681 /* All objects have a 'this' attribute */
37682 this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def);
37683 (void)this_descr;
37684
37685 /* All objects have a 'thisown' attribute */
37686 thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def);
37687 (void)thisown_descr;
37688
37689 public_interface = PyList_New(0);
37690 public_symbol = 0;
37691 (void)public_symbol;
37692
37693 PyDict_SetItemString(md, "__all__", public_interface);
37694 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)
;
37695 for (i = 0; SwigMethods[i].ml_name != NULL__null; ++i)
37696 SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name);
37697 for (i = 0; swig_const_table[i].name != 0; ++i)
37698 SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name);
37699#endif
37700
37701 SWIG_InstallConstants(d,swig_const_table)SWIG_Python_InstallConstants(d, swig_const_table);
37702
37703#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
37704 return m;
37705#else
37706 return;
37707#endif
37708}
37709