File: | pyext/gammalib/opt_wrap.cpp |
Location: | line 10739, column 5 |
Description: | Value stored to 'module_head' is never read |
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 */ |
17 | template<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); |
26 | public: |
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 | |
33 | template <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) |
320 | SWIGINTERNINLINEstatic __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 | } |
323 | SWIGINTERNINLINEstatic __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 |
335 | extern "C" { |
336 | #endif |
337 | |
338 | typedef void *(*swig_converter_func)(void *, int *); |
339 | typedef struct swig_type_info *(*swig_dycast_func)(void **); |
340 | |
341 | /* Structure to store information on one type */ |
342 | typedef 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 */ |
352 | typedef 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.*/ |
362 | typedef 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 | */ |
378 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
379 | SWIG_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 | */ |
393 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
394 | SWIG_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 | */ |
412 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
413 | SWIG_TypeEquiv(const char *nb, const char *tb) { |
414 | return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0; |
415 | } |
416 | |
417 | /* |
418 | Check the typename |
419 | */ |
420 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_cast_info * |
421 | SWIG_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 | */ |
447 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_cast_info * |
448 | SWIG_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 | */ |
474 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline void * |
475 | SWIG_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 | */ |
482 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info * |
483 | SWIG_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 | */ |
496 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline const char * |
497 | SWIG_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 | */ |
505 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char * |
506 | SWIG_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 | */ |
526 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
527 | SWIG_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 | } |
542 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
543 | SWIG_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 | */ |
556 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info * |
557 | SWIG_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 | */ |
601 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info * |
602 | SWIG_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 | */ |
630 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) char * |
631 | SWIG_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 | */ |
646 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char * |
647 | SWIG_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 | */ |
674 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) char * |
675 | SWIG_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 | |
685 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char * |
686 | SWIG_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 | |
698 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) char * |
699 | SWIG_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 | |
713 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char * |
714 | SWIG_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 | */ |
783 | SWIGINTERNstatic __attribute__ ((__unused__)) char* |
784 | SWIG_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 | |
808 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject* |
809 | SWIG_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 | |
834 | static PyObject * |
835 | PyString_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 |
887 | static |
888 | PyObject *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)) |
900 | typedef 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) |
903 | typedef inquiry lenfunc; |
904 | typedef intargfunc ssizeargfunc; |
905 | typedef intintargfunc ssizessizeargfunc; |
906 | typedef intobjargproc ssizeobjargproc; |
907 | typedef intintobjargproc ssizessizeobjargproc; |
908 | typedef getreadbufferproc readbufferproc; |
909 | typedef getwritebufferproc writebufferproc; |
910 | typedef getsegcountproc segcountproc; |
911 | typedef getcharbufferproc charbufferproc; |
912 | static 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 |
940 | typedef 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 |
951 | typedef 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 | |
970 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* |
971 | SWIG_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 | |
1014 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
1015 | SWIG_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 |
1109 | extern "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 */ |
1121 | typedef 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 |
1136 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func) |
1137 | { |
1138 | return PyInstanceMethod_New(func); |
1139 | } |
1140 | #else |
1141 | SWIGRUNTIMEstatic __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 | |
1214 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
1215 | SWIG_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 | |
1222 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
1223 | SWIG_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 | |
1235 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
1236 | SwigPyBuiltin_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 | |
1242 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
1243 | SWIG_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 | |
1256 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
1257 | SWIG_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 | |
1270 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject* |
1271 | SWIG_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 | |
1315 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
1316 | SWIG_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 |
1392 | extern "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 |
1409 | SWIGRUNTIMEINLINEstatic __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 | } |
1416 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1417 | SWIG_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 | |
1426 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
1427 | SWIG_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 | |
1436 | typedef 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 | |
1446 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int |
1447 | SWIG_Python_CheckImplicit(swig_type_info *ty) |
1448 | { |
1449 | SwigPyClientData *data = (SwigPyClientData *)ty->clientdata; |
1450 | return data ? data->implicitconv : 0; |
1451 | } |
1452 | |
1453 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
1454 | SWIG_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 | |
1461 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) SwigPyClientData * |
1462 | SwigPyClientData_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 | |
1515 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
1516 | SwigPyClientData_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 | |
1524 | typedef 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 | |
1535 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1536 | SwigPyObject_long(SwigPyObject *v) |
1537 | { |
1538 | return PyLong_FromVoidPtr(v->ptr); |
1539 | } |
1540 | |
1541 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1542 | SwigPyObject_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 | |
1563 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1564 | SwigPyObject_oct(SwigPyObject *v) |
1565 | { |
1566 | return SwigPyObject_format("%o",v); |
1567 | } |
1568 | |
1569 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1570 | SwigPyObject_hex(SwigPyObject *v) |
1571 | { |
1572 | return SwigPyObject_format("%x",v); |
1573 | } |
1574 | |
1575 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1576 | #ifdef METH_NOARGS0x0004 |
1577 | SwigPyObject_repr(SwigPyObject *v) |
1578 | #else |
1579 | SwigPyObject_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 | |
1602 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
1603 | SwigPyObject_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? */ |
1611 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* |
1612 | SwigPyObject_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 | |
1624 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* SwigPyObject_TypeOnce(void); |
1625 | |
1626 | #ifdef SWIGPYTHON_BUILTIN |
1627 | static swig_type_info *SwigPyObject_stype = 0; |
1628 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* |
1629 | SwigPyObject_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 |
1638 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* |
1639 | SwigPyObject_type(void) { |
1640 | static PyTypeObject *SWIG_STATIC_POINTER(type)type = SwigPyObject_TypeOnce(); |
1641 | return type; |
1642 | } |
1643 | #endif |
1644 | |
1645 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int |
1646 | SwigPyObject_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 | |
1658 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1659 | SwigPyObject_New(void *ptr, swig_type_info *ty, int own); |
1660 | |
1661 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
1662 | SwigPyObject_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 | |
1696 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* |
1697 | SwigPyObject_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 | |
1713 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* |
1714 | #ifdef METH_NOARGS0x0004 |
1715 | SwigPyObject_next(PyObject* v) |
1716 | #else |
1717 | SwigPyObject_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 | |
1729 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject* |
1730 | #ifdef METH_NOARGS0x0004 |
1731 | SwigPyObject_disown(PyObject *v) |
1732 | #else |
1733 | SwigPyObject_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 | |
1741 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject* |
1742 | #ifdef METH_NOARGS0x0004 |
1743 | SwigPyObject_acquire(PyObject *v) |
1744 | #else |
1745 | SwigPyObject_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 | |
1753 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject* |
1754 | SwigPyObject_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 |
1791 | static PyMethodDef |
1792 | swigobject_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 |
1802 | static PyMethodDef |
1803 | swigobject_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 |
1815 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
1816 | SwigPyObject_getattr(SwigPyObject *sobj,char *name) |
1817 | { |
1818 | return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); |
1819 | } |
1820 | #endif |
1821 | |
1822 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* |
1823 | SwigPyObject_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 | |
1959 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1960 | SwigPyObject_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 | |
1976 | typedef 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 | |
1983 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
1984 | SwigPyPacked_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 | |
1997 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1998 | SwigPyPacked_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 | |
2008 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
2009 | SwigPyPacked_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 | |
2019 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2020 | SwigPyPacked_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 | |
2028 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* SwigPyPacked_TypeOnce(void); |
2029 | |
2030 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* |
2031 | SwigPyPacked_type(void) { |
2032 | static PyTypeObject *SWIG_STATIC_POINTER(type)type = SwigPyPacked_TypeOnce(); |
2033 | return type; |
2034 | } |
2035 | |
2036 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int |
2037 | SwigPyPacked_Check(PyObject *op) { |
2038 | return ((op)->ob_type == SwigPyPacked_TypeOnce()) |
2039 | || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0); |
2040 | } |
2041 | |
2042 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
2043 | SwigPyPacked_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 | |
2052 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* |
2053 | SwigPyPacked_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 | |
2138 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
2139 | SwigPyPacked_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 | |
2157 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info * |
2158 | SwigPyPacked_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 | |
2174 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
2175 | _SWIG_This(void) |
2176 | { |
2177 | return SWIG_Python_str_FromChar("this"); |
2178 | } |
2179 | |
2180 | static PyObject *swig_this = NULL__null; |
2181 | |
2182 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
2183 | SWIG_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 | |
2197 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) SwigPyObject * |
2198 | SWIG_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 | |
2263 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2264 | SWIG_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 | |
2278 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2279 | SWIG_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 | |
2383 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2384 | SWIG_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 | |
2415 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2416 | SWIG_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 | |
2438 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* |
2439 | SWIG_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 | |
2513 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
2514 | SWIG_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 | |
2535 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
2536 | SWIG_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 | |
2553 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
2554 | SWIG_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 | |
2604 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
2605 | SWIG_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 |
2614 | void *SWIG_ReturnGlobalTypeList(void *); |
2615 | #endif |
2616 | |
2617 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_module_info * |
2618 | SWIG_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 */ |
2643 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
2644 | PyModule_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 | |
2672 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
2673 | #ifdef SWIGPY_USE_CAPSULE |
2674 | SWIG_Python_DestroyModule(PyObject *obj) |
2675 | #else |
2676 | SWIG_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 | |
2697 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
2698 | SWIG_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 */ |
2724 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
2725 | SWIG_Python_TypeCache(void) { |
2726 | static PyObject *SWIG_STATIC_POINTER(cache)cache = PyDict_New(); |
2727 | return cache; |
2728 | } |
2729 | |
2730 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info * |
2731 | SWIG_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 | |
2767 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2768 | SWIG_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 | |
2794 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2795 | SWIG_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 | |
2807 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline const char * |
2808 | SwigPyObject_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 | |
2815 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
2816 | SWIG_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 */ |
2854 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void * |
2855 | SWIG_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 |
2870 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2871 | SWIG_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_GLogswig_types[2] swig_types[2] |
2943 | #define SWIGTYPE_p_GOptimizerswig_types[3] swig_types[3] |
2944 | #define SWIGTYPE_p_GOptimizerFunctionswig_types[4] swig_types[4] |
2945 | #define SWIGTYPE_p_GOptimizerLMswig_types[5] swig_types[5] |
2946 | #define SWIGTYPE_p_GOptimizerParswig_types[6] swig_types[6] |
2947 | #define SWIGTYPE_p_GOptimizerParsswig_types[7] swig_types[7] |
2948 | #define SWIGTYPE_p_charswig_types[8] swig_types[8] |
2949 | #define SWIGTYPE_p_std__invalid_argumentswig_types[9] swig_types[9] |
2950 | #define SWIGTYPE_p_swig__SwigPyIteratorswig_types[10] swig_types[10] |
2951 | #define SWIGTYPE_p_voidswig_types[11] swig_types[11] |
2952 | static swig_type_info *swig_types[13]; |
2953 | static swig_module_info swig_module = {swig_types, 12, 0, 0, 0, 0}; |
2954 | #define SWIG_TypeQuery(name)SWIG_TypeQueryModule(&swig_module, &swig_module, name ) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
2955 | #define SWIG_MangledTypeQuery(name)SWIG_MangledTypeQueryModule(&swig_module, &swig_module , name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) |
2956 | |
2957 | /* -------- TYPES TABLE (END) -------- */ |
2958 | |
2959 | #if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) <= 0x02000000) |
2960 | # if !defined(SWIG_PYTHON_CLASSIC) |
2961 | # error "This python version requires swig to be run with the '-classic' option" |
2962 | # endif |
2963 | #endif |
2964 | |
2965 | /*----------------------------------------------- |
2966 | @(target):= _opt.so |
2967 | ------------------------------------------------*/ |
2968 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
2969 | # define SWIG_initinit_opt PyInit__opt |
2970 | |
2971 | #else |
2972 | # define SWIG_initinit_opt init_opt |
2973 | |
2974 | #endif |
2975 | #define SWIG_name"_opt" "_opt" |
2976 | |
2977 | #define SWIGVERSION0x020011 0x020011 |
2978 | #define SWIG_VERSION0x020011 SWIGVERSION0x020011 |
2979 | |
2980 | |
2981 | #define SWIG_as_voidptr(a)const_cast< void * >(static_cast< const void * >( a)) const_cast< void * >(static_cast< const void * >(a)) |
2982 | #define SWIG_as_voidptrptr(a)((void)const_cast< void * >(static_cast< const void * >(*a)),reinterpret_cast< void** >(a)) ((void)SWIG_as_voidptr(*a)const_cast< void * >(static_cast< const void * >( *a)),reinterpret_cast< void** >(a)) |
2983 | |
2984 | |
2985 | #include <stdexcept> |
2986 | |
2987 | |
2988 | namespace swig { |
2989 | class SwigPtr_PyObject { |
2990 | protected: |
2991 | PyObject *_obj; |
2992 | |
2993 | public: |
2994 | SwigPtr_PyObject() :_obj(0) |
2995 | { |
2996 | } |
2997 | |
2998 | SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj) |
2999 | { |
3000 | Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt ++); } while (0); |
3001 | } |
3002 | |
3003 | SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj) |
3004 | { |
3005 | if (initial_ref) { |
3006 | Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt ++); } while (0); |
3007 | } |
3008 | } |
3009 | |
3010 | SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item) |
3011 | { |
3012 | Py_XINCREF(item._obj)do { if ((item._obj) == __null) ; else ( ((PyObject*)(item._obj ))->ob_refcnt++); } while (0); |
3013 | Py_XDECREF(_obj)do { if ((_obj) == __null) ; else do { if ( --((PyObject*)(_obj ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( _obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject * )(_obj)))); } while (0); } while (0); |
3014 | _obj = item._obj; |
3015 | return *this; |
3016 | } |
3017 | |
3018 | ~SwigPtr_PyObject() |
3019 | { |
3020 | Py_XDECREF(_obj)do { if ((_obj) == __null) ; else do { if ( --((PyObject*)(_obj ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( _obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject * )(_obj)))); } while (0); } while (0); |
3021 | } |
3022 | |
3023 | operator PyObject *() const |
3024 | { |
3025 | return _obj; |
3026 | } |
3027 | |
3028 | PyObject *operator->() const |
3029 | { |
3030 | return _obj; |
3031 | } |
3032 | }; |
3033 | } |
3034 | |
3035 | |
3036 | namespace swig { |
3037 | struct SwigVar_PyObject : SwigPtr_PyObject { |
3038 | SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { } |
3039 | |
3040 | SwigVar_PyObject & operator = (PyObject* obj) |
3041 | { |
3042 | Py_XDECREF(_obj)do { if ((_obj) == __null) ; else do { if ( --((PyObject*)(_obj ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( _obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject * )(_obj)))); } while (0); } while (0); |
3043 | _obj = obj; |
3044 | return *this; |
3045 | } |
3046 | }; |
3047 | } |
3048 | |
3049 | |
3050 | #include <stddef.h> |
3051 | #include "GException.hpp" |
3052 | #include "GTools.hpp" |
3053 | |
3054 | |
3055 | #include <stdexcept> |
3056 | |
3057 | |
3058 | #if defined(__GNUC__4) |
3059 | # if __GNUC__4 == 2 && __GNUC_MINOR <= 96 |
3060 | # define SWIG_STD_NOMODERN_STL |
3061 | # endif |
3062 | #endif |
3063 | |
3064 | |
3065 | #include <string> |
3066 | #include <stdexcept> |
3067 | #include <stddef.h> |
3068 | |
3069 | |
3070 | #include <string> |
3071 | |
3072 | |
3073 | #include <iostream> |
3074 | |
3075 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03020000 |
3076 | # define SWIGPY_SLICE_ARG(obj)((PySliceObject*) (obj)) ((PyObject*) (obj)) |
3077 | #else |
3078 | # define SWIGPY_SLICE_ARG(obj)((PySliceObject*) (obj)) ((PySliceObject*) (obj)) |
3079 | #endif |
3080 | |
3081 | |
3082 | #include <stddef.h> |
3083 | |
3084 | |
3085 | namespace swig { |
3086 | struct stop_iteration { |
3087 | }; |
3088 | |
3089 | struct SwigPyIterator { |
3090 | private: |
3091 | SwigPtr_PyObject _seq; |
3092 | |
3093 | protected: |
3094 | SwigPyIterator(PyObject *seq) : _seq(seq) |
3095 | { |
3096 | } |
3097 | |
3098 | public: |
3099 | virtual ~SwigPyIterator() {} |
3100 | |
3101 | // Access iterator method, required by Python |
3102 | virtual PyObject *value() const = 0; |
3103 | |
3104 | // Forward iterator method, required by Python |
3105 | virtual SwigPyIterator *incr(size_t n = 1) = 0; |
3106 | |
3107 | // Backward iterator method, very common in C++, but not required in Python |
3108 | virtual SwigPyIterator *decr(size_t /*n*/ = 1) |
3109 | { |
3110 | throw stop_iteration(); |
3111 | } |
3112 | |
3113 | // Random access iterator methods, but not required in Python |
3114 | virtual ptrdiff_t distance(const SwigPyIterator &/*x*/) const |
3115 | { |
3116 | throw std::invalid_argument("operation not supported"); |
3117 | } |
3118 | |
3119 | virtual bool equal (const SwigPyIterator &/*x*/) const |
3120 | { |
3121 | throw std::invalid_argument("operation not supported"); |
3122 | } |
3123 | |
3124 | // C++ common/needed methods |
3125 | virtual SwigPyIterator *copy() const = 0; |
3126 | |
3127 | PyObject *next() |
3128 | { |
3129 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads |
3130 | PyObject *obj = value(); |
3131 | incr(); |
3132 | SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads |
3133 | return obj; |
3134 | } |
3135 | |
3136 | /* Make an alias for Python 3.x */ |
3137 | PyObject *__next__() |
3138 | { |
3139 | return next(); |
3140 | } |
3141 | |
3142 | PyObject *previous() |
3143 | { |
3144 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads |
3145 | decr(); |
3146 | PyObject *obj = value(); |
3147 | SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads |
3148 | return obj; |
3149 | } |
3150 | |
3151 | SwigPyIterator *advance(ptrdiff_t n) |
3152 | { |
3153 | return (n > 0) ? incr(n) : decr(-n); |
3154 | } |
3155 | |
3156 | bool operator == (const SwigPyIterator& x) const |
3157 | { |
3158 | return equal(x); |
3159 | } |
3160 | |
3161 | bool operator != (const SwigPyIterator& x) const |
3162 | { |
3163 | return ! operator==(x); |
3164 | } |
3165 | |
3166 | SwigPyIterator& operator += (ptrdiff_t n) |
3167 | { |
3168 | return *advance(n); |
3169 | } |
3170 | |
3171 | SwigPyIterator& operator -= (ptrdiff_t n) |
3172 | { |
3173 | return *advance(-n); |
3174 | } |
3175 | |
3176 | SwigPyIterator* operator + (ptrdiff_t n) const |
3177 | { |
3178 | return copy()->advance(n); |
3179 | } |
3180 | |
3181 | SwigPyIterator* operator - (ptrdiff_t n) const |
3182 | { |
3183 | return copy()->advance(-n); |
3184 | } |
3185 | |
3186 | ptrdiff_t operator - (const SwigPyIterator& x) const |
3187 | { |
3188 | return x.distance(*this); |
3189 | } |
3190 | |
3191 | static swig_type_info* descriptor() { |
3192 | static int init = 0; |
3193 | static swig_type_info* desc = 0; |
3194 | if (!init) { |
3195 | desc = SWIG_TypeQuery("swig::SwigPyIterator *")SWIG_TypeQueryModule(&swig_module, &swig_module, "swig::SwigPyIterator *" ); |
3196 | init = 1; |
3197 | } |
3198 | return desc; |
3199 | } |
3200 | }; |
3201 | |
3202 | #if defined(SWIGPYTHON_BUILTIN) |
3203 | inline PyObject* make_output_iterator_builtin (PyObject *pyself) |
3204 | { |
3205 | Py_INCREF(pyself)( ((PyObject*)(pyself))->ob_refcnt++); |
3206 | return pyself; |
3207 | } |
3208 | #endif |
3209 | } |
3210 | |
3211 | |
3212 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3213 | SWIG_AsVal_double (PyObject *obj, double *val) |
3214 | { |
3215 | int res = SWIG_TypeError-5; |
3216 | if (PyFloat_Check(obj)((((PyObject*)(obj))->ob_type) == (&PyFloat_Type) || PyType_IsSubtype ((((PyObject*)(obj))->ob_type), (&PyFloat_Type)))) { |
3217 | if (val) *val = PyFloat_AsDouble(obj); |
3218 | return SWIG_OK(0); |
3219 | } else if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) != 0)) { |
3220 | if (val) *val = PyInt_AsLong(obj); |
3221 | return SWIG_OK(0); |
3222 | } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 24))) != 0)) { |
3223 | double v = PyLong_AsDouble(obj); |
3224 | if (!PyErr_Occurred()) { |
3225 | if (val) *val = v; |
3226 | return SWIG_OK(0); |
3227 | } else { |
3228 | PyErr_Clear(); |
3229 | } |
3230 | } |
3231 | #ifdef SWIG_PYTHON_CAST_MODE |
3232 | { |
3233 | int dispatch = 0; |
3234 | double d = PyFloat_AsDouble(obj); |
3235 | if (!PyErr_Occurred()) { |
3236 | if (val) *val = d; |
3237 | return SWIG_AddCast(SWIG_OK)((0)); |
3238 | } else { |
3239 | PyErr_Clear(); |
3240 | } |
3241 | if (!dispatch) { |
3242 | long v = PyLong_AsLong(obj); |
3243 | if (!PyErr_Occurred()) { |
3244 | if (val) *val = v; |
3245 | return SWIG_AddCast(SWIG_AddCast(SWIG_OK))(((0))); |
3246 | } else { |
3247 | PyErr_Clear(); |
3248 | } |
3249 | } |
3250 | } |
3251 | #endif |
3252 | return res; |
3253 | } |
3254 | |
3255 | |
3256 | #include <float.h> |
3257 | |
3258 | |
3259 | #include <math.h> |
3260 | |
3261 | |
3262 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int |
3263 | SWIG_CanCastAsInteger(double *d, double min, double max) { |
3264 | double x = *d; |
3265 | if ((min <= x && x <= max)) { |
3266 | double fx = floor(x); |
3267 | double cx = ceil(x); |
3268 | double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ |
3269 | if ((errno(*__error()) == EDOM33) || (errno(*__error()) == ERANGE34)) { |
3270 | errno(*__error()) = 0; |
3271 | } else { |
3272 | double summ, reps, diff; |
3273 | if (rd < x) { |
3274 | diff = x - rd; |
3275 | } else if (rd > x) { |
3276 | diff = rd - x; |
3277 | } else { |
3278 | return 1; |
3279 | } |
3280 | summ = rd + x; |
3281 | reps = diff/summ; |
3282 | if (reps < 8*DBL_EPSILON2.2204460492503131e-16) { |
3283 | *d = rd; |
3284 | return 1; |
3285 | } |
3286 | } |
3287 | } |
3288 | return 0; |
3289 | } |
3290 | |
3291 | |
3292 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3293 | SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val) |
3294 | { |
3295 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03000000 |
3296 | if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) != 0)) { |
3297 | long v = PyInt_AsLong(obj); |
3298 | if (v >= 0) { |
3299 | if (val) *val = v; |
3300 | return SWIG_OK(0); |
3301 | } else { |
3302 | return SWIG_OverflowError-7; |
3303 | } |
3304 | } else |
3305 | #endif |
3306 | if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 24))) != 0)) { |
3307 | unsigned long v = PyLong_AsUnsignedLong(obj); |
3308 | if (!PyErr_Occurred()) { |
3309 | if (val) *val = v; |
3310 | return SWIG_OK(0); |
3311 | } else { |
3312 | PyErr_Clear(); |
3313 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
3314 | { |
3315 | long v = PyLong_AsLong(obj); |
3316 | if (!PyErr_Occurred()) { |
3317 | if (v < 0) { |
3318 | return SWIG_OverflowError-7; |
3319 | } |
3320 | } else { |
3321 | PyErr_Clear(); |
3322 | } |
3323 | } |
3324 | #endif |
3325 | } |
3326 | } |
3327 | #ifdef SWIG_PYTHON_CAST_MODE |
3328 | { |
3329 | int dispatch = 0; |
3330 | unsigned long v = PyLong_AsUnsignedLong(obj); |
3331 | if (!PyErr_Occurred()) { |
3332 | if (val) *val = v; |
3333 | return SWIG_AddCast(SWIG_OK)((0)); |
3334 | } else { |
3335 | PyErr_Clear(); |
3336 | } |
3337 | if (!dispatch) { |
3338 | double d; |
3339 | int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d)); |
3340 | if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX(9223372036854775807L *2UL+1UL))) { |
3341 | if (val) *val = (unsigned long)(d); |
3342 | return res; |
3343 | } |
3344 | } |
3345 | } |
3346 | #endif |
3347 | return SWIG_TypeError-5; |
3348 | } |
3349 | |
3350 | |
3351 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int |
3352 | SWIG_AsVal_size_t (PyObject * obj, size_t *val) |
3353 | { |
3354 | unsigned long v; |
3355 | int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); |
3356 | if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< size_t >(v); |
3357 | return res; |
3358 | } |
3359 | |
3360 | |
3361 | #define SWIG_From_longPyLong_FromLong PyLong_FromLong |
3362 | |
3363 | |
3364 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
3365 | SWIG_From_ptrdiff_t (ptrdiff_t value) |
3366 | { |
3367 | return SWIG_From_longPyLong_FromLong (static_cast< long >(value)); |
3368 | } |
3369 | |
3370 | |
3371 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject* |
3372 | SWIG_From_bool (bool value) |
3373 | { |
3374 | return PyBool_FromLong(value ? 1 : 0); |
3375 | } |
3376 | |
3377 | |
3378 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3379 | SWIG_AsVal_long (PyObject *obj, long* val) |
3380 | { |
3381 | if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) != 0)) { |
3382 | if (val) *val = PyInt_AsLong(obj); |
3383 | return SWIG_OK(0); |
3384 | } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 24))) != 0)) { |
3385 | long v = PyLong_AsLong(obj); |
3386 | if (!PyErr_Occurred()) { |
3387 | if (val) *val = v; |
3388 | return SWIG_OK(0); |
3389 | } else { |
3390 | PyErr_Clear(); |
3391 | } |
3392 | } |
3393 | #ifdef SWIG_PYTHON_CAST_MODE |
3394 | { |
3395 | int dispatch = 0; |
3396 | long v = PyInt_AsLong(obj); |
3397 | if (!PyErr_Occurred()) { |
3398 | if (val) *val = v; |
3399 | return SWIG_AddCast(SWIG_OK)((0)); |
3400 | } else { |
3401 | PyErr_Clear(); |
3402 | } |
3403 | if (!dispatch) { |
3404 | double d; |
3405 | int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d)); |
3406 | if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, LONG_MIN(-9223372036854775807L -1L), LONG_MAX9223372036854775807L)) { |
3407 | if (val) *val = (long)(d); |
3408 | return res; |
3409 | } |
3410 | } |
3411 | } |
3412 | #endif |
3413 | return SWIG_TypeError-5; |
3414 | } |
3415 | |
3416 | |
3417 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int |
3418 | SWIG_AsVal_ptrdiff_t (PyObject * obj, ptrdiff_t *val) |
3419 | { |
3420 | long v; |
3421 | int res = SWIG_AsVal_long (obj, val ? &v : 0); |
3422 | if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< ptrdiff_t >(v); |
3423 | return res; |
3424 | } |
3425 | |
3426 | |
3427 | #include <stdexcept> |
3428 | |
3429 | |
3430 | #include <algorithm> |
3431 | |
3432 | |
3433 | #include <vector> |
3434 | |
3435 | |
3436 | #include <utility> |
3437 | |
3438 | |
3439 | #include <map> |
3440 | #include <algorithm> |
3441 | #include <stdexcept> |
3442 | |
3443 | |
3444 | /* Put headers and other declarations here that are needed for compilation */ |
3445 | #include "GOptimizer.hpp" |
3446 | #include "GTools.hpp" |
3447 | |
3448 | |
3449 | #define SWIG_From_doublePyFloat_FromDouble PyFloat_FromDouble |
3450 | |
3451 | |
3452 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject* |
3453 | SWIG_From_int (int value) |
3454 | { |
3455 | return PyInt_FromLong((long) value); |
3456 | } |
3457 | |
3458 | |
3459 | /* Put headers and other declarations here that are needed for compilation */ |
3460 | #include "GOptimizerLM.hpp" |
3461 | #include "GTools.hpp" |
3462 | |
3463 | |
3464 | #include <limits.h> |
3465 | #if !defined(SWIG_NO_LLONG_MAX) |
3466 | # if !defined(LLONG_MAX0x7fffffffffffffffLL) && defined(__GNUC__4) && defined (__LONG_LONG_MAX__9223372036854775807LL) |
3467 | # define LLONG_MAX0x7fffffffffffffffLL __LONG_LONG_MAX__9223372036854775807LL |
3468 | # define LLONG_MIN(-0x7fffffffffffffffLL-1) (-LLONG_MAX0x7fffffffffffffffLL - 1LL) |
3469 | # define ULLONG_MAX0xffffffffffffffffULL (LLONG_MAX0x7fffffffffffffffLL * 2ULL + 1ULL) |
3470 | # endif |
3471 | #endif |
3472 | |
3473 | |
3474 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3475 | SWIG_AsVal_int (PyObject * obj, int *val) |
3476 | { |
3477 | long v; |
3478 | int res = SWIG_AsVal_long (obj, &v); |
3479 | if (SWIG_IsOK(res)(res >= 0)) { |
3480 | if ((v < INT_MIN(-2147483647 -1) || v > INT_MAX2147483647)) { |
3481 | return SWIG_OverflowError-7; |
3482 | } else { |
3483 | if (val) *val = static_cast< int >(v); |
3484 | } |
3485 | } |
3486 | return res; |
3487 | } |
3488 | |
3489 | SWIGINTERNstatic __attribute__ ((__unused__)) GOptimizerLM GOptimizerLM_copy(GOptimizerLM *self){ |
3490 | return (*self); |
3491 | } |
3492 | SWIGINTERNstatic __attribute__ ((__unused__)) double const &GOptimizerLM_lambda_value(GOptimizerLM *self){ |
3493 | return (self->lambda()); |
3494 | } |
3495 | |
3496 | /* Put headers and other declarations here that are needed for compilation */ |
3497 | #include "GOptimizerPar.hpp" |
3498 | |
3499 | |
3500 | SWIGINTERNstatic __attribute__ ((__unused__)) swig_type_info* |
3501 | SWIG_pchar_descriptor(void) |
3502 | { |
3503 | static int init = 0; |
3504 | static swig_type_info* info = 0; |
3505 | if (!init) { |
3506 | info = SWIG_TypeQuery("_p_char")SWIG_TypeQueryModule(&swig_module, &swig_module, "_p_char" ); |
3507 | init = 1; |
3508 | } |
3509 | return info; |
3510 | } |
3511 | |
3512 | |
3513 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3514 | SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) |
3515 | { |
3516 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
3517 | if (PyUnicode_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 28))) != 0)) |
3518 | #else |
3519 | if (PyString_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 27))) != 0)) |
3520 | #endif |
3521 | { |
3522 | char *cstr; Py_ssize_t len; |
3523 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
3524 | if (!alloc && cptr) { |
3525 | /* We can't allow converting without allocation, since the internal |
3526 | representation of string in Python 3 is UCS-2/UCS-4 but we require |
3527 | a UTF-8 representation. |
3528 | TODO(bhy) More detailed explanation */ |
3529 | return SWIG_RuntimeError-3; |
3530 | } |
3531 | obj = PyUnicode_AsUTF8StringPyUnicodeUCS2_AsUTF8String(obj); |
3532 | PyBytes_AsStringAndSizePyString_AsStringAndSize(obj, &cstr, &len); |
3533 | if(alloc) *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1)); |
3534 | #else |
3535 | PyString_AsStringAndSize(obj, &cstr, &len); |
3536 | #endif |
3537 | if (cptr) { |
3538 | if (alloc) { |
3539 | /* |
3540 | In python the user should not be able to modify the inner |
3541 | string representation. To warranty that, if you define |
3542 | SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string |
3543 | buffer is always returned. |
3544 | |
3545 | The default behavior is just to return the pointer value, |
3546 | so, be careful. |
3547 | */ |
3548 | #if defined(SWIG_PYTHON_SAFE_CSTRINGS) |
3549 | if (*alloc != SWIG_OLDOBJ((0))) |
3550 | #else |
3551 | if (*alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) |
3552 | #endif |
3553 | { |
3554 | *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1))); |
3555 | *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1)); |
3556 | } |
3557 | else { |
3558 | *cptr = cstr; |
3559 | *alloc = SWIG_OLDOBJ((0)); |
3560 | } |
3561 | } else { |
3562 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
3563 | assert(0)((void)0); /* Should never reach here in Python 3 */ |
3564 | #endif |
3565 | *cptr = SWIG_Python_str_AsChar(obj); |
3566 | } |
3567 | } |
3568 | if (psize) *psize = len + 1; |
3569 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
3570 | 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); |
3571 | #endif |
3572 | return SWIG_OK(0); |
3573 | } else { |
3574 | swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); |
3575 | if (pchar_descriptor) { |
3576 | void* vptr = 0; |
3577 | if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0)SWIG_Python_ConvertPtrAndOwn(obj, &vptr, pchar_descriptor , 0, 0) == SWIG_OK(0)) { |
3578 | if (cptr) *cptr = (char *) vptr; |
3579 | if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0; |
3580 | if (alloc) *alloc = SWIG_OLDOBJ((0)); |
3581 | return SWIG_OK(0); |
3582 | } |
3583 | } |
3584 | } |
3585 | return SWIG_TypeError-5; |
3586 | } |
3587 | |
3588 | |
3589 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3590 | SWIG_AsPtr_std_string (PyObject * obj, std::string **val) |
3591 | { |
3592 | char* buf = 0 ; size_t size = 0; int alloc = SWIG_OLDOBJ((0)); |
3593 | if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc) ) >= 0)) { |
3594 | if (buf) { |
3595 | if (val) *val = new std::string(buf, size - 1); |
3596 | if (alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) delete[] buf; |
3597 | return SWIG_NEWOBJ((0) | ((1 << 8) << 1)); |
3598 | } else { |
3599 | if (val) *val = 0; |
3600 | return SWIG_OLDOBJ((0)); |
3601 | } |
3602 | } else { |
3603 | static int init = 0; |
3604 | static swig_type_info* descriptor = 0; |
3605 | if (!init) { |
3606 | descriptor = SWIG_TypeQuery("std::string" " *")SWIG_TypeQueryModule(&swig_module, &swig_module, "std::string" " *"); |
3607 | init = 1; |
3608 | } |
3609 | if (descriptor) { |
3610 | std::string *vptr; |
3611 | int res = SWIG_ConvertPtr(obj, (void**)&vptr, descriptor, 0)SWIG_Python_ConvertPtrAndOwn(obj, (void**)&vptr, descriptor , 0, 0); |
3612 | if (SWIG_IsOK(res)(res >= 0) && val) *val = vptr; |
3613 | return res; |
3614 | } |
3615 | } |
3616 | return SWIG_ERROR(-1); |
3617 | } |
3618 | |
3619 | |
3620 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3621 | SWIG_AsVal_bool (PyObject *obj, bool *val) |
3622 | { |
3623 | int r = PyObject_IsTrue(obj); |
3624 | if (r == -1) |
3625 | return SWIG_ERROR(-1); |
3626 | if (val) *val = r ? true : false; |
3627 | return SWIG_OK(0); |
3628 | } |
3629 | |
3630 | |
3631 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
3632 | SWIG_FromCharPtrAndSize(const char* carray, size_t size) |
3633 | { |
3634 | if (carray) { |
3635 | if (size > INT_MAX2147483647) { |
3636 | swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); |
3637 | return pchar_descriptor ? |
3638 | SWIG_InternalNewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0)SWIG_Python_NewPointerObj(__null, const_cast< char * >( carray), pchar_descriptor, 0) : SWIG_Py_Void(); |
3639 | } else { |
3640 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
3641 | return PyUnicode_FromStringAndSizePyUnicodeUCS2_FromStringAndSize(carray, static_cast< int >(size)); |
3642 | #else |
3643 | return PyString_FromStringAndSize(carray, static_cast< int >(size)); |
3644 | #endif |
3645 | } |
3646 | } else { |
3647 | return SWIG_Py_Void(); |
3648 | } |
3649 | } |
3650 | |
3651 | |
3652 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
3653 | SWIG_From_std_string (const std::string& s) |
3654 | { |
3655 | return SWIG_FromCharPtrAndSize(s.data(), s.size()); |
3656 | } |
3657 | |
3658 | SWIGINTERNstatic __attribute__ ((__unused__)) GOptimizerPar GOptimizerPar_copy(GOptimizerPar *self){ |
3659 | return (*self); |
3660 | } |
3661 | |
3662 | /* Put headers and other declarations here that are needed for compilation */ |
3663 | #include "GOptimizerPars.hpp" |
3664 | |
3665 | SWIGINTERNstatic __attribute__ ((__unused__)) GOptimizerPar *GOptimizerPars___getitem____SWIG_0(GOptimizerPars *self,int const &index){ |
3666 | if (index >= 0 && index < self->size()) { |
3667 | return (*self)[index]; |
3668 | } |
3669 | else { |
3670 | throw GException::out_of_range("__getitem__(int)", "Parameter index", |
3671 | index, self->size()); |
3672 | } |
3673 | } |
3674 | SWIGINTERNstatic __attribute__ ((__unused__)) GOptimizerPar *GOptimizerPars___getitem____SWIG_1(GOptimizerPars *self,std::string const &name){ |
3675 | return (*self)[name]; |
3676 | } |
3677 | SWIGINTERNstatic __attribute__ ((__unused__)) void GOptimizerPars___setitem____SWIG_0(GOptimizerPars *self,int const &index,GOptimizerPar *par){ |
3678 | if (index >= 0 && index < self->size()) { |
3679 | self->attach(index, par); |
3680 | return; |
3681 | } |
3682 | else { |
3683 | throw GException::out_of_range("__setitem__(int)", "Parameter index", |
3684 | index, self->size()); |
3685 | } |
3686 | } |
3687 | SWIGINTERNstatic __attribute__ ((__unused__)) void GOptimizerPars___setitem____SWIG_1(GOptimizerPars *self,std::string const &name,GOptimizerPar *par){ |
3688 | self->attach(name, par); |
3689 | return; |
3690 | } |
3691 | SWIGINTERNstatic __attribute__ ((__unused__)) GOptimizerPars GOptimizerPars_copy(GOptimizerPars *self){ |
3692 | return (*self); |
3693 | } |
3694 | #ifdef __cplusplus199711L |
3695 | extern "C" { |
3696 | #endif |
3697 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_SwigPyIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3698 | PyObject *resultobj = 0; |
3699 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3700 | void *argp1 = 0 ; |
3701 | int res1 = 0 ; |
3702 | PyObject * obj0 = 0 ; |
3703 | |
3704 | if (!PyArg_ParseTuple(args,(char *)"O:delete_SwigPyIterator",&obj0)) SWIG_failgoto fail; |
3705 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0x1 | 0, 0); |
3706 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3707 | 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); |
3708 | } |
3709 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3710 | delete arg1; |
3711 | resultobj = SWIG_Py_Void(); |
3712 | return resultobj; |
3713 | fail: |
3714 | return NULL__null; |
3715 | } |
3716 | |
3717 | |
3718 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3719 | PyObject *resultobj = 0; |
3720 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3721 | void *argp1 = 0 ; |
3722 | int res1 = 0 ; |
3723 | PyObject * obj0 = 0 ; |
3724 | PyObject *result = 0 ; |
3725 | |
3726 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_value",&obj0)) SWIG_failgoto fail; |
3727 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
3728 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3729 | 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); |
3730 | } |
3731 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3732 | try { |
3733 | result = (PyObject *)((swig::SwigPyIterator const *)arg1)->value(); |
3734 | } |
3735 | catch(swig::stop_iteration &_e) { |
3736 | { |
3737 | (void)_e; |
3738 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
3739 | SWIG_failgoto fail; |
3740 | } |
3741 | } |
3742 | |
3743 | resultobj = result; |
3744 | return resultobj; |
3745 | fail: |
3746 | return NULL__null; |
3747 | } |
3748 | |
3749 | |
3750 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3751 | PyObject *resultobj = 0; |
3752 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3753 | size_t arg2 ; |
3754 | void *argp1 = 0 ; |
3755 | int res1 = 0 ; |
3756 | size_t val2 ; |
3757 | int ecode2 = 0 ; |
3758 | PyObject * obj0 = 0 ; |
3759 | PyObject * obj1 = 0 ; |
3760 | swig::SwigPyIterator *result = 0 ; |
3761 | |
3762 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_incr",&obj0,&obj1)) SWIG_failgoto fail; |
3763 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
3764 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3765 | 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); |
3766 | } |
3767 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3768 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); |
3769 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
3770 | 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); |
3771 | } |
3772 | arg2 = static_cast< size_t >(val2); |
3773 | try { |
3774 | result = (swig::SwigPyIterator *)(arg1)->incr(arg2); |
3775 | } |
3776 | catch(swig::stop_iteration &_e) { |
3777 | { |
3778 | (void)_e; |
3779 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
3780 | SWIG_failgoto fail; |
3781 | } |
3782 | } |
3783 | |
3784 | 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[10], 0 | 0); |
3785 | return resultobj; |
3786 | fail: |
3787 | return NULL__null; |
3788 | } |
3789 | |
3790 | |
3791 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3792 | PyObject *resultobj = 0; |
3793 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3794 | void *argp1 = 0 ; |
3795 | int res1 = 0 ; |
3796 | PyObject * obj0 = 0 ; |
3797 | swig::SwigPyIterator *result = 0 ; |
3798 | |
3799 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_incr",&obj0)) SWIG_failgoto fail; |
3800 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
3801 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3802 | 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); |
3803 | } |
3804 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3805 | try { |
3806 | result = (swig::SwigPyIterator *)(arg1)->incr(); |
3807 | } |
3808 | catch(swig::stop_iteration &_e) { |
3809 | { |
3810 | (void)_e; |
3811 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
3812 | SWIG_failgoto fail; |
3813 | } |
3814 | } |
3815 | |
3816 | 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[10], 0 | 0); |
3817 | return resultobj; |
3818 | fail: |
3819 | return NULL__null; |
3820 | } |
3821 | |
3822 | |
3823 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr(PyObject *self, PyObject *args) { |
3824 | int argc; |
3825 | PyObject *argv[3]; |
3826 | int ii; |
3827 | |
3828 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
3829 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
3830 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
3831 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
3832 | } |
3833 | if (argc == 1) { |
3834 | int _v; |
3835 | void *vptr = 0; |
3836 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[10 ], 0, 0); |
3837 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
3838 | if (_v) { |
3839 | return _wrap_SwigPyIterator_incr__SWIG_1(self, args); |
3840 | } |
3841 | } |
3842 | if (argc == 2) { |
3843 | int _v; |
3844 | void *vptr = 0; |
3845 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[10 ], 0, 0); |
3846 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
3847 | if (_v) { |
3848 | { |
3849 | int res = SWIG_AsVal_size_t(argv[1], NULL__null); |
3850 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
3851 | } |
3852 | if (_v) { |
3853 | return _wrap_SwigPyIterator_incr__SWIG_0(self, args); |
3854 | } |
3855 | } |
3856 | } |
3857 | |
3858 | fail: |
3859 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_incr'.\n" |
3860 | " Possible C/C++ prototypes are:\n" |
3861 | " swig::SwigPyIterator::incr(size_t)\n" |
3862 | " swig::SwigPyIterator::incr()\n"); |
3863 | return 0; |
3864 | } |
3865 | |
3866 | |
3867 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3868 | PyObject *resultobj = 0; |
3869 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3870 | size_t arg2 ; |
3871 | void *argp1 = 0 ; |
3872 | int res1 = 0 ; |
3873 | size_t val2 ; |
3874 | int ecode2 = 0 ; |
3875 | PyObject * obj0 = 0 ; |
3876 | PyObject * obj1 = 0 ; |
3877 | swig::SwigPyIterator *result = 0 ; |
3878 | |
3879 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_decr",&obj0,&obj1)) SWIG_failgoto fail; |
3880 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
3881 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3882 | 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); |
3883 | } |
3884 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3885 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); |
3886 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
3887 | 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); |
3888 | } |
3889 | arg2 = static_cast< size_t >(val2); |
3890 | try { |
3891 | result = (swig::SwigPyIterator *)(arg1)->decr(arg2); |
3892 | } |
3893 | catch(swig::stop_iteration &_e) { |
3894 | { |
3895 | (void)_e; |
3896 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
3897 | SWIG_failgoto fail; |
3898 | } |
3899 | } |
3900 | |
3901 | 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[10], 0 | 0); |
3902 | return resultobj; |
3903 | fail: |
3904 | return NULL__null; |
3905 | } |
3906 | |
3907 | |
3908 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3909 | PyObject *resultobj = 0; |
3910 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3911 | void *argp1 = 0 ; |
3912 | int res1 = 0 ; |
3913 | PyObject * obj0 = 0 ; |
3914 | swig::SwigPyIterator *result = 0 ; |
3915 | |
3916 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_decr",&obj0)) SWIG_failgoto fail; |
3917 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
3918 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3919 | 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); |
3920 | } |
3921 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3922 | try { |
3923 | result = (swig::SwigPyIterator *)(arg1)->decr(); |
3924 | } |
3925 | catch(swig::stop_iteration &_e) { |
3926 | { |
3927 | (void)_e; |
3928 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
3929 | SWIG_failgoto fail; |
3930 | } |
3931 | } |
3932 | |
3933 | 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[10], 0 | 0); |
3934 | return resultobj; |
3935 | fail: |
3936 | return NULL__null; |
3937 | } |
3938 | |
3939 | |
3940 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr(PyObject *self, PyObject *args) { |
3941 | int argc; |
3942 | PyObject *argv[3]; |
3943 | int ii; |
3944 | |
3945 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
3946 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
3947 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
3948 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
3949 | } |
3950 | if (argc == 1) { |
3951 | int _v; |
3952 | void *vptr = 0; |
3953 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[10 ], 0, 0); |
3954 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
3955 | if (_v) { |
3956 | return _wrap_SwigPyIterator_decr__SWIG_1(self, args); |
3957 | } |
3958 | } |
3959 | if (argc == 2) { |
3960 | int _v; |
3961 | void *vptr = 0; |
3962 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[10 ], 0, 0); |
3963 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
3964 | if (_v) { |
3965 | { |
3966 | int res = SWIG_AsVal_size_t(argv[1], NULL__null); |
3967 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
3968 | } |
3969 | if (_v) { |
3970 | return _wrap_SwigPyIterator_decr__SWIG_0(self, args); |
3971 | } |
3972 | } |
3973 | } |
3974 | |
3975 | fail: |
3976 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_decr'.\n" |
3977 | " Possible C/C++ prototypes are:\n" |
3978 | " swig::SwigPyIterator::decr(size_t)\n" |
3979 | " swig::SwigPyIterator::decr()\n"); |
3980 | return 0; |
3981 | } |
3982 | |
3983 | |
3984 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3985 | PyObject *resultobj = 0; |
3986 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3987 | swig::SwigPyIterator *arg2 = 0 ; |
3988 | void *argp1 = 0 ; |
3989 | int res1 = 0 ; |
3990 | void *argp2 = 0 ; |
3991 | int res2 = 0 ; |
3992 | PyObject * obj0 = 0 ; |
3993 | PyObject * obj1 = 0 ; |
3994 | ptrdiff_t result; |
3995 | |
3996 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_distance",&obj0,&obj1)) SWIG_failgoto fail; |
3997 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
3998 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3999 | 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); |
4000 | } |
4001 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4002 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[10] , 0 | 0, 0); |
4003 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4004 | 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); |
4005 | } |
4006 | if (!argp2) { |
4007 | 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 ); |
4008 | } |
4009 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4010 | try { |
4011 | result = ((swig::SwigPyIterator const *)arg1)->distance((swig::SwigPyIterator const &)*arg2); |
4012 | } |
4013 | catch(std::invalid_argument &_e) { |
4014 | 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[ 9]), SWIG_Python_NewPointerObj(__null, (new std::invalid_argument (static_cast< const std::invalid_argument& >(_e))), swig_types[9], 0x1)); SWIG_failgoto fail; |
4015 | } |
4016 | |
4017 | resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result)); |
4018 | return resultobj; |
4019 | fail: |
4020 | return NULL__null; |
4021 | } |
4022 | |
4023 | |
4024 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_equal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4025 | PyObject *resultobj = 0; |
4026 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4027 | swig::SwigPyIterator *arg2 = 0 ; |
4028 | void *argp1 = 0 ; |
4029 | int res1 = 0 ; |
4030 | void *argp2 = 0 ; |
4031 | int res2 = 0 ; |
4032 | PyObject * obj0 = 0 ; |
4033 | PyObject * obj1 = 0 ; |
4034 | bool result; |
4035 | |
4036 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_equal",&obj0,&obj1)) SWIG_failgoto fail; |
4037 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
4038 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4039 | 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); |
4040 | } |
4041 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4042 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[10] , 0 | 0, 0); |
4043 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4044 | 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); |
4045 | } |
4046 | if (!argp2) { |
4047 | 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 ); |
4048 | } |
4049 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4050 | try { |
4051 | result = (bool)((swig::SwigPyIterator const *)arg1)->equal((swig::SwigPyIterator const &)*arg2); |
4052 | } |
4053 | catch(std::invalid_argument &_e) { |
4054 | 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[ 9]), SWIG_Python_NewPointerObj(__null, (new std::invalid_argument (static_cast< const std::invalid_argument& >(_e))), swig_types[9], 0x1)); SWIG_failgoto fail; |
4055 | } |
4056 | |
4057 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
4058 | return resultobj; |
4059 | fail: |
4060 | return NULL__null; |
4061 | } |
4062 | |
4063 | |
4064 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4065 | PyObject *resultobj = 0; |
4066 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4067 | void *argp1 = 0 ; |
4068 | int res1 = 0 ; |
4069 | PyObject * obj0 = 0 ; |
4070 | swig::SwigPyIterator *result = 0 ; |
4071 | |
4072 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_copy",&obj0)) SWIG_failgoto fail; |
4073 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
4074 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4075 | 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); |
4076 | } |
4077 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4078 | result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->copy(); |
4079 | 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[10], 0x1 | 0); |
4080 | return resultobj; |
4081 | fail: |
4082 | return NULL__null; |
4083 | } |
4084 | |
4085 | |
4086 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4087 | PyObject *resultobj = 0; |
4088 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4089 | void *argp1 = 0 ; |
4090 | int res1 = 0 ; |
4091 | PyObject * obj0 = 0 ; |
4092 | PyObject *result = 0 ; |
4093 | |
4094 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_next",&obj0)) SWIG_failgoto fail; |
4095 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
4096 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4097 | 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); |
4098 | } |
4099 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4100 | try { |
4101 | result = (PyObject *)(arg1)->next(); |
4102 | } |
4103 | catch(swig::stop_iteration &_e) { |
4104 | { |
4105 | (void)_e; |
4106 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4107 | SWIG_failgoto fail; |
4108 | } |
4109 | } |
4110 | |
4111 | resultobj = result; |
4112 | return resultobj; |
4113 | fail: |
4114 | return NULL__null; |
4115 | } |
4116 | |
4117 | |
4118 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___next__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4119 | PyObject *resultobj = 0; |
4120 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4121 | void *argp1 = 0 ; |
4122 | int res1 = 0 ; |
4123 | PyObject * obj0 = 0 ; |
4124 | PyObject *result = 0 ; |
4125 | |
4126 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator___next__",&obj0)) SWIG_failgoto fail; |
4127 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
4128 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4129 | 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); |
4130 | } |
4131 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4132 | try { |
4133 | result = (PyObject *)(arg1)->__next__(); |
4134 | } |
4135 | catch(swig::stop_iteration &_e) { |
4136 | { |
4137 | (void)_e; |
4138 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4139 | SWIG_failgoto fail; |
4140 | } |
4141 | } |
4142 | |
4143 | resultobj = result; |
4144 | return resultobj; |
4145 | fail: |
4146 | return NULL__null; |
4147 | } |
4148 | |
4149 | |
4150 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_previous(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4151 | PyObject *resultobj = 0; |
4152 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4153 | void *argp1 = 0 ; |
4154 | int res1 = 0 ; |
4155 | PyObject * obj0 = 0 ; |
4156 | PyObject *result = 0 ; |
4157 | |
4158 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_previous",&obj0)) SWIG_failgoto fail; |
4159 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
4160 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4161 | 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); |
4162 | } |
4163 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4164 | try { |
4165 | result = (PyObject *)(arg1)->previous(); |
4166 | } |
4167 | catch(swig::stop_iteration &_e) { |
4168 | { |
4169 | (void)_e; |
4170 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4171 | SWIG_failgoto fail; |
4172 | } |
4173 | } |
4174 | |
4175 | resultobj = result; |
4176 | return resultobj; |
4177 | fail: |
4178 | return NULL__null; |
4179 | } |
4180 | |
4181 | |
4182 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_advance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4183 | PyObject *resultobj = 0; |
4184 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4185 | ptrdiff_t arg2 ; |
4186 | void *argp1 = 0 ; |
4187 | int res1 = 0 ; |
4188 | ptrdiff_t val2 ; |
4189 | int ecode2 = 0 ; |
4190 | PyObject * obj0 = 0 ; |
4191 | PyObject * obj1 = 0 ; |
4192 | swig::SwigPyIterator *result = 0 ; |
4193 | |
4194 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_advance",&obj0,&obj1)) SWIG_failgoto fail; |
4195 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
4196 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4197 | 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); |
4198 | } |
4199 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4200 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4201 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4202 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_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); |
4203 | } |
4204 | arg2 = static_cast< ptrdiff_t >(val2); |
4205 | try { |
4206 | result = (swig::SwigPyIterator *)(arg1)->advance(arg2); |
4207 | } |
4208 | catch(swig::stop_iteration &_e) { |
4209 | { |
4210 | (void)_e; |
4211 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4212 | SWIG_failgoto fail; |
4213 | } |
4214 | } |
4215 | |
4216 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[10], 0 | 0); |
4217 | return resultobj; |
4218 | fail: |
4219 | return NULL__null; |
4220 | } |
4221 | |
4222 | |
4223 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4224 | PyObject *resultobj = 0; |
4225 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4226 | swig::SwigPyIterator *arg2 = 0 ; |
4227 | void *argp1 = 0 ; |
4228 | int res1 = 0 ; |
4229 | void *argp2 = 0 ; |
4230 | int res2 = 0 ; |
4231 | PyObject * obj0 = 0 ; |
4232 | PyObject * obj1 = 0 ; |
4233 | bool result; |
4234 | |
4235 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___eq__",&obj0,&obj1)) SWIG_failgoto fail; |
4236 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
4237 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4238 | 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); |
4239 | } |
4240 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4241 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[10] , 0 | 0, 0); |
4242 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4243 | 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); |
4244 | } |
4245 | if (!argp2) { |
4246 | 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 ); |
4247 | } |
4248 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4249 | result = (bool)((swig::SwigPyIterator const *)arg1)->operator ==((swig::SwigPyIterator const &)*arg2); |
4250 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
4251 | return resultobj; |
4252 | fail: |
4253 | return NULL__null; |
4254 | } |
4255 | |
4256 | |
4257 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4258 | PyObject *resultobj = 0; |
4259 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4260 | swig::SwigPyIterator *arg2 = 0 ; |
4261 | void *argp1 = 0 ; |
4262 | int res1 = 0 ; |
4263 | void *argp2 = 0 ; |
4264 | int res2 = 0 ; |
4265 | PyObject * obj0 = 0 ; |
4266 | PyObject * obj1 = 0 ; |
4267 | bool result; |
4268 | |
4269 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___ne__",&obj0,&obj1)) SWIG_failgoto fail; |
4270 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
4271 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4272 | 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); |
4273 | } |
4274 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4275 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[10] , 0 | 0, 0); |
4276 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4277 | 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); |
4278 | } |
4279 | if (!argp2) { |
4280 | 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 ); |
4281 | } |
4282 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4283 | result = (bool)((swig::SwigPyIterator const *)arg1)->operator !=((swig::SwigPyIterator const &)*arg2); |
4284 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
4285 | return resultobj; |
4286 | fail: |
4287 | return NULL__null; |
4288 | } |
4289 | |
4290 | |
4291 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4292 | PyObject *resultobj = 0; |
4293 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4294 | ptrdiff_t arg2 ; |
4295 | void *argp1 = 0 ; |
4296 | int res1 = 0 ; |
4297 | ptrdiff_t val2 ; |
4298 | int ecode2 = 0 ; |
4299 | PyObject * obj0 = 0 ; |
4300 | PyObject * obj1 = 0 ; |
4301 | swig::SwigPyIterator *result = 0 ; |
4302 | |
4303 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___iadd__",&obj0,&obj1)) SWIG_failgoto fail; |
4304 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0x1 | 0, 0); |
4305 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4306 | 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); |
4307 | } |
4308 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4309 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4310 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4311 | 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); |
4312 | } |
4313 | arg2 = static_cast< ptrdiff_t >(val2); |
4314 | try { |
4315 | result = (swig::SwigPyIterator *) &(arg1)->operator +=(arg2); |
4316 | } |
4317 | catch(swig::stop_iteration &_e) { |
4318 | { |
4319 | (void)_e; |
4320 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4321 | SWIG_failgoto fail; |
4322 | } |
4323 | } |
4324 | |
4325 | 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[10], 0x1 | 0); |
4326 | return resultobj; |
4327 | fail: |
4328 | return NULL__null; |
4329 | } |
4330 | |
4331 | |
4332 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4333 | PyObject *resultobj = 0; |
4334 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4335 | ptrdiff_t arg2 ; |
4336 | void *argp1 = 0 ; |
4337 | int res1 = 0 ; |
4338 | ptrdiff_t val2 ; |
4339 | int ecode2 = 0 ; |
4340 | PyObject * obj0 = 0 ; |
4341 | PyObject * obj1 = 0 ; |
4342 | swig::SwigPyIterator *result = 0 ; |
4343 | |
4344 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___isub__",&obj0,&obj1)) SWIG_failgoto fail; |
4345 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0x1 | 0, 0); |
4346 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4347 | 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); |
4348 | } |
4349 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4350 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4351 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4352 | 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); |
4353 | } |
4354 | arg2 = static_cast< ptrdiff_t >(val2); |
4355 | try { |
4356 | result = (swig::SwigPyIterator *) &(arg1)->operator -=(arg2); |
4357 | } |
4358 | catch(swig::stop_iteration &_e) { |
4359 | { |
4360 | (void)_e; |
4361 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4362 | SWIG_failgoto fail; |
4363 | } |
4364 | } |
4365 | |
4366 | 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[10], 0x1 | 0); |
4367 | return resultobj; |
4368 | fail: |
4369 | return NULL__null; |
4370 | } |
4371 | |
4372 | |
4373 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4374 | PyObject *resultobj = 0; |
4375 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4376 | ptrdiff_t arg2 ; |
4377 | void *argp1 = 0 ; |
4378 | int res1 = 0 ; |
4379 | ptrdiff_t val2 ; |
4380 | int ecode2 = 0 ; |
4381 | PyObject * obj0 = 0 ; |
4382 | PyObject * obj1 = 0 ; |
4383 | swig::SwigPyIterator *result = 0 ; |
4384 | |
4385 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___add__",&obj0,&obj1)) SWIG_failgoto fail; |
4386 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
4387 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4388 | 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); |
4389 | } |
4390 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4391 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4392 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4393 | 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); |
4394 | } |
4395 | arg2 = static_cast< ptrdiff_t >(val2); |
4396 | try { |
4397 | result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator +(arg2); |
4398 | } |
4399 | catch(swig::stop_iteration &_e) { |
4400 | { |
4401 | (void)_e; |
4402 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4403 | SWIG_failgoto fail; |
4404 | } |
4405 | } |
4406 | |
4407 | 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[10], 0x1 | 0); |
4408 | return resultobj; |
4409 | fail: |
4410 | return NULL__null; |
4411 | } |
4412 | |
4413 | |
4414 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4415 | PyObject *resultobj = 0; |
4416 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4417 | ptrdiff_t arg2 ; |
4418 | void *argp1 = 0 ; |
4419 | int res1 = 0 ; |
4420 | ptrdiff_t val2 ; |
4421 | int ecode2 = 0 ; |
4422 | PyObject * obj0 = 0 ; |
4423 | PyObject * obj1 = 0 ; |
4424 | swig::SwigPyIterator *result = 0 ; |
4425 | |
4426 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_failgoto fail; |
4427 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
4428 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4429 | 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); |
4430 | } |
4431 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4432 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4433 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4434 | 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); |
4435 | } |
4436 | arg2 = static_cast< ptrdiff_t >(val2); |
4437 | try { |
4438 | result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator -(arg2); |
4439 | } |
4440 | catch(swig::stop_iteration &_e) { |
4441 | { |
4442 | (void)_e; |
4443 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4444 | SWIG_failgoto fail; |
4445 | } |
4446 | } |
4447 | |
4448 | 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[10], 0x1 | 0); |
4449 | return resultobj; |
4450 | fail: |
4451 | return NULL__null; |
4452 | } |
4453 | |
4454 | |
4455 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4456 | PyObject *resultobj = 0; |
4457 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4458 | swig::SwigPyIterator *arg2 = 0 ; |
4459 | void *argp1 = 0 ; |
4460 | int res1 = 0 ; |
4461 | void *argp2 = 0 ; |
4462 | int res2 = 0 ; |
4463 | PyObject * obj0 = 0 ; |
4464 | PyObject * obj1 = 0 ; |
4465 | ptrdiff_t result; |
4466 | |
4467 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_failgoto fail; |
4468 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
4469 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4470 | 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); |
4471 | } |
4472 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4473 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[10] , 0 | 0, 0); |
4474 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4475 | 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); |
4476 | } |
4477 | if (!argp2) { |
4478 | 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 ); |
4479 | } |
4480 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4481 | result = ((swig::SwigPyIterator const *)arg1)->operator -((swig::SwigPyIterator const &)*arg2); |
4482 | resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result)); |
4483 | return resultobj; |
4484 | fail: |
4485 | return NULL__null; |
4486 | } |
4487 | |
4488 | |
4489 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub__(PyObject *self, PyObject *args) { |
4490 | int argc; |
4491 | PyObject *argv[3]; |
4492 | int ii; |
4493 | |
4494 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
4495 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
4496 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
4497 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
4498 | } |
4499 | if (argc == 2) { |
4500 | int _v; |
4501 | void *vptr = 0; |
4502 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[10 ], 0, 0); |
4503 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4504 | if (_v) { |
4505 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[10], 0, 0 ); |
4506 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4507 | if (_v) { |
4508 | return _wrap_SwigPyIterator___sub____SWIG_1(self, args); |
4509 | } |
4510 | } |
4511 | } |
4512 | if (argc == 2) { |
4513 | int _v; |
4514 | void *vptr = 0; |
4515 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[10 ], 0, 0); |
4516 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4517 | if (_v) { |
4518 | { |
4519 | int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL__null); |
4520 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4521 | } |
4522 | if (_v) { |
4523 | return _wrap_SwigPyIterator___sub____SWIG_0(self, args); |
4524 | } |
4525 | } |
4526 | } |
4527 | |
4528 | fail: |
4529 | Py_INCREF(Py_NotImplemented)( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt ++); |
4530 | return Py_NotImplemented(&_Py_NotImplementedStruct); |
4531 | } |
4532 | |
4533 | |
4534 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *SwigPyIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4535 | PyObject *obj; |
4536 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
4537 | SWIG_TypeNewClientData(SWIGTYPE_p_swig__SwigPyIteratorswig_types[10], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
4538 | return SWIG_Py_Void(); |
4539 | } |
4540 | |
4541 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GOptimizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4542 | PyObject *resultobj = 0; |
4543 | GOptimizer *arg1 = (GOptimizer *) 0 ; |
4544 | void *argp1 = 0 ; |
4545 | int res1 = 0 ; |
4546 | PyObject * obj0 = 0 ; |
4547 | |
4548 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GOptimizer",&obj0)) SWIG_failgoto fail; |
4549 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizer, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0x1 | 0, 0); |
4550 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4551 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GOptimizer" "', argument " "1"" of type '" "GOptimizer *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GOptimizer" "', argument " "1"" of type '" "GOptimizer *""'"); goto fail; } while(0); |
4552 | } |
4553 | arg1 = reinterpret_cast< GOptimizer * >(argp1); |
4554 | { |
4555 | try { |
4556 | delete arg1; |
4557 | } |
4558 | catch (const GException::out_of_range& e) { |
4559 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4560 | } |
4561 | catch (const GExceptionHandler& e) { |
4562 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4563 | } |
4564 | catch (const std::exception& e) { |
4565 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4566 | } |
4567 | } |
4568 | resultobj = SWIG_Py_Void(); |
4569 | return resultobj; |
4570 | fail: |
4571 | return NULL__null; |
4572 | } |
4573 | |
4574 | |
4575 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizer_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4576 | PyObject *resultobj = 0; |
4577 | GOptimizer *arg1 = (GOptimizer *) 0 ; |
4578 | void *argp1 = 0 ; |
4579 | int res1 = 0 ; |
4580 | PyObject * obj0 = 0 ; |
4581 | |
4582 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizer_clear",&obj0)) SWIG_failgoto fail; |
4583 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizer, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
4584 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4585 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizer_clear" "', argument " "1"" of type '" "GOptimizer *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizer_clear" "', argument " "1"" of type '" "GOptimizer *""'"); goto fail; } while(0); |
4586 | } |
4587 | arg1 = reinterpret_cast< GOptimizer * >(argp1); |
4588 | { |
4589 | try { |
4590 | (arg1)->clear(); |
4591 | } |
4592 | catch (const GException::out_of_range& e) { |
4593 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4594 | } |
4595 | catch (const GExceptionHandler& e) { |
4596 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4597 | } |
4598 | catch (const std::exception& e) { |
4599 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4600 | } |
4601 | } |
4602 | resultobj = SWIG_Py_Void(); |
4603 | return resultobj; |
4604 | fail: |
4605 | return NULL__null; |
4606 | } |
4607 | |
4608 | |
4609 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizer_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4610 | PyObject *resultobj = 0; |
4611 | GOptimizer *arg1 = (GOptimizer *) 0 ; |
4612 | void *argp1 = 0 ; |
4613 | int res1 = 0 ; |
4614 | PyObject * obj0 = 0 ; |
4615 | GOptimizer *result = 0 ; |
4616 | |
4617 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizer_clone",&obj0)) SWIG_failgoto fail; |
4618 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizer, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
4619 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4620 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizer_clone" "', argument " "1"" of type '" "GOptimizer const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizer_clone" "', argument " "1"" of type '" "GOptimizer const *""'"); goto fail; } while (0); |
4621 | } |
4622 | arg1 = reinterpret_cast< GOptimizer * >(argp1); |
4623 | { |
4624 | try { |
4625 | result = (GOptimizer *)((GOptimizer const *)arg1)->clone(); |
4626 | } |
4627 | catch (const GException::out_of_range& e) { |
4628 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4629 | } |
4630 | catch (const GExceptionHandler& e) { |
4631 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4632 | } |
4633 | catch (const std::exception& e) { |
4634 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4635 | } |
4636 | } |
4637 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GOptimizer, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[3], 0 | 0); |
4638 | return resultobj; |
4639 | fail: |
4640 | return NULL__null; |
4641 | } |
4642 | |
4643 | |
4644 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizer_optimize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4645 | PyObject *resultobj = 0; |
4646 | GOptimizer *arg1 = (GOptimizer *) 0 ; |
4647 | GOptimizerFunction *arg2 = 0 ; |
4648 | GOptimizerPars *arg3 = 0 ; |
4649 | void *argp1 = 0 ; |
4650 | int res1 = 0 ; |
4651 | void *argp2 = 0 ; |
4652 | int res2 = 0 ; |
4653 | void *argp3 = 0 ; |
4654 | int res3 = 0 ; |
4655 | PyObject * obj0 = 0 ; |
4656 | PyObject * obj1 = 0 ; |
4657 | PyObject * obj2 = 0 ; |
4658 | |
4659 | if (!PyArg_ParseTuple(args,(char *)"OOO:GOptimizer_optimize",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
4660 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizer, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
4661 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4662 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizer_optimize" "', argument " "1"" of type '" "GOptimizer *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizer_optimize" "', argument " "1"" of type '" "GOptimizer *""'"); goto fail; } while(0); |
4663 | } |
4664 | arg1 = reinterpret_cast< GOptimizer * >(argp1); |
4665 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GOptimizerFunction, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[4], 0, 0); |
4666 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4667 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GOptimizer_optimize" "', argument " "2"" of type '" "GOptimizerFunction &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GOptimizer_optimize" "', argument " "2"" of type '" "GOptimizerFunction &""'"); goto fail; } while(0); |
4668 | } |
4669 | if (!argp2) { |
4670 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GOptimizer_optimize" "', argument " "2"" of type '" "GOptimizerFunction &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GOptimizer_optimize" "', argument " "2"" of type '" "GOptimizerFunction &""'"); goto fail; } while(0); |
4671 | } |
4672 | arg2 = reinterpret_cast< GOptimizerFunction * >(argp2); |
4673 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GOptimizerPars, 0 )SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[7], 0, 0); |
4674 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
4675 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GOptimizer_optimize" "', argument " "3"" of type '" "GOptimizerPars &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GOptimizer_optimize" "', argument " "3"" of type '" "GOptimizerPars &""'"); goto fail; } while (0); |
4676 | } |
4677 | if (!argp3) { |
4678 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GOptimizer_optimize" "', argument " "3"" of type '" "GOptimizerPars &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GOptimizer_optimize" "', argument " "3"" of type '" "GOptimizerPars &""'"); goto fail; } while(0); |
4679 | } |
4680 | arg3 = reinterpret_cast< GOptimizerPars * >(argp3); |
4681 | { |
4682 | try { |
4683 | (arg1)->optimize(*arg2,*arg3); |
4684 | } |
4685 | catch (const GException::out_of_range& e) { |
4686 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4687 | } |
4688 | catch (const GExceptionHandler& e) { |
4689 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4690 | } |
4691 | catch (const std::exception& e) { |
4692 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4693 | } |
4694 | } |
4695 | resultobj = SWIG_Py_Void(); |
4696 | return resultobj; |
4697 | fail: |
4698 | return NULL__null; |
4699 | } |
4700 | |
4701 | |
4702 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizer_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4703 | PyObject *resultobj = 0; |
4704 | GOptimizer *arg1 = (GOptimizer *) 0 ; |
4705 | void *argp1 = 0 ; |
4706 | int res1 = 0 ; |
4707 | PyObject * obj0 = 0 ; |
4708 | double result; |
4709 | |
4710 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizer_value",&obj0)) SWIG_failgoto fail; |
4711 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizer, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
4712 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4713 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizer_value" "', argument " "1"" of type '" "GOptimizer const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizer_value" "', argument " "1"" of type '" "GOptimizer const *""'"); goto fail; } while (0); |
4714 | } |
4715 | arg1 = reinterpret_cast< GOptimizer * >(argp1); |
4716 | { |
4717 | try { |
4718 | result = (double)((GOptimizer const *)arg1)->value(); |
4719 | } |
4720 | catch (const GException::out_of_range& e) { |
4721 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4722 | } |
4723 | catch (const GExceptionHandler& e) { |
4724 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4725 | } |
4726 | catch (const std::exception& e) { |
4727 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4728 | } |
4729 | } |
4730 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
4731 | return resultobj; |
4732 | fail: |
4733 | return NULL__null; |
4734 | } |
4735 | |
4736 | |
4737 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizer_status(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4738 | PyObject *resultobj = 0; |
4739 | GOptimizer *arg1 = (GOptimizer *) 0 ; |
4740 | void *argp1 = 0 ; |
4741 | int res1 = 0 ; |
4742 | PyObject * obj0 = 0 ; |
4743 | int result; |
4744 | |
4745 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizer_status",&obj0)) SWIG_failgoto fail; |
4746 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizer, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
4747 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4748 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizer_status" "', argument " "1"" of type '" "GOptimizer const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizer_status" "', argument " "1"" of type '" "GOptimizer const *""'"); goto fail; } while (0); |
4749 | } |
4750 | arg1 = reinterpret_cast< GOptimizer * >(argp1); |
4751 | { |
4752 | try { |
4753 | result = (int)((GOptimizer const *)arg1)->status(); |
4754 | } |
4755 | catch (const GException::out_of_range& e) { |
4756 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4757 | } |
4758 | catch (const GExceptionHandler& e) { |
4759 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4760 | } |
4761 | catch (const std::exception& e) { |
4762 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4763 | } |
4764 | } |
4765 | resultobj = SWIG_From_int(static_cast< int >(result)); |
4766 | return resultobj; |
4767 | fail: |
4768 | return NULL__null; |
4769 | } |
4770 | |
4771 | |
4772 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizer_iter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4773 | PyObject *resultobj = 0; |
4774 | GOptimizer *arg1 = (GOptimizer *) 0 ; |
4775 | void *argp1 = 0 ; |
4776 | int res1 = 0 ; |
4777 | PyObject * obj0 = 0 ; |
4778 | int result; |
4779 | |
4780 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizer_iter",&obj0)) SWIG_failgoto fail; |
4781 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizer, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
4782 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4783 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizer_iter" "', argument " "1"" of type '" "GOptimizer const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizer_iter" "', argument " "1"" of type '" "GOptimizer const *""'"); goto fail; } while (0); |
4784 | } |
4785 | arg1 = reinterpret_cast< GOptimizer * >(argp1); |
4786 | { |
4787 | try { |
4788 | result = (int)((GOptimizer const *)arg1)->iter(); |
4789 | } |
4790 | catch (const GException::out_of_range& e) { |
4791 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4792 | } |
4793 | catch (const GExceptionHandler& e) { |
4794 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4795 | } |
4796 | catch (const std::exception& e) { |
4797 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4798 | } |
4799 | } |
4800 | resultobj = SWIG_From_int(static_cast< int >(result)); |
4801 | return resultobj; |
4802 | fail: |
4803 | return NULL__null; |
4804 | } |
4805 | |
4806 | |
4807 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GOptimizer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4808 | PyObject *obj; |
4809 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
4810 | SWIG_TypeNewClientData(SWIGTYPE_p_GOptimizerswig_types[3], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
4811 | return SWIG_Py_Void(); |
4812 | } |
4813 | |
4814 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GOptimizerLM__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4815 | PyObject *resultobj = 0; |
4816 | GOptimizerLM *result = 0 ; |
4817 | |
4818 | if (!PyArg_ParseTuple(args,(char *)":new_GOptimizerLM")) SWIG_failgoto fail; |
4819 | { |
4820 | try { |
4821 | result = (GOptimizerLM *)new GOptimizerLM(); |
4822 | } |
4823 | catch (const GException::out_of_range& e) { |
4824 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4825 | } |
4826 | catch (const GExceptionHandler& e) { |
4827 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4828 | } |
4829 | catch (const std::exception& e) { |
4830 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4831 | } |
4832 | } |
4833 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GOptimizerLM, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[5], (( 0x1 << 1) | 0x1) | 0); |
4834 | return resultobj; |
4835 | fail: |
4836 | return NULL__null; |
4837 | } |
4838 | |
4839 | |
4840 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GOptimizerLM__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4841 | PyObject *resultobj = 0; |
4842 | GLog *arg1 = 0 ; |
4843 | void *argp1 = 0 ; |
4844 | int res1 = 0 ; |
4845 | PyObject * obj0 = 0 ; |
4846 | GOptimizerLM *result = 0 ; |
4847 | |
4848 | if (!PyArg_ParseTuple(args,(char *)"O:new_GOptimizerLM",&obj0)) SWIG_failgoto fail; |
4849 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GLog, 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0, 0); |
4850 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4851 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GOptimizerLM" "', argument " "1"" of type '" "GLog &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GOptimizerLM" "', argument " "1"" of type '" "GLog &""'"); goto fail; } while(0); |
4852 | } |
4853 | if (!argp1) { |
4854 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GOptimizerLM" "', argument " "1"" of type '" "GLog &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GOptimizerLM" "', argument " "1"" of type '" "GLog &""'"); goto fail; } while(0); |
4855 | } |
4856 | arg1 = reinterpret_cast< GLog * >(argp1); |
4857 | { |
4858 | try { |
4859 | result = (GOptimizerLM *)new GOptimizerLM(*arg1); |
4860 | } |
4861 | catch (const GException::out_of_range& e) { |
4862 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4863 | } |
4864 | catch (const GExceptionHandler& e) { |
4865 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4866 | } |
4867 | catch (const std::exception& e) { |
4868 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4869 | } |
4870 | } |
4871 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GOptimizerLM, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[5], (( 0x1 << 1) | 0x1) | 0); |
4872 | return resultobj; |
4873 | fail: |
4874 | return NULL__null; |
4875 | } |
4876 | |
4877 | |
4878 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GOptimizerLM__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4879 | PyObject *resultobj = 0; |
4880 | GOptimizerLM *arg1 = 0 ; |
4881 | void *argp1 = 0 ; |
4882 | int res1 = 0 ; |
4883 | PyObject * obj0 = 0 ; |
4884 | GOptimizerLM *result = 0 ; |
4885 | |
4886 | if (!PyArg_ParseTuple(args,(char *)"O:new_GOptimizerLM",&obj0)) SWIG_failgoto fail; |
4887 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GOptimizerLM, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
4888 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4889 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GOptimizerLM" "', argument " "1"" of type '" "GOptimizerLM const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GOptimizerLM" "', argument " "1"" of type '" "GOptimizerLM const &""'"); goto fail; } while(0); |
4890 | } |
4891 | if (!argp1) { |
4892 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GOptimizerLM" "', argument " "1"" of type '" "GOptimizerLM const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GOptimizerLM" "', argument " "1"" of type '" "GOptimizerLM const &""'"); goto fail; } while(0); |
4893 | } |
4894 | arg1 = reinterpret_cast< GOptimizerLM * >(argp1); |
4895 | { |
4896 | try { |
4897 | result = (GOptimizerLM *)new GOptimizerLM((GOptimizerLM const &)*arg1); |
4898 | } |
4899 | catch (const GException::out_of_range& e) { |
4900 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4901 | } |
4902 | catch (const GExceptionHandler& e) { |
4903 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4904 | } |
4905 | catch (const std::exception& e) { |
4906 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4907 | } |
4908 | } |
4909 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GOptimizerLM, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[5], (( 0x1 << 1) | 0x1) | 0); |
4910 | return resultobj; |
4911 | fail: |
4912 | return NULL__null; |
4913 | } |
4914 | |
4915 | |
4916 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GOptimizerLM(PyObject *self, PyObject *args) { |
4917 | int argc; |
4918 | PyObject *argv[2]; |
4919 | int ii; |
4920 | |
4921 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
4922 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
4923 | for (ii = 0; (ii < 1) && (ii < argc); ii++) { |
4924 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
4925 | } |
4926 | if (argc == 0) { |
4927 | return _wrap_new_GOptimizerLM__SWIG_0(self, args); |
4928 | } |
4929 | if (argc == 1) { |
4930 | int _v; |
4931 | void *vptr = 0; |
4932 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLog, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[2 ], 0, 0); |
4933 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4934 | if (_v) { |
4935 | return _wrap_new_GOptimizerLM__SWIG_1(self, args); |
4936 | } |
4937 | } |
4938 | if (argc == 1) { |
4939 | int _v; |
4940 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GOptimizerLM, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[5], 0, 0); |
4941 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4942 | if (_v) { |
4943 | return _wrap_new_GOptimizerLM__SWIG_2(self, args); |
4944 | } |
4945 | } |
4946 | |
4947 | fail: |
4948 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GOptimizerLM'.\n" |
4949 | " Possible C/C++ prototypes are:\n" |
4950 | " GOptimizerLM::GOptimizerLM()\n" |
4951 | " GOptimizerLM::GOptimizerLM(GLog &)\n" |
4952 | " GOptimizerLM::GOptimizerLM(GOptimizerLM const &)\n"); |
4953 | return 0; |
4954 | } |
4955 | |
4956 | |
4957 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GOptimizerLM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4958 | PyObject *resultobj = 0; |
4959 | GOptimizerLM *arg1 = (GOptimizerLM *) 0 ; |
4960 | void *argp1 = 0 ; |
4961 | int res1 = 0 ; |
4962 | PyObject * obj0 = 0 ; |
4963 | |
4964 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GOptimizerLM",&obj0)) SWIG_failgoto fail; |
4965 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerLM, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0x1 | 0, 0); |
4966 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4967 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GOptimizerLM" "', argument " "1"" of type '" "GOptimizerLM *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GOptimizerLM" "', argument " "1"" of type '" "GOptimizerLM *""'"); goto fail; } while(0); |
4968 | } |
4969 | arg1 = reinterpret_cast< GOptimizerLM * >(argp1); |
4970 | { |
4971 | try { |
4972 | delete arg1; |
4973 | } |
4974 | catch (const GException::out_of_range& e) { |
4975 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4976 | } |
4977 | catch (const GExceptionHandler& e) { |
4978 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4979 | } |
4980 | catch (const std::exception& e) { |
4981 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4982 | } |
4983 | } |
4984 | resultobj = SWIG_Py_Void(); |
4985 | return resultobj; |
4986 | fail: |
4987 | return NULL__null; |
4988 | } |
4989 | |
4990 | |
4991 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerLM_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4992 | PyObject *resultobj = 0; |
4993 | GOptimizerLM *arg1 = (GOptimizerLM *) 0 ; |
4994 | void *argp1 = 0 ; |
4995 | int res1 = 0 ; |
4996 | PyObject * obj0 = 0 ; |
4997 | |
4998 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerLM_clear",&obj0)) SWIG_failgoto fail; |
4999 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerLM, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
5000 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5001 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerLM_clear" "', argument " "1"" of type '" "GOptimizerLM *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerLM_clear" "', argument " "1"" of type '" "GOptimizerLM *""'"); goto fail; } while(0); |
5002 | } |
5003 | arg1 = reinterpret_cast< GOptimizerLM * >(argp1); |
5004 | { |
5005 | try { |
5006 | (arg1)->clear(); |
5007 | } |
5008 | catch (const GException::out_of_range& e) { |
5009 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5010 | } |
5011 | catch (const GExceptionHandler& e) { |
5012 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5013 | } |
5014 | catch (const std::exception& e) { |
5015 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5016 | } |
5017 | } |
5018 | resultobj = SWIG_Py_Void(); |
5019 | return resultobj; |
5020 | fail: |
5021 | return NULL__null; |
5022 | } |
5023 | |
5024 | |
5025 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerLM_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5026 | PyObject *resultobj = 0; |
5027 | GOptimizerLM *arg1 = (GOptimizerLM *) 0 ; |
5028 | void *argp1 = 0 ; |
5029 | int res1 = 0 ; |
5030 | PyObject * obj0 = 0 ; |
5031 | GOptimizerLM *result = 0 ; |
5032 | |
5033 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerLM_clone",&obj0)) SWIG_failgoto fail; |
5034 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerLM, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
5035 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5036 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerLM_clone" "', argument " "1"" of type '" "GOptimizerLM const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerLM_clone" "', argument " "1"" of type '" "GOptimizerLM const *""'"); goto fail; } while (0); |
5037 | } |
5038 | arg1 = reinterpret_cast< GOptimizerLM * >(argp1); |
5039 | { |
5040 | try { |
5041 | result = (GOptimizerLM *)((GOptimizerLM const *)arg1)->clone(); |
5042 | } |
5043 | catch (const GException::out_of_range& e) { |
5044 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5045 | } |
5046 | catch (const GExceptionHandler& e) { |
5047 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5048 | } |
5049 | catch (const std::exception& e) { |
5050 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5051 | } |
5052 | } |
5053 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GOptimizerLM, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[5], 0 | 0); |
5054 | return resultobj; |
5055 | fail: |
5056 | return NULL__null; |
5057 | } |
5058 | |
5059 | |
5060 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerLM_optimize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5061 | PyObject *resultobj = 0; |
5062 | GOptimizerLM *arg1 = (GOptimizerLM *) 0 ; |
5063 | GOptimizerFunction *arg2 = 0 ; |
5064 | GOptimizerPars *arg3 = 0 ; |
5065 | void *argp1 = 0 ; |
5066 | int res1 = 0 ; |
5067 | void *argp2 = 0 ; |
5068 | int res2 = 0 ; |
5069 | void *argp3 = 0 ; |
5070 | int res3 = 0 ; |
5071 | PyObject * obj0 = 0 ; |
5072 | PyObject * obj1 = 0 ; |
5073 | PyObject * obj2 = 0 ; |
5074 | |
5075 | if (!PyArg_ParseTuple(args,(char *)"OOO:GOptimizerLM_optimize",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
5076 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerLM, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
5077 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5078 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerLM_optimize" "', argument " "1"" of type '" "GOptimizerLM *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerLM_optimize" "', argument " "1"" of type '" "GOptimizerLM *""'"); goto fail; } while(0); |
5079 | } |
5080 | arg1 = reinterpret_cast< GOptimizerLM * >(argp1); |
5081 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GOptimizerFunction, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[4], 0, 0); |
5082 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
5083 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GOptimizerLM_optimize" "', argument " "2"" of type '" "GOptimizerFunction &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GOptimizerLM_optimize" "', argument " "2"" of type '" "GOptimizerFunction &""'"); goto fail; } while(0); |
5084 | } |
5085 | if (!argp2) { |
5086 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GOptimizerLM_optimize" "', argument " "2"" of type '" "GOptimizerFunction &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GOptimizerLM_optimize" "', argument " "2"" of type '" "GOptimizerFunction &""'"); goto fail; } while(0); |
5087 | } |
5088 | arg2 = reinterpret_cast< GOptimizerFunction * >(argp2); |
5089 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GOptimizerPars, 0 )SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[7], 0, 0); |
5090 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
5091 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GOptimizerLM_optimize" "', argument " "3"" of type '" "GOptimizerPars &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GOptimizerLM_optimize" "', argument " "3"" of type '" "GOptimizerPars &""'"); goto fail; } while (0); |
5092 | } |
5093 | if (!argp3) { |
5094 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GOptimizerLM_optimize" "', argument " "3"" of type '" "GOptimizerPars &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GOptimizerLM_optimize" "', argument " "3"" of type '" "GOptimizerPars &""'"); goto fail; } while(0); |
5095 | } |
5096 | arg3 = reinterpret_cast< GOptimizerPars * >(argp3); |
5097 | { |
5098 | try { |
5099 | (arg1)->optimize(*arg2,*arg3); |
5100 | } |
5101 | catch (const GException::out_of_range& e) { |
5102 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5103 | } |
5104 | catch (const GExceptionHandler& e) { |
5105 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5106 | } |
5107 | catch (const std::exception& e) { |
5108 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5109 | } |
5110 | } |
5111 | resultobj = SWIG_Py_Void(); |
5112 | return resultobj; |
5113 | fail: |
5114 | return NULL__null; |
5115 | } |
5116 | |
5117 | |
5118 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerLM_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5119 | PyObject *resultobj = 0; |
5120 | GOptimizerLM *arg1 = (GOptimizerLM *) 0 ; |
5121 | void *argp1 = 0 ; |
5122 | int res1 = 0 ; |
5123 | PyObject * obj0 = 0 ; |
5124 | double result; |
5125 | |
5126 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerLM_value",&obj0)) SWIG_failgoto fail; |
5127 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerLM, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
5128 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5129 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerLM_value" "', argument " "1"" of type '" "GOptimizerLM const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerLM_value" "', argument " "1"" of type '" "GOptimizerLM const *""'"); goto fail; } while (0); |
5130 | } |
5131 | arg1 = reinterpret_cast< GOptimizerLM * >(argp1); |
5132 | { |
5133 | try { |
5134 | result = (double)((GOptimizerLM const *)arg1)->value(); |
5135 | } |
5136 | catch (const GException::out_of_range& e) { |
5137 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5138 | } |
5139 | catch (const GExceptionHandler& e) { |
5140 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5141 | } |
5142 | catch (const std::exception& e) { |
5143 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5144 | } |
5145 | } |
5146 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
5147 | return resultobj; |
5148 | fail: |
5149 | return NULL__null; |
5150 | } |
5151 | |
5152 | |
5153 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerLM_status(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5154 | PyObject *resultobj = 0; |
5155 | GOptimizerLM *arg1 = (GOptimizerLM *) 0 ; |
5156 | void *argp1 = 0 ; |
5157 | int res1 = 0 ; |
5158 | PyObject * obj0 = 0 ; |
5159 | int result; |
5160 | |
5161 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerLM_status",&obj0)) SWIG_failgoto fail; |
5162 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerLM, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
5163 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5164 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerLM_status" "', argument " "1"" of type '" "GOptimizerLM const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerLM_status" "', argument " "1"" of type '" "GOptimizerLM const *""'"); goto fail; } while (0); |
5165 | } |
5166 | arg1 = reinterpret_cast< GOptimizerLM * >(argp1); |
5167 | { |
5168 | try { |
5169 | result = (int)((GOptimizerLM const *)arg1)->status(); |
5170 | } |
5171 | catch (const GException::out_of_range& e) { |
5172 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5173 | } |
5174 | catch (const GExceptionHandler& e) { |
5175 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5176 | } |
5177 | catch (const std::exception& e) { |
5178 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5179 | } |
5180 | } |
5181 | resultobj = SWIG_From_int(static_cast< int >(result)); |
5182 | return resultobj; |
5183 | fail: |
5184 | return NULL__null; |
5185 | } |
5186 | |
5187 | |
5188 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerLM_iter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5189 | PyObject *resultobj = 0; |
5190 | GOptimizerLM *arg1 = (GOptimizerLM *) 0 ; |
5191 | void *argp1 = 0 ; |
5192 | int res1 = 0 ; |
5193 | PyObject * obj0 = 0 ; |
5194 | int result; |
5195 | |
5196 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerLM_iter",&obj0)) SWIG_failgoto fail; |
5197 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerLM, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
5198 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5199 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerLM_iter" "', argument " "1"" of type '" "GOptimizerLM const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerLM_iter" "', argument " "1"" of type '" "GOptimizerLM const *""'"); goto fail; } while (0); |
5200 | } |
5201 | arg1 = reinterpret_cast< GOptimizerLM * >(argp1); |
5202 | { |
5203 | try { |
5204 | result = (int)((GOptimizerLM const *)arg1)->iter(); |
5205 | } |
5206 | catch (const GException::out_of_range& e) { |
5207 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5208 | } |
5209 | catch (const GExceptionHandler& e) { |
5210 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5211 | } |
5212 | catch (const std::exception& e) { |
5213 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5214 | } |
5215 | } |
5216 | resultobj = SWIG_From_int(static_cast< int >(result)); |
5217 | return resultobj; |
5218 | fail: |
5219 | return NULL__null; |
5220 | } |
5221 | |
5222 | |
5223 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerLM_max_iter__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5224 | PyObject *resultobj = 0; |
5225 | GOptimizerLM *arg1 = (GOptimizerLM *) 0 ; |
5226 | int *arg2 = 0 ; |
5227 | void *argp1 = 0 ; |
5228 | int res1 = 0 ; |
5229 | int temp2 ; |
5230 | int val2 ; |
5231 | int ecode2 = 0 ; |
5232 | PyObject * obj0 = 0 ; |
5233 | PyObject * obj1 = 0 ; |
5234 | |
5235 | if (!PyArg_ParseTuple(args,(char *)"OO:GOptimizerLM_max_iter",&obj0,&obj1)) SWIG_failgoto fail; |
5236 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerLM, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
5237 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5238 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerLM_max_iter" "', argument " "1"" of type '" "GOptimizerLM *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerLM_max_iter" "', argument " "1"" of type '" "GOptimizerLM *""'"); goto fail; } while(0); |
5239 | } |
5240 | arg1 = reinterpret_cast< GOptimizerLM * >(argp1); |
5241 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
5242 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
5243 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GOptimizerLM_max_iter" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GOptimizerLM_max_iter" "', argument " "2"" of type '" "int""'"); goto fail; } while (0); |
5244 | } |
5245 | temp2 = static_cast< int >(val2); |
5246 | arg2 = &temp2; |
5247 | { |
5248 | try { |
5249 | (arg1)->max_iter((int const &)*arg2); |
5250 | } |
5251 | catch (const GException::out_of_range& e) { |
5252 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5253 | } |
5254 | catch (const GExceptionHandler& e) { |
5255 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5256 | } |
5257 | catch (const std::exception& e) { |
5258 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5259 | } |
5260 | } |
5261 | resultobj = SWIG_Py_Void(); |
5262 | return resultobj; |
5263 | fail: |
5264 | return NULL__null; |
5265 | } |
5266 | |
5267 | |
5268 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerLM_max_stalls__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5269 | PyObject *resultobj = 0; |
5270 | GOptimizerLM *arg1 = (GOptimizerLM *) 0 ; |
5271 | int *arg2 = 0 ; |
5272 | void *argp1 = 0 ; |
5273 | int res1 = 0 ; |
5274 | int temp2 ; |
5275 | int val2 ; |
5276 | int ecode2 = 0 ; |
5277 | PyObject * obj0 = 0 ; |
5278 | PyObject * obj1 = 0 ; |
5279 | |
5280 | if (!PyArg_ParseTuple(args,(char *)"OO:GOptimizerLM_max_stalls",&obj0,&obj1)) SWIG_failgoto fail; |
5281 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerLM, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
5282 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5283 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerLM_max_stalls" "', argument " "1"" of type '" "GOptimizerLM *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerLM_max_stalls" "', argument " "1"" of type '" "GOptimizerLM *""'"); goto fail; } while(0); |
5284 | } |
5285 | arg1 = reinterpret_cast< GOptimizerLM * >(argp1); |
5286 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
5287 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
5288 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GOptimizerLM_max_stalls" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GOptimizerLM_max_stalls" "', argument " "2"" of type '" "int""'"); goto fail; } while (0); |
5289 | } |
5290 | temp2 = static_cast< int >(val2); |
5291 | arg2 = &temp2; |
5292 | { |
5293 | try { |
5294 | (arg1)->max_stalls((int const &)*arg2); |
5295 | } |
5296 | catch (const GException::out_of_range& e) { |
5297 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5298 | } |
5299 | catch (const GExceptionHandler& e) { |
5300 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5301 | } |
5302 | catch (const std::exception& e) { |
5303 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5304 | } |
5305 | } |
5306 | resultobj = SWIG_Py_Void(); |
5307 | return resultobj; |
5308 | fail: |
5309 | return NULL__null; |
5310 | } |
5311 | |
5312 | |
5313 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerLM_max_boundary_hits__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5314 | PyObject *resultobj = 0; |
5315 | GOptimizerLM *arg1 = (GOptimizerLM *) 0 ; |
5316 | int *arg2 = 0 ; |
5317 | void *argp1 = 0 ; |
5318 | int res1 = 0 ; |
5319 | int temp2 ; |
5320 | int val2 ; |
5321 | int ecode2 = 0 ; |
5322 | PyObject * obj0 = 0 ; |
5323 | PyObject * obj1 = 0 ; |
5324 | |
5325 | if (!PyArg_ParseTuple(args,(char *)"OO:GOptimizerLM_max_boundary_hits",&obj0,&obj1)) SWIG_failgoto fail; |
5326 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerLM, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
5327 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5328 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerLM_max_boundary_hits" "', argument " "1"" of type '" "GOptimizerLM *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerLM_max_boundary_hits" "', argument " "1"" of type '" "GOptimizerLM *""'"); goto fail ; } while(0); |
5329 | } |
5330 | arg1 = reinterpret_cast< GOptimizerLM * >(argp1); |
5331 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
5332 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
5333 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GOptimizerLM_max_boundary_hits" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GOptimizerLM_max_boundary_hits" "', argument " "2"" of type '" "int""'"); goto fail; } while (0); |
5334 | } |
5335 | temp2 = static_cast< int >(val2); |
5336 | arg2 = &temp2; |
5337 | { |
5338 | try { |
5339 | (arg1)->max_boundary_hits((int const &)*arg2); |
5340 | } |
5341 | catch (const GException::out_of_range& e) { |
5342 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5343 | } |
5344 | catch (const GExceptionHandler& e) { |
5345 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5346 | } |
5347 | catch (const std::exception& e) { |
5348 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5349 | } |
5350 | } |
5351 | resultobj = SWIG_Py_Void(); |
5352 | return resultobj; |
5353 | fail: |
5354 | return NULL__null; |
5355 | } |
5356 | |
5357 | |
5358 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerLM_lambda_start__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5359 | PyObject *resultobj = 0; |
5360 | GOptimizerLM *arg1 = (GOptimizerLM *) 0 ; |
5361 | double *arg2 = 0 ; |
5362 | void *argp1 = 0 ; |
5363 | int res1 = 0 ; |
5364 | double temp2 ; |
5365 | double val2 ; |
5366 | int ecode2 = 0 ; |
5367 | PyObject * obj0 = 0 ; |
5368 | PyObject * obj1 = 0 ; |
5369 | |
5370 | if (!PyArg_ParseTuple(args,(char *)"OO:GOptimizerLM_lambda_start",&obj0,&obj1)) SWIG_failgoto fail; |
5371 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerLM, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
5372 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5373 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerLM_lambda_start" "', argument " "1"" of type '" "GOptimizerLM *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerLM_lambda_start" "', argument " "1"" of type '" "GOptimizerLM *""'"); goto fail ; } while(0); |
5374 | } |
5375 | arg1 = reinterpret_cast< GOptimizerLM * >(argp1); |
5376 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
5377 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
5378 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GOptimizerLM_lambda_start" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GOptimizerLM_lambda_start" "', argument " "2"" of type '" "double""'"); goto fail; } while (0); |
5379 | } |
5380 | temp2 = static_cast< double >(val2); |
5381 | arg2 = &temp2; |
5382 | { |
5383 | try { |
5384 | (arg1)->lambda_start((double const &)*arg2); |
5385 | } |
5386 | catch (const GException::out_of_range& e) { |
5387 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5388 | } |
5389 | catch (const GExceptionHandler& e) { |
5390 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5391 | } |
5392 | catch (const std::exception& e) { |
5393 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5394 | } |
5395 | } |
5396 | resultobj = SWIG_Py_Void(); |
5397 | return resultobj; |
5398 | fail: |
5399 | return NULL__null; |
5400 | } |
5401 | |
5402 | |
5403 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerLM_lambda_inc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5404 | PyObject *resultobj = 0; |
5405 | GOptimizerLM *arg1 = (GOptimizerLM *) 0 ; |
5406 | double *arg2 = 0 ; |
5407 | void *argp1 = 0 ; |
5408 | int res1 = 0 ; |
5409 | double temp2 ; |
5410 | double val2 ; |
5411 | int ecode2 = 0 ; |
5412 | PyObject * obj0 = 0 ; |
5413 | PyObject * obj1 = 0 ; |
5414 | |
5415 | if (!PyArg_ParseTuple(args,(char *)"OO:GOptimizerLM_lambda_inc",&obj0,&obj1)) SWIG_failgoto fail; |
5416 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerLM, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
5417 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5418 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerLM_lambda_inc" "', argument " "1"" of type '" "GOptimizerLM *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerLM_lambda_inc" "', argument " "1"" of type '" "GOptimizerLM *""'"); goto fail; } while(0); |
5419 | } |
5420 | arg1 = reinterpret_cast< GOptimizerLM * >(argp1); |
5421 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
5422 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
5423 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GOptimizerLM_lambda_inc" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GOptimizerLM_lambda_inc" "', argument " "2"" of type '" "double""'"); goto fail; } while (0); |
5424 | } |
5425 | temp2 = static_cast< double >(val2); |
5426 | arg2 = &temp2; |
5427 | { |
5428 | try { |
5429 | (arg1)->lambda_inc((double const &)*arg2); |
5430 | } |
5431 | catch (const GException::out_of_range& e) { |
5432 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5433 | } |
5434 | catch (const GExceptionHandler& e) { |
5435 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5436 | } |
5437 | catch (const std::exception& e) { |
5438 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5439 | } |
5440 | } |
5441 | resultobj = SWIG_Py_Void(); |
5442 | return resultobj; |
5443 | fail: |
5444 | return NULL__null; |
5445 | } |
5446 | |
5447 | |
5448 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerLM_lambda_dec__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5449 | PyObject *resultobj = 0; |
5450 | GOptimizerLM *arg1 = (GOptimizerLM *) 0 ; |
5451 | double *arg2 = 0 ; |
5452 | void *argp1 = 0 ; |
5453 | int res1 = 0 ; |
5454 | double temp2 ; |
5455 | double val2 ; |
5456 | int ecode2 = 0 ; |
5457 | PyObject * obj0 = 0 ; |
5458 | PyObject * obj1 = 0 ; |
5459 | |
5460 | if (!PyArg_ParseTuple(args,(char *)"OO:GOptimizerLM_lambda_dec",&obj0,&obj1)) SWIG_failgoto fail; |
5461 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerLM, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
5462 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5463 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerLM_lambda_dec" "', argument " "1"" of type '" "GOptimizerLM *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerLM_lambda_dec" "', argument " "1"" of type '" "GOptimizerLM *""'"); goto fail; } while(0); |
5464 | } |
5465 | arg1 = reinterpret_cast< GOptimizerLM * >(argp1); |
5466 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
5467 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
5468 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GOptimizerLM_lambda_dec" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GOptimizerLM_lambda_dec" "', argument " "2"" of type '" "double""'"); goto fail; } while (0); |
5469 | } |
5470 | temp2 = static_cast< double >(val2); |
5471 | arg2 = &temp2; |
5472 | { |
5473 | try { |
5474 | (arg1)->lambda_dec((double const &)*arg2); |
5475 | } |
5476 | catch (const GException::out_of_range& e) { |
5477 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5478 | } |
5479 | catch (const GExceptionHandler& e) { |
5480 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5481 | } |
5482 | catch (const std::exception& e) { |
5483 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5484 | } |
5485 | } |
5486 | resultobj = SWIG_Py_Void(); |
5487 | return resultobj; |
5488 | fail: |
5489 | return NULL__null; |
5490 | } |
5491 | |
5492 | |
5493 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerLM_eps__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5494 | PyObject *resultobj = 0; |
5495 | GOptimizerLM *arg1 = (GOptimizerLM *) 0 ; |
5496 | double *arg2 = 0 ; |
5497 | void *argp1 = 0 ; |
5498 | int res1 = 0 ; |
5499 | double temp2 ; |
5500 | double val2 ; |
5501 | int ecode2 = 0 ; |
5502 | PyObject * obj0 = 0 ; |
5503 | PyObject * obj1 = 0 ; |
5504 | |
5505 | if (!PyArg_ParseTuple(args,(char *)"OO:GOptimizerLM_eps",&obj0,&obj1)) SWIG_failgoto fail; |
5506 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerLM, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
5507 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5508 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerLM_eps" "', argument " "1"" of type '" "GOptimizerLM *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerLM_eps" "', argument " "1"" of type '" "GOptimizerLM *""'"); goto fail; } while(0); |
5509 | } |
5510 | arg1 = reinterpret_cast< GOptimizerLM * >(argp1); |
5511 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
5512 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
5513 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GOptimizerLM_eps" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GOptimizerLM_eps" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
5514 | } |
5515 | temp2 = static_cast< double >(val2); |
5516 | arg2 = &temp2; |
5517 | { |
5518 | try { |
5519 | (arg1)->eps((double const &)*arg2); |
5520 | } |
5521 | catch (const GException::out_of_range& e) { |
5522 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5523 | } |
5524 | catch (const GExceptionHandler& e) { |
5525 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5526 | } |
5527 | catch (const std::exception& e) { |
5528 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5529 | } |
5530 | } |
5531 | resultobj = SWIG_Py_Void(); |
5532 | return resultobj; |
5533 | fail: |
5534 | return NULL__null; |
5535 | } |
5536 | |
5537 | |
5538 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerLM_max_iter__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5539 | PyObject *resultobj = 0; |
5540 | GOptimizerLM *arg1 = (GOptimizerLM *) 0 ; |
5541 | void *argp1 = 0 ; |
5542 | int res1 = 0 ; |
5543 | PyObject * obj0 = 0 ; |
5544 | int result; |
5545 | |
5546 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerLM_max_iter",&obj0)) SWIG_failgoto fail; |
5547 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerLM, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
5548 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5549 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerLM_max_iter" "', argument " "1"" of type '" "GOptimizerLM const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerLM_max_iter" "', argument " "1"" of type '" "GOptimizerLM const *""'"); goto fail; } while (0); |
5550 | } |
5551 | arg1 = reinterpret_cast< GOptimizerLM * >(argp1); |
5552 | { |
5553 | try { |
5554 | result = (int)((GOptimizerLM const *)arg1)->max_iter(); |
5555 | } |
5556 | catch (const GException::out_of_range& e) { |
5557 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5558 | } |
5559 | catch (const GExceptionHandler& e) { |
5560 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5561 | } |
5562 | catch (const std::exception& e) { |
5563 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5564 | } |
5565 | } |
5566 | resultobj = SWIG_From_int(static_cast< int >(result)); |
5567 | return resultobj; |
5568 | fail: |
5569 | return NULL__null; |
5570 | } |
5571 | |
5572 | |
5573 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerLM_max_iter(PyObject *self, PyObject *args) { |
5574 | int argc; |
5575 | PyObject *argv[3]; |
5576 | int ii; |
5577 | |
5578 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
5579 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
5580 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
5581 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
5582 | } |
5583 | if (argc == 1) { |
5584 | int _v; |
5585 | void *vptr = 0; |
5586 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerLM, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
5587 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5588 | if (_v) { |
5589 | return _wrap_GOptimizerLM_max_iter__SWIG_1(self, args); |
5590 | } |
5591 | } |
5592 | if (argc == 2) { |
5593 | int _v; |
5594 | void *vptr = 0; |
5595 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerLM, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
5596 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5597 | if (_v) { |
5598 | { |
5599 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
5600 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5601 | } |
5602 | if (_v) { |
5603 | return _wrap_GOptimizerLM_max_iter__SWIG_0(self, args); |
5604 | } |
5605 | } |
5606 | } |
5607 | |
5608 | fail: |
5609 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GOptimizerLM_max_iter'.\n" |
5610 | " Possible C/C++ prototypes are:\n" |
5611 | " GOptimizerLM::max_iter(int const &)\n" |
5612 | " GOptimizerLM::max_iter() const\n"); |
5613 | return 0; |
5614 | } |
5615 | |
5616 | |
5617 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerLM_max_stalls__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5618 | PyObject *resultobj = 0; |
5619 | GOptimizerLM *arg1 = (GOptimizerLM *) 0 ; |
5620 | void *argp1 = 0 ; |
5621 | int res1 = 0 ; |
5622 | PyObject * obj0 = 0 ; |
5623 | int result; |
5624 | |
5625 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerLM_max_stalls",&obj0)) SWIG_failgoto fail; |
5626 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerLM, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
5627 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5628 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerLM_max_stalls" "', argument " "1"" of type '" "GOptimizerLM const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerLM_max_stalls" "', argument " "1"" of type '" "GOptimizerLM const *""'"); goto fail; } while (0); |
5629 | } |
5630 | arg1 = reinterpret_cast< GOptimizerLM * >(argp1); |
5631 | { |
5632 | try { |
5633 | result = (int)((GOptimizerLM const *)arg1)->max_stalls(); |
5634 | } |
5635 | catch (const GException::out_of_range& e) { |
5636 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5637 | } |
5638 | catch (const GExceptionHandler& e) { |
5639 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5640 | } |
5641 | catch (const std::exception& e) { |
5642 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5643 | } |
5644 | } |
5645 | resultobj = SWIG_From_int(static_cast< int >(result)); |
5646 | return resultobj; |
5647 | fail: |
5648 | return NULL__null; |
5649 | } |
5650 | |
5651 | |
5652 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerLM_max_stalls(PyObject *self, PyObject *args) { |
5653 | int argc; |
5654 | PyObject *argv[3]; |
5655 | int ii; |
5656 | |
5657 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
5658 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
5659 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
5660 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
5661 | } |
5662 | if (argc == 1) { |
5663 | int _v; |
5664 | void *vptr = 0; |
5665 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerLM, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
5666 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5667 | if (_v) { |
5668 | return _wrap_GOptimizerLM_max_stalls__SWIG_1(self, args); |
5669 | } |
5670 | } |
5671 | if (argc == 2) { |
5672 | int _v; |
5673 | void *vptr = 0; |
5674 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerLM, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
5675 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5676 | if (_v) { |
5677 | { |
5678 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
5679 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5680 | } |
5681 | if (_v) { |
5682 | return _wrap_GOptimizerLM_max_stalls__SWIG_0(self, args); |
5683 | } |
5684 | } |
5685 | } |
5686 | |
5687 | fail: |
5688 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GOptimizerLM_max_stalls'.\n" |
5689 | " Possible C/C++ prototypes are:\n" |
5690 | " GOptimizerLM::max_stalls(int const &)\n" |
5691 | " GOptimizerLM::max_stalls() const\n"); |
5692 | return 0; |
5693 | } |
5694 | |
5695 | |
5696 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerLM_max_boundary_hits__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5697 | PyObject *resultobj = 0; |
5698 | GOptimizerLM *arg1 = (GOptimizerLM *) 0 ; |
5699 | void *argp1 = 0 ; |
5700 | int res1 = 0 ; |
5701 | PyObject * obj0 = 0 ; |
5702 | int result; |
5703 | |
5704 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerLM_max_boundary_hits",&obj0)) SWIG_failgoto fail; |
5705 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerLM, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
5706 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5707 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerLM_max_boundary_hits" "', argument " "1"" of type '" "GOptimizerLM const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerLM_max_boundary_hits" "', argument " "1"" of type '" "GOptimizerLM const *""'"); goto fail; } while(0); |
5708 | } |
5709 | arg1 = reinterpret_cast< GOptimizerLM * >(argp1); |
5710 | { |
5711 | try { |
5712 | result = (int)((GOptimizerLM const *)arg1)->max_boundary_hits(); |
5713 | } |
5714 | catch (const GException::out_of_range& e) { |
5715 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5716 | } |
5717 | catch (const GExceptionHandler& e) { |
5718 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5719 | } |
5720 | catch (const std::exception& e) { |
5721 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5722 | } |
5723 | } |
5724 | resultobj = SWIG_From_int(static_cast< int >(result)); |
5725 | return resultobj; |
5726 | fail: |
5727 | return NULL__null; |
5728 | } |
5729 | |
5730 | |
5731 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerLM_max_boundary_hits(PyObject *self, PyObject *args) { |
5732 | int argc; |
5733 | PyObject *argv[3]; |
5734 | int ii; |
5735 | |
5736 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
5737 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
5738 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
5739 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
5740 | } |
5741 | if (argc == 1) { |
5742 | int _v; |
5743 | void *vptr = 0; |
5744 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerLM, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
5745 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5746 | if (_v) { |
5747 | return _wrap_GOptimizerLM_max_boundary_hits__SWIG_1(self, args); |
5748 | } |
5749 | } |
5750 | if (argc == 2) { |
5751 | int _v; |
5752 | void *vptr = 0; |
5753 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerLM, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
5754 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5755 | if (_v) { |
5756 | { |
5757 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
5758 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5759 | } |
5760 | if (_v) { |
5761 | return _wrap_GOptimizerLM_max_boundary_hits__SWIG_0(self, args); |
5762 | } |
5763 | } |
5764 | } |
5765 | |
5766 | fail: |
5767 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GOptimizerLM_max_boundary_hits'.\n" |
5768 | " Possible C/C++ prototypes are:\n" |
5769 | " GOptimizerLM::max_boundary_hits(int const &)\n" |
5770 | " GOptimizerLM::max_boundary_hits() const\n"); |
5771 | return 0; |
5772 | } |
5773 | |
5774 | |
5775 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerLM_lambda_start__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5776 | PyObject *resultobj = 0; |
5777 | GOptimizerLM *arg1 = (GOptimizerLM *) 0 ; |
5778 | void *argp1 = 0 ; |
5779 | int res1 = 0 ; |
5780 | PyObject * obj0 = 0 ; |
5781 | double *result = 0 ; |
5782 | |
5783 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerLM_lambda_start",&obj0)) SWIG_failgoto fail; |
5784 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerLM, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
5785 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5786 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerLM_lambda_start" "', argument " "1"" of type '" "GOptimizerLM const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerLM_lambda_start" "', argument " "1"" of type '" "GOptimizerLM const *""'"); goto fail; } while(0); |
5787 | } |
5788 | arg1 = reinterpret_cast< GOptimizerLM * >(argp1); |
5789 | { |
5790 | try { |
5791 | result = (double *) &((GOptimizerLM const *)arg1)->lambda_start(); |
5792 | } |
5793 | catch (const GException::out_of_range& e) { |
5794 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5795 | } |
5796 | catch (const GExceptionHandler& e) { |
5797 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5798 | } |
5799 | catch (const std::exception& e) { |
5800 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5801 | } |
5802 | } |
5803 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result)); |
5804 | return resultobj; |
5805 | fail: |
5806 | return NULL__null; |
5807 | } |
5808 | |
5809 | |
5810 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerLM_lambda_start(PyObject *self, PyObject *args) { |
5811 | int argc; |
5812 | PyObject *argv[3]; |
5813 | int ii; |
5814 | |
5815 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
5816 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
5817 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
5818 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
5819 | } |
5820 | if (argc == 1) { |
5821 | int _v; |
5822 | void *vptr = 0; |
5823 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerLM, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
5824 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5825 | if (_v) { |
5826 | return _wrap_GOptimizerLM_lambda_start__SWIG_1(self, args); |
5827 | } |
5828 | } |
5829 | if (argc == 2) { |
5830 | int _v; |
5831 | void *vptr = 0; |
5832 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerLM, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
5833 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5834 | if (_v) { |
5835 | { |
5836 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
5837 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5838 | } |
5839 | if (_v) { |
5840 | return _wrap_GOptimizerLM_lambda_start__SWIG_0(self, args); |
5841 | } |
5842 | } |
5843 | } |
5844 | |
5845 | fail: |
5846 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GOptimizerLM_lambda_start'.\n" |
5847 | " Possible C/C++ prototypes are:\n" |
5848 | " GOptimizerLM::lambda_start(double const &)\n" |
5849 | " GOptimizerLM::lambda_start() const\n"); |
5850 | return 0; |
5851 | } |
5852 | |
5853 | |
5854 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerLM_lambda_inc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5855 | PyObject *resultobj = 0; |
5856 | GOptimizerLM *arg1 = (GOptimizerLM *) 0 ; |
5857 | void *argp1 = 0 ; |
5858 | int res1 = 0 ; |
5859 | PyObject * obj0 = 0 ; |
5860 | double *result = 0 ; |
5861 | |
5862 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerLM_lambda_inc",&obj0)) SWIG_failgoto fail; |
5863 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerLM, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
5864 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5865 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerLM_lambda_inc" "', argument " "1"" of type '" "GOptimizerLM const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerLM_lambda_inc" "', argument " "1"" of type '" "GOptimizerLM const *""'"); goto fail; } while (0); |
5866 | } |
5867 | arg1 = reinterpret_cast< GOptimizerLM * >(argp1); |
5868 | { |
5869 | try { |
5870 | result = (double *) &((GOptimizerLM const *)arg1)->lambda_inc(); |
5871 | } |
5872 | catch (const GException::out_of_range& e) { |
5873 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5874 | } |
5875 | catch (const GExceptionHandler& e) { |
5876 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5877 | } |
5878 | catch (const std::exception& e) { |
5879 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5880 | } |
5881 | } |
5882 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result)); |
5883 | return resultobj; |
5884 | fail: |
5885 | return NULL__null; |
5886 | } |
5887 | |
5888 | |
5889 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerLM_lambda_inc(PyObject *self, PyObject *args) { |
5890 | int argc; |
5891 | PyObject *argv[3]; |
5892 | int ii; |
5893 | |
5894 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
5895 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
5896 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
5897 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
5898 | } |
5899 | if (argc == 1) { |
5900 | int _v; |
5901 | void *vptr = 0; |
5902 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerLM, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
5903 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5904 | if (_v) { |
5905 | return _wrap_GOptimizerLM_lambda_inc__SWIG_1(self, args); |
5906 | } |
5907 | } |
5908 | if (argc == 2) { |
5909 | int _v; |
5910 | void *vptr = 0; |
5911 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerLM, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
5912 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5913 | if (_v) { |
5914 | { |
5915 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
5916 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5917 | } |
5918 | if (_v) { |
5919 | return _wrap_GOptimizerLM_lambda_inc__SWIG_0(self, args); |
5920 | } |
5921 | } |
5922 | } |
5923 | |
5924 | fail: |
5925 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GOptimizerLM_lambda_inc'.\n" |
5926 | " Possible C/C++ prototypes are:\n" |
5927 | " GOptimizerLM::lambda_inc(double const &)\n" |
5928 | " GOptimizerLM::lambda_inc() const\n"); |
5929 | return 0; |
5930 | } |
5931 | |
5932 | |
5933 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerLM_lambda_dec__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5934 | PyObject *resultobj = 0; |
5935 | GOptimizerLM *arg1 = (GOptimizerLM *) 0 ; |
5936 | void *argp1 = 0 ; |
5937 | int res1 = 0 ; |
5938 | PyObject * obj0 = 0 ; |
5939 | double *result = 0 ; |
5940 | |
5941 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerLM_lambda_dec",&obj0)) SWIG_failgoto fail; |
5942 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerLM, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
5943 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5944 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerLM_lambda_dec" "', argument " "1"" of type '" "GOptimizerLM const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerLM_lambda_dec" "', argument " "1"" of type '" "GOptimizerLM const *""'"); goto fail; } while (0); |
5945 | } |
5946 | arg1 = reinterpret_cast< GOptimizerLM * >(argp1); |
5947 | { |
5948 | try { |
5949 | result = (double *) &((GOptimizerLM const *)arg1)->lambda_dec(); |
5950 | } |
5951 | catch (const GException::out_of_range& e) { |
5952 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5953 | } |
5954 | catch (const GExceptionHandler& e) { |
5955 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5956 | } |
5957 | catch (const std::exception& e) { |
5958 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5959 | } |
5960 | } |
5961 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result)); |
5962 | return resultobj; |
5963 | fail: |
5964 | return NULL__null; |
5965 | } |
5966 | |
5967 | |
5968 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerLM_lambda_dec(PyObject *self, PyObject *args) { |
5969 | int argc; |
5970 | PyObject *argv[3]; |
5971 | int ii; |
5972 | |
5973 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
5974 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
5975 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
5976 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
5977 | } |
5978 | if (argc == 1) { |
5979 | int _v; |
5980 | void *vptr = 0; |
5981 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerLM, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
5982 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5983 | if (_v) { |
5984 | return _wrap_GOptimizerLM_lambda_dec__SWIG_1(self, args); |
5985 | } |
5986 | } |
5987 | if (argc == 2) { |
5988 | int _v; |
5989 | void *vptr = 0; |
5990 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerLM, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
5991 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5992 | if (_v) { |
5993 | { |
5994 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
5995 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5996 | } |
5997 | if (_v) { |
5998 | return _wrap_GOptimizerLM_lambda_dec__SWIG_0(self, args); |
5999 | } |
6000 | } |
6001 | } |
6002 | |
6003 | fail: |
6004 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GOptimizerLM_lambda_dec'.\n" |
6005 | " Possible C/C++ prototypes are:\n" |
6006 | " GOptimizerLM::lambda_dec(double const &)\n" |
6007 | " GOptimizerLM::lambda_dec() const\n"); |
6008 | return 0; |
6009 | } |
6010 | |
6011 | |
6012 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerLM_eps__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6013 | PyObject *resultobj = 0; |
6014 | GOptimizerLM *arg1 = (GOptimizerLM *) 0 ; |
6015 | void *argp1 = 0 ; |
6016 | int res1 = 0 ; |
6017 | PyObject * obj0 = 0 ; |
6018 | double *result = 0 ; |
6019 | |
6020 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerLM_eps",&obj0)) SWIG_failgoto fail; |
6021 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerLM, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
6022 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6023 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerLM_eps" "', argument " "1"" of type '" "GOptimizerLM const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerLM_eps" "', argument " "1"" of type '" "GOptimizerLM const *""'"); goto fail; } while (0); |
6024 | } |
6025 | arg1 = reinterpret_cast< GOptimizerLM * >(argp1); |
6026 | { |
6027 | try { |
6028 | result = (double *) &((GOptimizerLM const *)arg1)->eps(); |
6029 | } |
6030 | catch (const GException::out_of_range& e) { |
6031 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6032 | } |
6033 | catch (const GExceptionHandler& e) { |
6034 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6035 | } |
6036 | catch (const std::exception& e) { |
6037 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6038 | } |
6039 | } |
6040 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result)); |
6041 | return resultobj; |
6042 | fail: |
6043 | return NULL__null; |
6044 | } |
6045 | |
6046 | |
6047 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerLM_eps(PyObject *self, PyObject *args) { |
6048 | int argc; |
6049 | PyObject *argv[3]; |
6050 | int ii; |
6051 | |
6052 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
6053 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
6054 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
6055 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
6056 | } |
6057 | if (argc == 1) { |
6058 | int _v; |
6059 | void *vptr = 0; |
6060 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerLM, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
6061 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6062 | if (_v) { |
6063 | return _wrap_GOptimizerLM_eps__SWIG_1(self, args); |
6064 | } |
6065 | } |
6066 | if (argc == 2) { |
6067 | int _v; |
6068 | void *vptr = 0; |
6069 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerLM, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
6070 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6071 | if (_v) { |
6072 | { |
6073 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
6074 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6075 | } |
6076 | if (_v) { |
6077 | return _wrap_GOptimizerLM_eps__SWIG_0(self, args); |
6078 | } |
6079 | } |
6080 | } |
6081 | |
6082 | fail: |
6083 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GOptimizerLM_eps'.\n" |
6084 | " Possible C/C++ prototypes are:\n" |
6085 | " GOptimizerLM::eps(double const &)\n" |
6086 | " GOptimizerLM::eps() const\n"); |
6087 | return 0; |
6088 | } |
6089 | |
6090 | |
6091 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerLM_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6092 | PyObject *resultobj = 0; |
6093 | GOptimizerLM *arg1 = (GOptimizerLM *) 0 ; |
6094 | void *argp1 = 0 ; |
6095 | int res1 = 0 ; |
6096 | PyObject * obj0 = 0 ; |
6097 | GOptimizerLM result; |
6098 | |
6099 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerLM_copy",&obj0)) SWIG_failgoto fail; |
6100 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerLM, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
6101 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6102 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerLM_copy" "', argument " "1"" of type '" "GOptimizerLM *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerLM_copy" "', argument " "1"" of type '" "GOptimizerLM *""'"); goto fail; } while(0); |
6103 | } |
6104 | arg1 = reinterpret_cast< GOptimizerLM * >(argp1); |
6105 | { |
6106 | try { |
6107 | result = GOptimizerLM_copy(arg1); |
6108 | } |
6109 | catch (const GException::out_of_range& e) { |
6110 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6111 | } |
6112 | catch (const GExceptionHandler& e) { |
6113 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6114 | } |
6115 | catch (const std::exception& e) { |
6116 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6117 | } |
6118 | } |
6119 | resultobj = SWIG_NewPointerObj((new GOptimizerLM(static_cast< const GOptimizerLM& >(result))), SWIGTYPE_p_GOptimizerLM, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GOptimizerLM(static_cast < const GOptimizerLM& >(result))), swig_types[5], 0x1 | 0); |
6120 | return resultobj; |
6121 | fail: |
6122 | return NULL__null; |
6123 | } |
6124 | |
6125 | |
6126 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerLM_lambda_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6127 | PyObject *resultobj = 0; |
6128 | GOptimizerLM *arg1 = (GOptimizerLM *) 0 ; |
6129 | void *argp1 = 0 ; |
6130 | int res1 = 0 ; |
6131 | PyObject * obj0 = 0 ; |
6132 | double *result = 0 ; |
6133 | |
6134 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerLM_lambda_value",&obj0)) SWIG_failgoto fail; |
6135 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerLM, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
6136 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6137 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerLM_lambda_value" "', argument " "1"" of type '" "GOptimizerLM *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerLM_lambda_value" "', argument " "1"" of type '" "GOptimizerLM *""'"); goto fail ; } while(0); |
6138 | } |
6139 | arg1 = reinterpret_cast< GOptimizerLM * >(argp1); |
6140 | { |
6141 | try { |
6142 | result = (double *) &GOptimizerLM_lambda_value(arg1); |
6143 | } |
6144 | catch (const GException::out_of_range& e) { |
6145 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6146 | } |
6147 | catch (const GExceptionHandler& e) { |
6148 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6149 | } |
6150 | catch (const std::exception& e) { |
6151 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6152 | } |
6153 | } |
6154 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result)); |
6155 | return resultobj; |
6156 | fail: |
6157 | return NULL__null; |
6158 | } |
6159 | |
6160 | |
6161 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GOptimizerLM_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6162 | PyObject *obj; |
6163 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
6164 | SWIG_TypeNewClientData(SWIGTYPE_p_GOptimizerLMswig_types[5], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
6165 | return SWIG_Py_Void(); |
6166 | } |
6167 | |
6168 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GOptimizerPar__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6169 | PyObject *resultobj = 0; |
6170 | GOptimizerPar *result = 0 ; |
6171 | |
6172 | if (!PyArg_ParseTuple(args,(char *)":new_GOptimizerPar")) SWIG_failgoto fail; |
6173 | { |
6174 | try { |
6175 | result = (GOptimizerPar *)new GOptimizerPar(); |
6176 | } |
6177 | catch (const GException::out_of_range& e) { |
6178 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6179 | } |
6180 | catch (const GExceptionHandler& e) { |
6181 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6182 | } |
6183 | catch (const std::exception& e) { |
6184 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6185 | } |
6186 | } |
6187 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GOptimizerPar, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[6], (( 0x1 << 1) | 0x1) | 0); |
6188 | return resultobj; |
6189 | fail: |
6190 | return NULL__null; |
6191 | } |
6192 | |
6193 | |
6194 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GOptimizerPar__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6195 | PyObject *resultobj = 0; |
6196 | std::string *arg1 = 0 ; |
6197 | double *arg2 = 0 ; |
6198 | int res1 = SWIG_OLDOBJ((0)) ; |
6199 | double temp2 ; |
6200 | double val2 ; |
6201 | int ecode2 = 0 ; |
6202 | PyObject * obj0 = 0 ; |
6203 | PyObject * obj1 = 0 ; |
6204 | GOptimizerPar *result = 0 ; |
6205 | |
6206 | if (!PyArg_ParseTuple(args,(char *)"OO:new_GOptimizerPar",&obj0,&obj1)) SWIG_failgoto fail; |
6207 | { |
6208 | std::string *ptr = (std::string *)0; |
6209 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
6210 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6211 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GOptimizerPar" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GOptimizerPar" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while (0); |
6212 | } |
6213 | if (!ptr) { |
6214 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GOptimizerPar" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GOptimizerPar" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0); |
6215 | } |
6216 | arg1 = ptr; |
6217 | } |
6218 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
6219 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6220 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GOptimizerPar" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_GOptimizerPar" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
6221 | } |
6222 | temp2 = static_cast< double >(val2); |
6223 | arg2 = &temp2; |
6224 | { |
6225 | try { |
6226 | result = (GOptimizerPar *)new GOptimizerPar((std::string const &)*arg1,(double const &)*arg2); |
6227 | } |
6228 | catch (const GException::out_of_range& e) { |
6229 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6230 | } |
6231 | catch (const GExceptionHandler& e) { |
6232 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6233 | } |
6234 | catch (const std::exception& e) { |
6235 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6236 | } |
6237 | } |
6238 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GOptimizerPar, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[6], (( 0x1 << 1) | 0x1) | 0); |
6239 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
6240 | return resultobj; |
6241 | fail: |
6242 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
6243 | return NULL__null; |
6244 | } |
6245 | |
6246 | |
6247 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GOptimizerPar__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6248 | PyObject *resultobj = 0; |
6249 | std::string *arg1 = 0 ; |
6250 | double *arg2 = 0 ; |
6251 | double *arg3 = 0 ; |
6252 | int res1 = SWIG_OLDOBJ((0)) ; |
6253 | double temp2 ; |
6254 | double val2 ; |
6255 | int ecode2 = 0 ; |
6256 | double temp3 ; |
6257 | double val3 ; |
6258 | int ecode3 = 0 ; |
6259 | PyObject * obj0 = 0 ; |
6260 | PyObject * obj1 = 0 ; |
6261 | PyObject * obj2 = 0 ; |
6262 | GOptimizerPar *result = 0 ; |
6263 | |
6264 | if (!PyArg_ParseTuple(args,(char *)"OOO:new_GOptimizerPar",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
6265 | { |
6266 | std::string *ptr = (std::string *)0; |
6267 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
6268 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6269 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GOptimizerPar" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GOptimizerPar" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while (0); |
6270 | } |
6271 | if (!ptr) { |
6272 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GOptimizerPar" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GOptimizerPar" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0); |
6273 | } |
6274 | arg1 = ptr; |
6275 | } |
6276 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
6277 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6278 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GOptimizerPar" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_GOptimizerPar" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
6279 | } |
6280 | temp2 = static_cast< double >(val2); |
6281 | arg2 = &temp2; |
6282 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
6283 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
6284 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_GOptimizerPar" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_GOptimizerPar" "', argument " "3"" of type '" "double""'"); goto fail; } while(0); |
6285 | } |
6286 | temp3 = static_cast< double >(val3); |
6287 | arg3 = &temp3; |
6288 | { |
6289 | try { |
6290 | result = (GOptimizerPar *)new GOptimizerPar((std::string const &)*arg1,(double const &)*arg2,(double const &)*arg3); |
6291 | } |
6292 | catch (const GException::out_of_range& e) { |
6293 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6294 | } |
6295 | catch (const GExceptionHandler& e) { |
6296 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6297 | } |
6298 | catch (const std::exception& e) { |
6299 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6300 | } |
6301 | } |
6302 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GOptimizerPar, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[6], (( 0x1 << 1) | 0x1) | 0); |
6303 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
6304 | return resultobj; |
6305 | fail: |
6306 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
6307 | return NULL__null; |
6308 | } |
6309 | |
6310 | |
6311 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GOptimizerPar(PyObject *self, PyObject *args) { |
6312 | int argc; |
6313 | PyObject *argv[4]; |
6314 | int ii; |
6315 | |
6316 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
6317 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
6318 | for (ii = 0; (ii < 3) && (ii < argc); ii++) { |
6319 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
6320 | } |
6321 | if (argc == 0) { |
6322 | return _wrap_new_GOptimizerPar__SWIG_0(self, args); |
6323 | } |
6324 | if (argc == 2) { |
6325 | int _v; |
6326 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
6327 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6328 | if (_v) { |
6329 | { |
6330 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
6331 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6332 | } |
6333 | if (_v) { |
6334 | return _wrap_new_GOptimizerPar__SWIG_1(self, args); |
6335 | } |
6336 | } |
6337 | } |
6338 | if (argc == 3) { |
6339 | int _v; |
6340 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
6341 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6342 | if (_v) { |
6343 | { |
6344 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
6345 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6346 | } |
6347 | if (_v) { |
6348 | { |
6349 | int res = SWIG_AsVal_double(argv[2], NULL__null); |
6350 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6351 | } |
6352 | if (_v) { |
6353 | return _wrap_new_GOptimizerPar__SWIG_2(self, args); |
6354 | } |
6355 | } |
6356 | } |
6357 | } |
6358 | |
6359 | fail: |
6360 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GOptimizerPar'.\n" |
6361 | " Possible C/C++ prototypes are:\n" |
6362 | " GOptimizerPar::GOptimizerPar()\n" |
6363 | " GOptimizerPar::GOptimizerPar(std::string const &,double const &)\n" |
6364 | " GOptimizerPar::GOptimizerPar(std::string const &,double const &,double const &)\n"); |
6365 | return 0; |
6366 | } |
6367 | |
6368 | |
6369 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GOptimizerPar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6370 | PyObject *resultobj = 0; |
6371 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
6372 | void *argp1 = 0 ; |
6373 | int res1 = 0 ; |
6374 | PyObject * obj0 = 0 ; |
6375 | |
6376 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GOptimizerPar",&obj0)) SWIG_failgoto fail; |
6377 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0x1 | 0, 0); |
6378 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6379 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GOptimizerPar" "', argument " "1"" of type '" "GOptimizerPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GOptimizerPar" "', argument " "1"" of type '" "GOptimizerPar *""'"); goto fail; } while(0); |
6380 | } |
6381 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
6382 | { |
6383 | try { |
6384 | delete arg1; |
6385 | } |
6386 | catch (const GException::out_of_range& e) { |
6387 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6388 | } |
6389 | catch (const GExceptionHandler& e) { |
6390 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6391 | } |
6392 | catch (const std::exception& e) { |
6393 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6394 | } |
6395 | } |
6396 | resultobj = SWIG_Py_Void(); |
6397 | return resultobj; |
6398 | fail: |
6399 | return NULL__null; |
6400 | } |
6401 | |
6402 | |
6403 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_value__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6404 | PyObject *resultobj = 0; |
6405 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
6406 | void *argp1 = 0 ; |
6407 | int res1 = 0 ; |
6408 | PyObject * obj0 = 0 ; |
6409 | double result; |
6410 | |
6411 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerPar_value",&obj0)) SWIG_failgoto fail; |
6412 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
6413 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6414 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_value" "', argument " "1"" of type '" "GOptimizerPar const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_value" "', argument " "1"" of type '" "GOptimizerPar const *""'"); goto fail; } while (0); |
6415 | } |
6416 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
6417 | { |
6418 | try { |
6419 | result = (double)((GOptimizerPar const *)arg1)->value(); |
6420 | } |
6421 | catch (const GException::out_of_range& e) { |
6422 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6423 | } |
6424 | catch (const GExceptionHandler& e) { |
6425 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6426 | } |
6427 | catch (const std::exception& e) { |
6428 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6429 | } |
6430 | } |
6431 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
6432 | return resultobj; |
6433 | fail: |
6434 | return NULL__null; |
6435 | } |
6436 | |
6437 | |
6438 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_error__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6439 | PyObject *resultobj = 0; |
6440 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
6441 | void *argp1 = 0 ; |
6442 | int res1 = 0 ; |
6443 | PyObject * obj0 = 0 ; |
6444 | double result; |
6445 | |
6446 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerPar_error",&obj0)) SWIG_failgoto fail; |
6447 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
6448 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6449 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_error" "', argument " "1"" of type '" "GOptimizerPar const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_error" "', argument " "1"" of type '" "GOptimizerPar const *""'"); goto fail; } while (0); |
6450 | } |
6451 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
6452 | { |
6453 | try { |
6454 | result = (double)((GOptimizerPar const *)arg1)->error(); |
6455 | } |
6456 | catch (const GException::out_of_range& e) { |
6457 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6458 | } |
6459 | catch (const GExceptionHandler& e) { |
6460 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6461 | } |
6462 | catch (const std::exception& e) { |
6463 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6464 | } |
6465 | } |
6466 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
6467 | return resultobj; |
6468 | fail: |
6469 | return NULL__null; |
6470 | } |
6471 | |
6472 | |
6473 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_gradient__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6474 | PyObject *resultobj = 0; |
6475 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
6476 | void *argp1 = 0 ; |
6477 | int res1 = 0 ; |
6478 | PyObject * obj0 = 0 ; |
6479 | double result; |
6480 | |
6481 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerPar_gradient",&obj0)) SWIG_failgoto fail; |
6482 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
6483 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6484 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_gradient" "', argument " "1"" of type '" "GOptimizerPar const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_gradient" "', argument " "1"" of type '" "GOptimizerPar const *""'"); goto fail; } while (0); |
6485 | } |
6486 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
6487 | { |
6488 | try { |
6489 | result = (double)((GOptimizerPar const *)arg1)->gradient(); |
6490 | } |
6491 | catch (const GException::out_of_range& e) { |
6492 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6493 | } |
6494 | catch (const GExceptionHandler& e) { |
6495 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6496 | } |
6497 | catch (const std::exception& e) { |
6498 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6499 | } |
6500 | } |
6501 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
6502 | return resultobj; |
6503 | fail: |
6504 | return NULL__null; |
6505 | } |
6506 | |
6507 | |
6508 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_min__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6509 | PyObject *resultobj = 0; |
6510 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
6511 | void *argp1 = 0 ; |
6512 | int res1 = 0 ; |
6513 | PyObject * obj0 = 0 ; |
6514 | double result; |
6515 | |
6516 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerPar_min",&obj0)) SWIG_failgoto fail; |
6517 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
6518 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6519 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_min" "', argument " "1"" of type '" "GOptimizerPar const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_min" "', argument " "1"" of type '" "GOptimizerPar const *""'"); goto fail; } while (0); |
6520 | } |
6521 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
6522 | { |
6523 | try { |
6524 | result = (double)((GOptimizerPar const *)arg1)->min(); |
6525 | } |
6526 | catch (const GException::out_of_range& e) { |
6527 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6528 | } |
6529 | catch (const GExceptionHandler& e) { |
6530 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6531 | } |
6532 | catch (const std::exception& e) { |
6533 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6534 | } |
6535 | } |
6536 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
6537 | return resultobj; |
6538 | fail: |
6539 | return NULL__null; |
6540 | } |
6541 | |
6542 | |
6543 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_max__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6544 | PyObject *resultobj = 0; |
6545 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
6546 | void *argp1 = 0 ; |
6547 | int res1 = 0 ; |
6548 | PyObject * obj0 = 0 ; |
6549 | double result; |
6550 | |
6551 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerPar_max",&obj0)) SWIG_failgoto fail; |
6552 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
6553 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6554 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_max" "', argument " "1"" of type '" "GOptimizerPar const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_max" "', argument " "1"" of type '" "GOptimizerPar const *""'"); goto fail; } while (0); |
6555 | } |
6556 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
6557 | { |
6558 | try { |
6559 | result = (double)((GOptimizerPar const *)arg1)->max(); |
6560 | } |
6561 | catch (const GException::out_of_range& e) { |
6562 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6563 | } |
6564 | catch (const GExceptionHandler& e) { |
6565 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6566 | } |
6567 | catch (const std::exception& e) { |
6568 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6569 | } |
6570 | } |
6571 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
6572 | return resultobj; |
6573 | fail: |
6574 | return NULL__null; |
6575 | } |
6576 | |
6577 | |
6578 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_value__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6579 | PyObject *resultobj = 0; |
6580 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
6581 | double *arg2 = 0 ; |
6582 | void *argp1 = 0 ; |
6583 | int res1 = 0 ; |
6584 | double temp2 ; |
6585 | double val2 ; |
6586 | int ecode2 = 0 ; |
6587 | PyObject * obj0 = 0 ; |
6588 | PyObject * obj1 = 0 ; |
6589 | |
6590 | if (!PyArg_ParseTuple(args,(char *)"OO:GOptimizerPar_value",&obj0,&obj1)) SWIG_failgoto fail; |
6591 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
6592 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6593 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_value" "', argument " "1"" of type '" "GOptimizerPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_value" "', argument " "1"" of type '" "GOptimizerPar *""'"); goto fail; } while(0); |
6594 | } |
6595 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
6596 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
6597 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6598 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GOptimizerPar_value" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GOptimizerPar_value" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
6599 | } |
6600 | temp2 = static_cast< double >(val2); |
6601 | arg2 = &temp2; |
6602 | { |
6603 | try { |
6604 | (arg1)->value((double const &)*arg2); |
6605 | } |
6606 | catch (const GException::out_of_range& e) { |
6607 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6608 | } |
6609 | catch (const GExceptionHandler& e) { |
6610 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6611 | } |
6612 | catch (const std::exception& e) { |
6613 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6614 | } |
6615 | } |
6616 | resultobj = SWIG_Py_Void(); |
6617 | return resultobj; |
6618 | fail: |
6619 | return NULL__null; |
6620 | } |
6621 | |
6622 | |
6623 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_value(PyObject *self, PyObject *args) { |
6624 | int argc; |
6625 | PyObject *argv[3]; |
6626 | int ii; |
6627 | |
6628 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
6629 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
6630 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
6631 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
6632 | } |
6633 | if (argc == 1) { |
6634 | int _v; |
6635 | void *vptr = 0; |
6636 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
6637 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6638 | if (_v) { |
6639 | return _wrap_GOptimizerPar_value__SWIG_0(self, args); |
6640 | } |
6641 | } |
6642 | if (argc == 2) { |
6643 | int _v; |
6644 | void *vptr = 0; |
6645 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
6646 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6647 | if (_v) { |
6648 | { |
6649 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
6650 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6651 | } |
6652 | if (_v) { |
6653 | return _wrap_GOptimizerPar_value__SWIG_1(self, args); |
6654 | } |
6655 | } |
6656 | } |
6657 | |
6658 | fail: |
6659 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GOptimizerPar_value'.\n" |
6660 | " Possible C/C++ prototypes are:\n" |
6661 | " GOptimizerPar::value() const\n" |
6662 | " GOptimizerPar::value(double const &)\n"); |
6663 | return 0; |
6664 | } |
6665 | |
6666 | |
6667 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_error__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6668 | PyObject *resultobj = 0; |
6669 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
6670 | double *arg2 = 0 ; |
6671 | void *argp1 = 0 ; |
6672 | int res1 = 0 ; |
6673 | double temp2 ; |
6674 | double val2 ; |
6675 | int ecode2 = 0 ; |
6676 | PyObject * obj0 = 0 ; |
6677 | PyObject * obj1 = 0 ; |
6678 | |
6679 | if (!PyArg_ParseTuple(args,(char *)"OO:GOptimizerPar_error",&obj0,&obj1)) SWIG_failgoto fail; |
6680 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
6681 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6682 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_error" "', argument " "1"" of type '" "GOptimizerPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_error" "', argument " "1"" of type '" "GOptimizerPar *""'"); goto fail; } while(0); |
6683 | } |
6684 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
6685 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
6686 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6687 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GOptimizerPar_error" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GOptimizerPar_error" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
6688 | } |
6689 | temp2 = static_cast< double >(val2); |
6690 | arg2 = &temp2; |
6691 | { |
6692 | try { |
6693 | (arg1)->error((double const &)*arg2); |
6694 | } |
6695 | catch (const GException::out_of_range& e) { |
6696 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6697 | } |
6698 | catch (const GExceptionHandler& e) { |
6699 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6700 | } |
6701 | catch (const std::exception& e) { |
6702 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6703 | } |
6704 | } |
6705 | resultobj = SWIG_Py_Void(); |
6706 | return resultobj; |
6707 | fail: |
6708 | return NULL__null; |
6709 | } |
6710 | |
6711 | |
6712 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_error(PyObject *self, PyObject *args) { |
6713 | int argc; |
6714 | PyObject *argv[3]; |
6715 | int ii; |
6716 | |
6717 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
6718 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
6719 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
6720 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
6721 | } |
6722 | if (argc == 1) { |
6723 | int _v; |
6724 | void *vptr = 0; |
6725 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
6726 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6727 | if (_v) { |
6728 | return _wrap_GOptimizerPar_error__SWIG_0(self, args); |
6729 | } |
6730 | } |
6731 | if (argc == 2) { |
6732 | int _v; |
6733 | void *vptr = 0; |
6734 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
6735 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6736 | if (_v) { |
6737 | { |
6738 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
6739 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6740 | } |
6741 | if (_v) { |
6742 | return _wrap_GOptimizerPar_error__SWIG_1(self, args); |
6743 | } |
6744 | } |
6745 | } |
6746 | |
6747 | fail: |
6748 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GOptimizerPar_error'.\n" |
6749 | " Possible C/C++ prototypes are:\n" |
6750 | " GOptimizerPar::error() const\n" |
6751 | " GOptimizerPar::error(double const &)\n"); |
6752 | return 0; |
6753 | } |
6754 | |
6755 | |
6756 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_gradient__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6757 | PyObject *resultobj = 0; |
6758 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
6759 | double *arg2 = 0 ; |
6760 | void *argp1 = 0 ; |
6761 | int res1 = 0 ; |
6762 | double temp2 ; |
6763 | double val2 ; |
6764 | int ecode2 = 0 ; |
6765 | PyObject * obj0 = 0 ; |
6766 | PyObject * obj1 = 0 ; |
6767 | |
6768 | if (!PyArg_ParseTuple(args,(char *)"OO:GOptimizerPar_gradient",&obj0,&obj1)) SWIG_failgoto fail; |
6769 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
6770 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6771 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_gradient" "', argument " "1"" of type '" "GOptimizerPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_gradient" "', argument " "1"" of type '" "GOptimizerPar *""'"); goto fail; } while(0); |
6772 | } |
6773 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
6774 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
6775 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6776 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GOptimizerPar_gradient" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GOptimizerPar_gradient" "', argument " "2"" of type '" "double""'"); goto fail; } while (0); |
6777 | } |
6778 | temp2 = static_cast< double >(val2); |
6779 | arg2 = &temp2; |
6780 | { |
6781 | try { |
6782 | (arg1)->gradient((double const &)*arg2); |
6783 | } |
6784 | catch (const GException::out_of_range& e) { |
6785 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6786 | } |
6787 | catch (const GExceptionHandler& e) { |
6788 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6789 | } |
6790 | catch (const std::exception& e) { |
6791 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6792 | } |
6793 | } |
6794 | resultobj = SWIG_Py_Void(); |
6795 | return resultobj; |
6796 | fail: |
6797 | return NULL__null; |
6798 | } |
6799 | |
6800 | |
6801 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_gradient(PyObject *self, PyObject *args) { |
6802 | int argc; |
6803 | PyObject *argv[3]; |
6804 | int ii; |
6805 | |
6806 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
6807 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
6808 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
6809 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
6810 | } |
6811 | if (argc == 1) { |
6812 | int _v; |
6813 | void *vptr = 0; |
6814 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
6815 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6816 | if (_v) { |
6817 | return _wrap_GOptimizerPar_gradient__SWIG_0(self, args); |
6818 | } |
6819 | } |
6820 | if (argc == 2) { |
6821 | int _v; |
6822 | void *vptr = 0; |
6823 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
6824 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6825 | if (_v) { |
6826 | { |
6827 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
6828 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6829 | } |
6830 | if (_v) { |
6831 | return _wrap_GOptimizerPar_gradient__SWIG_1(self, args); |
6832 | } |
6833 | } |
6834 | } |
6835 | |
6836 | fail: |
6837 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GOptimizerPar_gradient'.\n" |
6838 | " Possible C/C++ prototypes are:\n" |
6839 | " GOptimizerPar::gradient() const\n" |
6840 | " GOptimizerPar::gradient(double const &)\n"); |
6841 | return 0; |
6842 | } |
6843 | |
6844 | |
6845 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_min__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6846 | PyObject *resultobj = 0; |
6847 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
6848 | double *arg2 = 0 ; |
6849 | void *argp1 = 0 ; |
6850 | int res1 = 0 ; |
6851 | double temp2 ; |
6852 | double val2 ; |
6853 | int ecode2 = 0 ; |
6854 | PyObject * obj0 = 0 ; |
6855 | PyObject * obj1 = 0 ; |
6856 | |
6857 | if (!PyArg_ParseTuple(args,(char *)"OO:GOptimizerPar_min",&obj0,&obj1)) SWIG_failgoto fail; |
6858 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
6859 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6860 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_min" "', argument " "1"" of type '" "GOptimizerPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_min" "', argument " "1"" of type '" "GOptimizerPar *""'"); goto fail; } while(0); |
6861 | } |
6862 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
6863 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
6864 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6865 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GOptimizerPar_min" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GOptimizerPar_min" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
6866 | } |
6867 | temp2 = static_cast< double >(val2); |
6868 | arg2 = &temp2; |
6869 | { |
6870 | try { |
6871 | (arg1)->min((double const &)*arg2); |
6872 | } |
6873 | catch (const GException::out_of_range& e) { |
6874 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6875 | } |
6876 | catch (const GExceptionHandler& e) { |
6877 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6878 | } |
6879 | catch (const std::exception& e) { |
6880 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6881 | } |
6882 | } |
6883 | resultobj = SWIG_Py_Void(); |
6884 | return resultobj; |
6885 | fail: |
6886 | return NULL__null; |
6887 | } |
6888 | |
6889 | |
6890 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_min(PyObject *self, PyObject *args) { |
6891 | int argc; |
6892 | PyObject *argv[3]; |
6893 | int ii; |
6894 | |
6895 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
6896 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
6897 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
6898 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
6899 | } |
6900 | if (argc == 1) { |
6901 | int _v; |
6902 | void *vptr = 0; |
6903 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
6904 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6905 | if (_v) { |
6906 | return _wrap_GOptimizerPar_min__SWIG_0(self, args); |
6907 | } |
6908 | } |
6909 | if (argc == 2) { |
6910 | int _v; |
6911 | void *vptr = 0; |
6912 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
6913 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6914 | if (_v) { |
6915 | { |
6916 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
6917 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6918 | } |
6919 | if (_v) { |
6920 | return _wrap_GOptimizerPar_min__SWIG_1(self, args); |
6921 | } |
6922 | } |
6923 | } |
6924 | |
6925 | fail: |
6926 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GOptimizerPar_min'.\n" |
6927 | " Possible C/C++ prototypes are:\n" |
6928 | " GOptimizerPar::min() const\n" |
6929 | " GOptimizerPar::min(double const &)\n"); |
6930 | return 0; |
6931 | } |
6932 | |
6933 | |
6934 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_max__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6935 | PyObject *resultobj = 0; |
6936 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
6937 | double *arg2 = 0 ; |
6938 | void *argp1 = 0 ; |
6939 | int res1 = 0 ; |
6940 | double temp2 ; |
6941 | double val2 ; |
6942 | int ecode2 = 0 ; |
6943 | PyObject * obj0 = 0 ; |
6944 | PyObject * obj1 = 0 ; |
6945 | |
6946 | if (!PyArg_ParseTuple(args,(char *)"OO:GOptimizerPar_max",&obj0,&obj1)) SWIG_failgoto fail; |
6947 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
6948 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6949 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_max" "', argument " "1"" of type '" "GOptimizerPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_max" "', argument " "1"" of type '" "GOptimizerPar *""'"); goto fail; } while(0); |
6950 | } |
6951 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
6952 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
6953 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6954 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GOptimizerPar_max" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GOptimizerPar_max" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
6955 | } |
6956 | temp2 = static_cast< double >(val2); |
6957 | arg2 = &temp2; |
6958 | { |
6959 | try { |
6960 | (arg1)->max((double const &)*arg2); |
6961 | } |
6962 | catch (const GException::out_of_range& e) { |
6963 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6964 | } |
6965 | catch (const GExceptionHandler& e) { |
6966 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6967 | } |
6968 | catch (const std::exception& e) { |
6969 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6970 | } |
6971 | } |
6972 | resultobj = SWIG_Py_Void(); |
6973 | return resultobj; |
6974 | fail: |
6975 | return NULL__null; |
6976 | } |
6977 | |
6978 | |
6979 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_max(PyObject *self, PyObject *args) { |
6980 | int argc; |
6981 | PyObject *argv[3]; |
6982 | int ii; |
6983 | |
6984 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
6985 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
6986 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
6987 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
6988 | } |
6989 | if (argc == 1) { |
6990 | int _v; |
6991 | void *vptr = 0; |
6992 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
6993 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6994 | if (_v) { |
6995 | return _wrap_GOptimizerPar_max__SWIG_0(self, args); |
6996 | } |
6997 | } |
6998 | if (argc == 2) { |
6999 | int _v; |
7000 | void *vptr = 0; |
7001 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
7002 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7003 | if (_v) { |
7004 | { |
7005 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
7006 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7007 | } |
7008 | if (_v) { |
7009 | return _wrap_GOptimizerPar_max__SWIG_1(self, args); |
7010 | } |
7011 | } |
7012 | } |
7013 | |
7014 | fail: |
7015 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GOptimizerPar_max'.\n" |
7016 | " Possible C/C++ prototypes are:\n" |
7017 | " GOptimizerPar::max() const\n" |
7018 | " GOptimizerPar::max(double const &)\n"); |
7019 | return 0; |
7020 | } |
7021 | |
7022 | |
7023 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_range(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7024 | PyObject *resultobj = 0; |
7025 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
7026 | double *arg2 = 0 ; |
7027 | double *arg3 = 0 ; |
7028 | void *argp1 = 0 ; |
7029 | int res1 = 0 ; |
7030 | double temp2 ; |
7031 | double val2 ; |
7032 | int ecode2 = 0 ; |
7033 | double temp3 ; |
7034 | double val3 ; |
7035 | int ecode3 = 0 ; |
7036 | PyObject * obj0 = 0 ; |
7037 | PyObject * obj1 = 0 ; |
7038 | PyObject * obj2 = 0 ; |
7039 | |
7040 | if (!PyArg_ParseTuple(args,(char *)"OOO:GOptimizerPar_range",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
7041 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
7042 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7043 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_range" "', argument " "1"" of type '" "GOptimizerPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_range" "', argument " "1"" of type '" "GOptimizerPar *""'"); goto fail; } while(0); |
7044 | } |
7045 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
7046 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
7047 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
7048 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GOptimizerPar_range" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GOptimizerPar_range" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
7049 | } |
7050 | temp2 = static_cast< double >(val2); |
7051 | arg2 = &temp2; |
7052 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
7053 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
7054 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GOptimizerPar_range" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GOptimizerPar_range" "', argument " "3"" of type '" "double""'"); goto fail; } while(0); |
7055 | } |
7056 | temp3 = static_cast< double >(val3); |
7057 | arg3 = &temp3; |
7058 | { |
7059 | try { |
7060 | (arg1)->range((double const &)*arg2,(double const &)*arg3); |
7061 | } |
7062 | catch (const GException::out_of_range& e) { |
7063 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7064 | } |
7065 | catch (const GExceptionHandler& e) { |
7066 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7067 | } |
7068 | catch (const std::exception& e) { |
7069 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7070 | } |
7071 | } |
7072 | resultobj = SWIG_Py_Void(); |
7073 | return resultobj; |
7074 | fail: |
7075 | return NULL__null; |
7076 | } |
7077 | |
7078 | |
7079 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_factor_value__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7080 | PyObject *resultobj = 0; |
7081 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
7082 | void *argp1 = 0 ; |
7083 | int res1 = 0 ; |
7084 | PyObject * obj0 = 0 ; |
7085 | double *result = 0 ; |
7086 | |
7087 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerPar_factor_value",&obj0)) SWIG_failgoto fail; |
7088 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
7089 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7090 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_factor_value" "', argument " "1"" of type '" "GOptimizerPar const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_factor_value" "', argument " "1"" of type '" "GOptimizerPar const *""'"); goto fail; } while(0); |
7091 | } |
7092 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
7093 | { |
7094 | try { |
7095 | result = (double *) &((GOptimizerPar const *)arg1)->factor_value(); |
7096 | } |
7097 | catch (const GException::out_of_range& e) { |
7098 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7099 | } |
7100 | catch (const GExceptionHandler& e) { |
7101 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7102 | } |
7103 | catch (const std::exception& e) { |
7104 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7105 | } |
7106 | } |
7107 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result)); |
7108 | return resultobj; |
7109 | fail: |
7110 | return NULL__null; |
7111 | } |
7112 | |
7113 | |
7114 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_factor_error__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7115 | PyObject *resultobj = 0; |
7116 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
7117 | void *argp1 = 0 ; |
7118 | int res1 = 0 ; |
7119 | PyObject * obj0 = 0 ; |
7120 | double *result = 0 ; |
7121 | |
7122 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerPar_factor_error",&obj0)) SWIG_failgoto fail; |
7123 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
7124 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7125 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_factor_error" "', argument " "1"" of type '" "GOptimizerPar const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_factor_error" "', argument " "1"" of type '" "GOptimizerPar const *""'"); goto fail; } while(0); |
7126 | } |
7127 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
7128 | { |
7129 | try { |
7130 | result = (double *) &((GOptimizerPar const *)arg1)->factor_error(); |
7131 | } |
7132 | catch (const GException::out_of_range& e) { |
7133 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7134 | } |
7135 | catch (const GExceptionHandler& e) { |
7136 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7137 | } |
7138 | catch (const std::exception& e) { |
7139 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7140 | } |
7141 | } |
7142 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result)); |
7143 | return resultobj; |
7144 | fail: |
7145 | return NULL__null; |
7146 | } |
7147 | |
7148 | |
7149 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_factor_gradient__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7150 | PyObject *resultobj = 0; |
7151 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
7152 | void *argp1 = 0 ; |
7153 | int res1 = 0 ; |
7154 | PyObject * obj0 = 0 ; |
7155 | double *result = 0 ; |
7156 | |
7157 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerPar_factor_gradient",&obj0)) SWIG_failgoto fail; |
7158 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
7159 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7160 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_factor_gradient" "', argument " "1"" of type '" "GOptimizerPar const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_factor_gradient" "', argument " "1"" of type '" "GOptimizerPar const *""'"); goto fail; } while(0); |
7161 | } |
7162 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
7163 | { |
7164 | try { |
7165 | result = (double *) &((GOptimizerPar const *)arg1)->factor_gradient(); |
7166 | } |
7167 | catch (const GException::out_of_range& e) { |
7168 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7169 | } |
7170 | catch (const GExceptionHandler& e) { |
7171 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7172 | } |
7173 | catch (const std::exception& e) { |
7174 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7175 | } |
7176 | } |
7177 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result)); |
7178 | return resultobj; |
7179 | fail: |
7180 | return NULL__null; |
7181 | } |
7182 | |
7183 | |
7184 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_factor_min__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7185 | PyObject *resultobj = 0; |
7186 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
7187 | void *argp1 = 0 ; |
7188 | int res1 = 0 ; |
7189 | PyObject * obj0 = 0 ; |
7190 | double *result = 0 ; |
7191 | |
7192 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerPar_factor_min",&obj0)) SWIG_failgoto fail; |
7193 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
7194 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7195 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_factor_min" "', argument " "1"" of type '" "GOptimizerPar const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_factor_min" "', argument " "1"" of type '" "GOptimizerPar const *""'"); goto fail; } while (0); |
7196 | } |
7197 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
7198 | { |
7199 | try { |
7200 | result = (double *) &((GOptimizerPar const *)arg1)->factor_min(); |
7201 | } |
7202 | catch (const GException::out_of_range& e) { |
7203 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7204 | } |
7205 | catch (const GExceptionHandler& e) { |
7206 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7207 | } |
7208 | catch (const std::exception& e) { |
7209 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7210 | } |
7211 | } |
7212 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result)); |
7213 | return resultobj; |
7214 | fail: |
7215 | return NULL__null; |
7216 | } |
7217 | |
7218 | |
7219 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_factor_max__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7220 | PyObject *resultobj = 0; |
7221 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
7222 | void *argp1 = 0 ; |
7223 | int res1 = 0 ; |
7224 | PyObject * obj0 = 0 ; |
7225 | double *result = 0 ; |
7226 | |
7227 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerPar_factor_max",&obj0)) SWIG_failgoto fail; |
7228 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
7229 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7230 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_factor_max" "', argument " "1"" of type '" "GOptimizerPar const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_factor_max" "', argument " "1"" of type '" "GOptimizerPar const *""'"); goto fail; } while (0); |
7231 | } |
7232 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
7233 | { |
7234 | try { |
7235 | result = (double *) &((GOptimizerPar const *)arg1)->factor_max(); |
7236 | } |
7237 | catch (const GException::out_of_range& e) { |
7238 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7239 | } |
7240 | catch (const GExceptionHandler& e) { |
7241 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7242 | } |
7243 | catch (const std::exception& e) { |
7244 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7245 | } |
7246 | } |
7247 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result)); |
7248 | return resultobj; |
7249 | fail: |
7250 | return NULL__null; |
7251 | } |
7252 | |
7253 | |
7254 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_scale__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7255 | PyObject *resultobj = 0; |
7256 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
7257 | void *argp1 = 0 ; |
7258 | int res1 = 0 ; |
7259 | PyObject * obj0 = 0 ; |
7260 | double *result = 0 ; |
7261 | |
7262 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerPar_scale",&obj0)) SWIG_failgoto fail; |
7263 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
7264 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7265 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_scale" "', argument " "1"" of type '" "GOptimizerPar const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_scale" "', argument " "1"" of type '" "GOptimizerPar const *""'"); goto fail; } while (0); |
7266 | } |
7267 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
7268 | { |
7269 | try { |
7270 | result = (double *) &((GOptimizerPar const *)arg1)->scale(); |
7271 | } |
7272 | catch (const GException::out_of_range& e) { |
7273 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7274 | } |
7275 | catch (const GExceptionHandler& e) { |
7276 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7277 | } |
7278 | catch (const std::exception& e) { |
7279 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7280 | } |
7281 | } |
7282 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result)); |
7283 | return resultobj; |
7284 | fail: |
7285 | return NULL__null; |
7286 | } |
7287 | |
7288 | |
7289 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_factor_value__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7290 | PyObject *resultobj = 0; |
7291 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
7292 | double *arg2 = 0 ; |
7293 | void *argp1 = 0 ; |
7294 | int res1 = 0 ; |
7295 | double temp2 ; |
7296 | double val2 ; |
7297 | int ecode2 = 0 ; |
7298 | PyObject * obj0 = 0 ; |
7299 | PyObject * obj1 = 0 ; |
7300 | |
7301 | if (!PyArg_ParseTuple(args,(char *)"OO:GOptimizerPar_factor_value",&obj0,&obj1)) SWIG_failgoto fail; |
7302 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
7303 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7304 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_factor_value" "', argument " "1"" of type '" "GOptimizerPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_factor_value" "', argument " "1"" of type '" "GOptimizerPar *""'"); goto fail ; } while(0); |
7305 | } |
7306 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
7307 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
7308 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
7309 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GOptimizerPar_factor_value" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GOptimizerPar_factor_value" "', argument " "2"" of type '" "double""'"); goto fail; } while (0); |
7310 | } |
7311 | temp2 = static_cast< double >(val2); |
7312 | arg2 = &temp2; |
7313 | { |
7314 | try { |
7315 | (arg1)->factor_value((double const &)*arg2); |
7316 | } |
7317 | catch (const GException::out_of_range& e) { |
7318 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7319 | } |
7320 | catch (const GExceptionHandler& e) { |
7321 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7322 | } |
7323 | catch (const std::exception& e) { |
7324 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7325 | } |
7326 | } |
7327 | resultobj = SWIG_Py_Void(); |
7328 | return resultobj; |
7329 | fail: |
7330 | return NULL__null; |
7331 | } |
7332 | |
7333 | |
7334 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_factor_value(PyObject *self, PyObject *args) { |
7335 | int argc; |
7336 | PyObject *argv[3]; |
7337 | int ii; |
7338 | |
7339 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
7340 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
7341 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
7342 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
7343 | } |
7344 | if (argc == 1) { |
7345 | int _v; |
7346 | void *vptr = 0; |
7347 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
7348 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7349 | if (_v) { |
7350 | return _wrap_GOptimizerPar_factor_value__SWIG_0(self, args); |
7351 | } |
7352 | } |
7353 | if (argc == 2) { |
7354 | int _v; |
7355 | void *vptr = 0; |
7356 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
7357 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7358 | if (_v) { |
7359 | { |
7360 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
7361 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7362 | } |
7363 | if (_v) { |
7364 | return _wrap_GOptimizerPar_factor_value__SWIG_1(self, args); |
7365 | } |
7366 | } |
7367 | } |
7368 | |
7369 | fail: |
7370 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GOptimizerPar_factor_value'.\n" |
7371 | " Possible C/C++ prototypes are:\n" |
7372 | " GOptimizerPar::factor_value() const\n" |
7373 | " GOptimizerPar::factor_value(double const &)\n"); |
7374 | return 0; |
7375 | } |
7376 | |
7377 | |
7378 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_factor_error__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7379 | PyObject *resultobj = 0; |
7380 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
7381 | double *arg2 = 0 ; |
7382 | void *argp1 = 0 ; |
7383 | int res1 = 0 ; |
7384 | double temp2 ; |
7385 | double val2 ; |
7386 | int ecode2 = 0 ; |
7387 | PyObject * obj0 = 0 ; |
7388 | PyObject * obj1 = 0 ; |
7389 | |
7390 | if (!PyArg_ParseTuple(args,(char *)"OO:GOptimizerPar_factor_error",&obj0,&obj1)) SWIG_failgoto fail; |
7391 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
7392 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7393 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_factor_error" "', argument " "1"" of type '" "GOptimizerPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_factor_error" "', argument " "1"" of type '" "GOptimizerPar *""'"); goto fail ; } while(0); |
7394 | } |
7395 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
7396 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
7397 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
7398 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GOptimizerPar_factor_error" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GOptimizerPar_factor_error" "', argument " "2"" of type '" "double""'"); goto fail; } while (0); |
7399 | } |
7400 | temp2 = static_cast< double >(val2); |
7401 | arg2 = &temp2; |
7402 | { |
7403 | try { |
7404 | (arg1)->factor_error((double const &)*arg2); |
7405 | } |
7406 | catch (const GException::out_of_range& e) { |
7407 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7408 | } |
7409 | catch (const GExceptionHandler& e) { |
7410 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7411 | } |
7412 | catch (const std::exception& e) { |
7413 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7414 | } |
7415 | } |
7416 | resultobj = SWIG_Py_Void(); |
7417 | return resultobj; |
7418 | fail: |
7419 | return NULL__null; |
7420 | } |
7421 | |
7422 | |
7423 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_factor_error(PyObject *self, PyObject *args) { |
7424 | int argc; |
7425 | PyObject *argv[3]; |
7426 | int ii; |
7427 | |
7428 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
7429 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
7430 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
7431 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
7432 | } |
7433 | if (argc == 1) { |
7434 | int _v; |
7435 | void *vptr = 0; |
7436 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
7437 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7438 | if (_v) { |
7439 | return _wrap_GOptimizerPar_factor_error__SWIG_0(self, args); |
7440 | } |
7441 | } |
7442 | if (argc == 2) { |
7443 | int _v; |
7444 | void *vptr = 0; |
7445 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
7446 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7447 | if (_v) { |
7448 | { |
7449 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
7450 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7451 | } |
7452 | if (_v) { |
7453 | return _wrap_GOptimizerPar_factor_error__SWIG_1(self, args); |
7454 | } |
7455 | } |
7456 | } |
7457 | |
7458 | fail: |
7459 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GOptimizerPar_factor_error'.\n" |
7460 | " Possible C/C++ prototypes are:\n" |
7461 | " GOptimizerPar::factor_error() const\n" |
7462 | " GOptimizerPar::factor_error(double const &)\n"); |
7463 | return 0; |
7464 | } |
7465 | |
7466 | |
7467 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_factor_gradient__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7468 | PyObject *resultobj = 0; |
7469 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
7470 | double *arg2 = 0 ; |
7471 | void *argp1 = 0 ; |
7472 | int res1 = 0 ; |
7473 | double temp2 ; |
7474 | double val2 ; |
7475 | int ecode2 = 0 ; |
7476 | PyObject * obj0 = 0 ; |
7477 | PyObject * obj1 = 0 ; |
7478 | |
7479 | if (!PyArg_ParseTuple(args,(char *)"OO:GOptimizerPar_factor_gradient",&obj0,&obj1)) SWIG_failgoto fail; |
7480 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
7481 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7482 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_factor_gradient" "', argument " "1"" of type '" "GOptimizerPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_factor_gradient" "', argument " "1"" of type '" "GOptimizerPar *""'"); goto fail ; } while(0); |
7483 | } |
7484 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
7485 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
7486 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
7487 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GOptimizerPar_factor_gradient" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GOptimizerPar_factor_gradient" "', argument " "2"" of type '" "double""'"); goto fail; } while (0); |
7488 | } |
7489 | temp2 = static_cast< double >(val2); |
7490 | arg2 = &temp2; |
7491 | { |
7492 | try { |
7493 | (arg1)->factor_gradient((double const &)*arg2); |
7494 | } |
7495 | catch (const GException::out_of_range& e) { |
7496 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7497 | } |
7498 | catch (const GExceptionHandler& e) { |
7499 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7500 | } |
7501 | catch (const std::exception& e) { |
7502 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7503 | } |
7504 | } |
7505 | resultobj = SWIG_Py_Void(); |
7506 | return resultobj; |
7507 | fail: |
7508 | return NULL__null; |
7509 | } |
7510 | |
7511 | |
7512 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_factor_gradient(PyObject *self, PyObject *args) { |
7513 | int argc; |
7514 | PyObject *argv[3]; |
7515 | int ii; |
7516 | |
7517 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
7518 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
7519 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
7520 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
7521 | } |
7522 | if (argc == 1) { |
7523 | int _v; |
7524 | void *vptr = 0; |
7525 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
7526 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7527 | if (_v) { |
7528 | return _wrap_GOptimizerPar_factor_gradient__SWIG_0(self, args); |
7529 | } |
7530 | } |
7531 | if (argc == 2) { |
7532 | int _v; |
7533 | void *vptr = 0; |
7534 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
7535 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7536 | if (_v) { |
7537 | { |
7538 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
7539 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7540 | } |
7541 | if (_v) { |
7542 | return _wrap_GOptimizerPar_factor_gradient__SWIG_1(self, args); |
7543 | } |
7544 | } |
7545 | } |
7546 | |
7547 | fail: |
7548 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GOptimizerPar_factor_gradient'.\n" |
7549 | " Possible C/C++ prototypes are:\n" |
7550 | " GOptimizerPar::factor_gradient() const\n" |
7551 | " GOptimizerPar::factor_gradient(double const &)\n"); |
7552 | return 0; |
7553 | } |
7554 | |
7555 | |
7556 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_factor_min__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7557 | PyObject *resultobj = 0; |
7558 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
7559 | double *arg2 = 0 ; |
7560 | void *argp1 = 0 ; |
7561 | int res1 = 0 ; |
7562 | double temp2 ; |
7563 | double val2 ; |
7564 | int ecode2 = 0 ; |
7565 | PyObject * obj0 = 0 ; |
7566 | PyObject * obj1 = 0 ; |
7567 | |
7568 | if (!PyArg_ParseTuple(args,(char *)"OO:GOptimizerPar_factor_min",&obj0,&obj1)) SWIG_failgoto fail; |
7569 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
7570 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7571 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_factor_min" "', argument " "1"" of type '" "GOptimizerPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_factor_min" "', argument " "1"" of type '" "GOptimizerPar *""'"); goto fail; } while(0); |
7572 | } |
7573 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
7574 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
7575 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
7576 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GOptimizerPar_factor_min" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GOptimizerPar_factor_min" "', argument " "2"" of type '" "double""'"); goto fail; } while (0); |
7577 | } |
7578 | temp2 = static_cast< double >(val2); |
7579 | arg2 = &temp2; |
7580 | { |
7581 | try { |
7582 | (arg1)->factor_min((double const &)*arg2); |
7583 | } |
7584 | catch (const GException::out_of_range& e) { |
7585 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7586 | } |
7587 | catch (const GExceptionHandler& e) { |
7588 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7589 | } |
7590 | catch (const std::exception& e) { |
7591 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7592 | } |
7593 | } |
7594 | resultobj = SWIG_Py_Void(); |
7595 | return resultobj; |
7596 | fail: |
7597 | return NULL__null; |
7598 | } |
7599 | |
7600 | |
7601 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_factor_min(PyObject *self, PyObject *args) { |
7602 | int argc; |
7603 | PyObject *argv[3]; |
7604 | int ii; |
7605 | |
7606 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
7607 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
7608 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
7609 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
7610 | } |
7611 | if (argc == 1) { |
7612 | int _v; |
7613 | void *vptr = 0; |
7614 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
7615 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7616 | if (_v) { |
7617 | return _wrap_GOptimizerPar_factor_min__SWIG_0(self, args); |
7618 | } |
7619 | } |
7620 | if (argc == 2) { |
7621 | int _v; |
7622 | void *vptr = 0; |
7623 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
7624 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7625 | if (_v) { |
7626 | { |
7627 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
7628 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7629 | } |
7630 | if (_v) { |
7631 | return _wrap_GOptimizerPar_factor_min__SWIG_1(self, args); |
7632 | } |
7633 | } |
7634 | } |
7635 | |
7636 | fail: |
7637 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GOptimizerPar_factor_min'.\n" |
7638 | " Possible C/C++ prototypes are:\n" |
7639 | " GOptimizerPar::factor_min() const\n" |
7640 | " GOptimizerPar::factor_min(double const &)\n"); |
7641 | return 0; |
7642 | } |
7643 | |
7644 | |
7645 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_factor_max__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7646 | PyObject *resultobj = 0; |
7647 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
7648 | double *arg2 = 0 ; |
7649 | void *argp1 = 0 ; |
7650 | int res1 = 0 ; |
7651 | double temp2 ; |
7652 | double val2 ; |
7653 | int ecode2 = 0 ; |
7654 | PyObject * obj0 = 0 ; |
7655 | PyObject * obj1 = 0 ; |
7656 | |
7657 | if (!PyArg_ParseTuple(args,(char *)"OO:GOptimizerPar_factor_max",&obj0,&obj1)) SWIG_failgoto fail; |
7658 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
7659 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7660 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_factor_max" "', argument " "1"" of type '" "GOptimizerPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_factor_max" "', argument " "1"" of type '" "GOptimizerPar *""'"); goto fail; } while(0); |
7661 | } |
7662 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
7663 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
7664 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
7665 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GOptimizerPar_factor_max" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GOptimizerPar_factor_max" "', argument " "2"" of type '" "double""'"); goto fail; } while (0); |
7666 | } |
7667 | temp2 = static_cast< double >(val2); |
7668 | arg2 = &temp2; |
7669 | { |
7670 | try { |
7671 | (arg1)->factor_max((double const &)*arg2); |
7672 | } |
7673 | catch (const GException::out_of_range& e) { |
7674 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7675 | } |
7676 | catch (const GExceptionHandler& e) { |
7677 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7678 | } |
7679 | catch (const std::exception& e) { |
7680 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7681 | } |
7682 | } |
7683 | resultobj = SWIG_Py_Void(); |
7684 | return resultobj; |
7685 | fail: |
7686 | return NULL__null; |
7687 | } |
7688 | |
7689 | |
7690 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_factor_max(PyObject *self, PyObject *args) { |
7691 | int argc; |
7692 | PyObject *argv[3]; |
7693 | int ii; |
7694 | |
7695 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
7696 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
7697 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
7698 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
7699 | } |
7700 | if (argc == 1) { |
7701 | int _v; |
7702 | void *vptr = 0; |
7703 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
7704 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7705 | if (_v) { |
7706 | return _wrap_GOptimizerPar_factor_max__SWIG_0(self, args); |
7707 | } |
7708 | } |
7709 | if (argc == 2) { |
7710 | int _v; |
7711 | void *vptr = 0; |
7712 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
7713 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7714 | if (_v) { |
7715 | { |
7716 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
7717 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7718 | } |
7719 | if (_v) { |
7720 | return _wrap_GOptimizerPar_factor_max__SWIG_1(self, args); |
7721 | } |
7722 | } |
7723 | } |
7724 | |
7725 | fail: |
7726 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GOptimizerPar_factor_max'.\n" |
7727 | " Possible C/C++ prototypes are:\n" |
7728 | " GOptimizerPar::factor_max() const\n" |
7729 | " GOptimizerPar::factor_max(double const &)\n"); |
7730 | return 0; |
7731 | } |
7732 | |
7733 | |
7734 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_factor_range(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7735 | PyObject *resultobj = 0; |
7736 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
7737 | double *arg2 = 0 ; |
7738 | double *arg3 = 0 ; |
7739 | void *argp1 = 0 ; |
7740 | int res1 = 0 ; |
7741 | double temp2 ; |
7742 | double val2 ; |
7743 | int ecode2 = 0 ; |
7744 | double temp3 ; |
7745 | double val3 ; |
7746 | int ecode3 = 0 ; |
7747 | PyObject * obj0 = 0 ; |
7748 | PyObject * obj1 = 0 ; |
7749 | PyObject * obj2 = 0 ; |
7750 | |
7751 | if (!PyArg_ParseTuple(args,(char *)"OOO:GOptimizerPar_factor_range",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
7752 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
7753 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7754 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_factor_range" "', argument " "1"" of type '" "GOptimizerPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_factor_range" "', argument " "1"" of type '" "GOptimizerPar *""'"); goto fail ; } while(0); |
7755 | } |
7756 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
7757 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
7758 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
7759 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GOptimizerPar_factor_range" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GOptimizerPar_factor_range" "', argument " "2"" of type '" "double""'"); goto fail; } while (0); |
7760 | } |
7761 | temp2 = static_cast< double >(val2); |
7762 | arg2 = &temp2; |
7763 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
7764 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
7765 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GOptimizerPar_factor_range" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GOptimizerPar_factor_range" "', argument " "3"" of type '" "double""'"); goto fail; } while (0); |
7766 | } |
7767 | temp3 = static_cast< double >(val3); |
7768 | arg3 = &temp3; |
7769 | { |
7770 | try { |
7771 | (arg1)->factor_range((double const &)*arg2,(double const &)*arg3); |
7772 | } |
7773 | catch (const GException::out_of_range& e) { |
7774 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7775 | } |
7776 | catch (const GExceptionHandler& e) { |
7777 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7778 | } |
7779 | catch (const std::exception& e) { |
7780 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7781 | } |
7782 | } |
7783 | resultobj = SWIG_Py_Void(); |
7784 | return resultobj; |
7785 | fail: |
7786 | return NULL__null; |
7787 | } |
7788 | |
7789 | |
7790 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_scale__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7791 | PyObject *resultobj = 0; |
7792 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
7793 | double *arg2 = 0 ; |
7794 | void *argp1 = 0 ; |
7795 | int res1 = 0 ; |
7796 | double temp2 ; |
7797 | double val2 ; |
7798 | int ecode2 = 0 ; |
7799 | PyObject * obj0 = 0 ; |
7800 | PyObject * obj1 = 0 ; |
7801 | |
7802 | if (!PyArg_ParseTuple(args,(char *)"OO:GOptimizerPar_scale",&obj0,&obj1)) SWIG_failgoto fail; |
7803 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
7804 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7805 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_scale" "', argument " "1"" of type '" "GOptimizerPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_scale" "', argument " "1"" of type '" "GOptimizerPar *""'"); goto fail; } while(0); |
7806 | } |
7807 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
7808 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
7809 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
7810 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GOptimizerPar_scale" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GOptimizerPar_scale" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
7811 | } |
7812 | temp2 = static_cast< double >(val2); |
7813 | arg2 = &temp2; |
7814 | { |
7815 | try { |
7816 | (arg1)->scale((double const &)*arg2); |
7817 | } |
7818 | catch (const GException::out_of_range& e) { |
7819 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7820 | } |
7821 | catch (const GExceptionHandler& e) { |
7822 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7823 | } |
7824 | catch (const std::exception& e) { |
7825 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7826 | } |
7827 | } |
7828 | resultobj = SWIG_Py_Void(); |
7829 | return resultobj; |
7830 | fail: |
7831 | return NULL__null; |
7832 | } |
7833 | |
7834 | |
7835 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_scale(PyObject *self, PyObject *args) { |
7836 | int argc; |
7837 | PyObject *argv[3]; |
7838 | int ii; |
7839 | |
7840 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
7841 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
7842 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
7843 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
7844 | } |
7845 | if (argc == 1) { |
7846 | int _v; |
7847 | void *vptr = 0; |
7848 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
7849 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7850 | if (_v) { |
7851 | return _wrap_GOptimizerPar_scale__SWIG_0(self, args); |
7852 | } |
7853 | } |
7854 | if (argc == 2) { |
7855 | int _v; |
7856 | void *vptr = 0; |
7857 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
7858 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7859 | if (_v) { |
7860 | { |
7861 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
7862 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7863 | } |
7864 | if (_v) { |
7865 | return _wrap_GOptimizerPar_scale__SWIG_1(self, args); |
7866 | } |
7867 | } |
7868 | } |
7869 | |
7870 | fail: |
7871 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GOptimizerPar_scale'.\n" |
7872 | " Possible C/C++ prototypes are:\n" |
7873 | " GOptimizerPar::scale() const\n" |
7874 | " GOptimizerPar::scale(double const &)\n"); |
7875 | return 0; |
7876 | } |
7877 | |
7878 | |
7879 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_hasmin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7880 | PyObject *resultobj = 0; |
7881 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
7882 | void *argp1 = 0 ; |
7883 | int res1 = 0 ; |
7884 | PyObject * obj0 = 0 ; |
7885 | bool result; |
7886 | |
7887 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerPar_hasmin",&obj0)) SWIG_failgoto fail; |
7888 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
7889 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7890 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_hasmin" "', argument " "1"" of type '" "GOptimizerPar const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_hasmin" "', argument " "1"" of type '" "GOptimizerPar const *""'"); goto fail; } while (0); |
7891 | } |
7892 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
7893 | { |
7894 | try { |
7895 | result = (bool)((GOptimizerPar const *)arg1)->hasmin(); |
7896 | } |
7897 | catch (const GException::out_of_range& e) { |
7898 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7899 | } |
7900 | catch (const GExceptionHandler& e) { |
7901 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7902 | } |
7903 | catch (const std::exception& e) { |
7904 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7905 | } |
7906 | } |
7907 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
7908 | return resultobj; |
7909 | fail: |
7910 | return NULL__null; |
7911 | } |
7912 | |
7913 | |
7914 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_hasmax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7915 | PyObject *resultobj = 0; |
7916 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
7917 | void *argp1 = 0 ; |
7918 | int res1 = 0 ; |
7919 | PyObject * obj0 = 0 ; |
7920 | bool result; |
7921 | |
7922 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerPar_hasmax",&obj0)) SWIG_failgoto fail; |
7923 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
7924 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7925 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_hasmax" "', argument " "1"" of type '" "GOptimizerPar const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_hasmax" "', argument " "1"" of type '" "GOptimizerPar const *""'"); goto fail; } while (0); |
7926 | } |
7927 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
7928 | { |
7929 | try { |
7930 | result = (bool)((GOptimizerPar const *)arg1)->hasmax(); |
7931 | } |
7932 | catch (const GException::out_of_range& e) { |
7933 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7934 | } |
7935 | catch (const GExceptionHandler& e) { |
7936 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7937 | } |
7938 | catch (const std::exception& e) { |
7939 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7940 | } |
7941 | } |
7942 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
7943 | return resultobj; |
7944 | fail: |
7945 | return NULL__null; |
7946 | } |
7947 | |
7948 | |
7949 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_hasrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7950 | PyObject *resultobj = 0; |
7951 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
7952 | void *argp1 = 0 ; |
7953 | int res1 = 0 ; |
7954 | PyObject * obj0 = 0 ; |
7955 | bool result; |
7956 | |
7957 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerPar_hasrange",&obj0)) SWIG_failgoto fail; |
7958 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
7959 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7960 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_hasrange" "', argument " "1"" of type '" "GOptimizerPar const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_hasrange" "', argument " "1"" of type '" "GOptimizerPar const *""'"); goto fail; } while (0); |
7961 | } |
7962 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
7963 | { |
7964 | try { |
7965 | result = (bool)((GOptimizerPar const *)arg1)->hasrange(); |
7966 | } |
7967 | catch (const GException::out_of_range& e) { |
7968 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7969 | } |
7970 | catch (const GExceptionHandler& e) { |
7971 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7972 | } |
7973 | catch (const std::exception& e) { |
7974 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7975 | } |
7976 | } |
7977 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
7978 | return resultobj; |
7979 | fail: |
7980 | return NULL__null; |
7981 | } |
7982 | |
7983 | |
7984 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_remove_min(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7985 | PyObject *resultobj = 0; |
7986 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
7987 | void *argp1 = 0 ; |
7988 | int res1 = 0 ; |
7989 | PyObject * obj0 = 0 ; |
7990 | |
7991 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerPar_remove_min",&obj0)) SWIG_failgoto fail; |
7992 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
7993 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7994 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_remove_min" "', argument " "1"" of type '" "GOptimizerPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_remove_min" "', argument " "1"" of type '" "GOptimizerPar *""'"); goto fail; } while(0); |
7995 | } |
7996 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
7997 | { |
7998 | try { |
7999 | (arg1)->remove_min(); |
8000 | } |
8001 | catch (const GException::out_of_range& e) { |
8002 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8003 | } |
8004 | catch (const GExceptionHandler& e) { |
8005 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8006 | } |
8007 | catch (const std::exception& e) { |
8008 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8009 | } |
8010 | } |
8011 | resultobj = SWIG_Py_Void(); |
8012 | return resultobj; |
8013 | fail: |
8014 | return NULL__null; |
8015 | } |
8016 | |
8017 | |
8018 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_remove_max(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8019 | PyObject *resultobj = 0; |
8020 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
8021 | void *argp1 = 0 ; |
8022 | int res1 = 0 ; |
8023 | PyObject * obj0 = 0 ; |
8024 | |
8025 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerPar_remove_max",&obj0)) SWIG_failgoto fail; |
8026 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
8027 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8028 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_remove_max" "', argument " "1"" of type '" "GOptimizerPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_remove_max" "', argument " "1"" of type '" "GOptimizerPar *""'"); goto fail; } while(0); |
8029 | } |
8030 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
8031 | { |
8032 | try { |
8033 | (arg1)->remove_max(); |
8034 | } |
8035 | catch (const GException::out_of_range& e) { |
8036 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8037 | } |
8038 | catch (const GExceptionHandler& e) { |
8039 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8040 | } |
8041 | catch (const std::exception& e) { |
8042 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8043 | } |
8044 | } |
8045 | resultobj = SWIG_Py_Void(); |
8046 | return resultobj; |
8047 | fail: |
8048 | return NULL__null; |
8049 | } |
8050 | |
8051 | |
8052 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_remove_range(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8053 | PyObject *resultobj = 0; |
8054 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
8055 | void *argp1 = 0 ; |
8056 | int res1 = 0 ; |
8057 | PyObject * obj0 = 0 ; |
8058 | |
8059 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerPar_remove_range",&obj0)) SWIG_failgoto fail; |
8060 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
8061 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8062 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_remove_range" "', argument " "1"" of type '" "GOptimizerPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_remove_range" "', argument " "1"" of type '" "GOptimizerPar *""'"); goto fail ; } while(0); |
8063 | } |
8064 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
8065 | { |
8066 | try { |
8067 | (arg1)->remove_range(); |
8068 | } |
8069 | catch (const GException::out_of_range& e) { |
8070 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8071 | } |
8072 | catch (const GExceptionHandler& e) { |
8073 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8074 | } |
8075 | catch (const std::exception& e) { |
8076 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8077 | } |
8078 | } |
8079 | resultobj = SWIG_Py_Void(); |
8080 | return resultobj; |
8081 | fail: |
8082 | return NULL__null; |
8083 | } |
8084 | |
8085 | |
8086 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_isfree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8087 | PyObject *resultobj = 0; |
8088 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
8089 | void *argp1 = 0 ; |
8090 | int res1 = 0 ; |
8091 | PyObject * obj0 = 0 ; |
8092 | bool result; |
8093 | |
8094 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerPar_isfree",&obj0)) SWIG_failgoto fail; |
8095 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
8096 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8097 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_isfree" "', argument " "1"" of type '" "GOptimizerPar const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_isfree" "', argument " "1"" of type '" "GOptimizerPar const *""'"); goto fail; } while (0); |
8098 | } |
8099 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
8100 | { |
8101 | try { |
8102 | result = (bool)((GOptimizerPar const *)arg1)->isfree(); |
8103 | } |
8104 | catch (const GException::out_of_range& e) { |
8105 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8106 | } |
8107 | catch (const GExceptionHandler& e) { |
8108 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8109 | } |
8110 | catch (const std::exception& e) { |
8111 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8112 | } |
8113 | } |
8114 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
8115 | return resultobj; |
8116 | fail: |
8117 | return NULL__null; |
8118 | } |
8119 | |
8120 | |
8121 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_isfixed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8122 | PyObject *resultobj = 0; |
8123 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
8124 | void *argp1 = 0 ; |
8125 | int res1 = 0 ; |
8126 | PyObject * obj0 = 0 ; |
8127 | bool result; |
8128 | |
8129 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerPar_isfixed",&obj0)) SWIG_failgoto fail; |
8130 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
8131 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8132 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_isfixed" "', argument " "1"" of type '" "GOptimizerPar const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_isfixed" "', argument " "1"" of type '" "GOptimizerPar const *""'"); goto fail; } while (0); |
8133 | } |
8134 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
8135 | { |
8136 | try { |
8137 | result = (bool)((GOptimizerPar const *)arg1)->isfixed(); |
8138 | } |
8139 | catch (const GException::out_of_range& e) { |
8140 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8141 | } |
8142 | catch (const GExceptionHandler& e) { |
8143 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8144 | } |
8145 | catch (const std::exception& e) { |
8146 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8147 | } |
8148 | } |
8149 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
8150 | return resultobj; |
8151 | fail: |
8152 | return NULL__null; |
8153 | } |
8154 | |
8155 | |
8156 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_hasgrad__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8157 | PyObject *resultobj = 0; |
8158 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
8159 | void *argp1 = 0 ; |
8160 | int res1 = 0 ; |
8161 | PyObject * obj0 = 0 ; |
8162 | bool result; |
8163 | |
8164 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerPar_hasgrad",&obj0)) SWIG_failgoto fail; |
8165 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
8166 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8167 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_hasgrad" "', argument " "1"" of type '" "GOptimizerPar const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_hasgrad" "', argument " "1"" of type '" "GOptimizerPar const *""'"); goto fail; } while (0); |
8168 | } |
8169 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
8170 | { |
8171 | try { |
8172 | result = (bool)((GOptimizerPar const *)arg1)->hasgrad(); |
8173 | } |
8174 | catch (const GException::out_of_range& e) { |
8175 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8176 | } |
8177 | catch (const GExceptionHandler& e) { |
8178 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8179 | } |
8180 | catch (const std::exception& e) { |
8181 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8182 | } |
8183 | } |
8184 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
8185 | return resultobj; |
8186 | fail: |
8187 | return NULL__null; |
8188 | } |
8189 | |
8190 | |
8191 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_free(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8192 | PyObject *resultobj = 0; |
8193 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
8194 | void *argp1 = 0 ; |
8195 | int res1 = 0 ; |
8196 | PyObject * obj0 = 0 ; |
8197 | |
8198 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerPar_free",&obj0)) SWIG_failgoto fail; |
8199 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
8200 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8201 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_free" "', argument " "1"" of type '" "GOptimizerPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_free" "', argument " "1"" of type '" "GOptimizerPar *""'"); goto fail; } while(0); |
8202 | } |
8203 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
8204 | { |
8205 | try { |
8206 | (arg1)->free(); |
8207 | } |
8208 | catch (const GException::out_of_range& e) { |
8209 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8210 | } |
8211 | catch (const GExceptionHandler& e) { |
8212 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8213 | } |
8214 | catch (const std::exception& e) { |
8215 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8216 | } |
8217 | } |
8218 | resultobj = SWIG_Py_Void(); |
8219 | return resultobj; |
8220 | fail: |
8221 | return NULL__null; |
8222 | } |
8223 | |
8224 | |
8225 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_fix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8226 | PyObject *resultobj = 0; |
8227 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
8228 | void *argp1 = 0 ; |
8229 | int res1 = 0 ; |
8230 | PyObject * obj0 = 0 ; |
8231 | |
8232 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerPar_fix",&obj0)) SWIG_failgoto fail; |
8233 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
8234 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8235 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_fix" "', argument " "1"" of type '" "GOptimizerPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_fix" "', argument " "1"" of type '" "GOptimizerPar *""'"); goto fail; } while(0); |
8236 | } |
8237 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
8238 | { |
8239 | try { |
8240 | (arg1)->fix(); |
8241 | } |
8242 | catch (const GException::out_of_range& e) { |
8243 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8244 | } |
8245 | catch (const GExceptionHandler& e) { |
8246 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8247 | } |
8248 | catch (const std::exception& e) { |
8249 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8250 | } |
8251 | } |
8252 | resultobj = SWIG_Py_Void(); |
8253 | return resultobj; |
8254 | fail: |
8255 | return NULL__null; |
8256 | } |
8257 | |
8258 | |
8259 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_hasgrad__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8260 | PyObject *resultobj = 0; |
8261 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
8262 | bool *arg2 = 0 ; |
8263 | void *argp1 = 0 ; |
8264 | int res1 = 0 ; |
8265 | bool temp2 ; |
8266 | bool val2 ; |
8267 | int ecode2 = 0 ; |
8268 | PyObject * obj0 = 0 ; |
8269 | PyObject * obj1 = 0 ; |
8270 | |
8271 | if (!PyArg_ParseTuple(args,(char *)"OO:GOptimizerPar_hasgrad",&obj0,&obj1)) SWIG_failgoto fail; |
8272 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
8273 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_hasgrad" "', argument " "1"" of type '" "GOptimizerPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_hasgrad" "', argument " "1"" of type '" "GOptimizerPar *""'"); goto fail; } while(0); |
8275 | } |
8276 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
8277 | ecode2 = SWIG_AsVal_bool(obj1, &val2); |
8278 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
8279 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GOptimizerPar_hasgrad" "', argument " "2"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GOptimizerPar_hasgrad" "', argument " "2"" of type '" "bool""'"); goto fail; } while (0); |
8280 | } |
8281 | temp2 = static_cast< bool >(val2); |
8282 | arg2 = &temp2; |
8283 | { |
8284 | try { |
8285 | (arg1)->hasgrad((bool const &)*arg2); |
8286 | } |
8287 | catch (const GException::out_of_range& e) { |
8288 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8289 | } |
8290 | catch (const GExceptionHandler& e) { |
8291 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8292 | } |
8293 | catch (const std::exception& e) { |
8294 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8295 | } |
8296 | } |
8297 | resultobj = SWIG_Py_Void(); |
8298 | return resultobj; |
8299 | fail: |
8300 | return NULL__null; |
8301 | } |
8302 | |
8303 | |
8304 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_hasgrad(PyObject *self, PyObject *args) { |
8305 | int argc; |
8306 | PyObject *argv[3]; |
8307 | int ii; |
8308 | |
8309 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
8310 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
8311 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
8312 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
8313 | } |
8314 | if (argc == 1) { |
8315 | int _v; |
8316 | void *vptr = 0; |
8317 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
8318 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8319 | if (_v) { |
8320 | return _wrap_GOptimizerPar_hasgrad__SWIG_0(self, args); |
8321 | } |
8322 | } |
8323 | if (argc == 2) { |
8324 | int _v; |
8325 | void *vptr = 0; |
8326 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
8327 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8328 | if (_v) { |
8329 | { |
8330 | int res = SWIG_AsVal_bool(argv[1], NULL__null); |
8331 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8332 | } |
8333 | if (_v) { |
8334 | return _wrap_GOptimizerPar_hasgrad__SWIG_1(self, args); |
8335 | } |
8336 | } |
8337 | } |
8338 | |
8339 | fail: |
8340 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GOptimizerPar_hasgrad'.\n" |
8341 | " Possible C/C++ prototypes are:\n" |
8342 | " GOptimizerPar::hasgrad() const\n" |
8343 | " GOptimizerPar::hasgrad(bool const &)\n"); |
8344 | return 0; |
8345 | } |
8346 | |
8347 | |
8348 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8349 | PyObject *resultobj = 0; |
8350 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
8351 | void *argp1 = 0 ; |
8352 | int res1 = 0 ; |
8353 | PyObject * obj0 = 0 ; |
8354 | |
8355 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerPar_clear",&obj0)) SWIG_failgoto fail; |
8356 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
8357 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8358 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_clear" "', argument " "1"" of type '" "GOptimizerPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_clear" "', argument " "1"" of type '" "GOptimizerPar *""'"); goto fail; } while(0); |
8359 | } |
8360 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
8361 | { |
8362 | try { |
8363 | (arg1)->clear(); |
8364 | } |
8365 | catch (const GException::out_of_range& e) { |
8366 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8367 | } |
8368 | catch (const GExceptionHandler& e) { |
8369 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8370 | } |
8371 | catch (const std::exception& e) { |
8372 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8373 | } |
8374 | } |
8375 | resultobj = SWIG_Py_Void(); |
8376 | return resultobj; |
8377 | fail: |
8378 | return NULL__null; |
8379 | } |
8380 | |
8381 | |
8382 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8383 | PyObject *resultobj = 0; |
8384 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
8385 | void *argp1 = 0 ; |
8386 | int res1 = 0 ; |
8387 | PyObject * obj0 = 0 ; |
8388 | GOptimizerPar *result = 0 ; |
8389 | |
8390 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerPar_clone",&obj0)) SWIG_failgoto fail; |
8391 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
8392 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8393 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_clone" "', argument " "1"" of type '" "GOptimizerPar const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_clone" "', argument " "1"" of type '" "GOptimizerPar const *""'"); goto fail; } while (0); |
8394 | } |
8395 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
8396 | { |
8397 | try { |
8398 | result = (GOptimizerPar *)((GOptimizerPar const *)arg1)->clone(); |
8399 | } |
8400 | catch (const GException::out_of_range& e) { |
8401 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8402 | } |
8403 | catch (const GExceptionHandler& e) { |
8404 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8405 | } |
8406 | catch (const std::exception& e) { |
8407 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8408 | } |
8409 | } |
8410 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[6], 0 | 0); |
8411 | return resultobj; |
8412 | fail: |
8413 | return NULL__null; |
8414 | } |
8415 | |
8416 | |
8417 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_name__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8418 | PyObject *resultobj = 0; |
8419 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
8420 | void *argp1 = 0 ; |
8421 | int res1 = 0 ; |
8422 | PyObject * obj0 = 0 ; |
8423 | std::string *result = 0 ; |
8424 | |
8425 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerPar_name",&obj0)) SWIG_failgoto fail; |
8426 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
8427 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8428 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_name" "', argument " "1"" of type '" "GOptimizerPar const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_name" "', argument " "1"" of type '" "GOptimizerPar const *""'"); goto fail; } while (0); |
8429 | } |
8430 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
8431 | { |
8432 | try { |
8433 | result = (std::string *) &((GOptimizerPar const *)arg1)->name(); |
8434 | } |
8435 | catch (const GException::out_of_range& e) { |
8436 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8437 | } |
8438 | catch (const GExceptionHandler& e) { |
8439 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8440 | } |
8441 | catch (const std::exception& e) { |
8442 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8443 | } |
8444 | } |
8445 | resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); |
8446 | return resultobj; |
8447 | fail: |
8448 | return NULL__null; |
8449 | } |
8450 | |
8451 | |
8452 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_unit__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8453 | PyObject *resultobj = 0; |
8454 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
8455 | void *argp1 = 0 ; |
8456 | int res1 = 0 ; |
8457 | PyObject * obj0 = 0 ; |
8458 | std::string *result = 0 ; |
8459 | |
8460 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerPar_unit",&obj0)) SWIG_failgoto fail; |
8461 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
8462 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8463 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_unit" "', argument " "1"" of type '" "GOptimizerPar const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_unit" "', argument " "1"" of type '" "GOptimizerPar const *""'"); goto fail; } while (0); |
8464 | } |
8465 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
8466 | { |
8467 | try { |
8468 | result = (std::string *) &((GOptimizerPar const *)arg1)->unit(); |
8469 | } |
8470 | catch (const GException::out_of_range& e) { |
8471 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8472 | } |
8473 | catch (const GExceptionHandler& e) { |
8474 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8475 | } |
8476 | catch (const std::exception& e) { |
8477 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8478 | } |
8479 | } |
8480 | resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); |
8481 | return resultobj; |
8482 | fail: |
8483 | return NULL__null; |
8484 | } |
8485 | |
8486 | |
8487 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_name__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8488 | PyObject *resultobj = 0; |
8489 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
8490 | std::string *arg2 = 0 ; |
8491 | void *argp1 = 0 ; |
8492 | int res1 = 0 ; |
8493 | int res2 = SWIG_OLDOBJ((0)) ; |
8494 | PyObject * obj0 = 0 ; |
8495 | PyObject * obj1 = 0 ; |
8496 | |
8497 | if (!PyArg_ParseTuple(args,(char *)"OO:GOptimizerPar_name",&obj0,&obj1)) SWIG_failgoto fail; |
8498 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
8499 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8500 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_name" "', argument " "1"" of type '" "GOptimizerPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_name" "', argument " "1"" of type '" "GOptimizerPar *""'"); goto fail; } while(0); |
8501 | } |
8502 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
8503 | { |
8504 | std::string *ptr = (std::string *)0; |
8505 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
8506 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8507 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GOptimizerPar_name" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GOptimizerPar_name" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
8508 | } |
8509 | if (!ptr) { |
8510 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GOptimizerPar_name" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GOptimizerPar_name" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
8511 | } |
8512 | arg2 = ptr; |
8513 | } |
8514 | { |
8515 | try { |
8516 | (arg1)->name((std::string const &)*arg2); |
8517 | } |
8518 | catch (const GException::out_of_range& e) { |
8519 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8520 | } |
8521 | catch (const GExceptionHandler& e) { |
8522 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8523 | } |
8524 | catch (const std::exception& e) { |
8525 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8526 | } |
8527 | } |
8528 | resultobj = SWIG_Py_Void(); |
8529 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8530 | return resultobj; |
8531 | fail: |
8532 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8533 | return NULL__null; |
8534 | } |
8535 | |
8536 | |
8537 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_name(PyObject *self, PyObject *args) { |
8538 | int argc; |
8539 | PyObject *argv[3]; |
8540 | int ii; |
8541 | |
8542 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
8543 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
8544 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
8545 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
8546 | } |
8547 | if (argc == 1) { |
8548 | int _v; |
8549 | void *vptr = 0; |
8550 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
8551 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8552 | if (_v) { |
8553 | return _wrap_GOptimizerPar_name__SWIG_0(self, args); |
8554 | } |
8555 | } |
8556 | if (argc == 2) { |
8557 | int _v; |
8558 | void *vptr = 0; |
8559 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
8560 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8561 | if (_v) { |
8562 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
8563 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8564 | if (_v) { |
8565 | return _wrap_GOptimizerPar_name__SWIG_1(self, args); |
8566 | } |
8567 | } |
8568 | } |
8569 | |
8570 | fail: |
8571 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GOptimizerPar_name'.\n" |
8572 | " Possible C/C++ prototypes are:\n" |
8573 | " GOptimizerPar::name() const\n" |
8574 | " GOptimizerPar::name(std::string const &)\n"); |
8575 | return 0; |
8576 | } |
8577 | |
8578 | |
8579 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_unit__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8580 | PyObject *resultobj = 0; |
8581 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
8582 | std::string *arg2 = 0 ; |
8583 | void *argp1 = 0 ; |
8584 | int res1 = 0 ; |
8585 | int res2 = SWIG_OLDOBJ((0)) ; |
8586 | PyObject * obj0 = 0 ; |
8587 | PyObject * obj1 = 0 ; |
8588 | |
8589 | if (!PyArg_ParseTuple(args,(char *)"OO:GOptimizerPar_unit",&obj0,&obj1)) SWIG_failgoto fail; |
8590 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
8591 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8592 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_unit" "', argument " "1"" of type '" "GOptimizerPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_unit" "', argument " "1"" of type '" "GOptimizerPar *""'"); goto fail; } while(0); |
8593 | } |
8594 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
8595 | { |
8596 | std::string *ptr = (std::string *)0; |
8597 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
8598 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8599 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GOptimizerPar_unit" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GOptimizerPar_unit" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
8600 | } |
8601 | if (!ptr) { |
8602 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GOptimizerPar_unit" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GOptimizerPar_unit" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
8603 | } |
8604 | arg2 = ptr; |
8605 | } |
8606 | { |
8607 | try { |
8608 | (arg1)->unit((std::string const &)*arg2); |
8609 | } |
8610 | catch (const GException::out_of_range& e) { |
8611 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8612 | } |
8613 | catch (const GExceptionHandler& e) { |
8614 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8615 | } |
8616 | catch (const std::exception& e) { |
8617 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8618 | } |
8619 | } |
8620 | resultobj = SWIG_Py_Void(); |
8621 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8622 | return resultobj; |
8623 | fail: |
8624 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8625 | return NULL__null; |
8626 | } |
8627 | |
8628 | |
8629 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_unit(PyObject *self, PyObject *args) { |
8630 | int argc; |
8631 | PyObject *argv[3]; |
8632 | int ii; |
8633 | |
8634 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
8635 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
8636 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
8637 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
8638 | } |
8639 | if (argc == 1) { |
8640 | int _v; |
8641 | void *vptr = 0; |
8642 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
8643 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8644 | if (_v) { |
8645 | return _wrap_GOptimizerPar_unit__SWIG_0(self, args); |
8646 | } |
8647 | } |
8648 | if (argc == 2) { |
8649 | int _v; |
8650 | void *vptr = 0; |
8651 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
8652 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8653 | if (_v) { |
8654 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
8655 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8656 | if (_v) { |
8657 | return _wrap_GOptimizerPar_unit__SWIG_1(self, args); |
8658 | } |
8659 | } |
8660 | } |
8661 | |
8662 | fail: |
8663 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GOptimizerPar_unit'.\n" |
8664 | " Possible C/C++ prototypes are:\n" |
8665 | " GOptimizerPar::unit() const\n" |
8666 | " GOptimizerPar::unit(std::string const &)\n"); |
8667 | return 0; |
8668 | } |
8669 | |
8670 | |
8671 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_autoscale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8672 | PyObject *resultobj = 0; |
8673 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
8674 | void *argp1 = 0 ; |
8675 | int res1 = 0 ; |
8676 | PyObject * obj0 = 0 ; |
8677 | |
8678 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerPar_autoscale",&obj0)) SWIG_failgoto fail; |
8679 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
8680 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8681 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_autoscale" "', argument " "1"" of type '" "GOptimizerPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_autoscale" "', argument " "1"" of type '" "GOptimizerPar *""'"); goto fail; } while(0); |
8682 | } |
8683 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
8684 | { |
8685 | try { |
8686 | (arg1)->autoscale(); |
8687 | } |
8688 | catch (const GException::out_of_range& e) { |
8689 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8690 | } |
8691 | catch (const GExceptionHandler& e) { |
8692 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8693 | } |
8694 | catch (const std::exception& e) { |
8695 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8696 | } |
8697 | } |
8698 | resultobj = SWIG_Py_Void(); |
8699 | return resultobj; |
8700 | fail: |
8701 | return NULL__null; |
8702 | } |
8703 | |
8704 | |
8705 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPar_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8706 | PyObject *resultobj = 0; |
8707 | GOptimizerPar *arg1 = (GOptimizerPar *) 0 ; |
8708 | void *argp1 = 0 ; |
8709 | int res1 = 0 ; |
8710 | PyObject * obj0 = 0 ; |
8711 | GOptimizerPar result; |
8712 | |
8713 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerPar_copy",&obj0)) SWIG_failgoto fail; |
8714 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
8715 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8716 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPar_copy" "', argument " "1"" of type '" "GOptimizerPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPar_copy" "', argument " "1"" of type '" "GOptimizerPar *""'"); goto fail; } while(0); |
8717 | } |
8718 | arg1 = reinterpret_cast< GOptimizerPar * >(argp1); |
8719 | { |
8720 | try { |
8721 | result = GOptimizerPar_copy(arg1); |
8722 | } |
8723 | catch (const GException::out_of_range& e) { |
8724 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8725 | } |
8726 | catch (const GExceptionHandler& e) { |
8727 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8728 | } |
8729 | catch (const std::exception& e) { |
8730 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8731 | } |
8732 | } |
8733 | resultobj = SWIG_NewPointerObj((new GOptimizerPar(static_cast< const GOptimizerPar& >(result))), SWIGTYPE_p_GOptimizerPar, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GOptimizerPar(static_cast < const GOptimizerPar& >(result))), swig_types[6], 0x1 | 0); |
8734 | return resultobj; |
8735 | fail: |
8736 | return NULL__null; |
8737 | } |
8738 | |
8739 | |
8740 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GOptimizerPar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8741 | PyObject *obj; |
8742 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
8743 | SWIG_TypeNewClientData(SWIGTYPE_p_GOptimizerParswig_types[6], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
8744 | return SWIG_Py_Void(); |
8745 | } |
8746 | |
8747 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GOptimizerPars__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8748 | PyObject *resultobj = 0; |
8749 | GOptimizerPars *result = 0 ; |
8750 | |
8751 | if (!PyArg_ParseTuple(args,(char *)":new_GOptimizerPars")) SWIG_failgoto fail; |
8752 | { |
8753 | try { |
8754 | result = (GOptimizerPars *)new GOptimizerPars(); |
8755 | } |
8756 | catch (const GException::out_of_range& e) { |
8757 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8758 | } |
8759 | catch (const GExceptionHandler& e) { |
8760 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8761 | } |
8762 | catch (const std::exception& e) { |
8763 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8764 | } |
8765 | } |
8766 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GOptimizerPars, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[7], (( 0x1 << 1) | 0x1) | 0); |
8767 | return resultobj; |
8768 | fail: |
8769 | return NULL__null; |
8770 | } |
8771 | |
8772 | |
8773 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GOptimizerPars__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8774 | PyObject *resultobj = 0; |
8775 | int *arg1 = 0 ; |
8776 | int temp1 ; |
8777 | int val1 ; |
8778 | int ecode1 = 0 ; |
8779 | PyObject * obj0 = 0 ; |
8780 | GOptimizerPars *result = 0 ; |
8781 | |
8782 | if (!PyArg_ParseTuple(args,(char *)"O:new_GOptimizerPars",&obj0)) SWIG_failgoto fail; |
8783 | ecode1 = SWIG_AsVal_int(obj0, &val1); |
8784 | if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) { |
8785 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GOptimizerPars" "', argument " "1"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_GOptimizerPars" "', argument " "1"" of type '" "int""'"); goto fail; } while(0); |
8786 | } |
8787 | temp1 = static_cast< int >(val1); |
8788 | arg1 = &temp1; |
8789 | { |
8790 | try { |
8791 | result = (GOptimizerPars *)new GOptimizerPars((int const &)*arg1); |
8792 | } |
8793 | catch (const GException::out_of_range& e) { |
8794 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8795 | } |
8796 | catch (const GExceptionHandler& e) { |
8797 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8798 | } |
8799 | catch (const std::exception& e) { |
8800 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8801 | } |
8802 | } |
8803 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GOptimizerPars, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[7], (( 0x1 << 1) | 0x1) | 0); |
8804 | return resultobj; |
8805 | fail: |
8806 | return NULL__null; |
8807 | } |
8808 | |
8809 | |
8810 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GOptimizerPars__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8811 | PyObject *resultobj = 0; |
8812 | GOptimizerPars *arg1 = 0 ; |
8813 | void *argp1 = 0 ; |
8814 | int res1 = 0 ; |
8815 | PyObject * obj0 = 0 ; |
8816 | GOptimizerPars *result = 0 ; |
8817 | |
8818 | if (!PyArg_ParseTuple(args,(char *)"O:new_GOptimizerPars",&obj0)) SWIG_failgoto fail; |
8819 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GOptimizerPars, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
8820 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8821 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GOptimizerPars" "', argument " "1"" of type '" "GOptimizerPars const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GOptimizerPars" "', argument " "1"" of type '" "GOptimizerPars const &""'"); goto fail; } while(0); |
8822 | } |
8823 | if (!argp1) { |
8824 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GOptimizerPars" "', argument " "1"" of type '" "GOptimizerPars const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GOptimizerPars" "', argument " "1"" of type '" "GOptimizerPars const &""'"); goto fail; } while(0); |
8825 | } |
8826 | arg1 = reinterpret_cast< GOptimizerPars * >(argp1); |
8827 | { |
8828 | try { |
8829 | result = (GOptimizerPars *)new GOptimizerPars((GOptimizerPars const &)*arg1); |
8830 | } |
8831 | catch (const GException::out_of_range& e) { |
8832 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8833 | } |
8834 | catch (const GExceptionHandler& e) { |
8835 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8836 | } |
8837 | catch (const std::exception& e) { |
8838 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8839 | } |
8840 | } |
8841 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GOptimizerPars, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[7], (( 0x1 << 1) | 0x1) | 0); |
8842 | return resultobj; |
8843 | fail: |
8844 | return NULL__null; |
8845 | } |
8846 | |
8847 | |
8848 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GOptimizerPars(PyObject *self, PyObject *args) { |
8849 | int argc; |
8850 | PyObject *argv[2]; |
8851 | int ii; |
8852 | |
8853 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
8854 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
8855 | for (ii = 0; (ii < 1) && (ii < argc); ii++) { |
8856 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
8857 | } |
8858 | if (argc == 0) { |
8859 | return _wrap_new_GOptimizerPars__SWIG_0(self, args); |
8860 | } |
8861 | if (argc == 1) { |
8862 | int _v; |
8863 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GOptimizerPars, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[7], 0, 0); |
8864 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8865 | if (_v) { |
8866 | return _wrap_new_GOptimizerPars__SWIG_2(self, args); |
8867 | } |
8868 | } |
8869 | if (argc == 1) { |
8870 | int _v; |
8871 | { |
8872 | int res = SWIG_AsVal_int(argv[0], NULL__null); |
8873 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8874 | } |
8875 | if (_v) { |
8876 | return _wrap_new_GOptimizerPars__SWIG_1(self, args); |
8877 | } |
8878 | } |
8879 | |
8880 | fail: |
8881 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GOptimizerPars'.\n" |
8882 | " Possible C/C++ prototypes are:\n" |
8883 | " GOptimizerPars::GOptimizerPars()\n" |
8884 | " GOptimizerPars::GOptimizerPars(int const &)\n" |
8885 | " GOptimizerPars::GOptimizerPars(GOptimizerPars const &)\n"); |
8886 | return 0; |
8887 | } |
8888 | |
8889 | |
8890 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GOptimizerPars(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8891 | PyObject *resultobj = 0; |
8892 | GOptimizerPars *arg1 = (GOptimizerPars *) 0 ; |
8893 | void *argp1 = 0 ; |
8894 | int res1 = 0 ; |
8895 | PyObject * obj0 = 0 ; |
8896 | |
8897 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GOptimizerPars",&obj0)) SWIG_failgoto fail; |
8898 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPars, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0x1 | 0, 0); |
8899 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8900 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GOptimizerPars" "', argument " "1"" of type '" "GOptimizerPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GOptimizerPars" "', argument " "1"" of type '" "GOptimizerPars *""'"); goto fail; } while(0 ); |
8901 | } |
8902 | arg1 = reinterpret_cast< GOptimizerPars * >(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; |
8919 | fail: |
8920 | return NULL__null; |
8921 | } |
8922 | |
8923 | |
8924 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPars_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8925 | PyObject *resultobj = 0; |
8926 | GOptimizerPars *arg1 = (GOptimizerPars *) 0 ; |
8927 | void *argp1 = 0 ; |
8928 | int res1 = 0 ; |
8929 | PyObject * obj0 = 0 ; |
8930 | |
8931 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerPars_clear",&obj0)) SWIG_failgoto fail; |
8932 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
8933 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8934 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPars_clear" "', argument " "1"" of type '" "GOptimizerPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPars_clear" "', argument " "1"" of type '" "GOptimizerPars *""'"); goto fail; } while(0 ); |
8935 | } |
8936 | arg1 = reinterpret_cast< GOptimizerPars * >(argp1); |
8937 | { |
8938 | try { |
8939 | (arg1)->clear(); |
8940 | } |
8941 | catch (const GException::out_of_range& e) { |
8942 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8943 | } |
8944 | catch (const GExceptionHandler& e) { |
8945 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8946 | } |
8947 | catch (const std::exception& e) { |
8948 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8949 | } |
8950 | } |
8951 | resultobj = SWIG_Py_Void(); |
8952 | return resultobj; |
8953 | fail: |
8954 | return NULL__null; |
8955 | } |
8956 | |
8957 | |
8958 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPars_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8959 | PyObject *resultobj = 0; |
8960 | GOptimizerPars *arg1 = (GOptimizerPars *) 0 ; |
8961 | void *argp1 = 0 ; |
8962 | int res1 = 0 ; |
8963 | PyObject * obj0 = 0 ; |
8964 | GOptimizerPars *result = 0 ; |
8965 | |
8966 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerPars_clone",&obj0)) SWIG_failgoto fail; |
8967 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
8968 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8969 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPars_clone" "', argument " "1"" of type '" "GOptimizerPars const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPars_clone" "', argument " "1"" of type '" "GOptimizerPars const *""'"); goto fail; } while (0); |
8970 | } |
8971 | arg1 = reinterpret_cast< GOptimizerPars * >(argp1); |
8972 | { |
8973 | try { |
8974 | result = (GOptimizerPars *)((GOptimizerPars const *)arg1)->clone(); |
8975 | } |
8976 | catch (const GException::out_of_range& e) { |
8977 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8978 | } |
8979 | catch (const GExceptionHandler& e) { |
8980 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8981 | } |
8982 | catch (const std::exception& e) { |
8983 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8984 | } |
8985 | } |
8986 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GOptimizerPars, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[7], 0 | 0); |
8987 | return resultobj; |
8988 | fail: |
8989 | return NULL__null; |
8990 | } |
8991 | |
8992 | |
8993 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPars_at(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8994 | PyObject *resultobj = 0; |
8995 | GOptimizerPars *arg1 = (GOptimizerPars *) 0 ; |
8996 | int *arg2 = 0 ; |
8997 | void *argp1 = 0 ; |
8998 | int res1 = 0 ; |
8999 | int temp2 ; |
9000 | int val2 ; |
9001 | int ecode2 = 0 ; |
9002 | PyObject * obj0 = 0 ; |
9003 | PyObject * obj1 = 0 ; |
9004 | GOptimizerPar *result = 0 ; |
9005 | |
9006 | if (!PyArg_ParseTuple(args,(char *)"OO:GOptimizerPars_at",&obj0,&obj1)) SWIG_failgoto fail; |
9007 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
9008 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9009 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPars_at" "', argument " "1"" of type '" "GOptimizerPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPars_at" "', argument " "1"" of type '" "GOptimizerPars *""'"); goto fail; } while(0 ); |
9010 | } |
9011 | arg1 = reinterpret_cast< GOptimizerPars * >(argp1); |
9012 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
9013 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
9014 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GOptimizerPars_at" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GOptimizerPars_at" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
9015 | } |
9016 | temp2 = static_cast< int >(val2); |
9017 | arg2 = &temp2; |
9018 | { |
9019 | try { |
9020 | result = (GOptimizerPar *)(arg1)->at((int const &)*arg2); |
9021 | } |
9022 | catch (const GException::out_of_range& e) { |
9023 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9024 | } |
9025 | catch (const GExceptionHandler& e) { |
9026 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9027 | } |
9028 | catch (const std::exception& e) { |
9029 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9030 | } |
9031 | } |
9032 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[6], 0 | 0); |
9033 | return resultobj; |
9034 | fail: |
9035 | return NULL__null; |
9036 | } |
9037 | |
9038 | |
9039 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPars_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9040 | PyObject *resultobj = 0; |
9041 | GOptimizerPars *arg1 = (GOptimizerPars *) 0 ; |
9042 | void *argp1 = 0 ; |
9043 | int res1 = 0 ; |
9044 | PyObject * obj0 = 0 ; |
9045 | int result; |
9046 | |
9047 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerPars_size",&obj0)) SWIG_failgoto fail; |
9048 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
9049 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9050 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPars_size" "', argument " "1"" of type '" "GOptimizerPars const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPars_size" "', argument " "1"" of type '" "GOptimizerPars const *""'"); goto fail; } while (0); |
9051 | } |
9052 | arg1 = reinterpret_cast< GOptimizerPars * >(argp1); |
9053 | { |
9054 | try { |
9055 | result = (int)((GOptimizerPars const *)arg1)->size(); |
9056 | } |
9057 | catch (const GException::out_of_range& e) { |
9058 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9059 | } |
9060 | catch (const GExceptionHandler& e) { |
9061 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9062 | } |
9063 | catch (const std::exception& e) { |
9064 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9065 | } |
9066 | } |
9067 | resultobj = SWIG_From_int(static_cast< int >(result)); |
9068 | return resultobj; |
9069 | fail: |
9070 | return NULL__null; |
9071 | } |
9072 | |
9073 | |
9074 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPars_isempty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9075 | PyObject *resultobj = 0; |
9076 | GOptimizerPars *arg1 = (GOptimizerPars *) 0 ; |
9077 | void *argp1 = 0 ; |
9078 | int res1 = 0 ; |
9079 | PyObject * obj0 = 0 ; |
9080 | bool result; |
9081 | |
9082 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerPars_isempty",&obj0)) SWIG_failgoto fail; |
9083 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
9084 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9085 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPars_isempty" "', argument " "1"" of type '" "GOptimizerPars const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPars_isempty" "', argument " "1"" of type '" "GOptimizerPars const *""'"); goto fail; } while (0); |
9086 | } |
9087 | arg1 = reinterpret_cast< GOptimizerPars * >(argp1); |
9088 | { |
9089 | try { |
9090 | result = (bool)((GOptimizerPars const *)arg1)->isempty(); |
9091 | } |
9092 | catch (const GException::out_of_range& e) { |
9093 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9094 | } |
9095 | catch (const GExceptionHandler& e) { |
9096 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9097 | } |
9098 | catch (const std::exception& e) { |
9099 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9100 | } |
9101 | } |
9102 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
9103 | return resultobj; |
9104 | fail: |
9105 | return NULL__null; |
9106 | } |
9107 | |
9108 | |
9109 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPars_nfree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9110 | PyObject *resultobj = 0; |
9111 | GOptimizerPars *arg1 = (GOptimizerPars *) 0 ; |
9112 | void *argp1 = 0 ; |
9113 | int res1 = 0 ; |
9114 | PyObject * obj0 = 0 ; |
9115 | int result; |
9116 | |
9117 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerPars_nfree",&obj0)) SWIG_failgoto fail; |
9118 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
9119 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9120 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPars_nfree" "', argument " "1"" of type '" "GOptimizerPars const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPars_nfree" "', argument " "1"" of type '" "GOptimizerPars const *""'"); goto fail; } while (0); |
9121 | } |
9122 | arg1 = reinterpret_cast< GOptimizerPars * >(argp1); |
9123 | { |
9124 | try { |
9125 | result = (int)((GOptimizerPars const *)arg1)->nfree(); |
9126 | } |
9127 | catch (const GException::out_of_range& e) { |
9128 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9129 | } |
9130 | catch (const GExceptionHandler& e) { |
9131 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9132 | } |
9133 | catch (const std::exception& e) { |
9134 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9135 | } |
9136 | } |
9137 | resultobj = SWIG_From_int(static_cast< int >(result)); |
9138 | return resultobj; |
9139 | fail: |
9140 | return NULL__null; |
9141 | } |
9142 | |
9143 | |
9144 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPars_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9145 | PyObject *resultobj = 0; |
9146 | GOptimizerPars *arg1 = (GOptimizerPars *) 0 ; |
9147 | int *arg2 = 0 ; |
9148 | GOptimizerPar *arg3 = 0 ; |
9149 | void *argp1 = 0 ; |
9150 | int res1 = 0 ; |
9151 | int temp2 ; |
9152 | int val2 ; |
9153 | int ecode2 = 0 ; |
9154 | void *argp3 = 0 ; |
9155 | int res3 = 0 ; |
9156 | PyObject * obj0 = 0 ; |
9157 | PyObject * obj1 = 0 ; |
9158 | PyObject * obj2 = 0 ; |
9159 | GOptimizerPar *result = 0 ; |
9160 | |
9161 | if (!PyArg_ParseTuple(args,(char *)"OOO:GOptimizerPars_set",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
9162 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
9163 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9164 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPars_set" "', argument " "1"" of type '" "GOptimizerPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPars_set" "', argument " "1"" of type '" "GOptimizerPars *""'"); goto fail; } while(0 ); |
9165 | } |
9166 | arg1 = reinterpret_cast< GOptimizerPars * >(argp1); |
9167 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
9168 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
9169 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GOptimizerPars_set" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GOptimizerPars_set" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
9170 | } |
9171 | temp2 = static_cast< int >(val2); |
9172 | arg2 = &temp2; |
9173 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GOptimizerPar, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[6], 0 | 0, 0); |
9174 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
9175 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GOptimizerPars_set" "', argument " "3"" of type '" "GOptimizerPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GOptimizerPars_set" "', argument " "3"" of type '" "GOptimizerPar const &""'"); goto fail; } while(0); |
9176 | } |
9177 | if (!argp3) { |
9178 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GOptimizerPars_set" "', argument " "3"" of type '" "GOptimizerPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GOptimizerPars_set" "', argument " "3"" of type '" "GOptimizerPar const &""'"); goto fail; } while(0); |
9179 | } |
9180 | arg3 = reinterpret_cast< GOptimizerPar * >(argp3); |
9181 | { |
9182 | try { |
9183 | result = (GOptimizerPar *)(arg1)->set((int const &)*arg2,(GOptimizerPar const &)*arg3); |
9184 | } |
9185 | catch (const GException::out_of_range& e) { |
9186 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9187 | } |
9188 | catch (const GExceptionHandler& e) { |
9189 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9190 | } |
9191 | catch (const std::exception& e) { |
9192 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9193 | } |
9194 | } |
9195 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[6], 0 | 0); |
9196 | return resultobj; |
9197 | fail: |
9198 | return NULL__null; |
9199 | } |
9200 | |
9201 | |
9202 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPars_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9203 | PyObject *resultobj = 0; |
9204 | GOptimizerPars *arg1 = (GOptimizerPars *) 0 ; |
9205 | std::string *arg2 = 0 ; |
9206 | GOptimizerPar *arg3 = 0 ; |
9207 | void *argp1 = 0 ; |
9208 | int res1 = 0 ; |
9209 | int res2 = SWIG_OLDOBJ((0)) ; |
9210 | void *argp3 = 0 ; |
9211 | int res3 = 0 ; |
9212 | PyObject * obj0 = 0 ; |
9213 | PyObject * obj1 = 0 ; |
9214 | PyObject * obj2 = 0 ; |
9215 | GOptimizerPar *result = 0 ; |
9216 | |
9217 | if (!PyArg_ParseTuple(args,(char *)"OOO:GOptimizerPars_set",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
9218 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
9219 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9220 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPars_set" "', argument " "1"" of type '" "GOptimizerPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPars_set" "', argument " "1"" of type '" "GOptimizerPars *""'"); goto fail; } while(0 ); |
9221 | } |
9222 | arg1 = reinterpret_cast< GOptimizerPars * >(argp1); |
9223 | { |
9224 | std::string *ptr = (std::string *)0; |
9225 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
9226 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9227 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GOptimizerPars_set" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GOptimizerPars_set" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
9228 | } |
9229 | if (!ptr) { |
9230 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GOptimizerPars_set" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GOptimizerPars_set" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
9231 | } |
9232 | arg2 = ptr; |
9233 | } |
9234 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GOptimizerPar, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[6], 0 | 0, 0); |
9235 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
9236 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GOptimizerPars_set" "', argument " "3"" of type '" "GOptimizerPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GOptimizerPars_set" "', argument " "3"" of type '" "GOptimizerPar const &""'"); goto fail; } while(0); |
9237 | } |
9238 | if (!argp3) { |
9239 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GOptimizerPars_set" "', argument " "3"" of type '" "GOptimizerPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GOptimizerPars_set" "', argument " "3"" of type '" "GOptimizerPar const &""'"); goto fail; } while(0); |
9240 | } |
9241 | arg3 = reinterpret_cast< GOptimizerPar * >(argp3); |
9242 | { |
9243 | try { |
9244 | result = (GOptimizerPar *)(arg1)->set((std::string const &)*arg2,(GOptimizerPar const &)*arg3); |
9245 | } |
9246 | catch (const GException::out_of_range& e) { |
9247 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9248 | } |
9249 | catch (const GExceptionHandler& e) { |
9250 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9251 | } |
9252 | catch (const std::exception& e) { |
9253 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9254 | } |
9255 | } |
9256 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[6], 0 | 0); |
9257 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9258 | return resultobj; |
9259 | fail: |
9260 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9261 | return NULL__null; |
9262 | } |
9263 | |
9264 | |
9265 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPars_set(PyObject *self, PyObject *args) { |
9266 | int argc; |
9267 | PyObject *argv[4]; |
9268 | int ii; |
9269 | |
9270 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
9271 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
9272 | for (ii = 0; (ii < 3) && (ii < argc); ii++) { |
9273 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
9274 | } |
9275 | if (argc == 3) { |
9276 | int _v; |
9277 | void *vptr = 0; |
9278 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPars, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7 ], 0, 0); |
9279 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9280 | if (_v) { |
9281 | { |
9282 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
9283 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9284 | } |
9285 | if (_v) { |
9286 | int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[6], 0, 0); |
9287 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9288 | if (_v) { |
9289 | return _wrap_GOptimizerPars_set__SWIG_0(self, args); |
9290 | } |
9291 | } |
9292 | } |
9293 | } |
9294 | if (argc == 3) { |
9295 | int _v; |
9296 | void *vptr = 0; |
9297 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPars, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7 ], 0, 0); |
9298 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9299 | if (_v) { |
9300 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
9301 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9302 | if (_v) { |
9303 | int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[6], 0, 0); |
9304 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9305 | if (_v) { |
9306 | return _wrap_GOptimizerPars_set__SWIG_1(self, args); |
9307 | } |
9308 | } |
9309 | } |
9310 | } |
9311 | |
9312 | fail: |
9313 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GOptimizerPars_set'.\n" |
9314 | " Possible C/C++ prototypes are:\n" |
9315 | " GOptimizerPars::set(int const &,GOptimizerPar const &)\n" |
9316 | " GOptimizerPars::set(std::string const &,GOptimizerPar const &)\n"); |
9317 | return 0; |
9318 | } |
9319 | |
9320 | |
9321 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPars_attach__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9322 | PyObject *resultobj = 0; |
9323 | GOptimizerPars *arg1 = (GOptimizerPars *) 0 ; |
9324 | GOptimizerPar *arg2 = (GOptimizerPar *) 0 ; |
9325 | void *argp1 = 0 ; |
9326 | int res1 = 0 ; |
9327 | void *argp2 = 0 ; |
9328 | int res2 = 0 ; |
9329 | PyObject * obj0 = 0 ; |
9330 | PyObject * obj1 = 0 ; |
9331 | |
9332 | if (!PyArg_ParseTuple(args,(char *)"OO:GOptimizerPars_attach",&obj0,&obj1)) SWIG_failgoto fail; |
9333 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
9334 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9335 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPars_attach" "', argument " "1"" of type '" "GOptimizerPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPars_attach" "', argument " "1"" of type '" "GOptimizerPars *""'"); goto fail; } while(0 ); |
9336 | } |
9337 | arg1 = reinterpret_cast< GOptimizerPars * >(argp1); |
9338 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[6], 0 | 0, 0); |
9339 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9340 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GOptimizerPars_attach" "', argument " "2"" of type '" "GOptimizerPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GOptimizerPars_attach" "', argument " "2"" of type '" "GOptimizerPar *""'"); goto fail; } while(0); |
9341 | } |
9342 | arg2 = reinterpret_cast< GOptimizerPar * >(argp2); |
9343 | { |
9344 | try { |
9345 | (arg1)->attach(arg2); |
9346 | } |
9347 | catch (const GException::out_of_range& e) { |
9348 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9349 | } |
9350 | catch (const GExceptionHandler& e) { |
9351 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9352 | } |
9353 | catch (const std::exception& e) { |
9354 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9355 | } |
9356 | } |
9357 | resultobj = SWIG_Py_Void(); |
9358 | return resultobj; |
9359 | fail: |
9360 | return NULL__null; |
9361 | } |
9362 | |
9363 | |
9364 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPars_attach__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9365 | PyObject *resultobj = 0; |
9366 | GOptimizerPars *arg1 = (GOptimizerPars *) 0 ; |
9367 | int *arg2 = 0 ; |
9368 | GOptimizerPar *arg3 = (GOptimizerPar *) 0 ; |
9369 | void *argp1 = 0 ; |
9370 | int res1 = 0 ; |
9371 | int temp2 ; |
9372 | int val2 ; |
9373 | int ecode2 = 0 ; |
9374 | void *argp3 = 0 ; |
9375 | int res3 = 0 ; |
9376 | PyObject * obj0 = 0 ; |
9377 | PyObject * obj1 = 0 ; |
9378 | PyObject * obj2 = 0 ; |
9379 | |
9380 | if (!PyArg_ParseTuple(args,(char *)"OOO:GOptimizerPars_attach",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
9381 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
9382 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9383 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPars_attach" "', argument " "1"" of type '" "GOptimizerPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPars_attach" "', argument " "1"" of type '" "GOptimizerPars *""'"); goto fail; } while(0 ); |
9384 | } |
9385 | arg1 = reinterpret_cast< GOptimizerPars * >(argp1); |
9386 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
9387 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
9388 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GOptimizerPars_attach" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GOptimizerPars_attach" "', argument " "2"" of type '" "int""'"); goto fail; } while (0); |
9389 | } |
9390 | temp2 = static_cast< int >(val2); |
9391 | arg2 = &temp2; |
9392 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[6], 0 | 0, 0); |
9393 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
9394 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GOptimizerPars_attach" "', argument " "3"" of type '" "GOptimizerPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GOptimizerPars_attach" "', argument " "3"" of type '" "GOptimizerPar *""'"); goto fail; } while(0); |
9395 | } |
9396 | arg3 = reinterpret_cast< GOptimizerPar * >(argp3); |
9397 | { |
9398 | try { |
9399 | (arg1)->attach((int const &)*arg2,arg3); |
9400 | } |
9401 | catch (const GException::out_of_range& e) { |
9402 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9403 | } |
9404 | catch (const GExceptionHandler& e) { |
9405 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9406 | } |
9407 | catch (const std::exception& e) { |
9408 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9409 | } |
9410 | } |
9411 | resultobj = SWIG_Py_Void(); |
9412 | return resultobj; |
9413 | fail: |
9414 | return NULL__null; |
9415 | } |
9416 | |
9417 | |
9418 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPars_attach__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9419 | PyObject *resultobj = 0; |
9420 | GOptimizerPars *arg1 = (GOptimizerPars *) 0 ; |
9421 | std::string *arg2 = 0 ; |
9422 | GOptimizerPar *arg3 = (GOptimizerPar *) 0 ; |
9423 | void *argp1 = 0 ; |
9424 | int res1 = 0 ; |
9425 | int res2 = SWIG_OLDOBJ((0)) ; |
9426 | void *argp3 = 0 ; |
9427 | int res3 = 0 ; |
9428 | PyObject * obj0 = 0 ; |
9429 | PyObject * obj1 = 0 ; |
9430 | PyObject * obj2 = 0 ; |
9431 | |
9432 | if (!PyArg_ParseTuple(args,(char *)"OOO:GOptimizerPars_attach",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
9433 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
9434 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9435 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPars_attach" "', argument " "1"" of type '" "GOptimizerPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPars_attach" "', argument " "1"" of type '" "GOptimizerPars *""'"); goto fail; } while(0 ); |
9436 | } |
9437 | arg1 = reinterpret_cast< GOptimizerPars * >(argp1); |
9438 | { |
9439 | std::string *ptr = (std::string *)0; |
9440 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
9441 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9442 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GOptimizerPars_attach" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GOptimizerPars_attach" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
9443 | } |
9444 | if (!ptr) { |
9445 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GOptimizerPars_attach" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GOptimizerPars_attach" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
9446 | } |
9447 | arg2 = ptr; |
9448 | } |
9449 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[6], 0 | 0, 0); |
9450 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
9451 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GOptimizerPars_attach" "', argument " "3"" of type '" "GOptimizerPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GOptimizerPars_attach" "', argument " "3"" of type '" "GOptimizerPar *""'"); goto fail; } while(0); |
9452 | } |
9453 | arg3 = reinterpret_cast< GOptimizerPar * >(argp3); |
9454 | { |
9455 | try { |
9456 | (arg1)->attach((std::string const &)*arg2,arg3); |
9457 | } |
9458 | catch (const GException::out_of_range& e) { |
9459 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9460 | } |
9461 | catch (const GExceptionHandler& e) { |
9462 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9463 | } |
9464 | catch (const std::exception& e) { |
9465 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9466 | } |
9467 | } |
9468 | resultobj = SWIG_Py_Void(); |
9469 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9470 | return resultobj; |
9471 | fail: |
9472 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9473 | return NULL__null; |
9474 | } |
9475 | |
9476 | |
9477 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPars_attach(PyObject *self, PyObject *args) { |
9478 | int argc; |
9479 | PyObject *argv[4]; |
9480 | int ii; |
9481 | |
9482 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
9483 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
9484 | for (ii = 0; (ii < 3) && (ii < argc); ii++) { |
9485 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
9486 | } |
9487 | if (argc == 2) { |
9488 | int _v; |
9489 | void *vptr = 0; |
9490 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPars, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7 ], 0, 0); |
9491 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9492 | if (_v) { |
9493 | void *vptr = 0; |
9494 | int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], &vptr, swig_types[6 ], 0, 0); |
9495 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9496 | if (_v) { |
9497 | return _wrap_GOptimizerPars_attach__SWIG_0(self, args); |
9498 | } |
9499 | } |
9500 | } |
9501 | if (argc == 3) { |
9502 | int _v; |
9503 | void *vptr = 0; |
9504 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPars, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7 ], 0, 0); |
9505 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9506 | if (_v) { |
9507 | { |
9508 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
9509 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9510 | } |
9511 | if (_v) { |
9512 | void *vptr = 0; |
9513 | int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], &vptr, swig_types[6 ], 0, 0); |
9514 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9515 | if (_v) { |
9516 | return _wrap_GOptimizerPars_attach__SWIG_1(self, args); |
9517 | } |
9518 | } |
9519 | } |
9520 | } |
9521 | if (argc == 3) { |
9522 | int _v; |
9523 | void *vptr = 0; |
9524 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPars, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7 ], 0, 0); |
9525 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9526 | if (_v) { |
9527 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
9528 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9529 | if (_v) { |
9530 | void *vptr = 0; |
9531 | int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], &vptr, swig_types[6 ], 0, 0); |
9532 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9533 | if (_v) { |
9534 | return _wrap_GOptimizerPars_attach__SWIG_2(self, args); |
9535 | } |
9536 | } |
9537 | } |
9538 | } |
9539 | |
9540 | fail: |
9541 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GOptimizerPars_attach'.\n" |
9542 | " Possible C/C++ prototypes are:\n" |
9543 | " GOptimizerPars::attach(GOptimizerPar *)\n" |
9544 | " GOptimizerPars::attach(int const &,GOptimizerPar *)\n" |
9545 | " GOptimizerPars::attach(std::string const &,GOptimizerPar *)\n"); |
9546 | return 0; |
9547 | } |
9548 | |
9549 | |
9550 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPars_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9551 | PyObject *resultobj = 0; |
9552 | GOptimizerPars *arg1 = (GOptimizerPars *) 0 ; |
9553 | int *arg2 = 0 ; |
9554 | GOptimizerPar *arg3 = 0 ; |
9555 | void *argp1 = 0 ; |
9556 | int res1 = 0 ; |
9557 | int temp2 ; |
9558 | int val2 ; |
9559 | int ecode2 = 0 ; |
9560 | void *argp3 = 0 ; |
9561 | int res3 = 0 ; |
9562 | PyObject * obj0 = 0 ; |
9563 | PyObject * obj1 = 0 ; |
9564 | PyObject * obj2 = 0 ; |
9565 | GOptimizerPar *result = 0 ; |
9566 | |
9567 | if (!PyArg_ParseTuple(args,(char *)"OOO:GOptimizerPars_insert",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
9568 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
9569 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9570 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPars_insert" "', argument " "1"" of type '" "GOptimizerPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPars_insert" "', argument " "1"" of type '" "GOptimizerPars *""'"); goto fail; } while(0 ); |
9571 | } |
9572 | arg1 = reinterpret_cast< GOptimizerPars * >(argp1); |
9573 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
9574 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
9575 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GOptimizerPars_insert" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GOptimizerPars_insert" "', argument " "2"" of type '" "int""'"); goto fail; } while (0); |
9576 | } |
9577 | temp2 = static_cast< int >(val2); |
9578 | arg2 = &temp2; |
9579 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GOptimizerPar, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[6], 0 | 0, 0); |
9580 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
9581 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GOptimizerPars_insert" "', argument " "3"" of type '" "GOptimizerPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GOptimizerPars_insert" "', argument " "3"" of type '" "GOptimizerPar const &""'"); goto fail; } while(0); |
9582 | } |
9583 | if (!argp3) { |
9584 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GOptimizerPars_insert" "', argument " "3"" of type '" "GOptimizerPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GOptimizerPars_insert" "', argument " "3"" of type '" "GOptimizerPar const &""'"); goto fail; } while(0); |
9585 | } |
9586 | arg3 = reinterpret_cast< GOptimizerPar * >(argp3); |
9587 | { |
9588 | try { |
9589 | result = (GOptimizerPar *)(arg1)->insert((int const &)*arg2,(GOptimizerPar const &)*arg3); |
9590 | } |
9591 | catch (const GException::out_of_range& e) { |
9592 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9593 | } |
9594 | catch (const GExceptionHandler& e) { |
9595 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9596 | } |
9597 | catch (const std::exception& e) { |
9598 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9599 | } |
9600 | } |
9601 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[6], 0 | 0); |
9602 | return resultobj; |
9603 | fail: |
9604 | return NULL__null; |
9605 | } |
9606 | |
9607 | |
9608 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPars_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9609 | PyObject *resultobj = 0; |
9610 | GOptimizerPars *arg1 = (GOptimizerPars *) 0 ; |
9611 | std::string *arg2 = 0 ; |
9612 | GOptimizerPar *arg3 = 0 ; |
9613 | void *argp1 = 0 ; |
9614 | int res1 = 0 ; |
9615 | int res2 = SWIG_OLDOBJ((0)) ; |
9616 | void *argp3 = 0 ; |
9617 | int res3 = 0 ; |
9618 | PyObject * obj0 = 0 ; |
9619 | PyObject * obj1 = 0 ; |
9620 | PyObject * obj2 = 0 ; |
9621 | GOptimizerPar *result = 0 ; |
9622 | |
9623 | if (!PyArg_ParseTuple(args,(char *)"OOO:GOptimizerPars_insert",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
9624 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
9625 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9626 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPars_insert" "', argument " "1"" of type '" "GOptimizerPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPars_insert" "', argument " "1"" of type '" "GOptimizerPars *""'"); goto fail; } while(0 ); |
9627 | } |
9628 | arg1 = reinterpret_cast< GOptimizerPars * >(argp1); |
9629 | { |
9630 | std::string *ptr = (std::string *)0; |
9631 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
9632 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9633 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GOptimizerPars_insert" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GOptimizerPars_insert" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
9634 | } |
9635 | if (!ptr) { |
9636 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GOptimizerPars_insert" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GOptimizerPars_insert" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
9637 | } |
9638 | arg2 = ptr; |
9639 | } |
9640 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GOptimizerPar, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[6], 0 | 0, 0); |
9641 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
9642 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GOptimizerPars_insert" "', argument " "3"" of type '" "GOptimizerPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GOptimizerPars_insert" "', argument " "3"" of type '" "GOptimizerPar const &""'"); goto fail; } while(0); |
9643 | } |
9644 | if (!argp3) { |
9645 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GOptimizerPars_insert" "', argument " "3"" of type '" "GOptimizerPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GOptimizerPars_insert" "', argument " "3"" of type '" "GOptimizerPar const &""'"); goto fail; } while(0); |
9646 | } |
9647 | arg3 = reinterpret_cast< GOptimizerPar * >(argp3); |
9648 | { |
9649 | try { |
9650 | result = (GOptimizerPar *)(arg1)->insert((std::string const &)*arg2,(GOptimizerPar const &)*arg3); |
9651 | } |
9652 | catch (const GException::out_of_range& e) { |
9653 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9654 | } |
9655 | catch (const GExceptionHandler& e) { |
9656 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9657 | } |
9658 | catch (const std::exception& e) { |
9659 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9660 | } |
9661 | } |
9662 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[6], 0 | 0); |
9663 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9664 | return resultobj; |
9665 | fail: |
9666 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9667 | return NULL__null; |
9668 | } |
9669 | |
9670 | |
9671 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPars_insert(PyObject *self, PyObject *args) { |
9672 | int argc; |
9673 | PyObject *argv[4]; |
9674 | int ii; |
9675 | |
9676 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
9677 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
9678 | for (ii = 0; (ii < 3) && (ii < argc); ii++) { |
9679 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
9680 | } |
9681 | if (argc == 3) { |
9682 | int _v; |
9683 | void *vptr = 0; |
9684 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPars, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7 ], 0, 0); |
9685 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9686 | if (_v) { |
9687 | { |
9688 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
9689 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9690 | } |
9691 | if (_v) { |
9692 | int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[6], 0, 0); |
9693 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9694 | if (_v) { |
9695 | return _wrap_GOptimizerPars_insert__SWIG_0(self, args); |
9696 | } |
9697 | } |
9698 | } |
9699 | } |
9700 | if (argc == 3) { |
9701 | int _v; |
9702 | void *vptr = 0; |
9703 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPars, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7 ], 0, 0); |
9704 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9705 | if (_v) { |
9706 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
9707 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9708 | if (_v) { |
9709 | int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[6], 0, 0); |
9710 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9711 | if (_v) { |
9712 | return _wrap_GOptimizerPars_insert__SWIG_1(self, args); |
9713 | } |
9714 | } |
9715 | } |
9716 | } |
9717 | |
9718 | fail: |
9719 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GOptimizerPars_insert'.\n" |
9720 | " Possible C/C++ prototypes are:\n" |
9721 | " GOptimizerPars::insert(int const &,GOptimizerPar const &)\n" |
9722 | " GOptimizerPars::insert(std::string const &,GOptimizerPar const &)\n"); |
9723 | return 0; |
9724 | } |
9725 | |
9726 | |
9727 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPars_remove__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9728 | PyObject *resultobj = 0; |
9729 | GOptimizerPars *arg1 = (GOptimizerPars *) 0 ; |
9730 | int *arg2 = 0 ; |
9731 | void *argp1 = 0 ; |
9732 | int res1 = 0 ; |
9733 | int temp2 ; |
9734 | int val2 ; |
9735 | int ecode2 = 0 ; |
9736 | PyObject * obj0 = 0 ; |
9737 | PyObject * obj1 = 0 ; |
9738 | |
9739 | if (!PyArg_ParseTuple(args,(char *)"OO:GOptimizerPars_remove",&obj0,&obj1)) SWIG_failgoto fail; |
9740 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
9741 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9742 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPars_remove" "', argument " "1"" of type '" "GOptimizerPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPars_remove" "', argument " "1"" of type '" "GOptimizerPars *""'"); goto fail; } while(0 ); |
9743 | } |
9744 | arg1 = reinterpret_cast< GOptimizerPars * >(argp1); |
9745 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
9746 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
9747 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GOptimizerPars_remove" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GOptimizerPars_remove" "', argument " "2"" of type '" "int""'"); goto fail; } while (0); |
9748 | } |
9749 | temp2 = static_cast< int >(val2); |
9750 | arg2 = &temp2; |
9751 | { |
9752 | try { |
9753 | (arg1)->remove((int const &)*arg2); |
9754 | } |
9755 | catch (const GException::out_of_range& e) { |
9756 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9757 | } |
9758 | catch (const GExceptionHandler& e) { |
9759 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9760 | } |
9761 | catch (const std::exception& e) { |
9762 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9763 | } |
9764 | } |
9765 | resultobj = SWIG_Py_Void(); |
9766 | return resultobj; |
9767 | fail: |
9768 | return NULL__null; |
9769 | } |
9770 | |
9771 | |
9772 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPars_remove__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9773 | PyObject *resultobj = 0; |
9774 | GOptimizerPars *arg1 = (GOptimizerPars *) 0 ; |
9775 | std::string *arg2 = 0 ; |
9776 | void *argp1 = 0 ; |
9777 | int res1 = 0 ; |
9778 | int res2 = SWIG_OLDOBJ((0)) ; |
9779 | PyObject * obj0 = 0 ; |
9780 | PyObject * obj1 = 0 ; |
9781 | |
9782 | if (!PyArg_ParseTuple(args,(char *)"OO:GOptimizerPars_remove",&obj0,&obj1)) SWIG_failgoto fail; |
9783 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
9784 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9785 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPars_remove" "', argument " "1"" of type '" "GOptimizerPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPars_remove" "', argument " "1"" of type '" "GOptimizerPars *""'"); goto fail; } while(0 ); |
9786 | } |
9787 | arg1 = reinterpret_cast< GOptimizerPars * >(argp1); |
9788 | { |
9789 | std::string *ptr = (std::string *)0; |
9790 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
9791 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9792 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GOptimizerPars_remove" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GOptimizerPars_remove" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
9793 | } |
9794 | if (!ptr) { |
9795 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GOptimizerPars_remove" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GOptimizerPars_remove" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
9796 | } |
9797 | arg2 = ptr; |
9798 | } |
9799 | { |
9800 | try { |
9801 | (arg1)->remove((std::string const &)*arg2); |
9802 | } |
9803 | catch (const GException::out_of_range& e) { |
9804 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9805 | } |
9806 | catch (const GExceptionHandler& e) { |
9807 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9808 | } |
9809 | catch (const std::exception& e) { |
9810 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9811 | } |
9812 | } |
9813 | resultobj = SWIG_Py_Void(); |
9814 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9815 | return resultobj; |
9816 | fail: |
9817 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9818 | return NULL__null; |
9819 | } |
9820 | |
9821 | |
9822 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPars_remove(PyObject *self, PyObject *args) { |
9823 | int argc; |
9824 | PyObject *argv[3]; |
9825 | int ii; |
9826 | |
9827 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
9828 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
9829 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
9830 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
9831 | } |
9832 | if (argc == 2) { |
9833 | int _v; |
9834 | void *vptr = 0; |
9835 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPars, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7 ], 0, 0); |
9836 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9837 | if (_v) { |
9838 | { |
9839 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
9840 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9841 | } |
9842 | if (_v) { |
9843 | return _wrap_GOptimizerPars_remove__SWIG_0(self, args); |
9844 | } |
9845 | } |
9846 | } |
9847 | if (argc == 2) { |
9848 | int _v; |
9849 | void *vptr = 0; |
9850 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPars, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7 ], 0, 0); |
9851 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9852 | if (_v) { |
9853 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
9854 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9855 | if (_v) { |
9856 | return _wrap_GOptimizerPars_remove__SWIG_1(self, args); |
9857 | } |
9858 | } |
9859 | } |
9860 | |
9861 | fail: |
9862 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GOptimizerPars_remove'.\n" |
9863 | " Possible C/C++ prototypes are:\n" |
9864 | " GOptimizerPars::remove(int const &)\n" |
9865 | " GOptimizerPars::remove(std::string const &)\n"); |
9866 | return 0; |
9867 | } |
9868 | |
9869 | |
9870 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPars_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9871 | PyObject *resultobj = 0; |
9872 | GOptimizerPars *arg1 = (GOptimizerPars *) 0 ; |
9873 | int *arg2 = 0 ; |
9874 | void *argp1 = 0 ; |
9875 | int res1 = 0 ; |
9876 | int temp2 ; |
9877 | int val2 ; |
9878 | int ecode2 = 0 ; |
9879 | PyObject * obj0 = 0 ; |
9880 | PyObject * obj1 = 0 ; |
9881 | |
9882 | if (!PyArg_ParseTuple(args,(char *)"OO:GOptimizerPars_reserve",&obj0,&obj1)) SWIG_failgoto fail; |
9883 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
9884 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9885 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPars_reserve" "', argument " "1"" of type '" "GOptimizerPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPars_reserve" "', argument " "1"" of type '" "GOptimizerPars *""'"); goto fail; } while(0 ); |
9886 | } |
9887 | arg1 = reinterpret_cast< GOptimizerPars * >(argp1); |
9888 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
9889 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
9890 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GOptimizerPars_reserve" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GOptimizerPars_reserve" "', argument " "2"" of type '" "int""'"); goto fail; } while (0); |
9891 | } |
9892 | temp2 = static_cast< int >(val2); |
9893 | arg2 = &temp2; |
9894 | { |
9895 | try { |
9896 | (arg1)->reserve((int const &)*arg2); |
9897 | } |
9898 | catch (const GException::out_of_range& e) { |
9899 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9900 | } |
9901 | catch (const GExceptionHandler& e) { |
9902 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9903 | } |
9904 | catch (const std::exception& e) { |
9905 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9906 | } |
9907 | } |
9908 | resultobj = SWIG_Py_Void(); |
9909 | return resultobj; |
9910 | fail: |
9911 | return NULL__null; |
9912 | } |
9913 | |
9914 | |
9915 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPars_extend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9916 | PyObject *resultobj = 0; |
9917 | GOptimizerPars *arg1 = (GOptimizerPars *) 0 ; |
9918 | GOptimizerPars *arg2 = 0 ; |
9919 | void *argp1 = 0 ; |
9920 | int res1 = 0 ; |
9921 | void *argp2 = 0 ; |
9922 | int res2 = 0 ; |
9923 | PyObject * obj0 = 0 ; |
9924 | PyObject * obj1 = 0 ; |
9925 | |
9926 | if (!PyArg_ParseTuple(args,(char *)"OO:GOptimizerPars_extend",&obj0,&obj1)) SWIG_failgoto fail; |
9927 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
9928 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9929 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPars_extend" "', argument " "1"" of type '" "GOptimizerPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPars_extend" "', argument " "1"" of type '" "GOptimizerPars *""'"); goto fail; } while(0 ); |
9930 | } |
9931 | arg1 = reinterpret_cast< GOptimizerPars * >(argp1); |
9932 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GOptimizerPars, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[7], 0 | 0, 0); |
9933 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9934 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GOptimizerPars_extend" "', argument " "2"" of type '" "GOptimizerPars const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GOptimizerPars_extend" "', argument " "2"" of type '" "GOptimizerPars const &""'"); goto fail; } while(0); |
9935 | } |
9936 | if (!argp2) { |
9937 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GOptimizerPars_extend" "', argument " "2"" of type '" "GOptimizerPars const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GOptimizerPars_extend" "', argument " "2"" of type '" "GOptimizerPars const &""'"); goto fail; } while(0); |
9938 | } |
9939 | arg2 = reinterpret_cast< GOptimizerPars * >(argp2); |
9940 | { |
9941 | try { |
9942 | (arg1)->extend((GOptimizerPars const &)*arg2); |
9943 | } |
9944 | catch (const GException::out_of_range& e) { |
9945 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9946 | } |
9947 | catch (const GExceptionHandler& e) { |
9948 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9949 | } |
9950 | catch (const std::exception& e) { |
9951 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9952 | } |
9953 | } |
9954 | resultobj = SWIG_Py_Void(); |
9955 | return resultobj; |
9956 | fail: |
9957 | return NULL__null; |
9958 | } |
9959 | |
9960 | |
9961 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPars_contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9962 | PyObject *resultobj = 0; |
9963 | GOptimizerPars *arg1 = (GOptimizerPars *) 0 ; |
9964 | std::string *arg2 = 0 ; |
9965 | void *argp1 = 0 ; |
9966 | int res1 = 0 ; |
9967 | int res2 = SWIG_OLDOBJ((0)) ; |
9968 | PyObject * obj0 = 0 ; |
9969 | PyObject * obj1 = 0 ; |
9970 | bool result; |
9971 | |
9972 | if (!PyArg_ParseTuple(args,(char *)"OO:GOptimizerPars_contains",&obj0,&obj1)) SWIG_failgoto fail; |
9973 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
9974 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9975 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPars_contains" "', argument " "1"" of type '" "GOptimizerPars const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPars_contains" "', argument " "1"" of type '" "GOptimizerPars const *""'"); goto fail; } while (0); |
9976 | } |
9977 | arg1 = reinterpret_cast< GOptimizerPars * >(argp1); |
9978 | { |
9979 | std::string *ptr = (std::string *)0; |
9980 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
9981 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9982 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GOptimizerPars_contains" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GOptimizerPars_contains" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
9983 | } |
9984 | if (!ptr) { |
9985 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GOptimizerPars_contains" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GOptimizerPars_contains" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
9986 | } |
9987 | arg2 = ptr; |
9988 | } |
9989 | { |
9990 | try { |
9991 | result = (bool)((GOptimizerPars const *)arg1)->contains((std::string const &)*arg2); |
9992 | } |
9993 | catch (const GException::out_of_range& e) { |
9994 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9995 | } |
9996 | catch (const GExceptionHandler& e) { |
9997 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9998 | } |
9999 | catch (const std::exception& e) { |
10000 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10001 | } |
10002 | } |
10003 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
10004 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
10005 | return resultobj; |
10006 | fail: |
10007 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
10008 | return NULL__null; |
10009 | } |
10010 | |
10011 | |
10012 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPars___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10013 | PyObject *resultobj = 0; |
10014 | GOptimizerPars *arg1 = (GOptimizerPars *) 0 ; |
10015 | int *arg2 = 0 ; |
10016 | void *argp1 = 0 ; |
10017 | int res1 = 0 ; |
10018 | int temp2 ; |
10019 | int val2 ; |
10020 | int ecode2 = 0 ; |
10021 | PyObject * obj0 = 0 ; |
10022 | PyObject * obj1 = 0 ; |
10023 | GOptimizerPar *result = 0 ; |
10024 | |
10025 | if (!PyArg_ParseTuple(args,(char *)"OO:GOptimizerPars___getitem__",&obj0,&obj1)) SWIG_failgoto fail; |
10026 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
10027 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10028 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPars___getitem__" "', argument " "1"" of type '" "GOptimizerPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPars___getitem__" "', argument " "1"" of type '" "GOptimizerPars *""'"); goto fail ; } while(0); |
10029 | } |
10030 | arg1 = reinterpret_cast< GOptimizerPars * >(argp1); |
10031 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
10032 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
10033 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GOptimizerPars___getitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GOptimizerPars___getitem__" "', argument " "2"" of type '" "int""'"); goto fail; } while (0); |
10034 | } |
10035 | temp2 = static_cast< int >(val2); |
10036 | arg2 = &temp2; |
10037 | { |
10038 | try { |
10039 | result = (GOptimizerPar *)GOptimizerPars___getitem____SWIG_0(arg1,(int const &)*arg2); |
10040 | } |
10041 | catch (const GException::out_of_range& e) { |
10042 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10043 | } |
10044 | catch (const GExceptionHandler& e) { |
10045 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10046 | } |
10047 | catch (const std::exception& e) { |
10048 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10049 | } |
10050 | } |
10051 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[6], 0 | 0); |
10052 | return resultobj; |
10053 | fail: |
10054 | return NULL__null; |
10055 | } |
10056 | |
10057 | |
10058 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPars___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10059 | PyObject *resultobj = 0; |
10060 | GOptimizerPars *arg1 = (GOptimizerPars *) 0 ; |
10061 | std::string *arg2 = 0 ; |
10062 | void *argp1 = 0 ; |
10063 | int res1 = 0 ; |
10064 | int res2 = SWIG_OLDOBJ((0)) ; |
10065 | PyObject * obj0 = 0 ; |
10066 | PyObject * obj1 = 0 ; |
10067 | GOptimizerPar *result = 0 ; |
10068 | |
10069 | if (!PyArg_ParseTuple(args,(char *)"OO:GOptimizerPars___getitem__",&obj0,&obj1)) SWIG_failgoto fail; |
10070 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
10071 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10072 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPars___getitem__" "', argument " "1"" of type '" "GOptimizerPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPars___getitem__" "', argument " "1"" of type '" "GOptimizerPars *""'"); goto fail ; } while(0); |
10073 | } |
10074 | arg1 = reinterpret_cast< GOptimizerPars * >(argp1); |
10075 | { |
10076 | std::string *ptr = (std::string *)0; |
10077 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
10078 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
10079 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GOptimizerPars___getitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GOptimizerPars___getitem__" "', argument " "2"" of type '" "std::string const &""'") ; goto fail; } while(0); |
10080 | } |
10081 | if (!ptr) { |
10082 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GOptimizerPars___getitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GOptimizerPars___getitem__" "', argument " "2" " of type '" "std::string const &""'"); goto fail; } while (0); |
10083 | } |
10084 | arg2 = ptr; |
10085 | } |
10086 | { |
10087 | try { |
10088 | result = (GOptimizerPar *)GOptimizerPars___getitem____SWIG_1(arg1,(std::string const &)*arg2); |
10089 | } |
10090 | catch (const GException::out_of_range& e) { |
10091 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10092 | } |
10093 | catch (const GExceptionHandler& e) { |
10094 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10095 | } |
10096 | catch (const std::exception& e) { |
10097 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10098 | } |
10099 | } |
10100 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[6], 0 | 0); |
10101 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
10102 | return resultobj; |
10103 | fail: |
10104 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
10105 | return NULL__null; |
10106 | } |
10107 | |
10108 | |
10109 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPars___getitem__(PyObject *self, PyObject *args) { |
10110 | int argc; |
10111 | PyObject *argv[3]; |
10112 | int ii; |
10113 | |
10114 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
10115 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
10116 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
10117 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
10118 | } |
10119 | if (argc == 2) { |
10120 | int _v; |
10121 | void *vptr = 0; |
10122 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPars, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7 ], 0, 0); |
10123 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10124 | if (_v) { |
10125 | { |
10126 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
10127 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10128 | } |
10129 | if (_v) { |
10130 | return _wrap_GOptimizerPars___getitem____SWIG_0(self, args); |
10131 | } |
10132 | } |
10133 | } |
10134 | if (argc == 2) { |
10135 | int _v; |
10136 | void *vptr = 0; |
10137 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPars, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7 ], 0, 0); |
10138 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10139 | if (_v) { |
10140 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
10141 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10142 | if (_v) { |
10143 | return _wrap_GOptimizerPars___getitem____SWIG_1(self, args); |
10144 | } |
10145 | } |
10146 | } |
10147 | |
10148 | fail: |
10149 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GOptimizerPars___getitem__'.\n" |
10150 | " Possible C/C++ prototypes are:\n" |
10151 | " GOptimizerPars::__getitem__(int const &)\n" |
10152 | " GOptimizerPars::__getitem__(std::string const &)\n"); |
10153 | return 0; |
10154 | } |
10155 | |
10156 | |
10157 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPars___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10158 | PyObject *resultobj = 0; |
10159 | GOptimizerPars *arg1 = (GOptimizerPars *) 0 ; |
10160 | int *arg2 = 0 ; |
10161 | GOptimizerPar *arg3 = (GOptimizerPar *) 0 ; |
10162 | void *argp1 = 0 ; |
10163 | int res1 = 0 ; |
10164 | int temp2 ; |
10165 | int val2 ; |
10166 | int ecode2 = 0 ; |
10167 | void *argp3 = 0 ; |
10168 | int res3 = 0 ; |
10169 | PyObject * obj0 = 0 ; |
10170 | PyObject * obj1 = 0 ; |
10171 | PyObject * obj2 = 0 ; |
10172 | |
10173 | if (!PyArg_ParseTuple(args,(char *)"OOO:GOptimizerPars___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
10174 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
10175 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10176 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPars___setitem__" "', argument " "1"" of type '" "GOptimizerPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPars___setitem__" "', argument " "1"" of type '" "GOptimizerPars *""'"); goto fail ; } while(0); |
10177 | } |
10178 | arg1 = reinterpret_cast< GOptimizerPars * >(argp1); |
10179 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
10180 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
10181 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GOptimizerPars___setitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GOptimizerPars___setitem__" "', argument " "2"" of type '" "int""'"); goto fail; } while (0); |
10182 | } |
10183 | temp2 = static_cast< int >(val2); |
10184 | arg2 = &temp2; |
10185 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[6], 0 | 0, 0); |
10186 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
10187 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GOptimizerPars___setitem__" "', argument " "3"" of type '" "GOptimizerPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GOptimizerPars___setitem__" "', argument " "3"" of type '" "GOptimizerPar *""'"); goto fail ; } while(0); |
10188 | } |
10189 | arg3 = reinterpret_cast< GOptimizerPar * >(argp3); |
10190 | { |
10191 | try { |
10192 | GOptimizerPars___setitem____SWIG_0(arg1,(int const &)*arg2,arg3); |
10193 | } |
10194 | catch (const GException::out_of_range& e) { |
10195 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10196 | } |
10197 | catch (const GExceptionHandler& e) { |
10198 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10199 | } |
10200 | catch (const std::exception& e) { |
10201 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10202 | } |
10203 | } |
10204 | resultobj = SWIG_Py_Void(); |
10205 | return resultobj; |
10206 | fail: |
10207 | return NULL__null; |
10208 | } |
10209 | |
10210 | |
10211 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPars___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10212 | PyObject *resultobj = 0; |
10213 | GOptimizerPars *arg1 = (GOptimizerPars *) 0 ; |
10214 | std::string *arg2 = 0 ; |
10215 | GOptimizerPar *arg3 = (GOptimizerPar *) 0 ; |
10216 | void *argp1 = 0 ; |
10217 | int res1 = 0 ; |
10218 | int res2 = SWIG_OLDOBJ((0)) ; |
10219 | void *argp3 = 0 ; |
10220 | int res3 = 0 ; |
10221 | PyObject * obj0 = 0 ; |
10222 | PyObject * obj1 = 0 ; |
10223 | PyObject * obj2 = 0 ; |
10224 | |
10225 | if (!PyArg_ParseTuple(args,(char *)"OOO:GOptimizerPars___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
10226 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
10227 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10228 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPars___setitem__" "', argument " "1"" of type '" "GOptimizerPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPars___setitem__" "', argument " "1"" of type '" "GOptimizerPars *""'"); goto fail ; } while(0); |
10229 | } |
10230 | arg1 = reinterpret_cast< GOptimizerPars * >(argp1); |
10231 | { |
10232 | std::string *ptr = (std::string *)0; |
10233 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
10234 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
10235 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GOptimizerPars___setitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GOptimizerPars___setitem__" "', argument " "2"" of type '" "std::string const &""'") ; goto fail; } while(0); |
10236 | } |
10237 | if (!ptr) { |
10238 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GOptimizerPars___setitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GOptimizerPars___setitem__" "', argument " "2" " of type '" "std::string const &""'"); goto fail; } while (0); |
10239 | } |
10240 | arg2 = ptr; |
10241 | } |
10242 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_GOptimizerPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[6], 0 | 0, 0); |
10243 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
10244 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GOptimizerPars___setitem__" "', argument " "3"" of type '" "GOptimizerPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GOptimizerPars___setitem__" "', argument " "3"" of type '" "GOptimizerPar *""'"); goto fail ; } while(0); |
10245 | } |
10246 | arg3 = reinterpret_cast< GOptimizerPar * >(argp3); |
10247 | { |
10248 | try { |
10249 | GOptimizerPars___setitem____SWIG_1(arg1,(std::string const &)*arg2,arg3); |
10250 | } |
10251 | catch (const GException::out_of_range& e) { |
10252 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10253 | } |
10254 | catch (const GExceptionHandler& e) { |
10255 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10256 | } |
10257 | catch (const std::exception& e) { |
10258 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10259 | } |
10260 | } |
10261 | resultobj = SWIG_Py_Void(); |
10262 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
10263 | return resultobj; |
10264 | fail: |
10265 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
10266 | return NULL__null; |
10267 | } |
10268 | |
10269 | |
10270 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPars___setitem__(PyObject *self, PyObject *args) { |
10271 | int argc; |
10272 | PyObject *argv[4]; |
10273 | int ii; |
10274 | |
10275 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
10276 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
10277 | for (ii = 0; (ii < 3) && (ii < argc); ii++) { |
10278 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
10279 | } |
10280 | if (argc == 3) { |
10281 | int _v; |
10282 | void *vptr = 0; |
10283 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPars, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7 ], 0, 0); |
10284 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10285 | if (_v) { |
10286 | { |
10287 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
10288 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10289 | } |
10290 | if (_v) { |
10291 | void *vptr = 0; |
10292 | int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], &vptr, swig_types[6 ], 0, 0); |
10293 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10294 | if (_v) { |
10295 | return _wrap_GOptimizerPars___setitem____SWIG_0(self, args); |
10296 | } |
10297 | } |
10298 | } |
10299 | } |
10300 | if (argc == 3) { |
10301 | int _v; |
10302 | void *vptr = 0; |
10303 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GOptimizerPars, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7 ], 0, 0); |
10304 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10305 | if (_v) { |
10306 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
10307 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10308 | if (_v) { |
10309 | void *vptr = 0; |
10310 | int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_GOptimizerPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], &vptr, swig_types[6 ], 0, 0); |
10311 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10312 | if (_v) { |
10313 | return _wrap_GOptimizerPars___setitem____SWIG_1(self, args); |
10314 | } |
10315 | } |
10316 | } |
10317 | } |
10318 | |
10319 | fail: |
10320 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GOptimizerPars___setitem__'.\n" |
10321 | " Possible C/C++ prototypes are:\n" |
10322 | " GOptimizerPars::__setitem__(int const &,GOptimizerPar *)\n" |
10323 | " GOptimizerPars::__setitem__(std::string const &,GOptimizerPar *)\n"); |
10324 | return 0; |
10325 | } |
10326 | |
10327 | |
10328 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GOptimizerPars_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10329 | PyObject *resultobj = 0; |
10330 | GOptimizerPars *arg1 = (GOptimizerPars *) 0 ; |
10331 | void *argp1 = 0 ; |
10332 | int res1 = 0 ; |
10333 | PyObject * obj0 = 0 ; |
10334 | GOptimizerPars result; |
10335 | |
10336 | if (!PyArg_ParseTuple(args,(char *)"O:GOptimizerPars_copy",&obj0)) SWIG_failgoto fail; |
10337 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GOptimizerPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
10338 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10339 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GOptimizerPars_copy" "', argument " "1"" of type '" "GOptimizerPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GOptimizerPars_copy" "', argument " "1"" of type '" "GOptimizerPars *""'"); goto fail; } while(0 ); |
10340 | } |
10341 | arg1 = reinterpret_cast< GOptimizerPars * >(argp1); |
10342 | { |
10343 | try { |
10344 | result = GOptimizerPars_copy(arg1); |
10345 | } |
10346 | catch (const GException::out_of_range& e) { |
10347 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10348 | } |
10349 | catch (const GExceptionHandler& e) { |
10350 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10351 | } |
10352 | catch (const std::exception& e) { |
10353 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10354 | } |
10355 | } |
10356 | 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[7], 0x1 | 0); |
10357 | return resultobj; |
10358 | fail: |
10359 | return NULL__null; |
10360 | } |
10361 | |
10362 | |
10363 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GOptimizerPars_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10364 | PyObject *obj; |
10365 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
10366 | SWIG_TypeNewClientData(SWIGTYPE_p_GOptimizerParsswig_types[7], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
10367 | return SWIG_Py_Void(); |
10368 | } |
10369 | |
10370 | static PyMethodDef SwigMethods[] = { |
10371 | { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O0x0008, NULL__null}, |
10372 | { (char *)"delete_SwigPyIterator", _wrap_delete_SwigPyIterator, METH_VARARGS0x0001, (char *)"delete_SwigPyIterator(SwigPyIterator self)"}, |
10373 | { (char *)"SwigPyIterator_value", _wrap_SwigPyIterator_value, METH_VARARGS0x0001, (char *)"SwigPyIterator_value(SwigPyIterator self) -> PyObject *"}, |
10374 | { (char *)"SwigPyIterator_incr", _wrap_SwigPyIterator_incr, METH_VARARGS0x0001, (char *)"\n" |
10375 | "incr(size_t n=1) -> SwigPyIterator\n" |
10376 | "SwigPyIterator_incr(SwigPyIterator self) -> SwigPyIterator\n" |
10377 | ""}, |
10378 | { (char *)"SwigPyIterator_decr", _wrap_SwigPyIterator_decr, METH_VARARGS0x0001, (char *)"\n" |
10379 | "decr(size_t n=1) -> SwigPyIterator\n" |
10380 | "SwigPyIterator_decr(SwigPyIterator self) -> SwigPyIterator\n" |
10381 | ""}, |
10382 | { (char *)"SwigPyIterator_distance", _wrap_SwigPyIterator_distance, METH_VARARGS0x0001, (char *)"SwigPyIterator_distance(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t"}, |
10383 | { (char *)"SwigPyIterator_equal", _wrap_SwigPyIterator_equal, METH_VARARGS0x0001, (char *)"SwigPyIterator_equal(SwigPyIterator self, SwigPyIterator x) -> bool"}, |
10384 | { (char *)"SwigPyIterator_copy", _wrap_SwigPyIterator_copy, METH_VARARGS0x0001, (char *)"SwigPyIterator_copy(SwigPyIterator self) -> SwigPyIterator"}, |
10385 | { (char *)"SwigPyIterator_next", _wrap_SwigPyIterator_next, METH_VARARGS0x0001, (char *)"SwigPyIterator_next(SwigPyIterator self) -> PyObject *"}, |
10386 | { (char *)"SwigPyIterator___next__", _wrap_SwigPyIterator___next__, METH_VARARGS0x0001, (char *)"SwigPyIterator___next__(SwigPyIterator self) -> PyObject *"}, |
10387 | { (char *)"SwigPyIterator_previous", _wrap_SwigPyIterator_previous, METH_VARARGS0x0001, (char *)"SwigPyIterator_previous(SwigPyIterator self) -> PyObject *"}, |
10388 | { (char *)"SwigPyIterator_advance", _wrap_SwigPyIterator_advance, METH_VARARGS0x0001, (char *)"SwigPyIterator_advance(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"}, |
10389 | { (char *)"SwigPyIterator___eq__", _wrap_SwigPyIterator___eq__, METH_VARARGS0x0001, (char *)"SwigPyIterator___eq__(SwigPyIterator self, SwigPyIterator x) -> bool"}, |
10390 | { (char *)"SwigPyIterator___ne__", _wrap_SwigPyIterator___ne__, METH_VARARGS0x0001, (char *)"SwigPyIterator___ne__(SwigPyIterator self, SwigPyIterator x) -> bool"}, |
10391 | { (char *)"SwigPyIterator___iadd__", _wrap_SwigPyIterator___iadd__, METH_VARARGS0x0001, (char *)"SwigPyIterator___iadd__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"}, |
10392 | { (char *)"SwigPyIterator___isub__", _wrap_SwigPyIterator___isub__, METH_VARARGS0x0001, (char *)"SwigPyIterator___isub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"}, |
10393 | { (char *)"SwigPyIterator___add__", _wrap_SwigPyIterator___add__, METH_VARARGS0x0001, (char *)"SwigPyIterator___add__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"}, |
10394 | { (char *)"SwigPyIterator___sub__", _wrap_SwigPyIterator___sub__, METH_VARARGS0x0001, (char *)"\n" |
10395 | "__sub__(ptrdiff_t n) -> SwigPyIterator\n" |
10396 | "SwigPyIterator___sub__(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t\n" |
10397 | ""}, |
10398 | { (char *)"SwigPyIterator_swigregister", SwigPyIterator_swigregister, METH_VARARGS0x0001, NULL__null}, |
10399 | { (char *)"delete_GOptimizer", _wrap_delete_GOptimizer, METH_VARARGS0x0001, (char *)"delete_GOptimizer(GOptimizer self)"}, |
10400 | { (char *)"GOptimizer_clear", _wrap_GOptimizer_clear, METH_VARARGS0x0001, (char *)"GOptimizer_clear(GOptimizer self)"}, |
10401 | { (char *)"GOptimizer_clone", _wrap_GOptimizer_clone, METH_VARARGS0x0001, (char *)"GOptimizer_clone(GOptimizer self) -> GOptimizer"}, |
10402 | { (char *)"GOptimizer_optimize", _wrap_GOptimizer_optimize, METH_VARARGS0x0001, (char *)"GOptimizer_optimize(GOptimizer self, GOptimizerFunction & fct, GOptimizerPars pars)"}, |
10403 | { (char *)"GOptimizer_value", _wrap_GOptimizer_value, METH_VARARGS0x0001, (char *)"GOptimizer_value(GOptimizer self) -> double"}, |
10404 | { (char *)"GOptimizer_status", _wrap_GOptimizer_status, METH_VARARGS0x0001, (char *)"GOptimizer_status(GOptimizer self) -> int"}, |
10405 | { (char *)"GOptimizer_iter", _wrap_GOptimizer_iter, METH_VARARGS0x0001, (char *)"GOptimizer_iter(GOptimizer self) -> int"}, |
10406 | { (char *)"GOptimizer_swigregister", GOptimizer_swigregister, METH_VARARGS0x0001, NULL__null}, |
10407 | { (char *)"new_GOptimizerLM", _wrap_new_GOptimizerLM, METH_VARARGS0x0001, (char *)"\n" |
10408 | "GOptimizerLM()\n" |
10409 | "GOptimizerLM(GLog & log)\n" |
10410 | "new_GOptimizerLM(GOptimizerLM opt) -> GOptimizerLM\n" |
10411 | ""}, |
10412 | { (char *)"delete_GOptimizerLM", _wrap_delete_GOptimizerLM, METH_VARARGS0x0001, (char *)"delete_GOptimizerLM(GOptimizerLM self)"}, |
10413 | { (char *)"GOptimizerLM_clear", _wrap_GOptimizerLM_clear, METH_VARARGS0x0001, (char *)"GOptimizerLM_clear(GOptimizerLM self)"}, |
10414 | { (char *)"GOptimizerLM_clone", _wrap_GOptimizerLM_clone, METH_VARARGS0x0001, (char *)"GOptimizerLM_clone(GOptimizerLM self) -> GOptimizerLM"}, |
10415 | { (char *)"GOptimizerLM_optimize", _wrap_GOptimizerLM_optimize, METH_VARARGS0x0001, (char *)"GOptimizerLM_optimize(GOptimizerLM self, GOptimizerFunction & fct, GOptimizerPars pars)"}, |
10416 | { (char *)"GOptimizerLM_value", _wrap_GOptimizerLM_value, METH_VARARGS0x0001, (char *)"GOptimizerLM_value(GOptimizerLM self) -> double"}, |
10417 | { (char *)"GOptimizerLM_status", _wrap_GOptimizerLM_status, METH_VARARGS0x0001, (char *)"GOptimizerLM_status(GOptimizerLM self) -> int"}, |
10418 | { (char *)"GOptimizerLM_iter", _wrap_GOptimizerLM_iter, METH_VARARGS0x0001, (char *)"GOptimizerLM_iter(GOptimizerLM self) -> int"}, |
10419 | { (char *)"GOptimizerLM_max_iter", _wrap_GOptimizerLM_max_iter, METH_VARARGS0x0001, (char *)"\n" |
10420 | "max_iter(int const & n)\n" |
10421 | "GOptimizerLM_max_iter(GOptimizerLM self) -> int\n" |
10422 | ""}, |
10423 | { (char *)"GOptimizerLM_max_stalls", _wrap_GOptimizerLM_max_stalls, METH_VARARGS0x0001, (char *)"\n" |
10424 | "max_stalls(int const & n)\n" |
10425 | "GOptimizerLM_max_stalls(GOptimizerLM self) -> int\n" |
10426 | ""}, |
10427 | { (char *)"GOptimizerLM_max_boundary_hits", _wrap_GOptimizerLM_max_boundary_hits, METH_VARARGS0x0001, (char *)"\n" |
10428 | "max_boundary_hits(int const & n)\n" |
10429 | "GOptimizerLM_max_boundary_hits(GOptimizerLM self) -> int\n" |
10430 | ""}, |
10431 | { (char *)"GOptimizerLM_lambda_start", _wrap_GOptimizerLM_lambda_start, METH_VARARGS0x0001, (char *)"\n" |
10432 | "lambda_start(double const & val)\n" |
10433 | "GOptimizerLM_lambda_start(GOptimizerLM self) -> double const &\n" |
10434 | ""}, |
10435 | { (char *)"GOptimizerLM_lambda_inc", _wrap_GOptimizerLM_lambda_inc, METH_VARARGS0x0001, (char *)"\n" |
10436 | "lambda_inc(double const & val)\n" |
10437 | "GOptimizerLM_lambda_inc(GOptimizerLM self) -> double const &\n" |
10438 | ""}, |
10439 | { (char *)"GOptimizerLM_lambda_dec", _wrap_GOptimizerLM_lambda_dec, METH_VARARGS0x0001, (char *)"\n" |
10440 | "lambda_dec(double const & val)\n" |
10441 | "GOptimizerLM_lambda_dec(GOptimizerLM self) -> double const &\n" |
10442 | ""}, |
10443 | { (char *)"GOptimizerLM_eps", _wrap_GOptimizerLM_eps, METH_VARARGS0x0001, (char *)"\n" |
10444 | "eps(double const & eps)\n" |
10445 | "GOptimizerLM_eps(GOptimizerLM self) -> double const &\n" |
10446 | ""}, |
10447 | { (char *)"GOptimizerLM_copy", _wrap_GOptimizerLM_copy, METH_VARARGS0x0001, (char *)"GOptimizerLM_copy(GOptimizerLM self) -> GOptimizerLM"}, |
10448 | { (char *)"GOptimizerLM_lambda_value", _wrap_GOptimizerLM_lambda_value, METH_VARARGS0x0001, (char *)"GOptimizerLM_lambda_value(GOptimizerLM self) -> double const &"}, |
10449 | { (char *)"GOptimizerLM_swigregister", GOptimizerLM_swigregister, METH_VARARGS0x0001, NULL__null}, |
10450 | { (char *)"new_GOptimizerPar", _wrap_new_GOptimizerPar, METH_VARARGS0x0001, (char *)"\n" |
10451 | "GOptimizerPar()\n" |
10452 | "GOptimizerPar(std::string const & name, double const & value)\n" |
10453 | "new_GOptimizerPar(std::string const & name, double const & factor, double const & scale) -> GOptimizerPar\n" |
10454 | ""}, |
10455 | { (char *)"delete_GOptimizerPar", _wrap_delete_GOptimizerPar, METH_VARARGS0x0001, (char *)"delete_GOptimizerPar(GOptimizerPar self)"}, |
10456 | { (char *)"GOptimizerPar_value", _wrap_GOptimizerPar_value, METH_VARARGS0x0001, (char *)"\n" |
10457 | "value() -> double\n" |
10458 | "GOptimizerPar_value(GOptimizerPar self, double const & value)\n" |
10459 | ""}, |
10460 | { (char *)"GOptimizerPar_error", _wrap_GOptimizerPar_error, METH_VARARGS0x0001, (char *)"\n" |
10461 | "error() -> double\n" |
10462 | "GOptimizerPar_error(GOptimizerPar self, double const & error)\n" |
10463 | ""}, |
10464 | { (char *)"GOptimizerPar_gradient", _wrap_GOptimizerPar_gradient, METH_VARARGS0x0001, (char *)"\n" |
10465 | "gradient() -> double\n" |
10466 | "GOptimizerPar_gradient(GOptimizerPar self, double const & gradient)\n" |
10467 | ""}, |
10468 | { (char *)"GOptimizerPar_min", _wrap_GOptimizerPar_min, METH_VARARGS0x0001, (char *)"\n" |
10469 | "min() -> double\n" |
10470 | "GOptimizerPar_min(GOptimizerPar self, double const & min)\n" |
10471 | ""}, |
10472 | { (char *)"GOptimizerPar_max", _wrap_GOptimizerPar_max, METH_VARARGS0x0001, (char *)"\n" |
10473 | "max() -> double\n" |
10474 | "GOptimizerPar_max(GOptimizerPar self, double const & max)\n" |
10475 | ""}, |
10476 | { (char *)"GOptimizerPar_range", _wrap_GOptimizerPar_range, METH_VARARGS0x0001, (char *)"GOptimizerPar_range(GOptimizerPar self, double const & min, double const & max)"}, |
10477 | { (char *)"GOptimizerPar_factor_value", _wrap_GOptimizerPar_factor_value, METH_VARARGS0x0001, (char *)"\n" |
10478 | "factor_value() -> double const\n" |
10479 | "GOptimizerPar_factor_value(GOptimizerPar self, double const & value)\n" |
10480 | ""}, |
10481 | { (char *)"GOptimizerPar_factor_error", _wrap_GOptimizerPar_factor_error, METH_VARARGS0x0001, (char *)"\n" |
10482 | "factor_error() -> double const\n" |
10483 | "GOptimizerPar_factor_error(GOptimizerPar self, double const & error)\n" |
10484 | ""}, |
10485 | { (char *)"GOptimizerPar_factor_gradient", _wrap_GOptimizerPar_factor_gradient, METH_VARARGS0x0001, (char *)"\n" |
10486 | "factor_gradient() -> double const\n" |
10487 | "GOptimizerPar_factor_gradient(GOptimizerPar self, double const & gradient)\n" |
10488 | ""}, |
10489 | { (char *)"GOptimizerPar_factor_min", _wrap_GOptimizerPar_factor_min, METH_VARARGS0x0001, (char *)"\n" |
10490 | "factor_min() -> double const\n" |
10491 | "GOptimizerPar_factor_min(GOptimizerPar self, double const & min)\n" |
10492 | ""}, |
10493 | { (char *)"GOptimizerPar_factor_max", _wrap_GOptimizerPar_factor_max, METH_VARARGS0x0001, (char *)"\n" |
10494 | "factor_max() -> double const\n" |
10495 | "GOptimizerPar_factor_max(GOptimizerPar self, double const & max)\n" |
10496 | ""}, |
10497 | { (char *)"GOptimizerPar_factor_range", _wrap_GOptimizerPar_factor_range, METH_VARARGS0x0001, (char *)"GOptimizerPar_factor_range(GOptimizerPar self, double const & min, double const & max)"}, |
10498 | { (char *)"GOptimizerPar_scale", _wrap_GOptimizerPar_scale, METH_VARARGS0x0001, (char *)"\n" |
10499 | "scale() -> double const\n" |
10500 | "GOptimizerPar_scale(GOptimizerPar self, double const & scale)\n" |
10501 | ""}, |
10502 | { (char *)"GOptimizerPar_hasmin", _wrap_GOptimizerPar_hasmin, METH_VARARGS0x0001, (char *)"GOptimizerPar_hasmin(GOptimizerPar self) -> bool"}, |
10503 | { (char *)"GOptimizerPar_hasmax", _wrap_GOptimizerPar_hasmax, METH_VARARGS0x0001, (char *)"GOptimizerPar_hasmax(GOptimizerPar self) -> bool"}, |
10504 | { (char *)"GOptimizerPar_hasrange", _wrap_GOptimizerPar_hasrange, METH_VARARGS0x0001, (char *)"GOptimizerPar_hasrange(GOptimizerPar self) -> bool"}, |
10505 | { (char *)"GOptimizerPar_remove_min", _wrap_GOptimizerPar_remove_min, METH_VARARGS0x0001, (char *)"GOptimizerPar_remove_min(GOptimizerPar self)"}, |
10506 | { (char *)"GOptimizerPar_remove_max", _wrap_GOptimizerPar_remove_max, METH_VARARGS0x0001, (char *)"GOptimizerPar_remove_max(GOptimizerPar self)"}, |
10507 | { (char *)"GOptimizerPar_remove_range", _wrap_GOptimizerPar_remove_range, METH_VARARGS0x0001, (char *)"GOptimizerPar_remove_range(GOptimizerPar self)"}, |
10508 | { (char *)"GOptimizerPar_isfree", _wrap_GOptimizerPar_isfree, METH_VARARGS0x0001, (char *)"GOptimizerPar_isfree(GOptimizerPar self) -> bool"}, |
10509 | { (char *)"GOptimizerPar_isfixed", _wrap_GOptimizerPar_isfixed, METH_VARARGS0x0001, (char *)"GOptimizerPar_isfixed(GOptimizerPar self) -> bool"}, |
10510 | { (char *)"GOptimizerPar_free", _wrap_GOptimizerPar_free, METH_VARARGS0x0001, (char *)"GOptimizerPar_free(GOptimizerPar self)"}, |
10511 | { (char *)"GOptimizerPar_fix", _wrap_GOptimizerPar_fix, METH_VARARGS0x0001, (char *)"GOptimizerPar_fix(GOptimizerPar self)"}, |
10512 | { (char *)"GOptimizerPar_hasgrad", _wrap_GOptimizerPar_hasgrad, METH_VARARGS0x0001, (char *)"\n" |
10513 | "hasgrad() -> bool\n" |
10514 | "GOptimizerPar_hasgrad(GOptimizerPar self, bool const & grad)\n" |
10515 | ""}, |
10516 | { (char *)"GOptimizerPar_clear", _wrap_GOptimizerPar_clear, METH_VARARGS0x0001, (char *)"GOptimizerPar_clear(GOptimizerPar self)"}, |
10517 | { (char *)"GOptimizerPar_clone", _wrap_GOptimizerPar_clone, METH_VARARGS0x0001, (char *)"GOptimizerPar_clone(GOptimizerPar self) -> GOptimizerPar"}, |
10518 | { (char *)"GOptimizerPar_name", _wrap_GOptimizerPar_name, METH_VARARGS0x0001, (char *)"\n" |
10519 | "name() -> std::string const\n" |
10520 | "GOptimizerPar_name(GOptimizerPar self, std::string const & name)\n" |
10521 | ""}, |
10522 | { (char *)"GOptimizerPar_unit", _wrap_GOptimizerPar_unit, METH_VARARGS0x0001, (char *)"\n" |
10523 | "unit() -> std::string const\n" |
10524 | "GOptimizerPar_unit(GOptimizerPar self, std::string const & unit)\n" |
10525 | ""}, |
10526 | { (char *)"GOptimizerPar_autoscale", _wrap_GOptimizerPar_autoscale, METH_VARARGS0x0001, (char *)"GOptimizerPar_autoscale(GOptimizerPar self)"}, |
10527 | { (char *)"GOptimizerPar_copy", _wrap_GOptimizerPar_copy, METH_VARARGS0x0001, (char *)"GOptimizerPar_copy(GOptimizerPar self) -> GOptimizerPar"}, |
10528 | { (char *)"GOptimizerPar_swigregister", GOptimizerPar_swigregister, METH_VARARGS0x0001, NULL__null}, |
10529 | { (char *)"new_GOptimizerPars", _wrap_new_GOptimizerPars, METH_VARARGS0x0001, (char *)"\n" |
10530 | "GOptimizerPars()\n" |
10531 | "GOptimizerPars(int const & number)\n" |
10532 | "new_GOptimizerPars(GOptimizerPars pars) -> GOptimizerPars\n" |
10533 | ""}, |
10534 | { (char *)"delete_GOptimizerPars", _wrap_delete_GOptimizerPars, METH_VARARGS0x0001, (char *)"delete_GOptimizerPars(GOptimizerPars self)"}, |
10535 | { (char *)"GOptimizerPars_clear", _wrap_GOptimizerPars_clear, METH_VARARGS0x0001, (char *)"GOptimizerPars_clear(GOptimizerPars self)"}, |
10536 | { (char *)"GOptimizerPars_clone", _wrap_GOptimizerPars_clone, METH_VARARGS0x0001, (char *)"GOptimizerPars_clone(GOptimizerPars self) -> GOptimizerPars"}, |
10537 | { (char *)"GOptimizerPars_at", _wrap_GOptimizerPars_at, METH_VARARGS0x0001, (char *)"GOptimizerPars_at(GOptimizerPars self, int const & index) -> GOptimizerPar"}, |
10538 | { (char *)"GOptimizerPars_size", _wrap_GOptimizerPars_size, METH_VARARGS0x0001, (char *)"GOptimizerPars_size(GOptimizerPars self) -> int"}, |
10539 | { (char *)"GOptimizerPars_isempty", _wrap_GOptimizerPars_isempty, METH_VARARGS0x0001, (char *)"GOptimizerPars_isempty(GOptimizerPars self) -> bool"}, |
10540 | { (char *)"GOptimizerPars_nfree", _wrap_GOptimizerPars_nfree, METH_VARARGS0x0001, (char *)"GOptimizerPars_nfree(GOptimizerPars self) -> int"}, |
10541 | { (char *)"GOptimizerPars_set", _wrap_GOptimizerPars_set, METH_VARARGS0x0001, (char *)"\n" |
10542 | "set(int const & index, GOptimizerPar par) -> GOptimizerPar\n" |
10543 | "GOptimizerPars_set(GOptimizerPars self, std::string const & name, GOptimizerPar par) -> GOptimizerPar\n" |
10544 | ""}, |
10545 | { (char *)"GOptimizerPars_attach", _wrap_GOptimizerPars_attach, METH_VARARGS0x0001, (char *)"\n" |
10546 | "attach(GOptimizerPar par)\n" |
10547 | "attach(int const & index, GOptimizerPar par)\n" |
10548 | "GOptimizerPars_attach(GOptimizerPars self, std::string const & name, GOptimizerPar par)\n" |
10549 | ""}, |
10550 | { (char *)"GOptimizerPars_insert", _wrap_GOptimizerPars_insert, METH_VARARGS0x0001, (char *)"\n" |
10551 | "insert(int const & index, GOptimizerPar par) -> GOptimizerPar\n" |
10552 | "GOptimizerPars_insert(GOptimizerPars self, std::string const & name, GOptimizerPar par) -> GOptimizerPar\n" |
10553 | ""}, |
10554 | { (char *)"GOptimizerPars_remove", _wrap_GOptimizerPars_remove, METH_VARARGS0x0001, (char *)"\n" |
10555 | "remove(int const & index)\n" |
10556 | "GOptimizerPars_remove(GOptimizerPars self, std::string const & name)\n" |
10557 | ""}, |
10558 | { (char *)"GOptimizerPars_reserve", _wrap_GOptimizerPars_reserve, METH_VARARGS0x0001, (char *)"GOptimizerPars_reserve(GOptimizerPars self, int const & num)"}, |
10559 | { (char *)"GOptimizerPars_extend", _wrap_GOptimizerPars_extend, METH_VARARGS0x0001, (char *)"GOptimizerPars_extend(GOptimizerPars self, GOptimizerPars pars)"}, |
10560 | { (char *)"GOptimizerPars_contains", _wrap_GOptimizerPars_contains, METH_VARARGS0x0001, (char *)"GOptimizerPars_contains(GOptimizerPars self, std::string const & name) -> bool"}, |
10561 | { (char *)"GOptimizerPars___getitem__", _wrap_GOptimizerPars___getitem__, METH_VARARGS0x0001, (char *)"\n" |
10562 | "__getitem__(int const & index) -> GOptimizerPar\n" |
10563 | "GOptimizerPars___getitem__(GOptimizerPars self, std::string const & name) -> GOptimizerPar\n" |
10564 | ""}, |
10565 | { (char *)"GOptimizerPars___setitem__", _wrap_GOptimizerPars___setitem__, METH_VARARGS0x0001, (char *)"\n" |
10566 | "__setitem__(int const & index, GOptimizerPar par)\n" |
10567 | "GOptimizerPars___setitem__(GOptimizerPars self, std::string const & name, GOptimizerPar par)\n" |
10568 | ""}, |
10569 | { (char *)"GOptimizerPars_copy", _wrap_GOptimizerPars_copy, METH_VARARGS0x0001, (char *)"GOptimizerPars_copy(GOptimizerPars self) -> GOptimizerPars"}, |
10570 | { (char *)"GOptimizerPars_swigregister", GOptimizerPars_swigregister, METH_VARARGS0x0001, NULL__null}, |
10571 | { NULL__null, NULL__null, 0, NULL__null } |
10572 | }; |
10573 | |
10574 | |
10575 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ |
10576 | |
10577 | static void *_p_GOptimizerParTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10578 | return (void *)((GBase *) ((GOptimizerPar *) x)); |
10579 | } |
10580 | static void *_p_GOptimizerParsTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10581 | return (void *)((GBase *) (GContainer *) ((GOptimizerPars *) x)); |
10582 | } |
10583 | static void *_p_GContainerTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10584 | return (void *)((GBase *) ((GContainer *) x)); |
10585 | } |
10586 | static void *_p_GOptimizerLMTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10587 | return (void *)((GBase *) (GOptimizer *) ((GOptimizerLM *) x)); |
10588 | } |
10589 | static void *_p_GOptimizerTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10590 | return (void *)((GBase *) ((GOptimizer *) x)); |
10591 | } |
10592 | static void *_p_GOptimizerLMTo_p_GOptimizer(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10593 | return (void *)((GOptimizer *) ((GOptimizerLM *) x)); |
10594 | } |
10595 | static void *_p_GOptimizerParsTo_p_GContainer(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10596 | return (void *)((GContainer *) ((GOptimizerPars *) x)); |
10597 | } |
10598 | static swig_type_info _swigt__p_GBase = {"_p_GBase", "GBase *", 0, 0, (void*)0, 0}; |
10599 | static swig_type_info _swigt__p_GContainer = {"_p_GContainer", "GContainer *", 0, 0, (void*)0, 0}; |
10600 | static swig_type_info _swigt__p_GLog = {"_p_GLog", "GLog *", 0, 0, (void*)0, 0}; |
10601 | static swig_type_info _swigt__p_GOptimizer = {"_p_GOptimizer", "GOptimizer *", 0, 0, (void*)0, 0}; |
10602 | static swig_type_info _swigt__p_GOptimizerFunction = {"_p_GOptimizerFunction", "GOptimizerFunction *", 0, 0, (void*)0, 0}; |
10603 | static swig_type_info _swigt__p_GOptimizerLM = {"_p_GOptimizerLM", "GOptimizerLM *", 0, 0, (void*)0, 0}; |
10604 | static swig_type_info _swigt__p_GOptimizerPar = {"_p_GOptimizerPar", "GOptimizerPar *", 0, 0, (void*)0, 0}; |
10605 | static swig_type_info _swigt__p_GOptimizerPars = {"_p_GOptimizerPars", "GOptimizerPars *", 0, 0, (void*)0, 0}; |
10606 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; |
10607 | static swig_type_info _swigt__p_std__invalid_argument = {"_p_std__invalid_argument", "std::invalid_argument *", 0, 0, (void*)0, 0}; |
10608 | static swig_type_info _swigt__p_swig__SwigPyIterator = {"_p_swig__SwigPyIterator", "swig::SwigPyIterator *", 0, 0, (void*)0, 0}; |
10609 | static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0}; |
10610 | |
10611 | static swig_type_info *swig_type_initial[] = { |
10612 | &_swigt__p_GBase, |
10613 | &_swigt__p_GContainer, |
10614 | &_swigt__p_GLog, |
10615 | &_swigt__p_GOptimizer, |
10616 | &_swigt__p_GOptimizerFunction, |
10617 | &_swigt__p_GOptimizerLM, |
10618 | &_swigt__p_GOptimizerPar, |
10619 | &_swigt__p_GOptimizerPars, |
10620 | &_swigt__p_char, |
10621 | &_swigt__p_std__invalid_argument, |
10622 | &_swigt__p_swig__SwigPyIterator, |
10623 | &_swigt__p_void, |
10624 | }; |
10625 | |
10626 | static swig_cast_info _swigc__p_GBase[] = { {&_swigt__p_GOptimizerPar, _p_GOptimizerParTo_p_GBase, 0, 0}, {&_swigt__p_GOptimizerPars, _p_GOptimizerParsTo_p_GBase, 0, 0}, {&_swigt__p_GBase, 0, 0, 0}, {&_swigt__p_GContainer, _p_GContainerTo_p_GBase, 0, 0}, {&_swigt__p_GOptimizerLM, _p_GOptimizerLMTo_p_GBase, 0, 0}, {&_swigt__p_GOptimizer, _p_GOptimizerTo_p_GBase, 0, 0},{0, 0, 0, 0}}; |
10627 | static swig_cast_info _swigc__p_GContainer[] = { {&_swigt__p_GOptimizerPars, _p_GOptimizerParsTo_p_GContainer, 0, 0}, {&_swigt__p_GContainer, 0, 0, 0},{0, 0, 0, 0}}; |
10628 | static swig_cast_info _swigc__p_GLog[] = { {&_swigt__p_GLog, 0, 0, 0},{0, 0, 0, 0}}; |
10629 | static swig_cast_info _swigc__p_GOptimizer[] = { {&_swigt__p_GOptimizerLM, _p_GOptimizerLMTo_p_GOptimizer, 0, 0}, {&_swigt__p_GOptimizer, 0, 0, 0},{0, 0, 0, 0}}; |
10630 | static swig_cast_info _swigc__p_GOptimizerFunction[] = { {&_swigt__p_GOptimizerFunction, 0, 0, 0},{0, 0, 0, 0}}; |
10631 | static swig_cast_info _swigc__p_GOptimizerLM[] = { {&_swigt__p_GOptimizerLM, 0, 0, 0},{0, 0, 0, 0}}; |
10632 | static swig_cast_info _swigc__p_GOptimizerPar[] = { {&_swigt__p_GOptimizerPar, 0, 0, 0},{0, 0, 0, 0}}; |
10633 | static swig_cast_info _swigc__p_GOptimizerPars[] = { {&_swigt__p_GOptimizerPars, 0, 0, 0},{0, 0, 0, 0}}; |
10634 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; |
10635 | static swig_cast_info _swigc__p_std__invalid_argument[] = { {&_swigt__p_std__invalid_argument, 0, 0, 0},{0, 0, 0, 0}}; |
10636 | static swig_cast_info _swigc__p_swig__SwigPyIterator[] = { {&_swigt__p_swig__SwigPyIterator, 0, 0, 0},{0, 0, 0, 0}}; |
10637 | static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; |
10638 | |
10639 | static swig_cast_info *swig_cast_initial[] = { |
10640 | _swigc__p_GBase, |
10641 | _swigc__p_GContainer, |
10642 | _swigc__p_GLog, |
10643 | _swigc__p_GOptimizer, |
10644 | _swigc__p_GOptimizerFunction, |
10645 | _swigc__p_GOptimizerLM, |
10646 | _swigc__p_GOptimizerPar, |
10647 | _swigc__p_GOptimizerPars, |
10648 | _swigc__p_char, |
10649 | _swigc__p_std__invalid_argument, |
10650 | _swigc__p_swig__SwigPyIterator, |
10651 | _swigc__p_void, |
10652 | }; |
10653 | |
10654 | |
10655 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ |
10656 | |
10657 | static swig_const_info swig_const_table[] = { |
10658 | {0, 0, 0, 0.0, 0, 0}}; |
10659 | |
10660 | #ifdef __cplusplus199711L |
10661 | } |
10662 | #endif |
10663 | /* ----------------------------------------------------------------------------- |
10664 | * Type initialization: |
10665 | * This problem is tough by the requirement that no dynamic |
10666 | * memory is used. Also, since swig_type_info structures store pointers to |
10667 | * swig_cast_info structures and swig_cast_info structures store pointers back |
10668 | * to swig_type_info structures, we need some lookup code at initialization. |
10669 | * The idea is that swig generates all the structures that are needed. |
10670 | * The runtime then collects these partially filled structures. |
10671 | * The SWIG_InitializeModule function takes these initial arrays out of |
10672 | * swig_module, and does all the lookup, filling in the swig_module.types |
10673 | * array with the correct data and linking the correct swig_cast_info |
10674 | * structures together. |
10675 | * |
10676 | * The generated swig_type_info structures are assigned staticly to an initial |
10677 | * array. We just loop through that array, and handle each type individually. |
10678 | * First we lookup if this type has been already loaded, and if so, use the |
10679 | * loaded structure instead of the generated one. Then we have to fill in the |
10680 | * cast linked list. The cast data is initially stored in something like a |
10681 | * two-dimensional array. Each row corresponds to a type (there are the same |
10682 | * number of rows as there are in the swig_type_initial array). Each entry in |
10683 | * a column is one of the swig_cast_info structures for that type. |
10684 | * The cast_initial array is actually an array of arrays, because each row has |
10685 | * a variable number of columns. So to actually build the cast linked list, |
10686 | * we find the array of casts associated with the type, and loop through it |
10687 | * adding the casts to the list. The one last trick we need to do is making |
10688 | * sure the type pointer in the swig_cast_info struct is correct. |
10689 | * |
10690 | * First off, we lookup the cast->type name to see if it is already loaded. |
10691 | * There are three cases to handle: |
10692 | * 1) If the cast->type has already been loaded AND the type we are adding |
10693 | * casting info to has not been loaded (it is in this module), THEN we |
10694 | * replace the cast->type pointer with the type pointer that has already |
10695 | * been loaded. |
10696 | * 2) If BOTH types (the one we are adding casting info to, and the |
10697 | * cast->type) are loaded, THEN the cast info has already been loaded by |
10698 | * the previous module so we just ignore it. |
10699 | * 3) Finally, if cast->type has not already been loaded, then we add that |
10700 | * swig_cast_info to the linked list (because the cast->type) pointer will |
10701 | * be correct. |
10702 | * ----------------------------------------------------------------------------- */ |
10703 | |
10704 | #ifdef __cplusplus199711L |
10705 | extern "C" { |
10706 | #if 0 |
10707 | } /* c-mode */ |
10708 | #endif |
10709 | #endif |
10710 | |
10711 | #if 0 |
10712 | #define SWIGRUNTIME_DEBUG |
10713 | #endif |
10714 | |
10715 | |
10716 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
10717 | SWIG_InitializeModule(void *clientdata) { |
10718 | size_t i; |
10719 | swig_module_info *module_head, *iter; |
10720 | int found, init; |
10721 | |
10722 | /* check to see if the circular list has been setup, if not, set it up */ |
10723 | if (swig_module.next==0) { |
10724 | /* Initialize the swig_module */ |
10725 | swig_module.type_initial = swig_type_initial; |
10726 | swig_module.cast_initial = swig_cast_initial; |
10727 | swig_module.next = &swig_module; |
10728 | init = 1; |
10729 | } else { |
10730 | init = 0; |
10731 | } |
10732 | |
10733 | /* Try and load any already created modules */ |
10734 | module_head = SWIG_GetModule(clientdata)SWIG_Python_GetModule(clientdata); |
10735 | if (!module_head) { |
10736 | /* This is the first module loaded for this interpreter */ |
10737 | /* so set the swig module into the interpreter */ |
10738 | SWIG_SetModule(clientdata, &swig_module)SWIG_Python_SetModule(&swig_module); |
10739 | module_head = &swig_module; |
Value stored to 'module_head' is never read | |
10740 | } else { |
10741 | /* the interpreter has loaded a SWIG module, but has it loaded this one? */ |
10742 | found=0; |
10743 | iter=module_head; |
10744 | do { |
10745 | if (iter==&swig_module) { |
10746 | found=1; |
10747 | break; |
10748 | } |
10749 | iter=iter->next; |
10750 | } while (iter!= module_head); |
10751 | |
10752 | /* if the is found in the list, then all is done and we may leave */ |
10753 | if (found) return; |
10754 | /* otherwise we must add out module into the list */ |
10755 | swig_module.next = module_head->next; |
10756 | module_head->next = &swig_module; |
10757 | } |
10758 | |
10759 | /* When multiple interpreters are used, a module could have already been initialized in |
10760 | a different interpreter, but not yet have a pointer in this interpreter. |
10761 | In this case, we do not want to continue adding types... everything should be |
10762 | set up already */ |
10763 | if (init == 0) return; |
10764 | |
10765 | /* Now work on filling in swig_module.types */ |
10766 | #ifdef SWIGRUNTIME_DEBUG |
10767 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); |
10768 | #endif |
10769 | for (i = 0; i < swig_module.size; ++i) { |
10770 | swig_type_info *type = 0; |
10771 | swig_type_info *ret; |
10772 | swig_cast_info *cast; |
10773 | |
10774 | #ifdef SWIGRUNTIME_DEBUG |
10775 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); |
10776 | #endif |
10777 | |
10778 | /* if there is another module already loaded */ |
10779 | if (swig_module.next != &swig_module) { |
10780 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); |
10781 | } |
10782 | if (type) { |
10783 | /* Overwrite clientdata field */ |
10784 | #ifdef SWIGRUNTIME_DEBUG |
10785 | printf("SWIG_InitializeModule: found type %s\n", type->name); |
10786 | #endif |
10787 | if (swig_module.type_initial[i]->clientdata) { |
10788 | type->clientdata = swig_module.type_initial[i]->clientdata; |
10789 | #ifdef SWIGRUNTIME_DEBUG |
10790 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); |
10791 | #endif |
10792 | } |
10793 | } else { |
10794 | type = swig_module.type_initial[i]; |
10795 | } |
10796 | |
10797 | /* Insert casting types */ |
10798 | cast = swig_module.cast_initial[i]; |
10799 | while (cast->type) { |
10800 | /* Don't need to add information already in the list */ |
10801 | ret = 0; |
10802 | #ifdef SWIGRUNTIME_DEBUG |
10803 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); |
10804 | #endif |
10805 | if (swig_module.next != &swig_module) { |
10806 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); |
10807 | #ifdef SWIGRUNTIME_DEBUG |
10808 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); |
10809 | #endif |
10810 | } |
10811 | if (ret) { |
10812 | if (type == swig_module.type_initial[i]) { |
10813 | #ifdef SWIGRUNTIME_DEBUG |
10814 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); |
10815 | #endif |
10816 | cast->type = ret; |
10817 | ret = 0; |
10818 | } else { |
10819 | /* Check for casting already in the list */ |
10820 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); |
10821 | #ifdef SWIGRUNTIME_DEBUG |
10822 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); |
10823 | #endif |
10824 | if (!ocast) ret = 0; |
10825 | } |
10826 | } |
10827 | |
10828 | if (!ret) { |
10829 | #ifdef SWIGRUNTIME_DEBUG |
10830 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); |
10831 | #endif |
10832 | if (type->cast) { |
10833 | type->cast->prev = cast; |
10834 | cast->next = type->cast; |
10835 | } |
10836 | type->cast = cast; |
10837 | } |
10838 | cast++; |
10839 | } |
10840 | /* Set entry in modules->types array equal to the type */ |
10841 | swig_module.types[i] = type; |
10842 | } |
10843 | swig_module.types[i] = 0; |
10844 | |
10845 | #ifdef SWIGRUNTIME_DEBUG |
10846 | printf("**** SWIG_InitializeModule: Cast List ******\n"); |
10847 | for (i = 0; i < swig_module.size; ++i) { |
10848 | int j = 0; |
10849 | swig_cast_info *cast = swig_module.cast_initial[i]; |
10850 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); |
10851 | while (cast->type) { |
10852 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); |
10853 | cast++; |
10854 | ++j; |
10855 | } |
10856 | printf("---- Total casts: %d\n",j); |
10857 | } |
10858 | printf("**** SWIG_InitializeModule: Cast List ******\n"); |
10859 | #endif |
10860 | } |
10861 | |
10862 | /* This function will propagate the clientdata field of type to |
10863 | * any new swig_type_info structures that have been added into the list |
10864 | * of equivalent types. It is like calling |
10865 | * SWIG_TypeClientData(type, clientdata) a second time. |
10866 | */ |
10867 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
10868 | SWIG_PropagateClientData(void) { |
10869 | size_t i; |
10870 | swig_cast_info *equiv; |
10871 | static int init_run = 0; |
10872 | |
10873 | if (init_run) return; |
10874 | init_run = 1; |
10875 | |
10876 | for (i = 0; i < swig_module.size; i++) { |
10877 | if (swig_module.types[i]->clientdata) { |
10878 | equiv = swig_module.types[i]->cast; |
10879 | while (equiv) { |
10880 | if (!equiv->converter) { |
10881 | if (equiv->type && !equiv->type->clientdata) |
10882 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); |
10883 | } |
10884 | equiv = equiv->next; |
10885 | } |
10886 | } |
10887 | } |
10888 | } |
10889 | |
10890 | #ifdef __cplusplus199711L |
10891 | #if 0 |
10892 | { |
10893 | /* c-mode */ |
10894 | #endif |
10895 | } |
10896 | #endif |
10897 | |
10898 | |
10899 | |
10900 | #ifdef __cplusplus199711L |
10901 | extern "C" { |
10902 | #endif |
10903 | |
10904 | /* Python-specific SWIG API */ |
10905 | #define SWIG_newvarlink()SWIG_Python_newvarlink() SWIG_Python_newvarlink() |
10906 | #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) |
10907 | #define SWIG_InstallConstants(d, constants)SWIG_Python_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) |
10908 | |
10909 | /* ----------------------------------------------------------------------------- |
10910 | * global variable support code. |
10911 | * ----------------------------------------------------------------------------- */ |
10912 | |
10913 | typedef struct swig_globalvar { |
10914 | char *name; /* Name of global variable */ |
10915 | PyObject *(*get_attr)(void); /* Return the current value */ |
10916 | int (*set_attr)(PyObject *); /* Set the value */ |
10917 | struct swig_globalvar *next; |
10918 | } swig_globalvar; |
10919 | |
10920 | typedef struct swig_varlinkobject { |
10921 | PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type; |
10922 | swig_globalvar *vars; |
10923 | } swig_varlinkobject; |
10924 | |
10925 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
10926 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { |
10927 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
10928 | return PyUnicode_InternFromString("<Swig global variables>"); |
10929 | #else |
10930 | return PyString_FromString("<Swig global variables>"); |
10931 | #endif |
10932 | } |
10933 | |
10934 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
10935 | swig_varlink_str(swig_varlinkobject *v) { |
10936 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
10937 | PyObject *str = PyUnicode_InternFromString("("); |
10938 | PyObject *tail; |
10939 | PyObject *joined; |
10940 | swig_globalvar *var; |
10941 | for (var = v->vars; var; var=var->next) { |
10942 | tail = PyUnicode_FromStringPyUnicodeUCS2_FromString(var->name); |
10943 | joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail); |
10944 | Py_DecRef(str); |
10945 | Py_DecRef(tail); |
10946 | str = joined; |
10947 | if (var->next) { |
10948 | tail = PyUnicode_InternFromString(", "); |
10949 | joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail); |
10950 | Py_DecRef(str); |
10951 | Py_DecRef(tail); |
10952 | str = joined; |
10953 | } |
10954 | } |
10955 | tail = PyUnicode_InternFromString(")"); |
10956 | joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail); |
10957 | Py_DecRef(str); |
10958 | Py_DecRef(tail); |
10959 | str = joined; |
10960 | #else |
10961 | PyObject *str = PyString_FromString("("); |
10962 | swig_globalvar *var; |
10963 | for (var = v->vars; var; var=var->next) { |
10964 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); |
10965 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); |
10966 | } |
10967 | PyString_ConcatAndDel(&str,PyString_FromString(")")); |
10968 | #endif |
10969 | return str; |
10970 | } |
10971 | |
10972 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
10973 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { |
10974 | char *tmp; |
10975 | PyObject *str = swig_varlink_str(v); |
10976 | fprintf(fp,"Swig global variables "); |
10977 | fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str)); |
10978 | SWIG_Python_str_DelForPy3(tmp); |
10979 | Py_DECREF(str)do { if ( --((PyObject*)(str))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(str)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(str)))); } while (0); |
10980 | return 0; |
10981 | } |
10982 | |
10983 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
10984 | swig_varlink_dealloc(swig_varlinkobject *v) { |
10985 | swig_globalvar *var = v->vars; |
10986 | while (var) { |
10987 | swig_globalvar *n = var->next; |
10988 | free(var->name); |
10989 | free(var); |
10990 | var = n; |
10991 | } |
10992 | } |
10993 | |
10994 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
10995 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { |
10996 | PyObject *res = NULL__null; |
10997 | swig_globalvar *var = v->vars; |
10998 | while (var) { |
10999 | if (strcmp(var->name,n) == 0) { |
11000 | res = (*var->get_attr)(); |
11001 | break; |
11002 | } |
11003 | var = var->next; |
11004 | } |
11005 | if (res == NULL__null && !PyErr_Occurred()) { |
11006 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); |
11007 | } |
11008 | return res; |
11009 | } |
11010 | |
11011 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
11012 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { |
11013 | int res = 1; |
11014 | swig_globalvar *var = v->vars; |
11015 | while (var) { |
11016 | if (strcmp(var->name,n) == 0) { |
11017 | res = (*var->set_attr)(p); |
11018 | break; |
11019 | } |
11020 | var = var->next; |
11021 | } |
11022 | if (res == 1 && !PyErr_Occurred()) { |
11023 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); |
11024 | } |
11025 | return res; |
11026 | } |
11027 | |
11028 | SWIGINTERNstatic __attribute__ ((__unused__)) PyTypeObject* |
11029 | swig_varlink_type(void) { |
11030 | static char varlink__doc__[] = "Swig var link object"; |
11031 | static PyTypeObject varlink_type; |
11032 | static int type_init = 0; |
11033 | if (!type_init) { |
11034 | const PyTypeObject tmp = { |
11035 | /* PyObject header changed in Python 3 */ |
11036 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
11037 | PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0, |
11038 | #else |
11039 | PyObject_HEAD_INIT(NULL)1, __null, |
11040 | 0, /* ob_size */ |
11041 | #endif |
11042 | (char *)"swigvarlink", /* tp_name */ |
11043 | sizeof(swig_varlinkobject), /* tp_basicsize */ |
11044 | 0, /* tp_itemsize */ |
11045 | (destructor) swig_varlink_dealloc, /* tp_dealloc */ |
11046 | (printfunc) swig_varlink_print, /* tp_print */ |
11047 | (getattrfunc) swig_varlink_getattr, /* tp_getattr */ |
11048 | (setattrfunc) swig_varlink_setattr, /* tp_setattr */ |
11049 | 0, /* tp_compare */ |
11050 | (reprfunc) swig_varlink_repr, /* tp_repr */ |
11051 | 0, /* tp_as_number */ |
11052 | 0, /* tp_as_sequence */ |
11053 | 0, /* tp_as_mapping */ |
11054 | 0, /* tp_hash */ |
11055 | 0, /* tp_call */ |
11056 | (reprfunc) swig_varlink_str, /* tp_str */ |
11057 | 0, /* tp_getattro */ |
11058 | 0, /* tp_setattro */ |
11059 | 0, /* tp_as_buffer */ |
11060 | 0, /* tp_flags */ |
11061 | varlink__doc__, /* tp_doc */ |
11062 | 0, /* tp_traverse */ |
11063 | 0, /* tp_clear */ |
11064 | 0, /* tp_richcompare */ |
11065 | 0, /* tp_weaklistoffset */ |
11066 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000 |
11067 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ |
11068 | #endif |
11069 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02030000 |
11070 | 0, /* tp_del */ |
11071 | #endif |
11072 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02060000 |
11073 | 0, /* tp_version */ |
11074 | #endif |
11075 | #ifdef COUNT_ALLOCS |
11076 | 0,0,0,0 /* tp_alloc -> tp_next */ |
11077 | #endif |
11078 | }; |
11079 | varlink_type = tmp; |
11080 | type_init = 1; |
11081 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
11082 | varlink_type.ob_type = &PyType_Type; |
11083 | #else |
11084 | if (PyType_Ready(&varlink_type) < 0) |
11085 | return NULL__null; |
11086 | #endif |
11087 | } |
11088 | return &varlink_type; |
11089 | } |
11090 | |
11091 | /* Create a variable linking object for use later */ |
11092 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
11093 | SWIG_Python_newvarlink(void) { |
11094 | 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 ())) ); |
11095 | if (result) { |
11096 | result->vars = 0; |
11097 | } |
11098 | return ((PyObject*) result); |
11099 | } |
11100 | |
11101 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
11102 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { |
11103 | swig_varlinkobject *v = (swig_varlinkobject *) p; |
11104 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); |
11105 | if (gv) { |
11106 | size_t size = strlen(name)+1; |
11107 | gv->name = (char *)malloc(size); |
11108 | if (gv->name) { |
11109 | strncpy(gv->name,name,size); |
11110 | gv->get_attr = get_attr; |
11111 | gv->set_attr = set_attr; |
11112 | gv->next = v->vars; |
11113 | } |
11114 | } |
11115 | v->vars = gv; |
11116 | } |
11117 | |
11118 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
11119 | SWIG_globals(void) { |
11120 | static PyObject *_SWIG_globals = 0; |
11121 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink()SWIG_Python_newvarlink(); |
11122 | return _SWIG_globals; |
11123 | } |
11124 | |
11125 | /* ----------------------------------------------------------------------------- |
11126 | * constants/methods manipulation |
11127 | * ----------------------------------------------------------------------------- */ |
11128 | |
11129 | /* Install Constants */ |
11130 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
11131 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { |
11132 | PyObject *obj = 0; |
11133 | size_t i; |
11134 | for (i = 0; constants[i].type; ++i) { |
11135 | switch(constants[i].type) { |
11136 | case SWIG_PY_POINTER4: |
11137 | obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0)SWIG_Python_NewPointerObj(__null, constants[i].pvalue, *(constants [i]).ptype, 0); |
11138 | break; |
11139 | case SWIG_PY_BINARY5: |
11140 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype))SWIG_Python_NewPackedObj(constants[i].pvalue, constants[i].lvalue , *(constants[i].ptype)); |
11141 | break; |
11142 | default: |
11143 | obj = 0; |
11144 | break; |
11145 | } |
11146 | if (obj) { |
11147 | PyDict_SetItemString(d, constants[i].name, obj); |
11148 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
11149 | } |
11150 | } |
11151 | } |
11152 | |
11153 | /* -----------------------------------------------------------------------------*/ |
11154 | /* Fix SwigMethods to carry the callback ptrs when needed */ |
11155 | /* -----------------------------------------------------------------------------*/ |
11156 | |
11157 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
11158 | SWIG_Python_FixMethods(PyMethodDef *methods, |
11159 | swig_const_info *const_table, |
11160 | swig_type_info **types, |
11161 | swig_type_info **types_initial) { |
11162 | size_t i; |
11163 | for (i = 0; methods[i].ml_name; ++i) { |
11164 | const char *c = methods[i].ml_doc; |
11165 | if (c && (c = strstr(c, "swig_ptr: "))) { |
11166 | int j; |
11167 | swig_const_info *ci = 0; |
11168 | const char *name = c + 10; |
11169 | for (j = 0; const_table[j].type; ++j) { |
11170 | if (strncmp(const_table[j].name, name, |
11171 | strlen(const_table[j].name)) == 0) { |
11172 | ci = &(const_table[j]); |
11173 | break; |
11174 | } |
11175 | } |
11176 | if (ci) { |
11177 | void *ptr = (ci->type == SWIG_PY_POINTER4) ? ci->pvalue : 0; |
11178 | if (ptr) { |
11179 | size_t shift = (ci->ptype) - types; |
11180 | swig_type_info *ty = types_initial[shift]; |
11181 | size_t ldoc = (c - methods[i].ml_doc); |
11182 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; |
11183 | char *ndoc = (char*)malloc(ldoc + lptr + 10); |
11184 | if (ndoc) { |
11185 | char *buff = ndoc; |
11186 | strncpy(buff, methods[i].ml_doc, ldoc); |
11187 | buff += ldoc; |
11188 | strncpy(buff, "swig_ptr: ", 10); |
11189 | buff += 10; |
11190 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); |
11191 | methods[i].ml_doc = ndoc; |
11192 | } |
11193 | } |
11194 | } |
11195 | } |
11196 | } |
11197 | } |
11198 | |
11199 | #ifdef __cplusplus199711L |
11200 | } |
11201 | #endif |
11202 | |
11203 | /* -----------------------------------------------------------------------------* |
11204 | * Partial Init method |
11205 | * -----------------------------------------------------------------------------*/ |
11206 | |
11207 | #ifdef __cplusplus199711L |
11208 | extern "C" |
11209 | #endif |
11210 | |
11211 | SWIGEXPORT__attribute__ ((visibility("default"))) |
11212 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
11213 | PyObject* |
11214 | #else |
11215 | void |
11216 | #endif |
11217 | SWIG_initinit_opt(void) { |
11218 | PyObject *m, *d, *md; |
11219 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
11220 | static struct PyModuleDef SWIG_module = { |
11221 | # if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03020000 |
11222 | PyModuleDef_HEAD_INIT, |
11223 | # else |
11224 | { |
11225 | PyObject_HEAD_INIT(NULL)1, __null, |
11226 | NULL__null, /* m_init */ |
11227 | 0, /* m_index */ |
11228 | NULL__null, /* m_copy */ |
11229 | }, |
11230 | # endif |
11231 | (char *) SWIG_name"_opt", |
11232 | NULL__null, |
11233 | -1, |
11234 | SwigMethods, |
11235 | NULL__null, |
11236 | NULL__null, |
11237 | NULL__null, |
11238 | NULL__null |
11239 | }; |
11240 | #endif |
11241 | |
11242 | #if defined(SWIGPYTHON_BUILTIN) |
11243 | static SwigPyClientData SwigPyObject_clientdata = { |
11244 | 0, 0, 0, 0, 0, 0, 0 |
11245 | }; |
11246 | static PyGetSetDef this_getset_def = { |
11247 | (char *)"this", &SwigPyBuiltin_ThisClosure, NULL__null, NULL__null, NULL__null |
11248 | }; |
11249 | static SwigPyGetSet thisown_getset_closure = { |
11250 | (PyCFunction) SwigPyObject_own, |
11251 | (PyCFunction) SwigPyObject_own |
11252 | }; |
11253 | static PyGetSetDef thisown_getset_def = { |
11254 | (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL__null, &thisown_getset_closure |
11255 | }; |
11256 | PyObject *metatype_args; |
11257 | PyTypeObject *builtin_pytype; |
11258 | int builtin_base_count; |
11259 | swig_type_info *builtin_basetype; |
11260 | PyObject *tuple; |
11261 | PyGetSetDescrObject *static_getset; |
11262 | PyTypeObject *metatype; |
11263 | SwigPyClientData *cd; |
11264 | PyObject *public_interface, *public_symbol; |
11265 | PyObject *this_descr; |
11266 | PyObject *thisown_descr; |
11267 | int i; |
11268 | |
11269 | (void)builtin_pytype; |
11270 | (void)builtin_base_count; |
11271 | (void)builtin_basetype; |
11272 | (void)tuple; |
11273 | (void)static_getset; |
11274 | |
11275 | /* metatype is used to implement static member variables. */ |
11276 | metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type); |
11277 | assert(metatype_args)((void)0); |
11278 | metatype = (PyTypeObject *) PyType_Type.tp_call((PyObject *) &PyType_Type, metatype_args, NULL__null); |
11279 | assert(metatype)((void)0); |
11280 | 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); |
11281 | metatype->tp_setattro = (setattrofunc) &SwigPyObjectType_setattro; |
11282 | assert(PyType_Ready(metatype) >= 0)((void)0); |
11283 | #endif |
11284 | |
11285 | /* Fix SwigMethods to carry the callback ptrs when needed */ |
11286 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); |
11287 | |
11288 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
11289 | m = PyModule_Create(&SWIG_module); |
11290 | #else |
11291 | m = Py_InitModule((char *) SWIG_name, SwigMethods)Py_InitModule4_64((char *) "_opt", SwigMethods, (char *)__null , (PyObject *)__null, 1013); |
11292 | #endif |
11293 | md = d = PyModule_GetDict(m); |
11294 | (void)md; |
11295 | |
11296 | SWIG_InitializeModule(0); |
11297 | |
11298 | #ifdef SWIGPYTHON_BUILTIN |
11299 | SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject")SWIG_MangledTypeQueryModule(&swig_module, &swig_module , "_p_SwigPyObject"); |
11300 | assert(SwigPyObject_stype)((void)0); |
11301 | cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; |
11302 | if (!cd) { |
11303 | SwigPyObject_stype->clientdata = &SwigPyObject_clientdata; |
11304 | SwigPyObject_clientdata.pytype = SwigPyObject_TypeOnce(); |
11305 | } else if (SwigPyObject_TypeOnce()->tp_basicsize != cd->pytype->tp_basicsize) { |
11306 | PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules."); |
11307 | # if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
11308 | return NULL__null; |
11309 | # else |
11310 | return; |
11311 | # endif |
11312 | } |
11313 | |
11314 | /* All objects have a 'this' attribute */ |
11315 | this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def); |
11316 | (void)this_descr; |
11317 | |
11318 | /* All objects have a 'thisown' attribute */ |
11319 | thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def); |
11320 | (void)thisown_descr; |
11321 | |
11322 | public_interface = PyList_New(0); |
11323 | public_symbol = 0; |
11324 | (void)public_symbol; |
11325 | |
11326 | PyDict_SetItemString(md, "__all__", public_interface); |
11327 | 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); |
11328 | for (i = 0; SwigMethods[i].ml_name != NULL__null; ++i) |
11329 | SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name); |
11330 | for (i = 0; swig_const_table[i].name != 0; ++i) |
11331 | SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name); |
11332 | #endif |
11333 | |
11334 | SWIG_InstallConstants(d,swig_const_table)SWIG_Python_InstallConstants(d, swig_const_table); |
11335 | |
11336 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
11337 | return m; |
11338 | #else |
11339 | return; |
11340 | #endif |
11341 | } |
11342 |